Binomial expansion

From testwiki
Revision as of 22:11, 23 February 2015 by imported>AlwinFW (replaced 'row a' with 'row n')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Binomial expansion uses an expression to make a series. It uses a bracket expression like (x+y)n. There are three binomial expansions.

The formulas

There are basically three binomial expansion formulas:

(a+b)2=a2+2ab+b2    1st (Plus)
(ab)2=a22ab+b2 2nd (Minus)
(a+b)(ab)=a2b2 3rd (Plus-Minus)

We can explain why there are such 3 formulas with a simple expansion of the product:

(a+b)2=(a+b)(a+b)=aa+ab+ba+bb=a2+2ab+b2
(ab)2=(ab)(ab)=aaabba+bb=a22ab+b2
(a+b)(ab)=aaab+babb=a2b2

Using Pascal's triangle

If n is an integer (n), we use Pascal's triangle.


To expand (x+y)2:

  • find row 2 of Pascal's triangle (1, 2, 1)
  • expand x and y so the x power goes down by 1 each time from n to 0 and the y power goes up by 1 each time from 0 up to n
  • times the numbers from Pascal's triangle with the right terms.


So (x+y)2=1x2y0+2x1y1+1x0y2


For example:

(3+2x)2=132(2x)0+231(2x)1+130(2x)2=9+12x+4x2


So as a rule:

(x+y)n=a0xny0+a1xn1y1+a2xn2y2++an1x1yn1+anx0yn

where ai is the number at row n and position i in Pascal's triangle.

Examples

(5+3x)3=153(3x)0+352(3x)1+351(3x)2+150(3x)3
=125+753x+159x2+127x3=125+225x+135x2+27x3


(53x)3=153(3x)0+352(3x)1+351(3x)2+150(3x)3
=125+75(3x)+159x2+1(27x3)=125223x+135x227x3


(7+4x2)5=175(4x2)0+574(4x2)1+1073(4x2)2+1072(4x2)3+571(4x2)4+170(4x2)5
=16807+120054x2+343016x4+49064x6+35256x8+11024x10
=16807+48020x2+54880x4+31360x6+8960x8+1024x10