Unit 9, lesson 108

The Binomial Theorem and Pascal’s Triangle

How to expand any whole-number power of a sum with the binomial theorem, how Pascal's triangle, the factorial formula and counting all give its coefficients, and why the expansion stops.

  • Theory part 215
  • Practice part 216
  • Induction and the Binomial Theorem

Multiplying out (a+b)2(a + b)^2 takes a moment, but (a+b)7(a + b)^7 by hand means seven factors and 128 products before anything is collected. The coefficients that come out follow a simple pattern, and they are the same numbers that count how many ways there are to choose a few items from a larger group. The binomial theorem writes any whole-number power of a sum in one line.

Key terms

Powers of a binomial

Definition A binomial is a sum of two terms, a+ba + b. For an integer n≥1n \ge 1 the power (a+b)n(a + b)^n is the product of nn factors equal to a+ba + b, and (a+b)0=1(a + b)^0 = 1. Treating aa and bb as two separate variables, multiplying out and collecting like terms gives a sum of terms of the form c an−kbkc\,a^{n-k} b^k for k=0,1,…,nk = 0, 1, \dots, n, so the result has n+1n + 1 terms and the exponents in each term add up to nn. The binomial theorem below is about these nonnegative integer exponents n=0,1,2,…n = 0, 1, 2, \dots, and the last section shows what changes for other exponents.

In plain words Raising a sum to a whole-number power means multiplying it by itself that many times. From one term to the next, the power of aa goes down by one and the power of bb goes up by one.

Example Multiplying out the first few powers gives

(a+b)0=1,(a+b)1=a+b,(a+b)2=a2+2ab+b2,(a+b)3=a3+3a2b+3ab2+b3.\begin{aligned} (a + b)^0 &= 1, \\ (a + b)^1 &= a + b, \\ (a + b)^2 &= a^2 + 2ab + b^2, \\ (a + b)^3 &= a^3 + 3a^2 b + 3ab^2 + b^3. \end{aligned}

A common slip is to write (a+b)2=a2+b2(a + b)^2 = a^2 + b^2. With a=b=1a = b = 1 the left side is 44 and the right side is 22, so the middle term 2ab2ab really is needed.

Combinations

Definition Let n≥0n \ge 0 and kk be integers with 0≤k≤n0 \le k \le n. A combination of kk objects from nn different objects is a choice of kk of them in which order does not matter, in other words a subset with kk elements. The number of such combinations is written

(nk),\binom{n}{k},

read as nn choose kk, and is also written C(n,k)C(n, k). There is exactly one way to choose nothing and one way to choose everything, so (n0)=(nn)=1\binom{n}{0} = \binom{n}{n} = 1.

In plain words Combinations count selections, not arrangements. Picking an apple and then a pear gives the same pair as picking a pear and then an apple.

Example From the four letters AA, BB, CC, DD there are six ways to choose two,

{A,B},{A,C},{A,D},{B,C},{B,D},{C,D}.\begin{gathered} \{A, B\}, \quad \{A, C\}, \quad \{A, D\}, \\[0.4em] \{B, C\}, \quad \{B, D\}, \quad \{C, D\}. \end{gathered}

So (42)=6\binom{4}{2} = 6. The choice {B,A}\{B, A\} is not listed again, because it is the same set as {A,B}\{A, B\}.

Factorial formula

Definition For integers n≥0n \ge 0 and 0≤k≤n0 \le k \le n,

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

where 0!=10! = 1. To see why, count ordered choices first. The number of ways to pick kk objects one after another is

n(n−1)⋯(n−k+1)=n!(n−k)!.\begin{aligned} &n(n - 1) \cdots (n - k + 1) \\[0.4em] &\quad = \frac{n!}{(n - k)!}. \end{aligned}

Each set of kk objects turns up in k!k! different orders, so dividing by k!k! counts each set exactly once. After cancelling, for k≥1k \ge 1,

(nk)=n(n−1)⋯(n−k+1)k!,\binom{n}{k} = \frac{n(n - 1) \cdots (n - k + 1)}{k!},

with kk factors on top. The formula also shows the symmetry (nk)=(nn−k)\binom{n}{k} = \binom{n}{n - k}.

In plain words Multiply kk numbers counting down from nn, then divide by k!k!. Choosing which kk objects to take is the same as choosing which n−kn - k to leave, which is the symmetry.

Example The number of ways a club of 10 people can pick a committee of 3 is

(103)=10⋅9⋅83⋅2⋅1=120.\binom{10}{3} = \frac{10 \cdot 9 \cdot 8}{3 \cdot 2 \cdot 1} = 120.

Choosing the 7 people who are left off gives the same count, (107)=120\binom{10}{7} = 120. For the four letters above the formula gives 4!2! 2!=244=6\frac{4!}{2!\,2!} = \frac{24}{4} = 6, which matches the list.

Binomial coefficient

Definition The numbers (nk)\binom{n}{k} are called binomial coefficients because they are exactly the coefficients in the expansion of (a+b)n(a + b)^n. The coefficient of an−kbka^{n-k} b^k is (nk)\binom{n}{k}. The reason is counting. Multiplying out

(a+b)n=(a+b)(a+b)⋯(a+b)\begin{aligned} &(a + b)^n \\[0.4em] &\quad = (a + b)(a + b) \cdots (a + b) \end{aligned}

means choosing aa or bb from each of the nn factors, multiplying the choices, and adding up all the results. A product equals an−kbka^{n-k} b^k exactly when bb was chosen from kk of the factors, and there are (nk)\binom{n}{k} ways to choose those kk factors.

In plain words The number in front of an−kbka^{n-k} b^k counts the ways the kk copies of bb could have come out of the nn brackets.

Example In (a+b)3(a + b)^3 the products equal to a2ba^2 b come from taking bb from exactly one of the three factors,

b⋅a⋅a,a⋅b⋅a,a⋅a⋅b.b \cdot a \cdot a, \qquad a \cdot b \cdot a, \qquad a \cdot a \cdot b.

There are (31)=3\binom{3}{1} = 3 of them, which is why the expansion contains 3a2b3a^2 b.

Pascal’s triangle

Definition Pascal’s triangle is the triangular array whose row nn, for n=0,1,2,…n = 0, 1, 2, \dots, lists the binomial coefficients (n0),(n1),…,(nn)\binom{n}{0}, \binom{n}{1}, \dots, \binom{n}{n}. Each row starts and ends with 11, and each entry in between is the sum of the two entries just above it. This is Pascal’s rule, which holds for integers 1≤k≤n1 \le k \le n,

(nk−1)+(nk)=(n+1k).\binom{n}{k - 1} + \binom{n}{k} = \binom{n + 1}{k}.

Counting explains it. Mark one of n+1n + 1 objects. A subset of kk of them either leaves out the marked object, and there are (nk)\binom{n}{k} such subsets, or contains it, and there are (nk−1)\binom{n}{k - 1} ways to choose the rest.

In plain words Apart from the 1s along the edges, each number in the triangle is the sum of the two numbers diagonally above it. Row nn gives the coefficients of (a+b)n(a + b)^n.

Example Rows 00 to 66 look like this.

111121133114641151010511615201561\begin{array}{c} 1 \\ 1 \quad 1 \\ 1 \quad 2 \quad 1 \\ 1 \quad 3 \quad 3 \quad 1 \\ 1 \quad 4 \quad 6 \quad 4 \quad 1 \\ 1 \quad 5 \quad 10 \quad 10 \quad 5 \quad 1 \\ 1 \quad 6 \quad 15 \quad 20 \quad 15 \quad 6 \quad 1 \end{array}

The first 1010 in row 55 is 4+64 + 6 from row 44. Reading off row 55 gives

(a+b)5=a5+5a4b+10a3b2+10a2b3+5ab4+b5.\begin{aligned} (a + b)^5 &= a^5 + 5a^4 b + 10a^3 b^2 \\[0.4em] &\quad + 10a^2 b^3 + 5ab^4 + b^5. \end{aligned}

Row nn adds up to 2n2^n, so the row sums here are 1,2,4,8,16,32,641, 2, 4, 8, 16, 32, 64.

Binomial theorem

Definition For all real numbers aa and bb and every integer n≥0n \ge 0,

(a+b)n=∑k=0n(nk)an−kbk=an+(n1)an−1b+(n2)an−2b2+⋯+bn,\begin{aligned} (a + b)^n &= \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^k \\[0.8em] &= a^n + \binom{n}{1} a^{n-1} b \\[0.8em] &\quad + \binom{n}{2} a^{n-2} b^2 \\[0.8em] &\quad + \cdots + b^n, \end{aligned}

with the convention that x0=1x^0 = 1 for every xx, including x=0x = 0. The lesson on power functions left 000^0 undefined, and inside this formula it simply means that a factor with exponent 00 is left out. The term with index kk is (nk)an−kbk\binom{n}{k} a^{n-k} b^k, so a single term can be found without writing out the others. The theorem can be proved by mathematical induction on nn, with Pascal’s rule doing the work in the inductive step.

In plain words Write the powers of aa going down from nn to 00 and the powers of bb going up from 00 to nn, and put row nn of Pascal’s triangle in front as the coefficients.

Example For (2x−3)4(2x - 3)^4 take a=2xa = 2x and b=−3b = -3, and use row 44, which is 1,4,6,4,11, 4, 6, 4, 1.

(2x−3)4=(2x)4+4(2x)3(−3)+6(2x)2(−3)2+4(2x)(−3)3+(−3)4=16x4−96x3+216x2−216x+81.\begin{aligned} (2x - 3)^4 &= (2x)^4 + 4(2x)^3(-3) \\[0.4em] &\quad + 6(2x)^2(-3)^2 \\[0.4em] &\quad + 4(2x)(-3)^3 + (-3)^4 \\[0.4em] &= 16x^4 - 96x^3 + 216x^2 \\[0.4em] &\quad - 216x + 81. \end{aligned}

A quick check is x=1x = 1, where (2−3)4=1(2 - 3)^4 = 1 and 16−96+216−216+81=116 - 96 + 216 - 216 + 81 = 1. To find one term alone, use the index. In (x+2)8(x + 2)^8 the power x5x^5 needs k=3k = 3, so that term is

(83)x5⋅23=56⋅8 x5=448x5.\binom{8}{3} x^5 \cdot 2^3 = 56 \cdot 8\,x^5 = 448x^5.

Finite expansion versus infinite series

Definition For an integer exponent n≥0n \ge 0 the expansion of (1+x)n(1 + x)^n has exactly n+1n + 1 terms and holds for every real xx. For a real exponent α\alpha the same pattern of coefficients is

(α0)=1,(αk)=α(α−1)⋯(α−k+1)k!for k≥1.\begin{gathered} \binom{\alpha}{0} = 1, \\[0.8em] \binom{\alpha}{k} = \frac{\alpha(\alpha - 1) \cdots (\alpha - k + 1)}{k!} \\[0.8em] \text{for } k \ge 1. \end{gathered}

When α=n\alpha = n is a nonnegative integer, every coefficient with k>nk > n contains the factor n−n=0n - n = 0, which is why the expansion stops. When α\alpha is not a nonnegative integer, such as −1-1 or 12\frac{1}{2}, no coefficient is zero, and the expansion becomes the infinite binomial series

(1+x)α=1+αx+α(α−1)2!x2+α(α−1)(α−2)3!x3+⋯ ,\begin{aligned} &(1 + x)^\alpha \\[0.4em] &\quad = 1 + \alpha x + \frac{\alpha(\alpha - 1)}{2!} x^2 \\[0.8em] &\qquad + \frac{\alpha(\alpha - 1)(\alpha - 2)}{3!} x^3 + \cdots, \end{aligned}

which converges to (1+x)α(1 + x)^\alpha for ∣x∣<1\lvert x \rvert < 1 and diverges for ∣x∣>1\lvert x \rvert > 1. The infinite version belongs to calculus, in the lesson on the binomial series.

In plain words A whole-number power gives a finite polynomial that is correct for every xx. Any other power gives an infinite series, which equals the power for xx between −1-1 and 11 and has no sum at all when ∣x∣>1\lvert x \rvert > 1.

Example With α=−1\alpha = -1 every coefficient is (−1k)=(−1)k\binom{-1}{k} = (-1)^k, so

11+x=1−x+x2−x3+⋯ ,∣x∣<1.\begin{gathered} \frac{1}{1 + x} = 1 - x + x^2 - x^3 + \cdots, \\[0.8em] \lvert x \rvert < 1. \end{gathered}

This is an infinite geometric series with ratio −x-x. At x=0.1x = 0.1 it gives 1−0.1+0.01−⋯=11.11 - 0.1 + 0.01 - \cdots = \frac{1}{1.1}, which is correct. At x=2x = 2 the left side is 13\frac{1}{3}, while 1−2+4−8+⋯1 - 2 + 4 - 8 + \cdots diverges, so the series no longer equals the function. Compare the finite expansion (1+x)3=1+3x+3x2+x3(1 + x)^3 = 1 + 3x + 3x^2 + x^3, which holds for every xx, including x=2x = 2, where both sides are 2727.

Check yourself

  1. Expand (x−2)5(x - 2)^5.
Show the answer

Use row 55, which is 1,5,10,10,5,11, 5, 10, 10, 5, 1, with a=xa = x and b=−2b = -2. The signs alternate because bb is negative,

(x−2)5=x5−10x4+40x3−80x2+80x−32.\begin{aligned} (x - 2)^5 &= x^5 - 10x^4 + 40x^3 \\[0.4em] &\quad - 80x^2 + 80x - 32. \end{aligned}
  1. Find the term that does not contain xx in the expansion below, where x≠0x \ne 0.
(x2+2x)6\left(x^2 + \frac{2}{x}\right)^6
Show the answer

The term with index kk is

(6k)(x2)6−k(2x)k=(6k) 2k x12−3k.\begin{aligned} &\binom{6}{k} (x^2)^{6-k} \left(\frac{2}{x}\right)^k \\[0.8em] &\quad = \binom{6}{k}\, 2^k\, x^{12 - 3k}. \end{aligned}

The exponent 12−3k12 - 3k is zero for k=4k = 4, so the term is (64)⋅24=15⋅16=240\binom{6}{4} \cdot 2^4 = 15 \cdot 16 = 240.

  1. A pizza shop offers 8 toppings. How many pizzas with exactly 3 different toppings can it make, and how many with any selection of different toppings, including none?
Show the answer

Exactly 3 toppings give (83)=56\binom{8}{3} = 56 pizzas. Any selection means adding row 88 of Pascal’s triangle, and the binomial theorem with a=b=1a = b = 1 gives

∑k=08(8k)=(1+1)8=256.\sum_{k=0}^{8} \binom{8}{k} = (1 + 1)^8 = 256.

This matches deciding yes or no for each of the 8 toppings, 282^8 ways in all.

How this lesson connects