Calculators/Mathematics/Binomial theorem

Binomial theorem

(a+b)ⁿ · binomial coefficients · Pascal's triangle

Binomial theorem — illustration
Expansion (a + b)4
a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴
Coefficients (row 4 of Pascal's triangle)
14641

(a+b)ⁿ = Σ C(n,k)·aⁿ⁻ᵏ·bᵏ. The coefficients are the binomial coefficients C(n,k) — the next row of Pascal's triangle. The sum of all coefficients is 2ⁿ.

The binomial theorem lets you expand any power of a sum:

(a+b)n=∑k=0n(nk)a n−kb k(a+b)^n=\sum_{k=0}^{n}\binom{n}{k}a^{\,n-k}b^{\,k}

where (nk)\binom{n}{k} are the binomial coefficients — the next row of Pascal's triangle. For example (a+b)4=a4+4a3b+6a2b2+4ab3+b4(a+b)^4=a^4+4a^3b+6a^2b^2+4ab^3+b^4.

The calculator gives the full expansion and the list of coefficients. Worth remembering: the sum of all coefficients in a row is 2n2^n, and the row is symmetric.

Examples

(a+b)⁴
→ a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴ (coeffs 1 4 6 4 1)
(a+b)³
→ a³ + 3a²b + 3ab² + b³

Frequently asked questions

Where do the binomial coefficients come from?+

They are the binomial coefficients C(n,k) = n!/(k!(n−k)!), i.e. the number of combinations. They form Pascal's triangle — each one is the sum of the two above it.

What is the sum of the coefficients of an expansion?+

Always 2ⁿ — because substituting a = b = 1 into (a+b)ⁿ gives 2ⁿ, which is the sum of all the coefficients.

Found this calculator useful? Share it.

It's free — send it to a friend who's revising.

Teaching? Embed this calculator on your site.

Free widget — paste it on your school site, blog or notes. It links to the full version.

Teaching a class or tutoring? Guide students in NexTutor →