The binomial theorem expands (a+b)n into n+1 terms: the term with bk is C(n,k)an−kbk. The coefficients C(n,k) are row n of Pascal’s triangle, and they count the ways to choose b from k of the n factors.
A concrete case
Multiply it out, then count
(a+b)2=a2+2ab+b2. Multiply once more by (a+b) and the terms collect into a3+3a2b+3ab2+b3. The coefficients 1,2,1 have become 1,3,3,1.
Where does the 3 in 3a2b come from? (a+b)3 is three factors, (a+b)(a+b)(a+b). Each term of the product takes a or b from every factor. A term with exactly one b takes it from the first, the second or the third factor. There are three ways to do that, and each gives a2b, so together they make 3a2b.
(a+b)3=a3+3a2b+3ab2+b3
The three ways to take one b from (a+b)(a+b)(a+b)
First factor
Second factor
Third factor
Term
b
a
a
a2b
a
b
a
a2b
a
a
b
a2b
The rule
The binomial theorem
For any numbers a and b and any whole number n,(a+b)n has n+1 terms. The powers of a fall from n to 0 while the powers of b rise from 0 to n, so the exponents in every term add to n. The coefficient of an−kbk is the binomial coefficient C(n,k), read “n choose k” and also written with n above k in parentheses.
(a+b)n=k=0∑n(nk)an−kbk
Binomial coefficients and Pascal’s triangle
C(n,k)=n!/(k!(n−k)!), where n!=n⋅(n−1) ⋯ 2⋅1 and 0!=1. For example C(4,2)=24/(2⋅2)=6.
The same numbers fill Pascal’s triangle. Row n lists C(n,0) through C(n,n), and the top row is row 0. Each row begins and ends with 1, and each inner entry is the sum of the two entries above it.
(nk)=k!(n−k)!n!
The first rows of Pascal’s triangle
n
Row n
0
1
1
11
2
121
3
1331
4
14641
5
15101051
Why it works
Why the coefficients count choices
Expand (a+b)n without collecting anything. Every term is a product of n letters, one from each factor. A term equal to an−kbk takes b from exactly k of the n factors and a from the rest. The number of such terms is the number of ways to choose which k factors give b, and that count is C(n,k).
Pascal’s rule follows from the same count. To choose k of n factors, either the last factor is chosen or it is not. If it is, the other k−1 come from the first n−1 factors, in C(n−1,k−1) ways. If it is not, all k come from the first n−1, in C(n−1,k) ways. Together they give C(n,k), which is why each entry is the sum of the two above it.
(nk)=(n−1k−1)+(n−1k)
The method
Expanding a binomial
Name a,b and n first, with every sign and coefficient inside a and b. The table works through (x−2)3, the first worked example below.
The steps on (x−2)3
Step
What to do
For (x−2)3
1
Name a,b and n, keeping signs
a=x,b=−2,n=3
2
Read the coefficients from row n
1,3,3,1
3
Write each term with a and b in parentheses
x3+3x2(−2)+3x(−2)2+(−2)3
4
Simplify each term
x3−6x2+12x−8
5
Check with a number
At x=3 both sides give 1
Finding one term
The term with bk is C(n,k)an−kbk. Find k from the power you want, then compute only that term. In (2x+1)5 the power of x in a term is 5−k, so x3 needs k=2, and the term is C(5,2)(2x)3(1)2=10⋅8x3=80x3. Pascal’s triangle is quicker for a whole expansion, and the formula is quicker for one term.
(52)(2x)3(1)2=80x3
Where it breaks
Where it breaks
(a+b)n is not an+bn once n is 2 or more. (1+1)3=8, while 13+13=2. The missing 6 is the middle terms, 3+3.
A coefficient inside a term is raised with it. In (2x+1)5,a=2x, so a3=8x3, not 2x3. A minus sign belongs to b. In (x−2)3,b=−2, and its odd powers are negative, so the signs alternate.
The theorem as written needs a whole-number power. (1+x)1/2 has no last term. For small x it is approximated by an endless sum, 1+x/2−x2/8+⋯, which a later course builds.
C(n,k) needs 0≤k≤n. Row 5 has six entries, C(5,0) to C(5,5), so there is no seventh term to ask for.
Check your answer
Check your answer
An expansion holds for every x, so the easy values of x test it.
Add the coefficients. Setting every variable to 1 turns (x+1)n into 2n, so the entries of row n add to 2n. Row 4 gives 1+4+6+4+1=16=24.
Put in a value that makes the binomial easy. x=3 makes (x−2)3=1, so the expansion must give 27−54+36−8=1 too.
Count the terms and the exponents. There are n+1 terms, and the exponents in each add to n.
To have Chalk check the work, write the binomial power on the first row of a Math box, the terms with a and b substituted on the next, and the simplified expansion below. The Checker compares each row with the one above. A lost sign reads ✗ with the values that disagree, such as “Not equivalent. At x = 2, the lines give 0 and 64.” For a single term, start the box at the term itself, such as C(5,2)(2x)3(1)2, and simplify it row by row.
Counting, chance and other powers
The same coefficients count choices anywhere. The number of 5-card hands from a 52-card deck is C(52,5)=2,598,960. The chance of exactly k heads in n fair coin tosses is C(n,k)/2n, the binomial distribution. Exactly 2 heads in 4 tosses has chance 6/16=0.375.
Newton found that the expansion of (1+x)r works for any real power r when x is between −1and 1. Its coefficients are r(r−1)⋯(r−k+1)/k!. For a whole number r they become zero once k passes r, so the sum stops, and the result is the theorem on this page.
Common mistakes
Dropping the middle terms. (a+b)2 is a2+2ab+b2, not a2+b2. At a=b=1 the first gives 4 and the second 2, so the 2ab must be there.
Losing the sign of b. In (x−2)3,b=−2, so the terms alternate, x3−6x2+12x−8. Writing every term positive gives x3+6x2+12x+8, which is (x+2)3.
Forgetting to raise a coefficient. (2x)3 is 8x3, not 2x3, because the cube applies to the 2 as well as the x.
Using the wrong row. The power 3 uses row 3, which is 1,3,3,1. Row 3 is the fourth line of the triangle, because the top line is row 0.
Matching k to the wrong power. In (2x+1)5 the x3 term has k=2, since the power of x is 5−k. Choosing k=3 gives the x2 term, 40x2, instead.
Reporting the term when the coefficient is asked for. The x3 term of (2x+1)5 is 80x3, and its coefficient is 80. Read which one the question wants.
Key terms
Binomial theorem
For a whole number n,(a+b)n=Σ C(n,k)an−kbk for k=0 to n: each term chooses b from k of the n factors, in C(n,k) ways.
Pascal’s triangle
A triangular array with 1s down both edges in which every other entry is the sum of the two above it. Counting the top row as row 0, row n lists the binomial coefficients C(n,0) to C(n,n).
Combination count
The number of ways to choose k objects from n when order doesn’t matter: C(n,k)=n!/(k!(n−k)!). For example, 2 people can be chosen from 4 in 6 ways.
Factorial
For a positive integer n,n! is the product of the integers from 1 through n, and 0! is defined as 1. Factorials count arrangements of distinct objects.
Exponent
The raised number in a power, telling how many times to multiply the base: 23=2⋅2⋅2. A negative exponent means a reciprocal (2−3=1/8), and a fractional one means a root.