Expanding is choosing
Multiplying out (x+y)ⁿ means picking x or y from each factor. The coefficient of x^{n−k}y^k counts the ways to pick y from exactly k of them.
(x + y)ⁿ = Σ C(n,k) x^{n−k} y^k. The coefficient counts the ways to choose k factors to contribute y, which is why the binomial coefficients appear — and the substitutions x = y = 1 recover the row sums.
Core ideas
The theorem is a counting statement wearing algebraic notation, and its corollaries come from substituting numbers.
Multiplying out (x+y)ⁿ means picking x or y from each factor. The coefficient of x^{n−k}y^k counts the ways to pick y from exactly k of them.
Setting x and y to specific values turns the theorem into a numerical identity. Two substitutions give the row sum and the alternating sum for free.
With more than two terms the coefficients count arrangements of a multiset, which is “Permutations with Repetition”'s subject.
The material
Statement, the counting proof, and four corollaries.
For any x, y and any n ≥ 0, (x + y)ⁿ = Σ_{k=0}^{n} C(n,k) x^{n−k} y^k.
(x+y)ⁿ is the product of n identical factors (x+y). Expanding without collecting terms produces one term for each way of choosing x or y from each factor — 2ⁿ terms in all.
A term equals x^{n−k}y^k exactly when y was chosen from k of the factors, and the number of ways to choose those k factors is C(n,k).
Collecting equal terms therefore gives coefficient C(n,k) on x^{n−k}y^k.
□
This explains the name: the binomial coefficients are the coefficients in a binomial expansion, and they count subsets because expanding is choosing. The two facts are not analogous — they are the same fact.
An induction proof using Pascal's rule is also available and is a good exercise for Induction and Recursion's technique. It verifies the theorem; the counting argument explains it.
The last line is the generating function of the binomial coefficients, and “Generating Functions” makes that phrase mean something. For now it is the observation that a single algebraic identity encodes a whole row of the triangle.
What is the coefficient of x⁵y³ in (2x − 3y)⁸? The general term is C(8,k)(2x)^{8−k}(−3y)^k. Take k = 3: C(8,3)·2⁵·(−3)³ = 56 · 32 · (−27) = −48384.
Two places to be careful: the constants inside the parentheses are raised to the powers too, and a negative sign must be carried through the odd power. Both are dropped often enough to be worth naming.
(x₁ + ⋯ + x_m)ⁿ = Σ (n! / (k₁! ⋯ k_m!)) x₁^{k₁} ⋯ x_m^{k_m}, summed over all non-negative kᵢ with k₁ + ⋯ + k_m = n. The coefficient counts the ways to assign the n factors to the m terms, which is “Permutations with Repetition”'s arrangement count.
Interactive
Identities highlighted and checked
Method
Write the general term first.
C(n,k) a^{n−k} b^k where a and b are the two whole expressions being added, constants and signs included.
Match the exponent of one variable and read off k. Matching both is a useful check that the term exists.
(2x)⁵ contributes 2⁵, and (−3y)³ contributes (−3)³ = −27. Signs on odd powers are the standard slip.
Setting x and y to 1, −1 or small integers turns the theorem into numerical facts about a row of the triangle.
Two uses of the same general term.
The check that x^{8−k} gives the exponent you wanted is worth the second it takes. If the two exponents do not both match, the term you are looking for does not appear in the expansion at all.
Find the coefficient of x⁴y⁵ in (2x − 3y)⁹, and check the sign and both constants. Then set x = y = 1 in the same expansion and confirm the result equals (2 − 3)⁹ = −1.
Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.
No recommendations yet for this lesson.