Binomial Theorem Calculator

Type a binomial such as (x + 2)^5 to expand it or to find a particular term.

A bracket of two terms to a whole power from 1 to 30, such as (x + 2)^5 or (2x - 1)^4.

Try

Result

You entered(2x+−1)4\left(2x + -1\right)^{4}

16x4−32x3+24x2−8x+1\displaystyle 16x^{4} - 32x^{3} + 24x^{2} - 8x + 1
Show the work
  1. Binomial theorem

    Write the bracket as (a+b)n(a + b)^n with a=2xa = 2x, b=−1b = -1 and n=4n = 4. The theorem gives every term of the expansion.

    Using (a+b)n=∑k=0n(nk)an−kbk(a + b)^n = \sum_{k=0}^{n}\binom{n}{k}a^{n-k}b^k

  2. General term

    The term with kk factors of bb is Tk+1T_{k+1}, for k=0,1,…,nk = 0, 1, \ldots, n.

    Tk+1=(nk) an−k bk=(4k)(2x)4−k(−1)k\begin{aligned} T_{k+1} &= \binom{n}{k}\,a^{n-k}\,b^{k} \\ &= \binom{4}{k}\left(2x\right)^{4-k}\left(-1\right)^{k} \end{aligned}
  3. Write out the terms

    Put k=0,1,…,4k = 0, 1, \ldots, 4 into the general term.

    (40)(2x)4+(41)(2x)3(−1)+(42)(2x)2(−1)2+(43)(2x)(−1)3+(44)(−1)4\binom{4}{0}\left(2x\right)^{4} + \binom{4}{1}\left(2x\right)^{3}\left(-1\right) + \binom{4}{2}\left(2x\right)^{2}\left(-1\right)^{2} + \binom{4}{3}\left(2x\right)\left(-1\right)^{3} + \binom{4}{4}\left(-1\right)^{4}
  4. Work out each term

    Multiply the binomial coefficient by the powers of aa and bb.

    T1=16x4T2=−32x3T3=24x2T4=−8xT5=1\begin{gathered} T_{1} = 16x^{4} \\ T_{2} = -32x^{3} \\ T_{3} = 24x^{2} \\ T_{4} = -8x \\ T_{5} = 1 \end{gathered}
  5. Result

    The expansion is 16x4−32x3+24x2−8x+116x^{4} - 32x^{3} + 24x^{2} - 8x + 1.

    (2x+−1)4=16x4−32x3+24x2−8x+1\left(2x + -1\right)^{4} = 16x^{4} - 32x^{3} + 24x^{2} - 8x + 1

Worked examples