Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Expand a Binomial Power

The binomial theorem writes (a+b)n(a + b)^n as n+1n + 1 terms. The coefficients are row nn of Pascal's triangle, the power of aa falls from nn to 00, and the power of bb rises from 00 to nn.

Recognize the task

A sum of two terms is raised to a whole-number power and the whole expansion is wanted: (x+1)5(x + 1)^5, (2x+1)4(2x + 1)^4, (x−2)4(x - 2)^4, (3x−y)3(3x - y)^3. Test: the bracket holds exactly two terms. If only one term or one coefficient is asked for, find that term directly.
The binomial theorem is stated in the binomial theorem lesson.

Two ways to do it

Binomial theoremusual
(a+b)n=∑k=0n(nk)an−kbk(a + b)^n = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^k
Each term is a coefficient times a power of aa times a power of bb (binomial theorem).
Multiply the bracketssmall n
(a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2
For n=2n = 2 or 33, multiplying the brackets out is just as quick.

Steps

StepOn (2x+1)4(2x + 1)^4
1Name a, b and n. Keep each coefficient and each sign with its term.a=2xa = 2x, b=1b = 1, n=4n = 4
2Write row n of Pascal's triangle. Row nn has n+1n + 1 entries (n0),…,(nn)\binom{n}{0}, \ldots, \binom{n}{n}.1,4,6,4,11, 4, 6, 4, 1
3Pair the coefficients with the powers. The power of aa falls from nn to 00 while the power of bb rises from 00 to nn.(2x)4+4(2x)3+6(2x)2+4(2x)+1(2x)^4 + 4(2x)^3 + 6(2x)^2 + 4(2x) + 1
4Simplify each term. Raise the whole term aa, its coefficient included, to its power.16x4+32x3+24x2+8x+116x^4 + 32x^3 + 24x^2 + 8x + 1

Worked examples

Example 1 · a plain binomial

row 5
(x+1)5(x + 1)^5: row 55 is 1,5,10,10,5,11, 5, 10, 10, 5, 1
powers of 11 are 11
x5+5x4+10x3+10x2+5x+1x^5 + 5x^4 + 10x^3 + 10x^2 + 5x + 1
coefficients only

Example 2 · a minus sign

b negative
(x−2)4(x - 2)^4 with b=−2b = -2
the sign stays with bb
x4+4x3(−2)+6x2(4)+4x(−8)+16x^4 + 4x^3(-2) + 6x^2(4) + 4x(-8) + 16
powers of −2-2
x4−8x3+24x2−32x+16x^4 - 8x^3 + 24x^2 - 32x + 16
signs alternate

Example 3 · two variables

coefficients inside
(3x−y)3(3x - y)^3: row 33 is 1,3,3,11, 3, 3, 1
a=3xa = 3x, b=−yb = -y
(3x)3+3(3x)2(−y)+3(3x)(−y)2+(−y)3(3x)^3 + 3(3x)^2(-y) + 3(3x)(-y)^2 + (-y)^3
pair the powers
27x3−27x2y+9xy2−y327x^3 - 27x^2y + 9xy^2 - y^3
simplify each term
Read off any row of coefficients in the Pascal triangle visualizer.

See it happen

(a+b)n(a + b)^n is nn brackets multiplied together. Every term of the product takes aa or bb from each bracket. A term with bkb^k comes from choosing which kk brackets give bb, and there are (nk)\binom{n}{k} such choices. That is why the coefficients are binomial coefficients, and why the exponents in every term add up to nn.

Common mistakes

Dropping the middle terms

✗ (x+2)3=x3+8(x + 2)^3 = x^3 + 8
✓ (x+2)3=x3+6x2+12x+8(x + 2)^3 = x^3 + 6x^2 + 12x + 8

Leaving the coefficient outside the power

✗ (2x)4=2x4(2x)^4 = 2x^4
✓ (2x)4=24x4=16x4(2x)^4 = 2^4x^4 = 16x^4

Losing the sign of b

✗ (x−1)3=x3−3x2−3x−1(x - 1)^3 = x^3 - 3x^2 - 3x - 1
✓ (−1)2=1(-1)^2 = 1, so (x−1)3=x3−3x2+3x−1(x - 1)^3 = x^3 - 3x^2 + 3x - 1