MathLabs

Grade 10

The binomial theorem

The formula expanding (a+b)ⁿ into a sum of terms with binomial coefficients.

IntuitionIdea: what happens when you multiply (a + b) by itself many times?

Multiplying out (a+b)2=a2+2ab+b2(a+b)^2=a^2+2ab+b^2 and (a+b)3=a3+3a2b+3ab2+b3(a+b)^3=a^3+3a^2b+3ab^2+b^3 by hand shows a pattern: the coefficients 1, 2, 1 and 1, 3, 3, 1 are exactly the rows of Pascal's triangle, and each row is built from the one above it by adding two neighbors.

Network diagram of Pascal's triangle showing how each binomial coefficient is the sum of two coefficients above it.
Pascal's triangle of binomial coefficients (nk)\binom{n}{k}, colored by parity (odd in violet, even in amber): each entry is the sum of the two entries directly above it.

SchoolThe formal statement

Definition: Binomial coefficient

For integers 0≤k≤n0\le k\le n, the binomial coefficient (nk)\binom{n}{k} counts the number of ways to choose kk objects out of nn, and equals (nk)=n!k!(n−k)!\binom{n}{k}=\dfrac{n!}{k!(n-k)!}.

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

In the formula, nn is the (nonnegative integer) exponent, kk runs over every value from 00 to nn, and each term (nk)an−kbk\binom{n}{k}a^{n-k}b^k picks a power of aa, a power of bb that together add up to nn, weighted by the binomial coefficient (nk)\binom{n}{k}.

2n=∑k=0n(nk)2^n=\sum_{k=0}^n\binom{n}{k}
The first few rows of the expansion
nnExpansion of (a+b)n(a+b)^nNumber of terms
22(a+b)2=a2+2ab+b2(a+b)^2=a^2+2ab+b^233
33(a+b)3=a3+3a2b+3ab2+b3(a+b)^3=a^3+3a^2b+3ab^2+b^344
44(a+b)4=a4+4a3b+6a2b2+4ab3+b4(a+b)^4=a^4+4a^3b+6a^2b^2+4ab^3+b^455
55(a+b)5=a5+5a4b+10a3b2+10a2b3+5ab4+b5(a+b)^5=a^5+5a^4b+10a^3b^2+10a^2b^3+5ab^4+b^566

UndergraduateProof by induction and the sum of coefficients

For every nonnegative integer nn and all numbers aa, bb: (a+b)n=∑k=0n(nk)an−kbk(a+b)^n=\sum_{k=0}^n\binom{n}{k}a^{n-k}b^k

Why is it true?

Expanding (a+b)(a+b)⋯(a+b)(a+b)(a+b)\cdots(a+b) (nn factors) means picking either aa or bb from every factor and multiplying; the coefficient of an−kbka^{n-k}b^k is exactly the number of ways to pick bb from kk of the nn factors, which is (nk)\binom{n}{k}.

Proof

We prove it by induction on nn. Base case n=1n=1: (a+b)1=a+b=(10)a+(11)b(a+b)^1=a+b=\binom{1}{0}a+\binom{1}{1}b, which matches the formula since (10)=(11)=1\binom{1}{0}=\binom{1}{1}=1.

Inductive step: assume the formula holds for some nn, so (a+b)n=∑k=0n(nk)an−kbk(a+b)^n=\sum_{k=0}^n\binom{n}{k}a^{n-k}b^k. Multiply both sides by (a+b)(a+b): (a+b)n+1=∑k=0n(nk)an+1−kbk+∑k=0n(nk)an−kbk+1(a+b)^{n+1}=\sum_{k=0}^n\binom{n}{k}a^{n+1-k}b^k+\sum_{k=0}^n\binom{n}{k}a^{n-k}b^{k+1}.

Reindexing the second sum with j=k+1j=k+1 and collecting the coefficient of an+1−jbja^{n+1-j}b^j from both sums gives (nj)+(nj−1)\binom{n}{j}+\binom{n}{j-1} for each jj from 00 to n+1n+1 (with the convention (n−1)=(nn+1)=0\binom{n}{-1}=\binom{n}{n+1}=0).

By Pascal's rule (nk)=(n−1k−1)+(n−1k)\binom{n}{k}=\binom{n-1}{k-1}+\binom{n-1}{k}, this sum equals (n+1j)\binom{n+1}{j}, so (a+b)n+1=∑j=0n+1(n+1j)an+1−jbj(a+b)^{n+1}=\sum_{j=0}^{n+1}\binom{n+1}{j}a^{n+1-j}b^j, completing the induction.

For every nonnegative integer nn: 2n=∑k=0n(nk)2^n=\sum_{k=0}^n\binom{n}{k}

Why is it true?

Setting aa and bb both equal to 11 in the binomial theorem turns every term an−kbka^{n-k}b^k into 11, so the whole sum collapses to a count of how many terms there are in total.

Proof

Substitute a=1, b=1a=1,\ b=1 into the binomial theorem (a+b)n=∑k=0n(nk)an−kbk(a+b)^n=\sum_{k=0}^n\binom{n}{k}a^{n-k}b^k: the left side becomes (1+1)n=2n(1+1)^n=2^n, and the right side becomes ∑k=0n(nk)1n−k1k=∑k=0n(nk)\sum_{k=0}^n\binom{n}{k}1^{n-k}1^k=\sum_{k=0}^n\binom{n}{k}, since 11 raised to any power is 11.

Equating the two sides gives exactly 2n=∑k=0n(nk)2^n=\sum_{k=0}^n\binom{n}{k}.

This identity also has a direct combinatorial meaning: (nk)\binom{n}{k} counts the kk-element subsets of an nn-element set SS, so ∑k=0n(nk)\sum_{k=0}^n\binom{n}{k} counts every subset of SS of any size at all, i.e. the whole power set, which has exactly 2n2^n elements because each of the nn elements is independently either in or out of a subset.

UndergraduateReal-World Applications and Worked Examples

The binomial theorem is not just an algebra trick: it gives fast approximations in finance (compound growth), and it underlies counting arguments in computer science, engineering and probability wherever independent yes/no choices are combined.

Example: Approximating compound growth

A savings account earns 2% interest per year. Use the binomial theorem to approximate the growth factor after 10 years, (1+0.02)10(1+0.02)^{10}, using only the first three terms of the expansion.

Solution

Write 1+0.021+0.02 in place of a+ba+b with a=1a=1, b=0.02b=0.02, n=10n=10: by the binomial theorem the exact value is (1+0.02)10=∑k=010(10k)(0.02)k(1+0.02)^{10}=\sum_{k=0}^{10}\binom{10}{k}(0.02)^k.

Since 0.020.02 is small, later terms shrink fast, so keep only kk=0,1,2: (100)+(101)(0.02)+(102)(0.02)2\binom{10}{0}+\binom{10}{1}(0.02)+\binom{10}{2}(0.02)^2.

Compute each term: (100)=1\binom{10}{0}=1, (101)(0.02)=0.2\binom{10}{1}(0.02)=0.2, (102)(0.02)2=45×0.0004=0.018\binom{10}{2}(0.02)^2=45\times0.0004=0.018.

Adding gives 1+0.2+0.018=1.2181+0.2+0.018=1.218, so the account grows by about a factor of 1.2181.218, i.e. about 21.8%, close to the exact value 1.2190…1.2190\ldots — the binomial theorem turns a tedious 10-fold multiplication into three easy terms.

Example: Counting error patterns in a data packet

A network packet has 88 independent bits, each of which may or may not be flipped by noise. An engineer designing an error-detecting code needs to know how many of the 282^8 possible bit patterns have exactly 33 flipped bits, and wants to check this against the total count using the sum-of-coefficients identity.

Solution

Model each bit as choosing aa (unflipped) or bb (flipped) in (a+b)8(a+b)^8, so the number of patterns with exactly kk flipped bits is the coefficient of a8−kbka^{8-k}b^k, namely (8k)\binom{8}{k}.

For exactly 33 flipped bits, kk=3, so the count is (83)=56\binom{8}{3}=56.

To check the total, set aa=bb=1 as in the sum-of-coefficients theorem: (1+1)8=28(1+1)^8=2^8, and 28=2562^8=256 counts every one of the 282^8 possible bit patterns, split by how many bits are flipped.

So out of 256256 total patterns, 5656 have exactly 33 errors — the same binomial coefficients used for algebra also drive the design of error-correcting codes.

What is (52)\binom{5}{2}?

What is the coefficient of x2x^2 in the expansion of (1+x)4(1+x)^4?

What is the sum of all the coefficients in the expansion of (a+b)6(a+b)^6?

A network engineer wants to know how many 6-bit strings have exactly 4 bits set to 1. Using the binomial coefficient (64)\binom{6}{4}, what is this count?