Learn
Lesson · Sequences and Series · The binomial theorem

The Binomial Theorem

Multiplying out (a + b)ⁿ means expanding 2ⁿ products and collecting them. The binomial theorem writes the answer down directly: the coefficients are the binomial coefficients C(n, k), and they are there because expanding brackets is a counting problem.

(a + b)ⁿ = Σ C(n,k) aⁿ⁻ᵏ bᵏ k from 0 to n C(n,k) = n!/(k!(n - k)!) row n of Pascal's triangle the term with bᵏ is C(n,k) aⁿ⁻ᵏ bᵏ exponents always total n 1 4 6 4 1 → (a+b)⁴ = a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴
The expansion, and where its numbers come from

Core ideas

What this lesson establishes

The formula is short and the reason behind it is shorter: every coefficient is a count of something.

1

The coefficients count, they are not a pattern

(a + b)ⁿ is n brackets multiplied together. Expanding means choosing a or b from each bracket in every possible way; a product with exactly k factors of b comes from choosing which k brackets supplied it, and there are C(n, k) ways to do that. Pascal's triangle appears here because it is a table of those counts.

2

Exponents sum to n in every term

The term is aⁿ⁻ᵏbᵏ, and (n - k) + k = n. It is a free check on every line you write: a³b³ cannot appear in the expansion of (a + b)⁵. There are n + 1 terms, one for each k from 0 to n.

3

The signs in (a - b)ⁿ are not a separate rule

(a - b)ⁿ is (a + (-b))ⁿ, so the term is C(n,k)aⁿ⁻ᵏ(-b)ᵏ and the sign is (-1)ᵏ. The signs alternate starting from +, and the terms with an even power of b keep their sign.

The material

Pascal's triangle and the binomial theorem

The coefficients, the formula that produces them, and the reason they are counts.

Polynomials and Factoring expanded (a + b)² and (a + b)³ by hand. (a + b)⁵ is possible with patience, and (a + b)¹² is not: multiplying out twelve brackets means 2¹² = 4096 products before any collecting starts. The theorem below skips all of it.

(a + b)⁰ = 1 (a + b)¹ = a + b (a + b)² = a² + 2ab + b² (a + b)³ = a³ + 3a²b + 3ab² + b³ (a + b)⁴ = a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴ in every line the power of a falls and the power of b rises, and the two always total the exponent on the left

Stripping out the coefficients leaves a triangle in which every entry is the sum of the two directly above it, with 1s down both edges. It is called Pascal's triangle, and row n holds the coefficients of (a + b)ⁿ.

n = 0 1 n = 1 1 1 n = 2 1 2 1 n = 3 1 3 3 1 n = 4 1 4 6 4 1 n = 5 1 5 10 10 5 1 n = 6 1 6 15 20 15 6 1 15 = 5 + 10: each entry is the sum of the two above it
Definition · Binomial coefficient

For integers 0 ≤ k ≤ n, C(n, k) = n!/(k!(n - k)!), read "n choose k". It is also written with n above k in a single pair of brackets. The factorials are the ones from “Sequences and Recursion”, with 0! = 1.

Example · Computing C(9, 4) without computing 9!

C(9,4) = 9!/(4!5!). The 5! cancels most of the 9!, leaving (9·8·7·6)/(4·3·2·1) = 3024/24 = 126. Four factors on top because k = 4, and four below. The cancelling is not a shortcut for the lazy: 9! is 362880, and there is no reason to write it down.

Theorem · The binomial theorem

For any numbers a, b and any nonnegative integer n, (a + b)ⁿ = Σ C(n,k) aⁿ⁻ᵏ bᵏ, the sum running over k from 0 to n. Written out, that is aⁿ + C(n,1)aⁿ⁻¹b + C(n,2)aⁿ⁻²b² + … + C(n,n-1)abⁿ⁻¹ + bⁿ.

Why the coefficient of aⁿ⁻ᵏbᵏ is C(n,k): expanding n brackets means taking one letter from each and multiplying, then adding every such product. A product ends up as aⁿ⁻ᵏbᵏ exactly when the b was taken from k of the brackets, and the number of ways to choose which k is C(n,k). Every one of those choices contributes 1, so they add to C(n,k).

That is also why the triangle's rule works: a choice of k brackets out of n either uses the last bracket, leaving k - 1 to choose from the first n - 1, or does not, leaving k to choose from n - 1. So C(n,k) = C(n-1,k-1) + C(n-1,k), which is the sum-of-the-two-above rule stated in symbols. The triangle is also symmetric, because C(n,k) = C(n,n-k): choosing k brackets to give b is the same act as choosing the other n - k to give a.

Example · The signs of (a - b)⁴

(a - b)⁴ = a⁴ - 4a³b + 6a²b² - 4ab³ + b⁴. The coefficients are row 4 unchanged; the signs come from (-b)ᵏ, so terms with odd k are negative. The last term is (-b)⁴ = +b⁴, which is the one people expect to be negative.

Setting a = b = 1 turns the theorem into 2ⁿ = C(n,0) + C(n,1) + … + C(n,n): each row of Pascal's triangle adds up to a power of two. Row 5 is 1, 5, 10, 10, 5, 1, totalling 32. It is a check on a row you have just written, and it is also the statement that a set of n things has 2ⁿ subsets.

Interactive

The binomial theorem

Pascal's triangle against the C(n, k) formula, against multiplying it out

Sequence
Pascal's trianglethe C(n, k) formulamultiplied out

Method

Expanding a binomial power

Four steps. The third is the one that decides whether the signs come out right.

1

Name a, b and n

In (2x - 3)⁴: a = 2x, b = -3, n = 4. The minus sign belongs to b, not to the expansion. Deciding this on paper before expanding is what keeps the signs honest.

2

Write the coefficients

Row n of Pascal's triangle if n is small, C(n,k) otherwise. For n = 4 they are 1, 4, 6, 4, 1, and the row is symmetric, which halves the work.

3

Write the powers before simplifying

aⁿ⁻ᵏbᵏ for k = 0, 1, …, n, exponents totalling n in every term. Getting the skeleton down first stops a dropped term in the middle of a long expansion.

4

Apply each exponent to the whole of a and b

(2x)³ is 8x³, not 2x³, and (-3)² is 9, not -9. Then collect. Finally substitute x = 1: the expansion should equal the original expression evaluated there.

Coefficients and complete expansions

Score 0 / 0

Expanding (2x - 3)⁴

Both parts are compound: a carries a coefficient and b carries a sign. Every error in this expansion is one of those two being applied to only part of the term.

a = 2x, b = -3, n = 4 row 4 of Pascal's triangle: 1 4 6 4 1 k=0 1·(2x)⁴ = 1·16x⁴ = 16x⁴ k=1 4·(2x)³(-3) = 4·8x³·(-3) = -96x³ k=2 6·(2x)²(-3)² = 6·4x²·9 = 216x² k=3 4·(2x)(-3)³ = 4·2x·(-27) = -216x k=4 1·(-3)⁴ = 1·81 = 81 (2x - 3)⁴ = 16x⁴ - 96x³ + 216x² - 216x + 81 check at x = 1 left (2 - 3)⁴ = (-1)⁴ = 1 right 16 - 96 + 216 - 216 + 81 = 1 ✓

The check costs one line and catches almost everything, because substituting x = 1 turns the expansion into the sum of its coefficients. A dropped sign, a missing term or a mishandled (2x)³ will all show up in it.

Notice that the coefficients 16, -96, 216, -216, 81 are not symmetric even though row 4 is. The symmetry belongs to C(n,k); (2x) and (-3) are different sizes, and the powers of each pull the numbers out of balance.

For a faded expansion, take (x - 2)⁵. The supplied setup is a = x, b = -2, n = 5, with row 5 coefficients 1, 5, 10, 10, 5, 1. Write all six unsimplified terms before collecting their signs and powers, then substitute x = 1 into both the original bracket and your complete expansion before opening the quiz.

Common mistakes

1
Raising only part of a term to the powerIn (2x - 3)⁴ the k = 1 term is 4(2x)³(-3), and (2x)³ = 8x³. Writing 2x³ loses a factor of 4 in that term alone, so the expansion fails the x = 1 check while every other term is correct.
2
Alternating the signs by habit instead of from (-b)ᵏThe rule is (-1)ᵏ, so the first term is positive and the last term of (a - b)⁴ is +b⁴. Expansions of odd powers end negative and even powers end positive, and guessing rather than computing (-b)ᵏ gets one of those two cases wrong.
3
Dropping the middle terms as though a power distributes over addition(a + b)ⁿ is not aⁿ + bⁿ when n > 1. The missing products are exactly what the binomial coefficients count. Substituting a = b = 1 exposes the error immediately: the left side is 2ⁿ, while the two-term shortcut gives only 2.

Check your understanding

✓
Finish when you can build a complete expansion from counts rather than remembered patterns.

You should be able to produce row 6 of Pascal's triangle from row 5, compute a binomial coefficient by cancelling factorials, and expand (2x - 3)⁴ correctly including signs. For a complete expansion, the x = 1 check should be automatic.

Note: This theorem is the last new identity of the course. “The General Term of an Expansion” specialises it into a method for picking a single term out of an expansion without writing the rest, and it ends where counting begins: C(n,k) was defined here as a formula and used as a count, and the Combinatorics and Counting course on the Discrete Mathematics path takes it up as a subject in its own right. The algebra was the point, though. Every step of this path — elimination, row reduction, the determinant and the corner points in Systems and Matrices, the two sequence families here — was legal because some property of the real numbers said so, which is the thing Foundations of Algebra opened with.

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

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.