Adding and Subtracting Polynomials Calculator

Add or subtract two polynomials and collect the like terms.

Use letters, brackets and whole powers.

Use letters, brackets and whole powers.

Try

Result

You enteredx+y+x−yx + y + x - y

2x\displaystyle 2x

Degree

1\displaystyle 1

Number of terms

1\displaystyle 1
Show the work
  1. 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

    x+x=(1+1)x=2xy−y=(1−1)y=0\begin{gathered} x + x = \left(1 + 1\right)x = 2x \\ y - y = \left(1 - 1\right)y = 0 \end{gathered}
  2. Result

    So the sum is 2x2x.

Worked examples