Math Core

Lesson 10.3 · Sequences, Series and Counting

The binomial theorem

Multiplying out (x+y)2(x + y)^2 is quick, but (x+y)10(x + y)^{10} by hand would take ten rounds of distributing and dozens of terms. The binomial theorem gives every term of (x+y)n(x + y)^n directly, so you can expand a power in one line or jump straight to a single term you need.

Looking for the pattern

Here are the first few powers of x+yx + y:

(x+y)0=1(x+y)1=x+y(x+y)2=x2+2xy+y2(x+y)3=x3+3x2y+3xy2+y3(x+y)4=x4+4x3y+6x2y2+4xy3+y4\begin{aligned} (x+y)^0 &= 1 \\ (x+y)^1 &= x + y \\ (x+y)^2 &= x^2 + 2xy + y^2 \\ (x+y)^3 &= x^3 + 3x^2y + 3xy^2 + y^3 \\ (x+y)^4 &= x^4 + 4x^3y + 6x^2y^2 + 4xy^3 + y^4 \end{aligned}

Three patterns stand out in (x+y)n(x+y)^n:

  • There are n+1n + 1 terms.
  • The power of xx counts down from nn to 00 while the power of yy counts up from 00 to nn. In every term the exponents add to nn.
  • The coefficients are symmetric, and they come from Pascal's triangle: each entry is the sum of the two entries above it.
nncoefficients
01
11, 1
21, 2, 1
31, 3, 3, 1
41, 4, 6, 4, 1
51, 5, 10, 10, 5, 1
61, 6, 15, 20, 15, 6, 1

Binomial coefficients

Pascal's triangle is fine for small nn, but you'd need ten rows (rows 0 through 9) to reach n=9n = 9. A formula gives any entry directly.

Definition

Binomial coefficient

For integers 0≤k≤n0 \le k \le n, the binomial coefficient is

(nk)=n!k! (n−k)!,\binom{n}{k} = \frac{n!}{k!\,(n-k)!},

read "nn choose kk." (Recall n!=n(n−1)⋯2⋅1n! = n(n-1)\cdots 2 \cdot 1 and 0!=10! = 1.) It is also written nCk{}_nC_k or C(n,k)C(n, k). The entry in row nn, position kk of Pascal's triangle (counting from 00) is (nk)\dbinom{n}{k}.

To compute one by hand, cancel before multiplying. For example,

(83)=8!3! 5!=8⋅7⋅63⋅2⋅1=56.\binom{8}{3} = \frac{8!}{3!\,5!} = \frac{8 \cdot 7 \cdot 6}{3 \cdot 2 \cdot 1} = 56.

In general, (nk)\dbinom{n}{k} is the product of kk numbers counting down from nn, divided by k!k!. Two facts save work: (nk)=(nn−k)\dbinom{n}{k} = \dbinom{n}{n-k} (the symmetry of the triangle) and (n0)=(nn)=1\dbinom{n}{0} = \dbinom{n}{n} = 1.

Why the coefficients count choices

When you expand (x+y)n=(x+y)(x+y)⋯(x+y)(x + y)^n = (x + y)(x + y)\cdots(x + y), each term of the result comes from picking either xx or yy from each of the nn factors and multiplying. You get xn−kykx^{n-k}y^k exactly when you pick yy from kk of the factors and xx from the rest. The number of ways to choose which kk factors supply a yy is (nk)\dbinom{n}{k}, so that's the coefficient. You'll see this "choosing" meaning again in the next lesson on counting.

The addition rule of Pascal's triangle, (nk−1)+(nk)=(n+1k)\dbinom{n}{k-1} + \dbinom{n}{k} = \dbinom{n+1}{k}, is called Pascal's identity. You can prove it by adding the two fractions over a common denominator, and it is exactly the step an induction proof of the binomial theorem needs.

The binomial theorem

For any positive integer nn,

(x+y)n=∑k=0n(nk)x n−ky k=(n0)xn+(n1)xn−1y+⋯+(nn)yn.(x + y)^n = \sum_{k=0}^{n} \binom{n}{k} x^{\,n-k} y^{\,k} = \binom{n}{0}x^n + \binom{n}{1}x^{n-1}y + \cdots + \binom{n}{n}y^n.

The general term is (nk)x n−ky k\dbinom{n}{k} x^{\,n-k} y^{\,k}, which is the (k+1)(k+1)st term.

Worked example: Expanding a binomial

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

Use x=2ax = 2a, y=−3y = -3, n=4n = 4, and coefficients 1,4,6,4,11, 4, 6, 4, 1:

(2a−3)4=(2a)4+4(2a)3(−3)+6(2a)2(−3)2+4(2a)(−3)3+(−3)4=16a4+4(8a3)(−3)+6(4a2)(9)+4(2a)(−27)+81=16a4−96a3+216a2−216a+81.\begin{aligned} (2a - 3)^4 &= (2a)^4 + 4(2a)^3(-3) + 6(2a)^2(-3)^2 + 4(2a)(-3)^3 + (-3)^4 \\ &= 16a^4 + 4(8a^3)(-3) + 6(4a^2)(9) + 4(2a)(-27) + 81 \\ &= 16a^4 - 96a^3 + 216a^2 - 216a + 81. \end{aligned}

Check: at a=1a = 1, (2−3)4=1(2 - 3)^4 = 1 and 16−96+216−216+81=116 - 96 + 216 - 216 + 81 = 1. ✓

Common mistake

Keep the whole term in parentheses when you raise it to a power. (2a)3=8a3(2a)^3 = 8a^3, not 2a32a^3, and (−3)2=9(-3)^2 = 9. Signs alternate whenever the second term is negative, so check that your signs go +,−,+,−,…+, -, +, -, \dots

Finding one term

Usually you don't need the whole expansion. Set up the general term, simplify its power of xx, and solve for kk.

Worked example: A specific coefficient

Find the coefficient of x5x^5 in (2x−3)8(2x - 3)^8.

The general term is (8k)(2x)8−k(−3)k\dbinom{8}{k}(2x)^{8-k}(-3)^k. The power of xx is 8−k8 - k, so x5x^5 needs k=3k = 3:

(83)(2x)5(−3)3=56⋅32x5⋅(−27)=−48384 x5.\binom{8}{3}(2x)^5(-3)^3 = 56 \cdot 32x^5 \cdot (-27) = -48384\,x^5.

The coefficient is −48384-48384.

Worked example: A constant term

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

The general term is

(6k)(x2)6−k(1x)k=(6k)x12−2kx−k=(6k)x12−3k.\binom{6}{k}(x^2)^{6-k}\left(\frac1x\right)^k = \binom{6}{k}x^{12 - 2k}x^{-k} = \binom{6}{k}x^{12 - 3k}.

The constant term has exponent 00: 12−3k=012 - 3k = 0 gives k=4k = 4. The term is (64)=15\dbinom{6}{4} = 15.

Two useful consequences

Sums of coefficients. Substituting x=y=1x = y = 1 gives

∑k=0n(nk)=2n,\sum_{k=0}^{n}\binom{n}{k} = 2^n,

so every row of Pascal's triangle adds to a power of 22. More generally, to add all the coefficients of a polynomial, plug in x=1x = 1: the coefficients of (3x−1)5(3x - 1)^5 add to (3−1)5=32(3 - 1)^5 = 32.

Approximations. When yy is small, the later terms of (1+y)n(1 + y)^n shrink fast, so the first few terms give a good estimate.

Worked example: Estimating a power

Estimate (1.01)10(1.01)^{10} to four decimal places.

Write 1.01=1+0.011.01 = 1 + 0.01:

(1+0.01)10=1+10(0.01)+45(0.01)2+120(0.01)3+⋯(1 + 0.01)^{10} = 1 + 10(0.01) + 45(0.01)^2 + 120(0.01)^3 + \cdots≈1+0.1+0.0045+0.00012=1.10462.\approx 1 + 0.1 + 0.0045 + 0.00012 = 1.10462.

The next term is 210(0.01)4=0.0000021210(0.01)^4 = 0.0000021, too small to change the fourth decimal. So (1.01)10≈1.1046(1.01)^{10} \approx 1.1046. A calculator gives 1.104622…1.104622\ldots ✓

Tip

To name "the rrth term," use k=r−1k = r - 1, because the first term has k=0k = 0. The 5th term of (x+y)n(x + y)^n is (n4)xn−4y4\dbinom{n}{4}x^{n-4}y^4.

Practice

Practice 1

Evaluate (73)\dbinom{7}{3}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Which is the expansion of (x−2)3(x - 2)^3?

Practice 3

Find the coefficient of x3x^3 in (x+3)5(x + 3)^5.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Find the coefficient of x2x^2 in (1−2x)7(1 - 2x)^7.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

When (a−2b)6(a - 2b)^6 is expanded in descending powers of aa, the 5th term is c a2b4c\,a^2b^4. Find cc.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

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

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Find the constant term in the expansion of (x−2x)8\left(x - \dfrac{2}{x}\right)^8.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

Find the coefficient of xx in (x2−3x)5\left(x^2 - \dfrac{3}{x}\right)^5.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.