Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Binomial Theorem






Where Counting Meets Algebra


The binomial coefficient was defined to count subsets — the number of kk-element selections from an nn-element set. The same coefficient also organizes the algebraic expansion of (a+b)n(a+b)^n, and the binomial theorem makes that organization explicit.

The connection is not a coincidence. When (a+b)n(a+b)^n is written out as the product of nn copies of (a+b)(a+b), each term in the expansion is built by choosing either aa or bb from each factor and multiplying the choices together. A term of the form ankbka^{n-k} b^k arises whenever exactly kk of the nn factors contribute a bb, and the number of ways to make that choice is (nk)\binom{n}{k}.

Counting subsets and expanding powers turn out to be the same problem viewed from two sides.



The Theorem


For any non-negative integer nn and any values aa and bb,

Binomial Theorem
(a+b)n=k=0n(nk)ankbk.(a + b)^n = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^k.
Learn more about this formula: Binomial Theorem →


The expansion has exactly n+1n+1 terms, indexed by kk from 00 through nn. The coefficients (n0),(n1),,(nn)\binom{n}{0}, \binom{n}{1}, \ldots, \binom{n}{n} are precisely the entries of row nn of Pascal's triangle — so the row of the triangle reads as the row of coefficients in the expansion.

Combinatorial Proof


Write (a+b)n(a+b)^n as the product

(a+b)(a+b)(a+b)n factors.\underbrace{(a+b)(a+b)\cdots(a+b)}_{n \text{ factors}}.


Expanding the product means forming every possible term by choosing either aa or bb from each factor and multiplying the selections. A term equal to ankbka^{n-k} b^k arises whenever exactly kk of the nn factors contribute a bb, and there are (nk)\binom{n}{k} ways to make that selection. Summing over all kk gives the theorem.

This is a double counting argument in its purest form: the product (a+b)n(a+b)^n, viewed both as an algebraic expression and as an enumeration of choice-sequences, has the same value either way.

Algebraic Proof


An induction on nn also works, using Pascal's rule to advance from row nn to row n+1n+1. Both proofs are standard; the combinatorial one is the more direct explanation of why binomial coefficients appear.

The General Term


The term corresponding to a specific power of bb in the expansion appears often enough to deserve its own formula. The (k+1)(k+1)-th term is

General Term in Binomial Expansion
Tk+1=(nk)ankbk.T_{k+1} = \binom{n}{k} a^{n-k} b^k.
Learn more about this formula: General Term in Binomial Expansion →


Index Convention


The terms are numbered starting from T1=(n0)anT_1 = \binom{n}{0} a^n — the term with no bb. Under this convention, the term containing bkb^k is Tk+1T_{k+1}, not TkT_k.

Uses


The general term is the tool for problems that ask about one specific term rather than the whole expansion. Three standard problem types use it directly:

• Finding the coefficient of a specific power of one variable
• Identifying the middle term of the expansion
• Finding the term independent of a variable (when one of aa or bb involves that variable in the numerator and the other in the denominator)

The Middle Term


When nn is even, the expansion has n+1n+1 terms with a unique middle term

Middle Term in Binomial Expansion
Tn/2+1=(nn/2)an/2bn/2,n even.T_{n/2 + 1} = \binom{n}{n/2} a^{n/2} b^{n/2}, \quad n \text{ even}.
Learn more about this formula: Middle Term in Binomial Expansion →


Its coefficient (nn/2)\binom{n}{n/2} is the maximum binomial coefficient in row nn — the entries grow from the edges toward the middle of each row of Pascal's triangle.

Special Cases


Specific substitutions for aa and bb convert the theorem into useful identities.

Setting a=1,b=1a = 1, b = 1


(1+1)n=2n=k=0n(nk).(1+1)^n = 2^n = \sum_{k=0}^{n} \binom{n}{k}.


This is the algebraic counterpart of the row-sum identity from Pascal's triangle: the entries of row nn sum to 2n2^n, which is also the number of subsets of an nn-set.

Setting a=1,b=1a = 1, b = -1


(11)n=0=k=0n(1)k(nk)for n1.(1-1)^n = 0 = \sum_{k=0}^{n} (-1)^k \binom{n}{k} \quad \text{for } n \ge 1.


The alternating row sum is zero, which means the number of even-sized subsets of an nn-set equals the number of odd-sized subsets.

Setting a=1,b=xa = 1, b = x


(1+x)n=k=0n(nk)xk.(1+x)^n = \sum_{k=0}^{n} \binom{n}{k} x^k.


This is the form most commonly encountered in algebra. The right side is the generating function for the binomial coefficients of row nn — a polynomial whose coefficients encode the entire row.

Derived Identities


Operations on the polynomial form produce further identities. Differentiating (1+x)n(1+x)^n with respect to xx and substituting x=1x = 1 gives

Weighted Binomial Sum
k=1nk(nk)=n2n1.\sum_{k=1}^{n} k \binom{n}{k} = n \cdot 2^{n-1}.
Learn more about this formula: Weighted Binomial Sum →


Multiplying by xx and differentiating again, or integrating and substituting, produces a family of related sums. These substitutions are the standard route for converting algebraic facts about (a+b)n(a+b)^n into combinatorial identities about binomial coefficients.
Substitution Identity produced Combinatorial meaning
a = 1, b = 1 Σk=0n C(n, k) = 2n row sum = total number of subsets of an n-set
a = 1, b = −1 Σk=0n (−1)k C(n, k) = 0 for n ≥ 1 even-sized subsets are as numerous as odd-sized ones
a = 1, b = x (1 + x)n = Σk=0n C(n, k) xk generating function for row n of Pascal's triangle
Differentiate, then x = 1 Σk=1n k · C(n, k) = n · 2n−1 weighted row sum; combinatorial proofs by double counting also work

The Multinomial Theorem


The binomial theorem expands a sum of two terms raised to a power. When the base has more than two terms, the generalization is the multinomial theorem.

Statement


For a non-negative integer nn and any values x1,x2,,xrx_1, x_2, \ldots, x_r,

Multinomial Theorem
(x1+x2++xr)n=k1+k2++kr=nki0(nk1,k2,,kr)x1k1x2k2xrkr.(x_1 + x_2 + \cdots + x_r)^n = \sum_{\substack{k_1 + k_2 + \cdots + k_r = n \\ k_i \ge 0}} \binom{n}{k_1, k_2, \ldots, k_r} x_1^{k_1} x_2^{k_2} \cdots x_r^{k_r}.
Learn more about this formula: Multinomial Theorem →


where the sum runs over all tuples (k1,k2,,kr)(k_1, k_2, \ldots, k_r) of non-negative integers with k1+k2++kr=nk_1 + k_2 + \cdots + k_r = n.

The Coefficient


The coefficient is the multinomial coefficient

(nk1,k2,,kr)=n!k1!k2!kr!,\binom{n}{k_1, k_2, \ldots, k_r} = \frac{n!}{k_1! \, k_2! \, \cdots \, k_r!},


which counts the number of ways to partition nn items into rr labeled groups of the specified sizes. The binomial theorem is the case r=2r = 2: the coefficient (nk,nk)\binom{n}{k, \, n-k} collapses to the ordinary binomial coefficient (nk)\binom{n}{k}.

Number of Terms


The number of distinct terms in the multinomial expansion equals the number of tuples of non-negative integers summing to nn, which is a weak composition count:

(n+r1r1).\binom{n+r-1}{r-1}.


For the binomial case r=2r = 2 this gives (n+11)=n+1\binom{n+1}{1} = n+1, matching the count from the binomial theorem.

Worked Expansions


Four worked examples covering the standard problem types.

Full Expansion: (x+2)4(x+2)^4


Substitute a=xa = x and b=2b = 2. The coefficients are row 4 of Pascal's triangle: 1,4,6,4,11, 4, 6, 4, 1. The expansion is

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


Expansion with Signs: (2a3b)3(2a - 3b)^3


Substitute the first base as 2a2a and the second as 3b-3b. Row 3 coefficients are 1,3,3,11, 3, 3, 1:

(2a3b)3=(2a)3+3(2a)2(3b)+3(2a)(3b)2+(3b)3.(2a - 3b)^3 = (2a)^3 + 3(2a)^2(-3b) + 3(2a)(-3b)^2 + (-3b)^3.


Simplifying each term:

(2a3b)3=8a336a2b+54ab227b3.(2a - 3b)^3 = 8a^3 - 36a^2 b + 54a b^2 - 27 b^3.


The alternating signs come directly from the powers of 3b-3b.

Single Coefficient: x5x^5 in (1+x)8(1+x)^8


The general term of (1+x)8(1+x)^8 is Tk+1=(8k)xkT_{k+1} = \binom{8}{k} x^k. The coefficient of x5x^5 comes from k=5k = 5:

(85)=56.\binom{8}{5} = 56.


No need to expand the full polynomial.

Term Independent of xx in (x+1x)10\left(x + \frac{1}{x}\right)^{10}


The general term is

Tk+1=(10k)x10k(1x)k=(10k)x102k.T_{k+1} = \binom{10}{k} x^{10-k} \left(\frac{1}{x}\right)^k = \binom{10}{k} x^{10 - 2k}.


The term is independent of xx when 102k=010 - 2k = 0, i.e. k=5k = 5. The constant term is

(105)=252.\binom{10}{5} = 252.


Multinomial Expansion: (a+b+c)3(a+b+c)^3


The tuples (k1,k2,k3)(k_1, k_2, k_3) of non-negative integers summing to 3 are: (3,0,0)(3,0,0), (0,3,0)(0,3,0), (0,0,3)(0,0,3), (2,1,0)(2,1,0), (2,0,1)(2,0,1), (1,2,0)(1,2,0), (0,2,1)(0,2,1), (1,0,2)(1,0,2), (0,1,2)(0,1,2), (1,1,1)(1,1,1). The corresponding coefficients are 1,1,1,3,3,3,3,3,3,61, 1, 1, 3, 3, 3, 3, 3, 3, 6:

(a+b+c)3=a3+b3+c3+3a2b+3a2c+3ab2+3b2c+3ac2+3bc2+6abc.(a+b+c)^3 = a^3 + b^3 + c^3 + 3a^2 b + 3a^2 c + 3a b^2 + 3 b^2 c + 3a c^2 + 3 b c^2 + 6abc.


The number of terms, (3+3131)=(52)=10\binom{3+3-1}{3-1} = \binom{5}{2} = 10, matches the count of distinct monomials above.
Problem type Setup Key step Answer
Full expansion (x + 2)4; row 4 = 1, 4, 6, 4, 1 substitute b = 2 into each term x4 + 8x3 + 24x2 + 32x + 16
Expansion with signs (2a − 3b)3; row 3 = 1, 3, 3, 1 track the sign of (−3b)k in each term 8a3 − 36a2b + 54ab2 − 27b3
One specific coefficient coefficient of x5 in (1 + x)8 general term gives k = 5; compute C(8, 5) 56
Term independent of x (x + 1⁄x)10 solve 10 − 2k = 0 → k = 5 C(10, 5) = 252
Multinomial expansion (a + b + c)3 enumerate all (k₁, k₂, k₃) with k₁+k₂+k₃ = 3 10 distinct monomials including 6abc

Related Concepts


Polynomials — polynomial identities, factoring, and the structure of expansions in algebra rest on the binomial theorem and its generalizations.

Binomial Distribution — the binomial distribution in probability is constructed directly from the binomial theorem; the probabilities of all possible outcome counts sum to 11 by the substitution a=pa = p, b=1pb = 1-p.

Binomial Theorem at a Glance


The page covered the theorem statement, the general-term formula, useful substitutions that yield combinatorial identities, the multinomial generalization, and the standard problem types. The table below collects the structural facts about (a+b)n in one reference card.
Concept Statement Example
The theorem (a + b)n = Σk=0n C(n, k) · an−k · bk (x + y)3 = x3 + 3x2y + 3xy2 + y3
Number of terms exactly n + 1, one for each k from 0 to n (a + b)5 has 6 terms
General term Tk+1 = C(n, k) · an−k · bk; indexing starts at T1 = an T3 in (a + b)4 is C(4, 2) a2b2 = 6a2b2
Coefficients = Pascal row the n+1 coefficients are row n of Pascal's triangle (a + b)4: 1, 4, 6, 4, 1
Coefficient symmetry C(n, k) = C(n, n − k) — each row reads the same forwards and backwards 1, 4, 6, 4, 1 is palindromic
Middle term (n even) one middle term Tn/2 + 1 with the largest coefficient C(n, n/2) (a + b)6: T4 = 20 a3b3
Middle terms (n odd) two middle terms T(n+1)/2 and T(n+3)/2 with equal coefficients (a + b)5: T3 and T4, both coefficient 10
Multinomial generalization (x₁ + … + xr)n = Σ C(n; k₁, …, kr) · x₁k₁…xrkr with k₁ + … + kr = n (a + b + c)3: 10 distinct monomials
Multinomial term count distinct monomials = C(n + r − 1, r − 1) — a weak-composition count (a+b+c)3: C(5, 2) = 10
Where it appears polynomial expansions, binomial distribution (substitute a = p, b = 1−p), Newton's generalized binomial series for non-integer n (p + (1−p))n = 1 sums all binomial probabilities