Polynomials & Factoring

The Binomial Theorem: Formula, Expansion and Examples

The binomial theorem says that (a+b)n(a+b)^n expands into n+1n+1 terms, and the term containing bkb^k is (nk)an−kbk\binom{n}{k}a^{n-k}b^k for k=0,1,…,nk=0,1,\dots,n. Add those terms up and the power is fully expanded, with no repeated multiplication.

(a+b)n=∑k=0n(nk)an−kbk(a+b)^n=\sum_{k=0}^{n}\binom{n}{k}a^{n-k}b^k

Try it with your numbers

Show every step

A binomial is a polynomial with exactly two terms, and raising it to a high power by hand is slow and easy to botch. The theorem replaces that with a pattern you can read off directly, and the same pattern also gives you any single term on demand.

What does the binomial theorem say?

(a+b)n=∑k=0n(nk)an−kbk(a+b)^n=\sum_{k=0}^{n}\binom{n}{k}a^{n-k}b^k

The symbol (nk)\binom{n}{k} is read “n choose k” and equals n!k! (n−k)!\dfrac{n!}{k!\,(n-k)!}. By hand, a faster route is to write kk factors counting down from nn on top and k!k! on the bottom, so (83)=8⋅7⋅63⋅2⋅1=56\binom{8}{3}=\dfrac{8\cdot7\cdot6}{3\cdot2\cdot1}=56. The third coefficient is always (n2)=n(n−1)2\binom{n}{2}=\frac{n(n-1)}{2}, which is the arithmetic series 1+2+⋯+(n−1)1+2+\dots+(n-1) in disguise.

Before any arithmetic, the formula already tells you four things:

  • There are n+1n+1 terms.
  • The power of aa falls from nn to 00 while the power of bb rises from 00 to nn, so the two exponents in every term add to nn.
  • The coefficients are symmetric, because (nk)=(nn−k)\binom{n}{k}=\binom{n}{n-k}. You only need to compute half of them.
  • If aa and bb look like pxpx and qq, the result is a polynomial of degree nn.

The trap that costs the most points is treating aa and bb as bare letters. They are whole terms, with their coefficients and signs attached. In (2x−5)3(2x-5)^3, a=2xa=2x and b=−5b=-5, and every power in the formula applies to all of it.

Quick check

How many terms does (x+y)12(x+y)^{12} have, and what is the coefficient of x9y3x^9y^3?

Where does the binomial theorem formula come from?

Three ways to pick b from two of three copies of (a+b) give 3ab²
Choosing b from 2 of the 3 copies can happen in 3 ways, so ab² appears 3 times.

Write (a+b)n(a+b)^n as nn copies of (a+b)(a+b) multiplied together. When you distribute, every term of the result is built by picking either aa or bb from each copy. A term with bb chosen from exactly kk copies, and aa from the other n−kn-k, becomes an−kbka^{n-k}b^k.

So the coefficient of an−kbka^{n-k}b^k is simply the number of ways to choose which kk of the nn copies give you the bb. That count is (nk)\binom{n}{k}. For n=3n=3 and k=2k=2, the bb can come from copies 1 and 2, 1 and 3, or 2 and 3. That is three ways, which is why (a+b)3(a+b)^3 contains 3ab23ab^2. The whole theorem is multiplying polynomials with the bookkeeping done by counting.

This also explains Pascal’s triangle. Look at the last copy of (a+b)(a+b): either you take its aa or its bb, so (nk)=(n−1k−1)+(n−1k)\binom{n}{k}=\binom{n-1}{k-1}+\binom{n-1}{k}. Each entry is the sum of the two above it. For n=2n=2 the theorem is the FOIL method, and n=2n=2 and n=3n=3 are the special products you may already have memorized.

How do you expand a binomial step by step?

Name aa, bb and nn, write the coefficients, then fill in the powers. Take (2x+3)4(2x+3)^4, where a=2xa=2x, b=3b=3 and n=4n=4. The coefficients are (40),…,(44)=1,4,6,4,1\binom40,\dots,\binom44=1,4,6,4,1.

(2x+3)4=1(2x)4+4(2x)3(3)+6(2x)2(3)2+4(2x)(3)3+1(3)4(2x+3)^4=1(2x)^4+4(2x)^3(3)+6(2x)^2(3)^2+4(2x)(3)^3+1(3)^4

Now simplify each term on its own line:

(2x)4=16x4,4⋅8x3⋅3=96x3,6⋅4x2⋅9=216x2,4⋅2x⋅27=216x,34=81(2x)^4=16x^4,\quad 4\cdot8x^3\cdot3=96x^3,\quad 6\cdot4x^2\cdot9=216x^2,\quad 4\cdot2x\cdot27=216x,\quad 3^4=81

(2x+3)4=16x4+96x3+216x2+216x+81(2x+3)^4=16x^4+96x^3+216x^2+216x+81

Put parentheses around aa and bb before you raise anything to a power. Writing 2x42x^4 instead of 16x416x^4 is the single most common slip, because (2x)4(2x)^4 means 24x42^4x^4. A quick check: at x=1x=1 the left side is 54=6255^4=625, and 16+96+216+216+81=62516+96+216+216+81=625.

How do you expand with subtraction or fractions?

Area model of a square with side x+3 showing why (x+3)² equals x² + 6x + 9
Splitting a square of side x+3 shows two 3x strips, so (x+3)² = x² + 6x + 9, not x² + 9.

Treat the minus sign as part of bb. To expand (x−2)5(x-2)^5, use a=xa=x, b=−2b=-2 and the row 1,5,10,10,5,11,5,10,10,5,1:

(x−2)5=x5+5x4(−2)+10x3(−2)2+10x2(−2)3+5x(−2)4+(−2)5(x-2)^5=x^5+5x^4(-2)+10x^3(-2)^2+10x^2(-2)^3+5x(-2)^4+(-2)^5

=x5−10x4+40x3−80x2+80x−32=x^5-10x^4+40x^3-80x^2+80x-32

The signs alternate because odd powers of −2-2 are negative and even powers are positive. That gives a mental shortcut: for (a−b)n(a-b)^n the signs run +,−,+,−,…+,-,+,-,\dots, so calculate with positive bb and then apply the pattern.

Fractions work the same way. For (x2+4)3\left(\frac{x}{2}+4\right)^3, the terms are x38\frac{x^3}{8}, 3⋅x24⋅4=3x23\cdot\frac{x^2}{4}\cdot4=3x^2, 3⋅x2⋅16=24x3\cdot\frac{x}{2}\cdot16=24x and 6464. So the result is x38+3x2+24x+64\frac{x^3}{8}+3x^2+24x+64. Keep each fraction in parentheses while powering it, and cube the denominator as well as the numerator.

The trap: no shortcut for a power

(a+b)n(a+b)^n is not an+bna^n+b^n. For example, (x+3)2=x2+6x+9(x+3)^2=x^2+6x+9, not x2+9x^2+9. The middle terms are exactly what the binomial coefficients supply.

There is a useful link here. Expanding the cube gives (a+b)3=a3+b3+3ab(a+b)(a+b)^3=a^3+b^3+3ab(a+b), so a3+b3=(a+b)3−3ab(a+b)a^3+b^3=(a+b)^3-3ab(a+b). That relationship is what sits behind factoring sums and differences of cubes.

How do you find one term without expanding everything?

Use the general term. The (k+1)(k+1)th term of (a+b)n(a+b)^n is

Tk+1=(nk)an−kbkT_{k+1}=\binom{n}{k}a^{n-k}b^k

The off-by-one is deliberate: the first term has k=0k=0. So the 4th term uses k=3k=3, not k=4k=4.

To find a coefficient, combine all powers of xx into a single exponent in kk, then solve for kk. Find the coefficient of x3x^3 in (2x2−1x)6\left(2x^2-\frac{1}{x}\right)^6. Here a=2x2a=2x^2 and b=−x−1b=-x^{-1}:

Tk+1=(6k)(2x2)6−k(−x−1)k=(6k)26−k(−1)k x12−2k−kT_{k+1}=\binom{6}{k}(2x^2)^{6-k}(-x^{-1})^k=\binom{6}{k}2^{6-k}(-1)^k\,x^{12-2k-k}

The exponent of xx is 12−3k12-3k. Setting 12−3k=312-3k=3 gives k=3k=3. The coefficient is

(63)⋅23⋅(−1)3=20⋅8⋅(−1)=−160\binom{6}{3}\cdot2^3\cdot(-1)^3=20\cdot8\cdot(-1)=-160

The same setup finds the constant term: solve 12−3k=012-3k=0 to get k=4k=4, and the term is (64)⋅22⋅(−1)4=15⋅4=60\binom64\cdot2^2\cdot(-1)^4=15\cdot4=60. This method also tells you when a term does not exist. If kk comes out as a fraction, or falls outside 00 to nn, the coefficient is 00. For x4x^4 above you would get k=83k=\frac83, so no x4x^4 term appears.

Try this: Find the constant term of (x+2x)4\left(x+\frac{2}{x}\right)^4 by writing the general term and setting the exponent of xx equal to 00. You should get 2424.

How can you check a binomial expansion?

Your expansion is a polynomial, so you can test it by substituting a number into both sides. The easiest choice is x=1x=1, since every power becomes 11 and the coefficients simply add up. Evaluating at 11 is the same idea as the remainder theorem: the value of a polynomial at 11 is the remainder when you divide by x−1x-1.

Four quick checks catch almost every error:

  1. Count the terms. You need exactly n+1n+1.
  2. Confirm the coefficients before simplifying are symmetric, such as 1,5,10,10,5,11,5,10,10,5,1.
  3. For (a+b)n(a+b)^n with a=b=1a=b=1, the coefficients must add to 2n2^n.
  4. Substitute a small value such as x=1x=1 or x=2x=2 into the original and the expansion, and compare.

For (x−2)5(x-2)^5 at x=1x=1, the original gives (−1)5=−1(-1)^5=-1. The expansion gives 1−10+40−80+80−32=−11-10+40-80+80-32=-1. They match. A single wrong sign would break it, which is why this check is worth the ten seconds.

Quick check

What is the sum of all the coefficients in the expansion of (3x−1)5(3x-1)^5?

Binomial theorem or Pascal’s triangle: which is faster?

Pascal’s triangle gives you a whole row of coefficients at once, so it is the faster choice for small powers. For larger powers, or when you need only one coefficient, the formula wins, because building 20 rows to reach row 20 is wasteful.

nn Coefficients
4 1, 4, 6, 4, 1
5 1, 5, 10, 10, 5, 1
6 1, 6, 15, 20, 15, 6, 1
7 1, 7, 21, 35, 35, 21, 7, 1

There is a middle route that skips the triangle and the factorials. Each coefficient comes from the previous one through (nk+1)=(nk)⋅n−kk+1\binom{n}{k+1}=\binom{n}{k}\cdot\dfrac{n-k}{k+1}. For n=7n=7, start at 11, then 1⋅71=71\cdot\frac{7}{1}=7, then 7⋅62=217\cdot\frac{6}{2}=21, then 21⋅53=3521\cdot\frac{5}{3}=35. You only ever multiply and divide small numbers, and symmetry gives you the other half for free.

For a single big coefficient, the formula is direct. (203)=20⋅19⋅183⋅2⋅1=1140\binom{20}{3}=\dfrac{20\cdot19\cdot18}{3\cdot2\cdot1}=1140, with no triangle in sight.

Can the binomial theorem handle negative or fractional powers?

Yes, but the result changes character. For any real exponent rr, the generalized theorem states

(1+x)r=1+rx+r(r−1)2!x2+r(r−1)(r−2)3!x3+⋯(1+x)^r=1+rx+\frac{r(r-1)}{2!}x^2+\frac{r(r-1)(r-2)}{3!}x^3+\cdots

and it is valid only for ∣x∣<1|x|<1. The coefficients are still counted downward from rr, but you cannot use r!k!(r−k)!\frac{r!}{k!(r-k)!}, since r!r! is meaningless here. Two standard cases are (1+x)−1=1−x+x2−x3+⋯(1+x)^{-1}=1-x+x^2-x^3+\cdots and (1+x)1/2=1+x2−x28+x316−⋯(1+x)^{1/2}=1+\frac{x}{2}-\frac{x^2}{8}+\frac{x^3}{16}-\cdots.

Why whole numbers stop

When rr is a whole number, a factor (r−r)=0(r-r)=0 eventually appears in the numerator and wipes out every later term. For any other rr it never appears, so the series continues forever.

If the expression is not in the form (1+x)r(1+x)^r, factor out the first term. For 12+x\frac{1}{2+x}, write (2+x)−1=12(1+x2)−1=12(1−x2+x24−⋯ )(2+x)^{-1}=\frac12\left(1+\frac{x}{2}\right)^{-1}=\frac12\left(1-\frac{x}{2}+\frac{x^2}{4}-\cdots\right), which is 12−x4+x28−⋯\frac12-\frac{x}{4}+\frac{x^2}{8}-\cdots. It is valid when ∣x2∣<1\left|\frac{x}{2}\right|<1, meaning ∣x∣<2|x|<2. Always state that condition with the answer.

This gives good mental estimates. With x=0.02x=0.02, 1.02≈1+0.01−0.00005=1.00995\sqrt{1.02}\approx1+0.01-0.00005=1.00995, which matches the true value 1.0099505…1.0099505\ldots to five decimal places.

Quick check

For which values of xx is the series for (1+2x)−1(1+2x)^{-1} valid?

Where is the binomial theorem used in real life?

Probability is the biggest use. If an event has probability pp and you repeat it nn times, the chance of exactly kk successes is (nk)pk(1−p)n−k\binom{n}{k}p^k(1-p)^{n-k}. These are the terms of (p+(1−p))n(p+(1-p))^n, which equals 1n=11^n=1, and that is why the probabilities of all outcomes add to 11. For exactly 3 heads in 5 fair coin flips, the chance is (53)(12)5=1032=516\binom{5}{3}\left(\frac12\right)^5=\frac{10}{32}=\frac{5}{16}.

It also gives fast estimates for growth. For 1.03101.03^{10} (ten years at 3 percent), the first three terms give 1+10(0.03)+45(0.03)2=1.34051+10(0.03)+45(0.03)^2=1.3405, close to the true 1.34391.3439. And it helps with mental arithmetic: 1013=(100+1)3=1,000,000+30,000+300+1=1,030,301101^3=(100+1)^3=1{,}000{,}000+30{,}000+300+1=1{,}030{,}301.

The theorem also appears in the algebra that comes next. Repeated division by x−ax-a with synthetic division rewrites a polynomial in powers of (x−a)(x-a), and the binomial coefficients are what that shift is built from. For more practice on the factoring side of this topic, the factoring practice problems are a good companion.

Practice problems

0 of 5 solved

  1. Expand (x+4)3(x+4)^3.

  2. Expand (a−3)4(a-3)^4.

  3. Find the 4th term of (x+2)7(x+2)^7.

  4. Find the coefficient of x4x^4 in the expansion of (3x−2)6(3x-2)^6.

  5. Find the constant term in the expansion of (2x+1x2)6\left(2x+\frac{1}{x^2}\right)^6.

Common questions

What is the binomial theorem in simple terms?

It is a rule for expanding a two-term expression raised to a whole-number power, such as (x+3)5(x+3)^5, without multiplying it out by hand. Each term is a binomial coefficient times a power of the first term times a power of the second.

How many terms are in a binomial expansion?

The expansion of (a+b)n(a+b)^n has n+1n+1 terms before any combining. The exponent of aa runs from nn down to 00, so there is one term for each value.

What is the general term of the binomial theorem?

The (k+1)(k+1)th term of (a+b)n(a+b)^n is (nk)an−kbk\binom{n}{k}a^{n-k}b^k. It is the (k+1)(k+1)th term because counting starts at k=0k=0.

Can you use the binomial theorem with negative exponents?

Yes, in a generalized form. For (1+x)r(1+x)^r with rr negative or fractional, the expansion is an infinite series that is valid only when ∣x∣<1|x|<1.

What is the difference between the binomial theorem and Pascal's triangle?

Pascal's triangle is a table of the coefficients that the theorem uses. The theorem is the full rule, and it also tells you which powers go with each coefficient.

How do you find the coefficient of a specific term?

Write the general term, combine the powers of xx into one exponent, and solve for the value of kk that gives the exponent you want. Then evaluate that single term.

Up next