letx=

Algebra

Binomial theorem

Expands (a+b)n without multiplying out brackets; the coefficients are the numbers in Pascal's triangle.

(a+b)n=∑k=0n(nk)an−kbk
General term (the calculator)coefficient of xk in (ax+b)n=(nk)akbn−k

Calculator

The live calculator needs JavaScript. The worked example below shows the same steps it would.

See it move

11112113311464115101051161520156117213535217118285670562881193684126126843691110451202102522101204510111155165330462462330165551111126622049579292479249522066121
  • Row 5 of Pascal’s triangle: 1, 5, 10, 10, 5, 1
  • Highlighted: C(5, 2) = 10

What the symbols mean

n
the power the bracket is raised to (a whole number 0, 1, 2, …)
k
which term: the calculator gives the coefficient of xk in (ax+b)n
(nk)
the binomial coefficient "n choose k" =n!k!(n−k)!
a
in the calculator, the coefficient of x inside the bracket
b
in the calculator, the constant inside the bracket
T
the coefficient of xk: (nk)akbn−k

When to use it

Use it to expand a bracket raised to a power, or to pick out one term ("find the coefficient of x3 in (2x−1)7") without writing the whole expansion. It also underlies the binomial probability distribution, where the same coefficients count arrangements.

Worked example

Find the coefficient of x² in (2x + 3)⁵. Here a = 2, b = 3, n = 5 and k = 2.

  1. Start from the formula.

    T=(nk)⁢ak⁢bn−k
  2. Substitute a = 2, b = 3, n = 5, k = 2 and work it out.

    T=(52)·22·35−2
    =10·4·33
    =40·27
    =1080
  3. For reference, the whole expansion:

    (2x+3)5=32x5+240x4+720x3+1080x2+810x+243

Answer The coefficient is 1080

Why it works

Multiplying out (a+b)n means choosing a or b from each of the n brackets. A term an−kbk arises once for every way of choosing which k brackets supply b, and there are (nk) such ways.

Common mistakes

  • Forgetting to raise the coefficient: in (2x+3)5 the x2 term contains (2x)2=4x2, not 2x2.
  • Dropping a negative sign: in (x−1)4, b = −1, so the signs alternate.
  • Mixing up which power goes with which: in (nk)akbn−k the powers always add up to n.