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 and (a+b)3=a3+3a2b+3ab2+b3 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 (kn), 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≤n, the binomial coefficient (kn) counts the number of ways to choose k objects out of n, and equals (kn)=k!(n−k)!n!.
(a+b)n=k=0∑n(kn)an−kbk
In the formula, n is the (nonnegative integer) exponent, k runs over every value from 0 to n, and each term (kn)an−kbk picks a power of a, a power of b that together add up to n, weighted by the binomial coefficient (kn).
2n=k=0∑n(kn)
The first few rows of the expansion
n
Expansion of (a+b)n
Number of terms
2
(a+b)2=a2+2ab+b2
3
3
(a+b)3=a3+3a2b+3ab2+b3
4
4
(a+b)4=a4+4a3b+6a2b2+4ab3+b4
5
5
(a+b)5=a5+5a4b+10a3b2+10a2b3+5ab4+b5
6
UndergraduateProof by induction and the sum of coefficients
For every nonnegative integer n and all numbers a, b: (a+b)n=∑k=0n(kn)an−kbk
Why is it true?
Expanding (a+b)(a+b)⋯(a+b) (n factors) means picking either a or b from every factor and multiplying; the coefficient of an−kbk is exactly the number of ways to pick b from k of the n factors, which is (kn).
Proof
We prove it by induction on n. Base case n=1: (a+b)1=a+b=(01)a+(11)b, which matches the formula since (01)=(11)=1.
Inductive step: assume the formula holds for some n, so (a+b)n=∑k=0n(kn)an−kbk. Multiply both sides by (a+b): (a+b)n+1=∑k=0n(kn)an+1−kbk+∑k=0n(kn)an−kbk+1.
Reindexing the second sum with j=k+1 and collecting the coefficient of an+1−jbj from both sums gives (jn)+(j−1n) for each j from 0 to n+1 (with the convention (−1n)=(n+1n)=0).
By Pascal's rule (kn)=(k−1n−1)+(kn−1), this sum equals (jn+1), so (a+b)n+1=∑j=0n+1(jn+1)an+1−jbj, completing the induction.
Setting a and b both equal to 1 in the binomial theorem turns every term an−kbk into 1, so the whole sum collapses to a count of how many terms there are in total.
Proof
Substitute a=1,b=1 into the binomial theorem (a+b)n=∑k=0n(kn)an−kbk: the left side becomes (1+1)n=2n, and the right side becomes ∑k=0n(kn)1n−k1k=∑k=0n(kn), since 1 raised to any power is 1.
Equating the two sides gives exactly 2n=∑k=0n(kn).
This identity also has a direct combinatorial meaning: (kn) counts the k-element subsets of an n-element set S, so ∑k=0n(kn) counts every subset of S of any size at all, i.e. the whole power set, which has exactly 2n elements because each of the n 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, using only the first three terms of the expansion.
Solution
Write 1+0.02 in place of a+b with a=1, b=0.02, n=10: by the binomial theorem the exact value is (1+0.02)10=∑k=010(k10)(0.02)k.
Since 0.02 is small, later terms shrink fast, so keep only k=0,1,2: (010)+(110)(0.02)+(210)(0.02)2.
Compute each term: (010)=1, (110)(0.02)=0.2, (210)(0.02)2=45×0.0004=0.018.
Adding gives 1+0.2+0.018=1.218, so the account grows by about a factor of 1.218, i.e. about 21.8%, close to the exact value 1.2190… — 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 8 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 28 possible bit patterns have exactly 3 flipped bits, and wants to check this against the total count using the sum-of-coefficients identity.
Solution
Model each bit as choosing a (unflipped) or b (flipped) in (a+b)8, so the number of patterns with exactly k flipped bits is the coefficient of a8−kbk, namely (k8).
For exactly 3 flipped bits, k=3, so the count is (38)=56.
To check the total, set a=b=1 as in the sum-of-coefficients theorem: (1+1)8=28, and 28=256 counts every one of the 28 possible bit patterns, split by how many bits are flipped.
So out of 256 total patterns, 56 have exactly 3 errors — the same binomial coefficients used for algebra also drive the design of error-correcting codes.
What is (25)?
What is the coefficient of x2 in the expansion of (1+x)4?
What is the sum of all the coefficients in the expansion of (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 (46), what is this count?