Key takeaways
- The binomial theorem says (x + y)ⁿ is the sum of C(n, k) xⁿ⁻ᵏ yᵏ for k from 0 to n.
- The coefficient C(n, k) counts the ways to pick y from k of the n factors, which is why combinations appear.
- Pascal's triangle builds the coefficients row by row: each entry is the sum of the two entries above it, C(n, k) = C(n − 1, k − 1) + C(n − 1, k).
- Setting x = y = 1 shows each row sums to 2ⁿ; setting x = 1 and y = −1 shows the alternating sum is 0.
- To find one term of an expansion, write the general term and solve for the k that gives the power you want.
Multiply out (x + y)² and you get x² + 2xy + y². Do (x + y)³ and you get x³ + 3x²y + 3xy² + y³. The coefficients 1, 2, 1 and 1, 3, 3, 1 are not random: they are the numbers that count combinations. The binomial theorem says exactly which numbers appear for any power, and Pascal's triangle is a quick way to generate them.
The expansion formula
For any whole number n,
(x + y)ⁿ = C(n, 0)xⁿ + C(n, 1)xⁿ⁻¹y + C(n, 2)xⁿ⁻²y² + ⋯ + C(n, n)yⁿ,
where C(n, k) = n!/(k!(n − k)!) is the number of ways to choose k items from n, as in permutations versus combinations. In sigma notation, (x + y)ⁿ = Σ C(n, k) xⁿ⁻ᵏ yᵏ, summed from k = 0 to n. The numbers C(n, k) are called binomial coefficients because of this theorem.
Why combinations appear
Write (x + y)ⁿ as n factors multiplied together:
(x + y)(x + y)(x + y) ⋯ (x + y).
To expand, choose either x or y from each factor and multiply your choices. Every term in the expansion comes from one such set of choices. A term equal to xⁿ⁻ᵏyᵏ comes from choosing y in exactly k of the factors and x in the rest. The number of ways to pick which k factors give y is C(n, k). So xⁿ⁻ᵏyᵏ appears C(n, k) times, and that is its coefficient.
This counting argument is the proof. It is a typical combinatorial proof: instead of manipulating algebra, it shows that both sides count the same thing. Levin's Discrete Mathematics: An Open Introduction gives a whole section to proofs of this kind.
Pascal's triangle
Arrange the binomial coefficients in rows, with row n holding C(n, 0) to C(n, n):
| Row | Entries |
|---|---|
| 0 | 1 |
| 1 | 1 1 |
| 2 | 1 2 1 |
| 3 | 1 3 3 1 |
| 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 |
The rule for building it: each row starts and ends with 1, and every other entry is the sum of the two entries above it. In symbols, that is Pascal's rule,
C(n, k) = C(n − 1, k − 1) + C(n − 1, k).
Levin's book states the same recurrence and uses the triangle to read off values such as C(12, 6) = 924.
Why Pascal's rule holds, by counting. Choose k people from a group of n that includes Ann. Either Ann is chosen, and the other k − 1 come from the remaining n − 1 people, C(n − 1, k − 1) ways; or Ann is not chosen, and all k come from the other n − 1, C(n − 1, k) ways. Adding the two cases gives C(n, k).
A worked expansion
Expand (2x − 3)⁴. Use x → 2x and y → −3 in the theorem, with the row-4 coefficients 1, 4, 6, 4, 1:
| k | C(4, k) | (2x)⁴⁻ᵏ | (−3)ᵏ | Term |
|---|---|---|---|---|
| 0 | 1 | 16x⁴ | 1 | 16x⁴ |
| 1 | 4 | 8x³ | −3 | −96x³ |
| 2 | 6 | 4x² | 9 | 216x² |
| 3 | 4 | 2x | −27 | −216x |
| 4 | 1 | 1 | 81 | 81 |
So (2x − 3)⁴ = 16x⁴ − 96x³ + 216x² − 216x + 81. A quick check: setting x = 1 should give (2 − 3)⁴ = 1, and 16 − 96 + 216 − 216 + 81 = 1. Signs alternate because (−3)ᵏ is negative for odd k, so carry the sign of −3 into every power.
Finding one term without the rest. For the coefficient of x⁵ in (x + 2)⁸, the general term is C(8, k)x⁸⁻ᵏ2ᵏ. You need 8 − k = 5, so k = 3: C(8, 3) · 2³ = 56 · 8 = 448.
Identities that fall out
Substituting values for x and y gives identities with one-line proofs.
- Row sums. x = y = 1: C(n, 0) + C(n, 1) + ⋯ + C(n, n) = 2ⁿ. Row 5 sums to 32. Combinatorially, both sides count the subsets of an n-element set, grouped by size on the left; see power sets.
- Alternating sums. x = 1, y = −1: C(n, 0) − C(n, 1) + C(n, 2) − ⋯ = 0 for n ≥ 1. A set has as many even-sized subsets as odd-sized ones. This identity is the reason inclusion–exclusion counts every element exactly once.
- Symmetry. C(n, k) = C(n, n − k): choosing k to include is the same as choosing n − k to leave out. The rows read the same backwards.
- The hockey stick. C(k, k) + C(k + 1, k) + ⋯ + C(n, k) = C(n + 1, k + 1). In the triangle, a diagonal run of entries sums to the entry just below and to the side of its end.
MathWorld's article on Pascal's triangle lists many more patterns, including the fact that its shallow diagonals sum to the Fibonacci numbers.
Uses beyond algebra
- Approximation. (1.01)¹⁰ = 1 + 10(0.01) + 45(0.0001) + 120(0.000001) + ⋯ ≈ 1.1046 (the exact value is 1.10462…), a way to estimate compound growth by hand.
- Probability. The chance of exactly k heads in n fair coin tosses is C(n, k)/2ⁿ. With an unfair coin, the binomial theorem's terms become the binomial distribution.
- Paths on a grid. The number of shortest routes across an a-by-b grid is C(a + b, a), so Pascal's triangle is also a table of lattice path counts.
- Generating functions. (1 + x)ⁿ is the generating function of row n, an idea developed in generating functions.
Counting questions like these belong to the combinatorics unit of Discrete Math: Study & Quiz, which has topic quizzes and full-length practice exams. It is one of our education apps; the discrete math hub has the rest of the counting guides.
Good to know
Frequently asked questions
What is the binomial theorem?
How is Pascal's triangle related to the binomial theorem?
How do I find the coefficient of x² in (2x − 3)⁴?
Why does each row of Pascal's triangle add up to a power of 2?
Sources
- Binomial Coefficients (Discrete Mathematics: An Open Introduction, 3rd edition, Oscar Levin) (opens in a new tab)Open Math Books — accessed
- Binomial Theorem (opens in a new tab)Wolfram MathWorld — accessed
- Pascal's Triangle (opens in a new tab)Wolfram MathWorld — accessed
- Combinatorial Proofs (Discrete Mathematics: An Open Introduction, 3rd edition, Oscar Levin) (opens in a new tab)Open Math Books — accessed
About the author
Reign Creative LLC — The independent app studio that builds the apps covered on this site and publishes every article here. On Google Play it publishes as Reign Collective Apps.
We use AI tools to help research, draft and edit our articles. Each article lists the sources its factual claims rely on, and details about our apps come from their live Google Play listings. No article on this site has been reviewed by an independent expert unless the reviewer is named on it.
No person at Reign Creative LLC has read this article in full. It was published after automated checks and an AI editorial review, which are described in our editorial policy and are not the same as a person reading every sentence.
Spotted an error? Tell us — how corrections are handled is set out in our editorial policy.