Skip to main content
Algebra / choosing, multiplying, counting

Where do the coefficients come from?

A binomial has two terms, such as a+b. Raising it to a whole-number power means multiplying copies of it. We will follow every choice inside those brackets, then count how many choices lead to the same product.

aone termbthe other termLetters are numbers, not objects being drawn at random.

01Two brackets. Four selections.

The distributive law says x(a+b)=xa+xb: multiply by each term and add. Apply it to both brackets. Take a or b from the first bracket, then a or b from the second. Play the animation, pause it, or collect one product at a time.

Choose → multiply → collect0 / 4 selections collected
(a+b)²=(a+b)(a+b)BRACKET 1()+abBRACKET 2()+abSame product → same group0selectionsab0selections0selections
01

The exponent 2 means 2 copies of (a+b), multiplied together. To expand, take one letter from every bracket and multiply those letters.

0%
Collect every selection to assemble the expansion.

The selections ab and ba come from different bracket positions. But ordinary numbers satisfy ab = ba, so their products are equal. Adding them gives ab + ab = 2ab. The 2 in a² counts factors of a; the 2 in 2ab counts equal products being added.

02Three brackets. Count the positions.

Now each selection uses three letters, so its exponents always add to 3. To obtain a²b, two brackets must supply a and the remaining bracket must supply b. Watch all eight selections, then compare the three ways to obtain a²b.

Choose → multiply → collect0 / 8 selections collected
(a+b)³=(a+b)(a+b)(a+b)BRACKET 1()+abBRACKET 2()+abBRACKET 3()+abSame product → same group0selectionsa²b0selectionsab²0selections0selections
01

The exponent 3 means 3 copies of (a+b), multiplied together. To expand, take one letter from every bracket and multiply those letters.

0%
Collect every selection to assemble the expansion.

Why does a²b appear three times?

The brackets occupy three distinct positions. Choose two positions for a, and the remaining position must supply b. Equivalently, choose just that one b position.

1a
2a
3b

Choose position 1, 2

1a
2b
3a

Choose position 1, 3

1b
2a
3a

Choose position 2, 3

(32)=(31)=3\binom{3}{2}=\binom{3}{1}=3

These are two ways to count the same three selections, not six different selections. A combination counts which positions you choose; it does not count the order in which you click them.

nCr=(nr){}^nC_r=\binom{n}{r}

Read this as “n choose r”. n is the total number of available positions; r is how many positions to choose. Here n = 3 and r = 2 (for a), or r = 1 (for b).

03n brackets. Choose k of them for a.

Let k count the brackets that supply a. Every other bracket supplies b, giving n−k copies of b. The product is aᵏbⁿ⁻ᵏ. Its coefficient is “n choose k”, because any selection of those k positions produces that same product. k now plays the role of r in nCr.

Every coefficient is a countn = 5, k = 2
5
2
a\cdota\cdotb\cdotb\cdotb=a2b3a\cdota\cdotb\cdotb\cdotb=a^{2}b^{3}

2 copies of a and 3 copies of b. Click any bracket above to change its choice.

(52)\binom{5}{2} = 10 different selections give this same product.

COUNT

Choose 2 positions from 5 for a. The remaining 3 positions must supply b. There are 10 such choices, so the coefficient of a²b³ is 10.

(a+b)⁵ =+++++

The terms run from zero a’s to n a’s. Click a term to inspect every selection behind its coefficient. Reordering the terms does not change their sum.

(a+b)n=(n0)bn+(n1)abn1++(nk)akbnk++(nn)an(a+b)^n=\binom n0 b^n+\binom n1 ab^{n-1}+\cdots+\binom nk a^k b^{n-k}+\cdots+\binom nn a^n

Start with k=0: take b from every bracket, giving bⁿ once. Increase k one at a time, until k=n: take a from every bracket, giving aⁿ once. This lists every selection exactly once, grouped by its product.

(a+b)n=k=0n(nk)akbnk\boxed{(a+b)^n=\sum_{k=0}^{n}\binom nk a^k b^{n-k}}

Σ means “add these terms”. The bottom k=0 tells you where to start; the top n tells you where to stop. The powers tell you what was chosen. The coefficient tells you how many ways it could be chosen. This is the binomial theorem.

Here n is a nonnegative integer. A factor with exponent zero is omitted; for n=0 the expansion is 1. The interactive display reaches n=8, but the counting argument works for every nonnegative integer n.