Skip to content

The binomial theorem and Pascal's triangle

5 min read

Short answer

(x+y)n=∑k=0n(nk)xn−kyk(x+y)^n=\sum_{k=0}^{n}\binom nk x^{n-k}y^k. The coefficients (nk)=n!k!(n−k)!\binom nk=\dfrac{n!}{k!(n-k)!} are the rows of Pascal's triangle, and each entry is the sum of the two above it: (nk)=(n−1k−1)+(n−1k)\binom nk=\binom{n-1}{k-1}+\binom{n-1}k.

Bar chartk=0k=1k=2k=3k=4Row n = 4 of Pascal's triangle: coefficients of (x + y)⁴.
The coefficients are symmetric and sum to 2ⁿ.

Why the coefficients count subsets

Expanding (x+y)n(x+y)^n means choosing xx or yy from each of nn factors. The number of ways to pick yy exactly kk times is (nk)\binom nk, the number of kk-element subsets.

Useful consequences

Setting x=y=1x=y=1 gives ∑k(nk)=2n\sum_k\binom nk=2^n, the number of subsets of an nn-set. Setting x=1x=1, y=−1y=-1 shows the even-indexed and odd-indexed sums are equal.

Worked example

Find the coefficient of x2x^2 in (1+x)5(1+x)^5 and expand (x+y)4(x+y)^4.

The coefficient of x2x^2 is (52)=10\binom52=10. Row 44 is 1,4,6,4,11,4,6,4,1, so (x+y)4=x4+4x3y+6x2y2+4xy3+y4(x+y)^4=x^4+4x^3y+6x^2y^2+4xy^3+y^4.

Try it yourself

What is the coefficient of x3x^3 in (2+x)5(2+x)^5?

Show the answer

(53)⋅22=10⋅4=40\binom53\cdot2^2=10\cdot4=40.

Keep going with practice

Vidi's probability lessons use the same coefficients in the binomial distribution.