Expand Expression Calculator

Multiply out brackets and collect the like terms.

Use letters, brackets, + − × ÷ and whole powers.

Try

Result

You entereda2+2ab+b2a^{2} + 2ab + b^{2}

a2+2ab+b2\displaystyle a^{2} + 2ab + b^{2}

Degree

2\displaystyle 2

Number of terms

3\displaystyle 3
Show the work
  1. Distributive property

    Multiply every term in each bracket by every term it is multiplied with, keeping each sign with its term. Each multiplication uses the distributive property.

    Using k(p+q)=kp+kqk\left(p + q\right) = kp + kq

    a2+ab+ab+b2a^{2} + ab + ab + b^{2}
  2. Collect like terms

    Like terms have the same letters with the same powers, so their coefficients can be added. Add the numbers in front of each group of like terms.

    Using ax+bx=(a+b)xax + bx = \left(a + b\right)x

    ab+ab=(1+1)ab=2ab\begin{aligned} ab + ab &= \left(1 + 1\right)ab \\ &= 2ab \end{aligned}
  3. Result

    So the expanded form is a2+2ab+b2a^{2} + 2ab + b^{2}.

Worked examples