The Binomial Theorem Advanced. This lesson goes beyond core Algebra II. You can skip it.

Learning goals

  • State the Binomial Theorem, where (nk)\binom{n}{k} counts the ways factors donate yy
  • Expand (A+B)n(A+B)^n using row nn of Pascal's triangle, and alternate signs for a difference
  • Build Pascal's triangle from the addition rule (nk)=(n−1k−1)+(n−1k)\binom{n}{k}=\binom{n-1}{k-1}+\binom{n-1}{k}
  • Pick out one term of an expansion by solving for kk from its exponent

Multiplying out is really choosing

A power like (x+y)7(x + y)^7 is not a new kind of object. It is shorthand for a product of seven identical factors:

(x+y)7=(x+y)(x+y)⋯(x+y)⏟7 factors.(x + y)^7 = \underbrace{(x + y)(x + y)\cdots(x + y)}_{7 \text{ factors}}.

So expanding it is just multiplying out a product of sums, and the distributive law has told you how to do that since the beginning. Take one term from each factor, multiply your picks together, and add up the result over every possible way of picking. Nothing else appears in the product, and nothing is left out.

Here every factor is the same, and each one offers exactly two things: an xx or a yy. Watch what that means for the two smallest cases before asking about (x+y)7(x+y)^7 or anything bigger.

The four picks for n=2n = 2 are xxxx, xyxy, yxyx, and yyyy, so

(x+y)2=x2+xy+yx+y2=x2+2xy+y2.(x + y)^2 = x^2 + xy + yx + y^2 = x^2 + 2xy + y^2.

That 22 is not decoration. It counts the two picks that took a single yy, one from the first factor and one from the second. Now do n=3n = 3, where there are 23=82^3 = 8 picks:

The eight products in the expansion of a cubeFour columns sorted by the number of y picks. The counts of products are 1, 3, 3, and 1, matching the coefficients of x cubed, x squared y, x y squared, and y cubed.Each of the three factors donates an x or a y, so there are eight products.k = 0k = 1k = 2k = 3xxxyxxxyxxxyyyxyxyxyyyyyx3x2yxy2y31 way3 ways3 ways1 way
Every product in the expansion of a cube is decided by which of the three factors donate a y. Three of the eight products come out as x squared times y, and that is exactly why its coefficient is 3.

Collecting the eight products by pile gives

(x+y)3=x3+3x2y+3xy2+y3,(x + y)^3 = x^3 + 3x^2y + 3xy^2 + y^3,

and the 33 in front of x2yx^2y is not a mystery number. It is the count of ways to pick which one of the three factors donated its yy, and there are three factors to pick from.

The doubling never stops. Build the list of picks one factor at a time. Each way of picking from the first n−1n - 1 factors turns into exactly two ways once an nn-th factor arrives, one taking its xx and one taking its yy. No other way is possible, so every new factor doubles the list: 44 picks for n=2n = 2, 88 for n=3n = 3, and in general 2n2^n picks for (x+y)n(x + y)^n. Beginning from the single empty pick, nn doublings give 2n2^n ways in all. The expansion of (x+y)n(x + y)^n is therefore a sum of 2n2^n products before a single like term is collected.

What does one of those products look like in general? Suppose your picks took the yy from exactly kk of the factors. Then they took the xx from the other n−kn - k, and since multiplication does not care about order, the product is xn−kykx^{n-k} y^{k}. That is the whole shape of the answer. Every one of the 2n2^n products is xn−kykx^{n-k}y^k for some whole number kk between 00 and nn. The exponents always add up to nn, and no other kind of term can possibly appear. What is left to find is how many products land on each pile.

That observation deserves a name, because it is the entire lesson.

Definition. For whole numbers kk and nn with 0≤k≤n0 \le k \le n, write (nk)\binom{n}{k}, read ”nn choose kk”, for the number of ways to choose which kk of the nn factors donate their yy.

Notice what this definition is and is not. It is not a formula you have to trust. It is a description of something you can count, and you have already counted four of them by hand:

(30)=1,(31)=3,(32)=3,(33)=1.\binom{3}{0} = 1, \qquad \binom{3}{1} = 3, \qquad \binom{3}{2} = 3, \qquad \binom{3}{3} = 1.

A single pick is completely described by the set of factors that gave a yy. So counting the picks with exactly kk of the yy‘s and counting the sets of kk factors are the same job. That is why one number answers both questions.

The Binomial Theorem

The expansion has one term for each possible number of yy-picks, from k=0k = 0 to k=nk = n:

(x+y)n=(n0)xn+(n1)xn−1y+(n2)xn−2y2+⋯+(nn)yn,(x + y)^n = \binom{n}{0}x^n + \binom{n}{1}x^{n-1}y + \binom{n}{2}x^{n-2}y^2 + \cdots + \binom{n}{n}y^n,

which is n+1n + 1 terms, one for each value of kk from 00 to nn.

That same list can be written compactly using sigma notation:

(x+y)n  =  ∑k=0n(nk) xn−kyk.(x + y)^n \;=\; \sum_{k=0}^{n} \binom{n}{k}\, x^{n-k} y^{k}.

The ∑k=0n\sum_{k=0}^{n} means “add one term for every whole-number value of kk from 00 through nn.” It is nothing more than shorthand for the sum you already wrote out above.

You have already done the work that proves this. Every product in the expansion has the form xn−kykx^{n-k}y^k for some kk from 00 to nn, and (nk)\binom{n}{k} counts exactly how many of the 2n2^n products land in that pile. Summing the piles for every kk therefore accounts for the whole expansion, which is the Binomial Theorem.

Before building a shortcut for the coefficients, use the theorem to fill in only the exponents of (a+b)4(a + b)^4. There are n+1=5n + 1 = 5 terms, one for each kk from 00 to 44:

a4,□ a3b,□ a2b2,□ ab3,b4.a^4, \quad \square\, a^3b, \quad \square\, a^2b^2, \quad \square\, ab^3, \quad b^4.

Notice the pattern even before a single coefficient is known: the exponent of aa falls by 11 each term while the exponent of bb climbs by 11, and every pair still adds to 44. The two ends are already filled in, since (40)=(44)=1\binom{4}{0} = \binom{4}{4} = 1. The three missing boxes are (41)\binom{4}{1}, (42)\binom{4}{2}, and (43)\binom{4}{3}, exactly the numbers Pascal’s triangle is about to hand you without any more counting by hand.

Pascal’s triangle, built from addition alone

The theorem is only as useful as your ability to compute (nk)\binom{n}{k}, and so far the only method on offer is to list every selection by hand. For (x+y)10(x + y)^{10} that means writing out 210=10242^{10} = 1024 strings, which is not a method, it is a punishment. One short argument replaces the listing with addition.

Start with the two easy counts. There is exactly one way for no factor to donate a yy (every factor donates its xx), and exactly one way for all of them to donate a yy. So for every nn,

(n0)=1and(nn)=1.\binom{n}{0} = 1 \qquad\text{and}\qquad \binom{n}{n} = 1.

One more fact comes free before you even build the rest of the triangle. Choosing which kk factors donate a yy is the same act as choosing which n−kn - k factors donate an xx: fix one selection and the other is decided. Two descriptions of the same act must have the same count, so

(nk)=(nn−k).\binom{n}{k} = \binom{n}{n-k}.

Every row of the triangle you are about to build will read the same forwards and backwards because of this.

Everything in between the edges follows from a single rule.

Pascal's rule: (nk)=(n−1k−1)+(n−1k)\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k}#

Start with a concrete case: choosing 22 of 55 labeled factors to donate a yy. Look at factor 55 alone. A selection either includes factor 55 or it does not, and never both.

If it includes factor 55, factor 55 already supplies one of the two yy‘s, and the other comes from the remaining 44 factors: (41)=4\binom{4}{1} = 4 ways. If it does not include factor 55, both yy‘s must come from the remaining 44 factors: (42)=6\binom{4}{2} = 6 ways. Listing them out confirms the split:

{1,5}, {2,5}, {3,5}, {4,5}⏟4 pairs that include factor 5\underbrace{\{1,5\},\ \{2,5\},\ \{3,5\},\ \{4,5\}}_{\text{4 pairs that include factor 5}}{1,2}, {1,3}, {1,4}, {2,3}, {2,4}, {3,4}⏟6 pairs that do not\underbrace{\{1,2\},\ \{1,3\},\ \{1,4\},\ \{2,3\},\ \{2,4\},\ \{3,4\}}_{\text{6 pairs that do not}}

Every selection falls into exactly one of these two groups, so

(52)=(41)+(42)=4+6=10.\binom{5}{2} = \binom{4}{1} + \binom{4}{2} = 4 + 6 = 10.

Nothing about that split depended on the specific numbers 55 and 22. Take any n≥2n \ge 2 and any interior index kk with 1≤k≤n−11 \le k \le n - 1, and look at the last of the nn factors, factor nn. A selection of kk factors to donate a yy either uses factor nn or it does not.

If it uses factor nn, the other k−1k - 1 yy‘s come from the first n−1n - 1 factors, giving (n−1k−1)\binom{n-1}{k-1} ways. If it does not, all kk yy‘s come from the first n−1n - 1 factors, giving (n−1k)\binom{n-1}{k} ways. The two groups are disjoint and together they are every selection counted by (nk)\binom{n}{k}, so the total is the sum of the two counts:

(nk)=(n−1k−1)+(n−1k).\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k}.

Both symbols on the right stay legal: 1≤k1 \le k makes k−1≥0k - 1 \ge 0, and k≤n−1k \le n - 1 keeps (n−1k)\binom{n-1}{k} inside its own range 0≤k≤n−10 \le k \le n - 1.

Stack the counts (n0),(n1),…,(nn)\binom{n}{0}, \binom{n}{1}, \ldots, \binom{n}{n} as row nn of a triangle, with the 11‘s from the edge values anchoring both ends. Pascal’s rule says each interior entry is the sum of the two entries directly above it.

Pascal’s triangle, rows 0 through 6The triangle of binomial coefficients. Each edge entry is 1 and each interior entry is the sum of the two entries above it.Each entry inside the triangle is the sum of the two entries above it.n = 0n = 1n = 2n = 3n = 4n = 5n = 6111121133114641151010514 + 6 = 101615201561
Pascal's triangle, rows 0 through 6. The edges are 1 because there is exactly one way to take no y at all and one way to take a y from every factor. Every interior entry is the sum of the two above it, so 4 + 6 = 10.

Row nn of the triangle is the complete list of coefficients for (x+y)n(x + y)^n, and row 33 is 1, 3, 3, 11,\ 3,\ 3,\ 1, exactly what the hand count produced. Two more rows reach everything you will need below:

n=7:1, 7, 21, 35, 35, 21, 7, 1n=8:1, 8, 28, 56, 70, 56, 28, 8, 1\begin{aligned} n = 7:&\quad 1,\ 7,\ 21,\ 35,\ 35,\ 21,\ 7,\ 1\\ n = 8:&\quad 1,\ 8,\ 28,\ 56,\ 70,\ 56,\ 28,\ 8,\ 1 \end{aligned}

Before reading any more rows off the page, build one entry yourself with the addition rule.

Check your understanding

Row 66 of Pascal's triangle is 1, 6, 15, 20, 15, 6, 11,\ 6,\ 15,\ 20,\ 15,\ 6,\ 1. Using Pascal's rule, what is the entry at k=2k = 2 in row 77?

Answer choices

Two habits keep you on the right row. Row nn always has n+1n + 1 entries, and its second entry is always nn, since (n1)=n\binom{n}{1} = n counts the nn single factors that could have donated the lone yy.

Check your understanding

Use Pascal's triangle. What is the coefficient of x2y3x^2y^3 in the expansion of (x+y)5(x + y)^5?

Answer choices

Expanding a power

To expand (A+B)n(A + B)^n, write down row nn of the triangle and march kk from 00 to nn, giving AA the exponent n−kn - k and BB the exponent kk. The one thing to guard is that AA and BB are whole terms, coefficients included: if A=2aA = 2a, then A3A^3 is (2a)3=8a3(2a)^3 = 8a^3, not 2a32a^3.

Once you have expanded, there is a quick way to catch an arithmetic slip. Setting every variable to 11 turns the expansion into the sum of its coefficients, while the unexpanded side stays easy to evaluate by hand. If the two sides disagree, an error is guaranteed. If they agree, that is reassuring, but it does not certify every coefficient: two mistakes can still cancel each other out and leave the sums equal.

Worked example 1 Expand (2a+3)4(2a + 3)^4

Here A=2aA = 2a, B=3B = 3, and n=4n = 4, so the coefficients come from row 44, which is 1, 4, 6, 4, 11,\ 4,\ 6,\ 4,\ 1. Write the five terms with (2a)(2a) losing a power and 33 gaining one:

(2a+3)4=(2a)4+4(2a)3(3)+6(2a)2(3)2+4(2a)(3)3+(3)4.(2a + 3)^4 = (2a)^4 + 4(2a)^3(3) + 6(2a)^2(3)^2 + 4(2a)(3)^3 + (3)^4.

Now evaluate each piece, keeping the whole of 2a2a inside its power:

(2a)4=16a4,4(8a3)(3)=96a3,6(4a2)(9)=216a2,(2a)^4 = 16a^4, \qquad 4(8a^3)(3) = 96a^3, \qquad 6(4a^2)(9) = 216a^2,4(2a)(27)=216a,34=81.4(2a)(27) = 216a, \qquad 3^4 = 81.

So the expansion is

(2a+3)4=16a4+96a3+216a2+216a+81.(2a + 3)^4 = 16a^4 + 96a^3 + 216a^2 + 216a + 81.

Check it by setting a=1a = 1. The left side is (2+3)4=625(2 + 3)^4 = 625, and the right side is 16+96+216+216+81=62516 + 96 + 216 + 216 + 81 = 625. The check passes: if the two sides had disagreed, that would prove an error, but agreement here is reassuring rather than a guarantee that every coefficient is correct.

Powers of a difference

Nothing new is needed for (x−y)n(x - y)^n, because a difference is a sum in disguise. Write x−yx - y as x+(−y)x + (-y) and let the theorem do the work:

(x−y)n=(x+(−y))n=∑k=0n(nk)xn−k(−y)k.(x - y)^n = \big(x + (-y)\big)^n = \sum_{k=0}^{n} \binom{n}{k} x^{n-k} (-y)^k.

The only thing to simplify is (−y)k=(−1)kyk(-y)^k = (-1)^k y^k, which drags one minus sign along for each factor that donated a yy. So

(x−y)n=∑k=0n(−1)k(nk) xn−kyk,(x - y)^n = \sum_{k=0}^{n} (-1)^k \binom{n}{k}\, x^{n-k} y^{k},

and since (nk)\binom{n}{k} is a count it is never zero or negative. The sign of the coefficient of xn−kykx^{n-k}y^k is therefore the sign of (−1)k(-1)^k alone: the coefficient is negative exactly when kk is odd, and positive exactly when kk is even. The signs alternate +,−,+,−+, -, +, -, starting from ++ on the pure xnx^n term.

Worked example 2 Expand (x−2)4(x - 2)^4

Take A=xA = x and B=−2B = -2, so that the theorem applies to the sum x+(−2)x + (-2). Row 44 is 1, 4, 6, 4, 11,\ 4,\ 6,\ 4,\ 1, and the powers of −2-2 climb from k=0k = 0 to k=4k = 4:

(x−2)4=x4+4x3(−2)+6x2(−2)2+4x(−2)3+(−2)4.(x - 2)^4 = x^4 + 4x^3(-2) + 6x^2(-2)^2 + 4x(-2)^3 + (-2)^4.

Evaluate the powers of −2-2, which alternate in sign: (−2)1=−2(-2)^1 = -2, (−2)2=4(-2)^2 = 4, (−2)3=−8(-2)^3 = -8, and (−2)4=16(-2)^4 = 16. That gives

(x−2)4=x4−8x3+24x2−32x+16.(x - 2)^4 = x^4 - 8x^3 + 24x^2 - 32x + 16.

The signs alternate because the odd powers of −2-2 are negative and the even ones are positive, which is the (−1)k(-1)^k from the derivation showing up in the arithmetic.

Check with x=1x = 1. The left side is (1−2)4=1(1 - 2)^4 = 1, and the right side is 1−8+24−32+16=11 - 8 + 24 - 32 + 16 = 1. The check passes, which is reassuring, though it does not by itself guarantee every sign is correct: verify the alternating pattern directly from the powers of −2-2, negative at the odd exponents and positive at the even ones.

Check your understanding

What is the coefficient of x4x^4 in the expansion of (x−1)6(x - 1)^6?

Answer choices

A closed form for the coefficients

Pascal’s triangle gives every coefficient you could want, but it makes you build all the rows below the one you need. If a problem asks for a coefficient in (1+x)20(1 + x)^{20}, you do not want to write twenty rows. There is a closed-form formula that always produces the same number as counting the selections by hand.

First, notation. For a positive whole number mm, the factorial m!m! is the product of every whole number from mm down to 11:

m!=m×(m−1)×⋯×2×1,so4!=4⋅3⋅2⋅1=24.m! = m \times (m-1) \times \cdots \times 2 \times 1, \qquad\text{so}\qquad 4! = 4 \cdot 3 \cdot 2 \cdot 1 = 24.

The empty case is defined to be 0!=10! = 1. That is a convention, chosen so the formula below gives (n0)=(nn)=1\binom{n}{0} = \binom{n}{n} = 1, matching the counts you already found by hand.

(nk)=n!k! (n−k)!.\binom{n}{k} = \frac{n!}{k!\,(n-k)!}.

In practice you never expand the factorials in full. Cancel (n−k)!(n-k)! against the tail of n!n! first, which leaves kk factors on top and kk factors on the bottom.

Worked example 3 Find the coefficient of x3x^3 in (1+x)20(1 + x)^{20}

Take A=1A = 1 and B=xB = x. Since 120−k=11^{20-k} = 1 for every kk, the term holding x3x^3 is simply (203)x3\binom{20}{3}x^3, and the coefficient is (203)\binom{20}{3}.

Twenty rows of Pascal’s triangle would settle it, and so would the formula, in one line. Write out the factorials and cancel 17!17! against the tail of 20!20!:

(203)=20!3! 17!=20×19×18×17!(3×2×1)×17!=20×19×186.\binom{20}{3} = \frac{20!}{3!\,17!} = \frac{20 \times 19 \times 18 \times 17!}{(3 \times 2 \times 1) \times 17!} = \frac{20 \times 19 \times 18}{6}.

Cancel before multiplying: 18÷6=318 \div 6 = 3, so the product is 20×19×320 \times 19 \times 3.

(203)=1140.\binom{20}{3} = 1140.

The coefficient of x3x^3 is 11401140. Notice the shape of the shortcut: three factors on top counting down from 2020, and 3!3! underneath. That pattern is what the cancellation always produces.

The same formula also explains the symmetry you spotted earlier, since swapping kk and n−kn - k swaps the two factorials in the denominator and leaves the value alone.

Picking out a single term

Expanding a whole power is rarely the point. The question that actually gets asked is “what is the coefficient of x12x^{12}”, and expanding twenty terms to read off one of them is wasted work. The theorem lets you go straight to it, because it hands you the general term:

Tk=(nk) A n−kB k,k=0,1,2,…,n.T_k = \binom{n}{k}\, A^{\,n-k} B^{\,k}, \qquad k = 0, 1, 2, \ldots, n.

The method is always the same three steps. Write the general term for your AA and BB. Collect all the powers of the variable into a single exponent. Set that exponent equal to the one you want, solve for kk, and only then evaluate.

Worked example 4 Find the coefficient of a3b5a^3b^5 in (2a−b)8(2a - b)^8

Here A=2aA = 2a and B=−bB = -b, with n=8n = 8. The general term is

Tk=(8k)(2a)8−k(−b)k=(8k) 28−k(−1)k a8−kbk.T_k = \binom{8}{k} (2a)^{8-k} (-b)^{k} = \binom{8}{k}\, 2^{8-k} (-1)^k\, a^{8-k} b^{k}.

You want b5b^5, so k=5k = 5. That also fixes the power of aa at 8−5=38 - 5 = 3, which matches the a3a^3 asked for, so such a term does exist. Now evaluate the three pieces. Row 88 gives (85)=56\binom{8}{5} = 56, the power of 22 is 28−5=23=82^{8-5} = 2^3 = 8, and (−1)5=−1(-1)^5 = -1 because 55 is odd:

T5=56⋅8⋅(−1) a3b5=−448 a3b5.T_5 = 56 \cdot 8 \cdot (-1)\, a^3 b^5 = -448\,a^3b^5.

The coefficient is −448-448. Two traps sat in that problem: the 22 inside 2a2a had to be cubed along with the aa, and the odd kk made the sign negative.

Worked example 5 Find the coefficient of x6x^6 in (2+x2)5(2 + x^2)^5

Here A=2A = 2, B=x2B = x^2, and n=5n = 5. The general term is

Tk=(5k) 25−k (x2)k=(5k) 25−k x2k.T_k = \binom{5}{k}\, 2^{5-k}\, (x^2)^k = \binom{5}{k}\, 2^{5-k}\, x^{2k}.

You want x6x^6, so set the exponent equal to 66 and solve for kk:

2k=6⟹k=3.2k = 6 \quad\Longrightarrow\quad k = 3.

Now evaluate. Row 55 gives (53)=10\binom{5}{3} = 10, and the power of 22 is 25−3=22=42^{5-3} = 2^2 = 4:

T3=10⋅4 x6=40x6.T_3 = 10 \cdot 4\, x^6 = 40x^6.

The coefficient is 4040. Solving 2k=62k = 6 for kk is the whole method here: no negative exponents and no fractions, just one equation in kk.

Check your understanding

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

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

Go deeper (optional)

You can skip this and keep going. Read it if you want to know more.

Why the factorial formula always agrees with the counting definition

The counting number (nk)\binom{n}{k} equals n!k! (n−k)!\dfrac{n!}{k!\,(n-k)!}#

Write f(n,k)=n!k! (n−k)!f(n, k) = \dfrac{n!}{k!\,(n-k)!} for 0≤k≤n0 \le k \le n. We never assume ff counts anything. We claim ff always equals (nk)\binom{n}{k}, because ff obeys the same two rules that build the triangle, and those rules leave no freedom at all. Run the whole argument once on n=6n = 6 before writing it with letters.

The edges match, checked at n=6n = 6. Using 0!=10! = 1,

f(6,0)=6!0! 6!=1andf(6,6)=6!6! 0!=1,f(6, 0) = \frac{6!}{0!\,6!} = 1 \qquad\text{and}\qquad f(6, 6) = \frac{6!}{6!\,0!} = 1,

which are exactly the values of (60)\binom{6}{0} and (66)\binom{6}{6}.

Pascal’s rule holds for ff, checked at n=6n = 6, k=2k = 2. Add f(5,1)f(5, 1) and f(5,2)f(5, 2) and put them over the common denominator 2! 4!=482!\,4! = 48, multiplying the first fraction above and below by k=2k = 2 and the second by n−k=4n - k = 4 (deliberately different multipliers this time, so the two steps stay visibly distinct):

f(5,1)+f(5,2)=5!1! 4!+5!2! 3!=2⋅5!2! 4!+4⋅5!2! 4!=240+48048=15.\begin{aligned} f(5,1) + f(5,2) &= \frac{5!}{1!\,4!} + \frac{5!}{2!\,3!} = \frac{2 \cdot 5!}{2!\,4!} + \frac{4 \cdot 5!}{2!\,4!} \\ &= \frac{240 + 480}{48} = 15. \end{aligned}

And directly, f(6,2)=6!2! 4!=72048=15f(6, 2) = \dfrac{6!}{2!\,4!} = \dfrac{720}{48} = 15. The two match.

The two rules determine every entry, checked through row 66. Row 00 has (00)=f(0,0)=1\binom{0}{0} = f(0,0) = 1. Using only the edge values and the addition rule just checked, build each row from the one above it, adding actual numbers rather than taking it on faith:

  • Row 11: edges only, 1,11, 1.
  • Row 22: edges 1,11, 1; interior (21)=(10)+(11)=1+1=2\binom{2}{1} = \binom{1}{0} + \binom{1}{1} = 1 + 1 = 2. Row: 1,2,11, 2, 1.
  • Row 33: edges 1,11, 1; interior (31)=1+2=3\binom{3}{1} = 1 + 2 = 3 and (32)=2+1=3\binom{3}{2} = 2 + 1 = 3. Row: 1,3,3,11, 3, 3, 1.
  • Row 44: edges 1,11, 1; interior (41)=1+3=4\binom{4}{1} = 1 + 3 = 4, (42)=3+3=6\binom{4}{2} = 3 + 3 = 6, (43)=3+1=4\binom{4}{3} = 3 + 1 = 4. Row: 1,4,6,4,11, 4, 6, 4, 1.
  • Row 55: edges 1,11, 1; interior (51)=1+4=5\binom{5}{1} = 1 + 4 = 5, (52)=4+6=10\binom{5}{2} = 4 + 6 = 10, (53)=6+4=10\binom{5}{3} = 6 + 4 = 10, (54)=4+1=5\binom{5}{4} = 4 + 1 = 5. Row: 1,5,10,10,5,11, 5, 10, 10, 5, 1.
  • Row 66: edges 1,11, 1; interior (61)=1+5=6\binom{6}{1} = 1 + 5 = 6, (62)=5+10=15\binom{6}{2} = 5 + 10 = 15, (63)=10+10=20\binom{6}{3} = 10 + 10 = 20, (64)=10+5=15\binom{6}{4} = 10 + 5 = 15, (65)=5+1=6\binom{6}{5} = 5 + 1 = 6. Row: 1,6,15,20,15,6,11, 6, 15, 20, 15, 6, 1.

Every one of those entries equals the matching value of ff; in particular (62)=15\binom{6}{2} = 15 matches the f(6,2)=15f(6, 2) = 15 found above. Nothing about this forcing used a special property of 66: the same edges-plus-addition argument would force agreement at row 77, row 88, and every row after that, one row at a time.

Now repeat the same argument in general, with nn and kk standing for an arbitrary row and index. Nothing below depends on 66 having been the row checked above; the same three steps work starting from any row.

The edges match. Using 0!=10! = 1,

f(n,0)=n!0! n!=1andf(n,n)=n!n! 0!=1,f(n, 0) = \frac{n!}{0!\,n!} = 1 \qquad\text{and}\qquad f(n, n) = \frac{n!}{n!\,0!} = 1,

which are exactly the values of (n0)\binom{n}{0} and (nn)\binom{n}{n}.

Pascal’s rule holds for ff. Take an interior index, 1≤k≤n−11 \le k \le n-1, so that every factorial below is defined. Add the two entries from the row above and put them over the common denominator k! (n−k)!k!\,(n-k)!, multiplying the first fraction above and below by kk and the second by n−kn - k, exactly as in the numerical case:

f(n−1,k−1)+f(n−1,k)=(n−1)!(k−1)! (n−k)!+(n−1)!k! (n−1−k)!=k (n−1)!k! (n−k)!+(n−k) (n−1)!k! (n−k)!.\begin{aligned} f(n-1, k-1) + f(n-1, k) &= \frac{(n-1)!}{(k-1)!\,(n-k)!} + \frac{(n-1)!}{k!\,(n-1-k)!} \\ &= \frac{k\,(n-1)!}{k!\,(n-k)!} + \frac{(n-k)\,(n-1)!}{k!\,(n-k)!}. \end{aligned}

The two numerators now combine, and k+(n−k)=nk + (n - k) = n collapses them:

(n−1)! [k+(n−k)]k! (n−k)!=n⋅(n−1)!k! (n−k)!=n!k! (n−k)!=f(n,k).\frac{(n-1)!\,\big[k + (n-k)\big]}{k!\,(n-k)!} = \frac{n \cdot (n-1)!}{k!\,(n-k)!} = \frac{n!}{k!\,(n-k)!} = f(n, k).

The two rules determine everything. Row 00 has the single entry (00)=1\binom{0}{0} = 1, and f(0,0)=1f(0, 0) = 1 as well, so the two agree there. Now suppose they agree on row n−1n - 1. In row nn the two end entries are 11 for both, and every interior entry of both is the sum of the same two entries from row n−1n - 1. So the two agree on row nn as well. Working down one row at a time, exactly as the numerical case did through row 66, they agree on every row, and therefore

(nk)=n!k! (n−k)!\binom{n}{k} = \frac{n!}{k!\,(n-k)!}

for all 0≤k≤n0 \le k \le n. The counting definition and the formula are the same number.

The constant term of a binomial with negative exponents

The same three-step method works even when BB is not a positive power of the variable. Writing a 1x\dfrac{1}{x} term as x−1x^{-1} lets you add exponents instead of tracking fractions.

Worked example Find the constant term of (x2+3x)6\left(x^2 + \dfrac{3}{x}\right)^{6}

A constant term is the term whose power of xx is x0x^0. You do not know in advance which kk produces it, so let the exponent tell you. With A=x2A = x^2 and B=3x=3x−1B = \dfrac{3}{x} = 3x^{-1} and n=6n = 6, the general term is

Tk=(6k)(x2)6−k(3x−1)k=(6k) 3k x12−2k x−k.T_k = \binom{6}{k} (x^2)^{6-k} \left(3x^{-1}\right)^{k} = \binom{6}{k}\, 3^{k}\, x^{12 - 2k}\, x^{-k}.

Combine the two powers of xx by adding exponents, which is the whole reason for writing 3x\dfrac{3}{x} as 3x−13x^{-1}:

Tk=(6k) 3k x12−3k.T_k = \binom{6}{k}\, 3^{k}\, x^{12 - 3k}.

The term is constant when its exponent is zero:

12−3k=0⟹k=4.12 - 3k = 0 \quad\Longrightarrow\quad k = 4.

Only k=4k = 4 works, so there is exactly one constant term. Evaluate it with (64)=15\binom{6}{4} = 15 from row 66 and 34=813^4 = 81:

T4=15⋅81=1215.T_4 = 15 \cdot 81 = 1215.

The constant term is 12151215. Nothing was expanded: one equation in kk replaced all seven terms.

A bit of history (optional)

A line of Sanskrit verse is built from syllables of two kinds, long and short. Poets wanted to know how much freedom that gave them. How many lines of a given length can the two kinds of syllable produce between them?

Pingala, a scholar in India, composed the surviving treatise on that counting question around the second century BCE. Count the lines that use exactly kk short syllables in nn positions. What you are choosing is which positions receive a short syllable, the same act you have performed all lesson, choosing which factors donate their yy. A single number therefore answers both questions: the one you have been writing as (nk)\binom{n}{k}.

Pingala’s own verses are terse, and scholars date the first surviving Pascal-style construction of the triangle to a later commentator, Virahanka, in the seventh century CE. A tenth-century commentary by Halayudha spells the construction out explicitly and names the resulting figure the meru-prastara, the staircase of Mount Meru. Every row is built from the row above it by addition, which is Pascal’s rule operating with no algebra anywhere near it, centuries before the triangle carried Pascal’s name in the West.