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 an−kbka^{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

Multiplying out (a + b)² is quick; (a + b)¹⁰ by hand is not. Is there a pattern?
Expand the first few powers and look only at the numbers in front of each term.
The coefficients of the first few powers form the rows of Pascal's triangle.
n(a + b)ⁿ expandedcoefficients
1a + b1, 1
2a² + 2ab + b²1, 2, 1
3a³ + 3a²b + 3ab² + b³1, 3, 3, 1
4a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴1, 4, 6, 4, 1
Each row of coefficients comes from the row above by adding neighbours: 1,3,3,11, 3, 3, 1 gives 1,4,6,4,11, 4, 6, 4, 1.
The coefficient of aⁿ⁻ᵏbᵏ counts the ways to pick the k factors that supply a b.

Combinatorial Proof

Write (a+b)n(a+b)^n as the product
The Theorem
(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 an−kbka^{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.
The 8 picks from (a + b)(a + b)(a + b), grouped by the number of b’spick a or b from each factor of (a + b)(a + b)(a + b)8 = 2 × 2 × 2 picks in all, sorted by how many b’s they takeno baaa1 pick = C(3,0)a³+one baabababaa3 picks = C(3,1)3a²b+two b’sabbbabbba3 picks = C(3,2)3ab²+three b’sbbb1 pick = C(3,3)b³(a + b)³ = a³ + 3a²b + 3ab² + b³
Every pick, sorted by its b's

Multiplying out (a + b)(a + b)(a + b) means taking a or b from each of the three factors, 2 × 2 × 2 = 8 picks in all. Sort the picks by how many b’s they take: one pick has none, three have one, three have two, one has three. Each column is a set of positions chosen for the b’s, so its size is C(3, k), and all its picks multiply to the same a³⁻ᵏbᵏ — which is why that binomial coefficient becomes the term’s coefficient.

The coefficients 1, 3, 3, 1 are row 3 of Pascal's triangle; with four factors the same sorting gives 1, 4, 6, 4, 1.
The definition
The binomial theorem expands any whole-number power of a sum, with binomial coefficients as the coefficients: (a+b)n=∑k=0n(nk)an−kbk(a + b)^n = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^k.
For any non-negative integer nn and any values aa and bb,
Binomial Theorem
(a+b)n=∑k=0n(nk)an−kbk.(a + b)^n = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^k.
Learn more about this formula: Binomial Theorem →
COROLLARY
The expansion has exactly n+1n+1 terms, indexed by kk from 00 through nn.
So (a+b)4=a4+4a3b+6a2b2+4ab3+b4(a + b)^4 = a^4 + 4a^3b + 6a^2b^2 + 4ab^3 + b^4, with coefficients (40),…,(44)=1,4,6,4,1\binom{4}{0}, \ldots, \binom{4}{4} = 1, 4, 6, 4, 1.
The theorem joins algebra and counting.
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. The ∑\sum summation sign and the rest of the theorem's notation are collected among the combinatorics symbols.
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.
Fact: A prime exponent divides the middle
For a prime pp, every coefficient of (a+b)p(a + b)^p except the two end 11s is a multiple of pp: rotating the pp factors in a circle sorts the choices of kk factors into groups of exactly pp. Row 77 reads 1,7,21,35,35,21,7,11, 7, 21, 35, 35, 21, 7, 1.
Each coefficient of (a+b)n(a + b)^n counts the ways to choose which factors supply the bb's.

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 middle terms are the heart of the expansion, not a detail.
Pitfall: Dropping the middle terms
Writing (a+b)2(a + b)^2 as a2+b2a^2 + b^2 keeps only the two end terms. With a=2a = 2 and b=3b = 3 that gives 4+9=134 + 9 = 13, but (2+3)2=25(2 + 3)^2 = 25; the missing middle term is 2ab=122ab = 12.
The rest of the page covers the general term, special cases, notation, the multinomial theorem, worked expansions and related concepts.
The theorem used as a procedure, on the smallest case that already shows the trap.
DownloadPNG2×PDF
Binomial theorem

The Binomial Theorem, applied

The statement, then the steps on (a+b)2(a + b)^2.
TheoremFor any non-negative integer nn and any values aa and bb: (a+b)n=∑k=0n(nk)an−kbk(a + b)^n = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^k.
1
Count the terms
n=2n = 2, so the expansion has n+1=3n + 1 = 3 terms, indexed by k=0,1,2k = 0, 1, 2.
2
Coefficients
Row 22 of Pascal’s triangle: (20),(21),(22)=1,2,1\binom{2}{0}, \binom{2}{1}, \binom{2}{2} = 1, 2, 1.
3
Terms
(a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2.
4
Check
With a=2a = 2 and b=3b = 3: 4+12+9=25=(2+3)24 + 12 + 9 = 25 = (2 + 3)^2.
Dropping the middle termsWriting (a+b)2(a + b)^2 as a2+b2a^2 + b^2 keeps only the two end terms. With a=2a = 2 and b=3b = 3 that gives 4+9=134 + 9 = 13, but (2+3)2=25(2 + 3)^2 = 25; the missing middle term is 2ab=122ab = 12.
The Binomial Theorem, applied·/combinatorics/binomial-theoremLearn Math Class
Row nn of Pascal’s triangle supplies the coefficients; the exponents of aa fall as those of bb rise.

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)an−kbk.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


Special Cases
(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


Special Cases
(1−1)n=0=∑k=0n(−1)k(nk)for n≥1.(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


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

Fact: Powers of 11 spell out the rows
114=(1+10)4=1464111^4 = (1 + 10)^4 = 14641 reads row 44, 1,4,6,4,11, 4, 6, 4, 1, as digits. From row 55 on, entries of 1010 or more carry into the next digit, so 115=16105111^5 = 161051 hides the row 1,5,10,10,5,11, 5, 10, 10, 5, 1.

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.

Substituting a number for xx adds up the whole row with weights. With x=2x = 2 the entries of row nn are weighted by 1,2,4,…1, 2, 4, \ldots and the total is 3n3^n. With x=10x = 10 they are weighted by 1,10,100,…1, 10, 100, \ldots, the place values of decimal digits.

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)=n⋅2n−1.\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.
DownloadPNG2×PDF
Layout
SubstitutionIdentity producedCombinatorial meaning
a = 1, b = 1Σₖ₌₀ⁿ C(n, k) = 2ⁿrow sum = total number of subsets of an n-set
a = 1, b = −1Σₖ₌₀ⁿ (−1)ᵏ C(n, k) = 0 for n ≥ 1even-sized subsets are as numerous as odd-sized ones
a = 1, b = x(1 + x)ⁿ = Σₖ₌₀ⁿ C(n, k) xᵏgenerating function for row n of Pascal's triangle
Differentiate, then x = 1Σₖ₌₁ⁿ k · C(n, k) = n · 2ⁿ⁻¹weighted row sum; combinatorial proofs by double counting also work
Special CasesLearn Math Class
n = 0n = 1n = 2n = 3n = 4sum = 16 = 2⁴n = 5n = 61111211331146C(4, 2)41151010511615201561ROW 4 = COEFFICIENTS OF (a + b)⁴(a + b)⁴ = a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴
Row 4 sums to 16 = 2⁴

The whole of row 4 is highlighted and its entries total 16, which is the substitution a = b = 1 carried out in the array instead of in the algebra. Reading the same row as a count of subsets explains why the total is a power of two: each of the 4 items is independently either in or out. Highlight any row and watch its total double on the Pascal’s triangle visualizer.

The other substitutions work the same way: each one turns a free choice of a and b into a statement about the coefficients themselves.

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=nki≥0(nk1,k2,…,kr)x1k1x2k2⋯xrkr.(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

The Multinomial Theorem
(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, n−k)\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:

The Multinomial Theorem
(n+r−1r−1).\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.

Pitfall: Counting n + 1 terms for three summands
Counting the terms of (a+b+c)3(a + b + c)^3 as 3+1=43 + 1 = 4 carries the binomial count over to a base with three summands. With r=3r = 3 the count is (3+22)=(52)=10\binom{3 + 2}{2} = \binom{5}{2} = 10.

The count grows with both numbers in the problem: the exponent nn and the number of summands rr. Each extra summand is one more letter that can take a share of the exponent, so the list of possible monomials lengthens quickly even for small powers. Collecting the terms of an expansion therefore starts with knowing how many distinct monomials to expect.
4!/(2! · 1! · 1!) = 12Complete · 12 / 12SOURCE (n = 4)1234BUILD BOXES (2+1+1)BOX A (2)BOX B (1)BOX C (1)COMPLETED12 / 12→ BoxA123412431324134214231432→ BoxB231424133412→ BoxC234124313421
Four items into boxes of 2, 1 and 1

The coefficient of x₁²x₂x₃ in (x₁ + x₂ + x₃)⁴ counts the ways to hand the 4 factors to three labelled groups: two factors give x₁, one gives x₂, one gives x₃. Filling Box A with 2 of the 4 items, then Box B and Box C with 1 each, gives 4!/(2!·1!·1!) = 12 partitions, so the term is 12x₁²x₂x₃. Try other group sizes on the partition into groups visualizer.

With only two boxes, of sizes k and n - k, the same count is the binomial coefficient: the binomial theorem is the two-group case.
The theorem as a procedure: read the coefficient, count the terms, and check the binomial case falls out.
DownloadPNG2×PDF
Multinomial theorem

The Multinomial Theorem

The binomial theorem for a base with rr summands.
Theorem(x1+⋯+xr)n=∑(nk1,…,kr)x1k1⋯xrkr(x_1 + \cdots + x_r)^n = \sum \binom{n}{k_1, \ldots, k_r} x_1^{k_1} \cdots x_r^{k_r}, the sum over all non-negative k1+⋯+kr=nk_1 + \cdots + k_r = n.
1
The coefficient
(nk1,…,kr)=n!k1!⋯kr!\binom{n}{k_1, \ldots, k_r} = \dfrac{n!}{k_1! \cdots k_r!}: the ways to partition nn items into rr labelled groups of the given sizes.
2
Binomial case
r=2r = 2: (nk, n−k)\binom{n}{k, \, n-k} collapses to (nk)\binom{n}{k}.
3
Number of terms
(n+r−1r−1)\binom{n + r - 1}{r - 1}, the number of weak compositions of nn into rr parts; for r=2r = 2 this is n+1n + 1.
4
Example
(a+b+c)3(a + b + c)^3: r=3r = 3, so (52)=10\binom{5}{2} = 10 distinct terms.
Counting n+1n + 1 terms for three summandsCounting the terms of (a+b+c)3(a + b + c)^3 as 3+1=43 + 1 = 4 carries the binomial count over to a base with three summands. With r=3r = 3 the count is (3+22)=(52)=10\binom{3 + 2}{2} = \binom{5}{2} = 10.
The Multinomial Theorem, applied·/combinatorics/binomial-theoremLearn Math Class
Each extra summand is one more letter that can take a share of the exponent, so the number of terms grows with rr as well as with nn.

Binomial Expansion Notation

Notation

Binomial Expansion Notation

The theorem's machinery in three marks: the sigma that folds an expansion into one expression, the term labels with their built-in shift, and the sum whose subscript is an equation.
(nk)\binom{n}{k} and the multinomial coefficient are owned by binomial coefficient notation, n!n! by permutation notation; the alternating (−1)k(-1)^k of Special Cases above is the device solution sets formalize.
∑k=0n\sum_{k=0}^{n}
the sum as k runs from zero to n
The expansion compressor: capital sigma with its counter declared below and its stopping point above — n+1n + 1 terms folded into one expression in The Theorem above. The letter is an operator, not a quantity.
CasesThe counter kk is a bound (dummy) variable — the sum's value never mentions it, the same disappearing act as the dummy variable of integration; renaming kk to jj changes nothing.
Do not confuseA product of sigma and its neighbors. Nothing multiplies — everything to the right of the sigma sits inside its scope; how far the scope reaches is convention, and brackets settle any dispute.
Tk+1T_{k+1}
the k-plus-first term
Term labels with a built-in shift: numbering starts at T1T_1 — the term with no bb — so the term containing bkb^k is Tk+1T_{k+1}, never TkT_k; the Index Convention of The General Term above.
CasesThe middle term inherits the shift — even nn puts it at Tn/2+1T_{n/2+1}; every "find the 7th term" problem is really a k=6k = 6 computation, and writing that translation down first prevents the classic slip.
Do not confuseZero-based counting. The exponent kk runs from 00, the label TT from 11 — two counters one step apart riding the same term; conflating them is the standard error of expansion problems.
∑k1+⋯+kr=n\sum_{k_1 + \cdots + k_r = n}
the sum over all splittings of n
Summation with an equation for a subscript: the index set is every non-negative solution of k1+⋯+kr=nk_1 + \cdots + k_r = n — one term per way of splitting nn, as The Multinomial Theorem above deploys it.
CasesThe constraint replaces bounds entirely — no corners, just a membership condition under the sigma, with extra conditions stacked beneath (ki≥0k_i \geq 0): a miniature set-builder doing index duty.
Do not confuseA single running index. No one counter exists here — the sum ranges over tuples; expanding it as if one kk walks from somewhere to nn produces phantom terms and misses most of the real ones.
DownloadPNG2×PDF
Notation · Cheat sheet
Combinatorics Notation at a Glance
The marks from the notation cards across the combinatorics pages: how each is read and what it means. Every group links to the full card on its page.
Permutations
n!n!
n factorial
n×(n−1)×⋯×1n \times (n-1) \times \cdots \times 1: the count of complete rearrangements.
P(n,r)P(n, r) · nPr_nP_r
P n r; n permute r
Ordered selections of rr from nn: n!/(n−r)!n!/(n-r)!.
!n!n · DnD_n
subfactorial n; derangements of n
Permutations that leave nothing in its place.
Binomial coefficient
(nk)\binom{n}{k}
n choose k
Unordered selections of kk from nn; no bar between the numbers.
C(n,k)C(n, k) · nCk_nC_k
C n k; n choose k on a calculator
The linear spellings: introductory texts, and calculator keys.
CnkC_n^k vs CknC_k^n
C with n and k in the corners
The European forms; which corner holds nn varies by tradition.
Binomial theoremThis page
∑k=0n\textstyle\sum_{k=0}^{n}
the sum as k runs from zero to n
Sigma folds the n+1n + 1 terms of the expansion into one expression.
Tk+1T_{k+1}
the k-plus-first term
The term containing bkb^k; numbering starts at T1T_1.
∑k1+⋯+kr=n\textstyle\sum_{k_1 + \cdots + k_r = n}
the sum over all splittings of n
One term for every way of writing nn as rr non-negative parts.
Same marks, different job
(nk)\binom{n}{k}A count; not a fraction with its bar missing, and not a column vector.
P(n,r)P(n, r) vs P(A)P(A)A permutation count here; a probability in probability.
!n!n vs n!n!The position decides: derangements before the number, factorial after it.
CnkC_n^kRead the corners by the book’s convention; nn may sit on top or below.
Combinatorics Notation at a Glance·/combinatoricsLearn Math Class

Worked Expansions


Five 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

Worked Expansions
(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.

Pitfall: Writing b instead of its power
Using 22 in every term instead of 2k2^k gives x4+8x3+12x2+8x+2x^4 + 8x^3 + 12x^2 + 8x + 2. The term with x2x^2 takes 22=42^2 = 4, so it is 6x2(4)=24x26x^2(4) = 24x^2, and the last term is 24=162^4 = 16.

Each term of the expansion is a product of three parts: a coefficient from row 44, a power of xx that falls from x4x^4 to x0x^0, and a power of the second summand. In every term the two exponents add up to 44. Checking that sum term by term is a quick way to confirm that no part of a term was left out.

Expansion with Signs: (2a−3b)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:

Worked Expansions
(2a−3b)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:

Worked Expansions
(2a−3b)3=8a3−36a2b+54ab2−27b3.(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.

Pitfall: Making every term after the first negative
Writing a minus before each later term gives 8a3−36a2b−54ab2−27b38a^3 - 36a^2 b - 54ab^2 - 27b^3. The third term holds (−3b)2=9b2(-3b)^2 = 9b^2, which is positive, so it is +54ab2+54ab^2.

The same approach works for any difference (a−b)n(a - b)^n: it is the sum (a+(−b))n(a + (-b))^n, so the coefficients are still row nn of Pascal's triangle. The second summand is carried into every term together with its sign, and each power of it is worked out before the term is simplified. Only the signs of the terms can differ from those of (a+b)n(a + b)^n.

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:

Worked Expansions
(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

Worked Expansions
Tk+1=(10k)x10−k(1x)k=(10k)x10−2k.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 10−2k=010 - 2k = 0, i.e. k=5k = 5. The constant term is

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

Pitfall: Ignoring the power from 1/x
Solving 10−k=010 - k = 0, from the first summand alone, gives k=10k = 10 and the answer 11; that term is (1010)x−10\binom{10}{10} x^{-10}, not a constant. With (1x)k\left(\frac{1}{x}\right)^k included, 10−2k=010 - 2k = 0 gives k=5k = 5 and 252252.

The same method finds the term with any chosen power of xx. The exponent of xx in the general term, here 10−2k10 - 2k, is set equal to the target power and solved for kk. A solution that is not a whole number from 00 to 1010 means that power does not appear in the expansion at all; for example, x3x^3 would need k=3.5k = 3.5.

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:

Worked Expansions
(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+3−13−1)=(52)=10\binom{3+3-1}{3-1} = \binom{5}{2} = 10, matches the count of distinct monomials above.
DownloadPNG2×PDF
Layout
Problem typeSetupKey stepAnswer
Full expansion(x + 2)⁴; row 4 = 1, 4, 6, 4, 1substitute b = 2 into each termx⁴ + 8x³ + 24x² + 32x + 16
Expansion with signs(2a − 3b)³; row 3 = 1, 3, 3, 1track the sign of (−3b)ᵏ in each term8a³ − 36a²b + 54ab² − 27b³
One specific coefficientcoefficient of x⁵ in (1 + x)⁸general term gives k = 5; compute C(8, 5)56
Term independent of x(x + 1⁄x)¹⁰solve 10 − 2k = 0 → k = 5C(10, 5) = 252
Multinomial expansion(a + b + c)³enumerate all (k₁, k₂, k₃) with k₁+k₂+k₃ = 310 distinct monomials including 6abc
Worked ExpansionsLearn Math Class
The second worked example of this section, (2a − 3b)³, one move at a time. Watch where each sign comes from.
DownloadPNG2×PDF
Binomial theorem

Expanding a power of a difference

A difference is a sum with a negative second summand: the coefficients are still a row of Pascal's triangle, and the signs come from the powers of −3b-3b.
01
Power of a differenceBefore
(2a−3b)3(2a - 3b)^3
↓Substitute into row 3— bases 2a and −3b, coefficients 1, 3, 3, 1
02
Term by term
(2a)3+3(2a)2(−3b)+3(2a)(−3b)2+(−3b)3(2a)^3 + 3(2a)^2(-3b) + 3(2a)(-3b)^2 + (-3b)^3
↓Simplify each term— work out each power of −3b, sign included, before multiplying
03
Expanded polynomialAfter
8a3−36a2b+54ab2−27b38a^3 - 36a^2 b + 54ab^2 - 27b^3
The third term holds (−3b)2=9b2(-3b)^2 = 9b^2, which is positive, so it is +54ab2+54ab^2. Writing a minus before every term after the first gives the wrong −54ab2-54ab^2.
Expanding (2a − 3b)³·/combinatorics/binomial-theoremLearn Math Class
Odd powers of −3b-3b are negative and even powers positive, so the signs alternate. Any (a−b)n(a - b)^n works the same way: it is (a+(−b))n(a + (-b))^n, with the coefficients from row nn.

Common Pitfalls

Six mistakes come up again and again when expanding powers with the binomial theorem. Five are marked where they happen in the sections above; the sixth, numbering the terms by the power of bb, is the one the index convention in The General Term guards against. Here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Dropping the middle terms
The power of a sum is expanded as the sum of the powers, (a+b)n=an+bn(a + b)^n = a^n + b^n. Only the two end terms of the expansion survive, and the n−1n - 1 terms that mix aa and bb are lost.
Wrong turn
Error here
(x+3)2=x2+9(x + 3)^2 = x^2 + 9.
Right path
(x+3)2=(20)x2+(21)x⋅3+(22)32=x2+6x+9(x + 3)^2 = \binom{2}{0} x^2 + \binom{2}{1} x \cdot 3 + \binom{2}{2} 3^2 = x^2 + 6x + 9.
Why it happensPowers do spread over products, (ab)n=anbn(ab)^n = a^n b^n, and the same move looks just as natural for sums.
How to checkSubstitute a number. With x=1x = 1, (1+3)2=16(1 + 3)^2 = 16, while 1+9=101 + 9 = 10 and 1+6+9=161 + 6 + 9 = 16. Counting terms also catches it: the theorem gives n+1n + 1 terms, and an+bna^n + b^n has only two.
2Using the power of b as the term number
A term asked for by its position is computed with kk equal to that position. Terms are numbered from T1T_1, the term with b0b^0, so the term number is always one more than the power of bb.
Wrong turn
Error here
The 4th term of (a+b)10(a + b)^{10} is taken as (104)a6b4=210a6b4\binom{10}{4} a^6 b^4 = 210 a^6 b^4.
Right path
T4=T3+1T_4 = T_{3+1}, so k=3k = 3 and T4=(103)a7b3=120a7b3T_4 = \binom{10}{3} a^7 b^3 = 120 a^7 b^3.
Why it happensTwo counters run side by side, the power kk starting from 00 and the term number starting from 11, and the formula Tk+1T_{k+1} hides the shift in a subscript.
How to checkList the first terms by their powers of bb: T1T_1 has b0b^0, T2T_2 has b1b^1, T3T_3 has b2b^2 and T4T_4 has b3b^3.
3Counting n + 1 terms for three summands
The number of terms of a multinomial expansion is taken from the binomial rule, n+1n + 1, or from the number of products before like terms are collected, rnr^n.
Wrong turn
Error here
(a+b+c)3(a + b + c)^3 is said to have 3+1=43 + 1 = 4 terms, or 33=273^3 = 27 terms.
Right path
The distinct monomials match the tuples (k1,k2,k3)(k_1, k_2, k_3) of non-negative integers with k1+k2+k3=3k_1 + k_2 + k_3 = 3, and there are (3+3−13−1)=(52)=10\binom{3 + 3 - 1}{3 - 1} = \binom{5}{2} = 10 of them. The 2727 products collect into these 1010 terms, as the coefficients show: 3⋅1+6⋅3+1⋅6=273 \cdot 1 + 6 \cdot 3 + 1 \cdot 6 = 27.
Why it happensThe rule n+1n + 1 is learned first, for two summands, and is easy to reuse without asking where it came from. The count rnr^n counts the choices from the factors before equal monomials are combined.
How to checkList the monomials by their exponent patterns. For (a+b+c)3(a + b + c)^3 the pattern (3,0,0)(3, 0, 0) can be arranged in 33 ways, (2,1,0)(2, 1, 0) in 66 ways and (1,1,1)(1, 1, 1) in 11 way: 3+6+1=103 + 6 + 1 = 10.
4Writing b instead of its power
In each term, the second summand is written once instead of being raised to the power kk. The coefficients from Pascal's triangle are right, but every term from the third one on comes out wrong.
Wrong turn
Error here
(x+2)4=x4+4x3(2)+6x2(2)+4x(2)+2=x4+8x3+12x2+8x+2(x + 2)^4 = x^4 + 4x^3(2) + 6x^2(2) + 4x(2) + 2 = x^4 + 8x^3 + 12x^2 + 8x + 2.
Right path
(x+2)4=x4+4x3(2)+6x2(22)+4x(23)+24=x4+8x3+24x2+32x+16(x + 2)^4 = x^4 + 4x^3(2) + 6x^2(2^2) + 4x(2^3) + 2^4 = x^4 + 8x^3 + 24x^2 + 32x + 16.
Why it happensWhen the second summand is a plain number, it is easy to treat it as part of the coefficient and copy it instead of raising it to a power.
How to checkThe exponents in every term must add up to nn. In 6x2(2)6x^2(2) they add up to 2+1=32 + 1 = 3, not 44. Substituting x=1x = 1 also works: (1+2)4=81(1 + 2)^4 = 81, and 1+8+24+32+16=811 + 8 + 24 + 32 + 16 = 81, while 1+8+12+8+2=311 + 8 + 12 + 8 + 2 = 31.
5Making every term after the first negative
In the expansion of a difference, a minus sign is written before every term after the first. The sign belongs to the second summand, so it is raised to the power kk along with it, and every even power makes it positive.
Wrong turn
Error here
(2a−3b)3=8a3−36a2b−54ab2−27b3(2a - 3b)^3 = 8a^3 - 36a^2 b - 54ab^2 - 27b^3.
Right path
The terms carry (−3b)0=1(-3b)^0 = 1, (−3b)1=−3b(-3b)^1 = -3b, (−3b)2=9b2(-3b)^2 = 9b^2 and (−3b)3=−27b3(-3b)^3 = -27b^3, so (2a−3b)3=8a3−36a2b+54ab2−27b3(2a - 3b)^3 = 8a^3 - 36a^2 b + 54ab^2 - 27b^3.
Why it happensThe minus sign in the base is read as an operation between terms rather than as part of the second summand −3b-3b.
How to checkSubstitute values. With a=b=1a = b = 1, (2−3)3=−1(2 - 3)^3 = -1. The correct expansion gives 8−36+54−27=−18 - 36 + 54 - 27 = -1, while the all-minus version gives 8−36−54−27=−1098 - 36 - 54 - 27 = -109.
6Ignoring the power from 1/x
To find the term independent of xx, only the power of xx from the first summand is set to zero. The second summand 1x\frac{1}{x} contributes a power of xx as well, namely x−kx^{-k}.
Wrong turn
Error here
In (x+1x)10\left(x + \frac{1}{x}\right)^{10}, the condition 10−k=010 - k = 0 gives k=10k = 10, and the constant term is reported as (1010)=1\binom{10}{10} = 1.
Right path
The general term is (10k)x10−kx−k=(10k)x10−2k\binom{10}{k} x^{10-k} x^{-k} = \binom{10}{k} x^{10-2k}. Setting 10−2k=010 - 2k = 0 gives k=5k = 5, and the constant term is (105)=252\binom{10}{5} = 252.
Why it happensThe power of xx in an−ka^{n-k} is the visible one, and (1x)k\left(\frac{1}{x}\right)^k does not look like a power of xx until it is rewritten as x−kx^{-k}.
How to checkPut the kk found back into the term. For k=10k = 10 the term is x0⋅x−10=x−10x^0 \cdot x^{-10} = x^{-10}, which still depends on xx; for k=5k = 5 it is x5⋅x−5=1x^5 \cdot x^{-5} = 1, times (105)=252\binom{10}{5} = 252.
Common pitfalls with the binomial theorem·/combinatorics/binomial-theoremLearn Math Class
Each slip loses part of the general term (nk)an−kbk\binom{n}{k} a^{n-k} b^k. A squared sum keeps its middle terms, the (k+1)(k + 1)-th term carries bkb^k, bb brings its own power and its own sign into every term, a summand such as 1x\frac{1}{x} adds its power to the exponent, and three summands give (n+22)\binom{n + 2}{2} terms, not n+1n + 1. Substituting simple values, listing the first terms or the monomials, or putting kk back into the term catches each slip.

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=1−pb = 1-p.

Binomial Theorem at a Glance

This summary gathers the structural facts about a power of a sum in ten rows. Each row names a fact with a line on where it comes from and a link to its section, states it, and gives an example.

It opens with the theorem, the number of terms in the expansion and the formula for a single term, counted from the term with no second variable. The coefficients are a row of Pascal's triangle and read the same in both directions, so an even power has one middle term with the largest coefficient and an odd power has two. The multinomial theorem extends all this to more than two summands and counts its terms, and a last row lists where the theorem appears.
DownloadPNG2×PDF
ConceptStatementExample
The theoremEach term counts the ways to take bb from kk of the nn factors, as the theorem proves.(a+b)n=∑k=0n(nk)an−kbk\displaystyle (a + b)^n = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^k(x+y)3=x3+3x2y+3xy2+y3(x + y)^3 = x^3 + 3x^2y + 3xy^2 + y^3
Number of termsThe index kk runs from 00 through nn, as the theorem notes.exactly n+1n + 1, one for each kk from 00 to nn(a+b)5(a + b)^5 has 66 terms
General termThe term with bkb^k is Tk+1T_{k+1}, not TkT_k, as the general term explains.Tk+1=(nk)an−kbk\displaystyle T_{k+1} = \binom{n}{k} a^{n-k} b^k; indexing starts at T1=anT_1 = a^nT3T_3 in (a+b)4(a + b)^4 is (42)a2b2=6a2b2\displaystyle \binom{4}{2} a^2b^2 = 6a^2b^2
Coefficients = Pascal rowA row of the triangle reads as the row of coefficients of the expansion (the theorem).the n+1n + 1 coefficients are row nn of Pascal's triangle(a+b)4(a + b)^4: 1,4,6,4,11, 4, 6, 4, 1
Coefficient symmetryEach coefficient equals its partner the same distance from the other end of the coefficient row.(nk)=(nn−k)\displaystyle \binom{n}{k} = \binom{n}{n-k}; each row reads the same forwards and backwards1,4,6,4,11, 4, 6, 4, 1 is palindromic
Middle term (n even)The coefficients grow from the edges toward the middle, as the middle term explains.Tn/2+1=(nn/2)an/2bn/2\displaystyle T_{n/2 + 1} = \binom{n}{n/2} a^{n/2} b^{n/2}, one middle term with the largest coefficient(a+b)6(a + b)^6: T4=20a3b3T_4 = 20a^3b^3
Middle terms (n odd)An odd power gives an even number of terms, so two share the middle; see the general term.two middle terms T(n+1)/2T_{(n+1)/2} and T(n+3)/2T_{(n+3)/2} with equal coefficients(a+b)5(a + b)^5: T3T_3 and T4T_4, both with coefficient 1010
Multinomial generalizationThe sum runs over every way to share the exponent nn among the rr summands, as the multinomial theorem states.(x1+x2+⋯+xr)n\displaystyle (x_1 + x_2 + \cdots + x_r)^n =∑k1+⋯+kr=nki≥0(nk1,…,kr)\displaystyle = \sum_{\substack{k_1 + \cdots + k_r = n \\ k_i \ge 0}} \binom{n}{k_1, \ldots, k_r} x1k1x2k2⋯xrkrx_1^{k_1} x_2^{k_2} \cdots x_r^{k_r}(a+b+c)3(a + b + c)^3: 1010 distinct monomials
Multinomial term countFor r=2r = 2 it gives n+1n + 1, matching the binomial count (the multinomial theorem).(n+r−1r−1)\displaystyle \binom{n+r-1}{r-1} distinct monomials, a weak-composition count(a+b+c)3(a + b + c)^3: (52)=10\displaystyle \binom{5}{2} = 10
Where it appearsAlgebra and probability both build on the theorem, as related concepts shows.polynomial expansions, the binomial distribution with a=pa = p and b=1−pb = 1 - p, and Newton's generalized binomial series for non-integer nn(p+(1−p))n=1(p + (1 - p))^n = 1 sums all binomial probabilities
Binomial theorem formulas·All combinatorics formulasLearn Math Class
Problems about one term need only the general term: fix the power asked for, solve for the index and evaluate a single coefficient. The whole expansion is needed only when every term is wanted, and then the row of Pascal's triangle supplies the coefficients.

Skills You Should Learn

Each skill opens its step-by-step method page. Skills marked "On this page" are taught above.
Taught on this page
More combinatorics methods
  • Compute binomial coefficientsEvaluate (nk)\binom{n}{k} by hand: switch to the smaller kk by symmetry, write kk falling factors over k!k!, and cancel before you multiply.

Binomial Theorem FAQ

How many terms does the expansion of (a + b) to the n have?

+
One more than the exponent. The powers of the first term run from n down to zero, giving n plus one values in total, and each contributes exactly one term. Squaring gives three terms, cubing gives four. Terms only merge if the two parts happen to be equal, which the general form does not assume.Read more →

How do you find one specific term without expanding everything?

+
Use the general term Tk+1=(nk)an−kbkT_{k+1} = \binom{n}{k} a^{n-k} b^k, which gives any term directly from its position. Be careful with indexing: term number k+1k + 1 carries bkb^k, so asking for the fifth term means setting k=4k = 4. Off-by-one errors here are among the most common mistakes in the topic.Read more →

Does an expansion with an odd power have a middle term?

+
It has two. An odd nn gives an even number of terms, n+1n + 1, so no single term sits in the middle; the two central ones are T(n+1)/2T_{(n+1)/2} and T(n+3)/2T_{(n+3)/2}, and their coefficients are equal by symmetry. In (a+b)5(a + b)^5 they are T3=10a3b2T_3 = 10a^3b^2 and T4=10a2b3T_4 = 10a^2b^3. Only an even nn has one middle term, Tn/2+1T_{n/2+1}.Read more →

What happens to the signs when you expand (a − b) to the n?

+
They alternate, starting positive. Treating a−ba - b as a+(−b)a + (-b) means each term carries (−b)k(-b)^k, so the terms with odd powers of bb come out negative. The coefficients themselves are unchanged; only the signs differ from the sum case.Read more →

Why are the middle coefficients of (a+b)p(a + b)^p multiples of pp when pp is prime?

+
Because turning the pp factors around a circle sorts the choices into groups of exactly pp. The coefficient (pk)\binom{p}{k} counts the ways to choose which kk factors supply a bb. For 0<k<p0 < k < p no choice is unchanged by a turn, and with pp prime each choice returns only after all pp turns, so the count is a multiple of pp. Row 77 reads 1,7,21,35,35,21,7,11, 7, 21, 35, 35, 21, 7, 1; for n=4n = 4 it fails, as (42)=6\binom{4}{2} = 6.Read more →

Why do powers of 11 look like rows of Pascal's triangle?

+
Because 11n=(1+10)n11^n = (1 + 10)^n, which is row nn weighted by 1,10,100,…1, 10, 100, \ldots, the place values of decimal digits. While every entry is a single digit, the row shows directly: 114=1464111^4 = 14641 reads 1,4,6,4,11, 4, 6, 4, 1. From row 55 on, entries of 1010 or more carry into the next digit, so 115=16105111^5 = 161051 hides the row 1,5,10,10,5,11, 5, 10, 10, 5, 1.Read more →

Can a power of x be missing from a binomial expansion?

+
Yes. In (x+1x)10\left(x + \frac{1}{x}\right)^{10} the general term is (10k)x10−2k\binom{10}{k} x^{10-2k}, so only even powers from x10x^{10} down to x−10x^{-10} occur. To test a power, set the exponent of xx equal to it and solve for kk: x3x^3 needs 10−2k=310 - 2k = 3, so k=3.5k = 3.5, which is not a whole number from 00 to 1010. That power does not appear, so its coefficient is 00.Read more →