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(x+2)4\left(x + 2\right)^{4}

24x2\displaystyle 24x^{2}
Show the work
  1. Binomial theorem

    Write the bracket as (a+b)n(a + b)^n with a=xa = x, b=2b = 2 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)(x)4−k(2)k\begin{aligned} T_{k+1} &= \binom{n}{k}\,a^{n-k}\,b^{k} \\ &= \binom{4}{k}\left(x\right)^{4-k}\left(2\right)^{k} \end{aligned}
  3. Middle term

    n=4n = 4 is even, so there are n+1=5n + 1 = 5 terms and a single middle one, T3T_{3}.

    T3:  k=2T_{3}: \; k = 2
  4. Term T_3

    Put k=2k = 2 into the general term.

    (42)(x)2(2)2=24x2\binom{4}{2}\left(x\right)^{2}\left(2\right)^{2} = 24x^{2}
  5. Result

    The middle term is 24x224x^{2}.

Worked examples