This site is a work in progress. New lessons are added regularly. Contact us

Adding and Subtracting Polynomials

Learning goals

  • Name a polynomial's terms, degree and leading coefficient
  • Write standard form in descending order of degree
  • Combine only like terms, those sharing a power
  • Distribute the minus across every term when subtracting
  • Predict the degree of a sum, allowing for cancellation

What a polynomial is

A polynomial in the variable xx is a finite sum of terms, where each term is a real number times a whole-number power of xx:

anxn+an1xn1++a1x+a0.a_n x^n + a_{n-1} x^{n-1} + \cdots + a_1 x + a_0.

The numbers an,,a1,a0a_n, \ldots, a_1, a_0 are the coefficients, and every exponent must be a nonnegative integer (0,1,2,0, 1, 2, \ldots). That requirement is exactly what separates a polynomial from other expressions. No variable sits in a denominator, no variable hides under a root, and no power is negative or fractional. There are only whole-number powers of xx, each scaled by a coefficient and added together.

Reading a concrete polynomial term by term pins down the vocabulary you will use for the rest of the chapter. Take

3x45x2+7x2.3x^4 - 5x^2 + 7x - 2.
TermCoefficientDegree
3x43x^43344
5x2-5x^25-522
7x7x7711
2-22-200

The degree of a term is the power of xx in it. The term 7x7x is really 7x17x^1, so its degree is 11, and the constant 2-2 is really 2x0-2x^0 (since x0=1x^0 = 1), so its degree is 00. The degree of the polynomial is the largest degree among its terms, which is 44 here. The highest-degree term, 3x43x^4, is the leading term, and its coefficient 33 is the leading coefficient. The constant term is the term with no variable, the x0x^0 term, which is 2-2. Notice that this polynomial has no x3x^3 term. That simply means its x3x^3 coefficient is 00, and a term with a zero coefficient contributes nothing and is left out.

Short polynomials get their own names by their number of terms. A one-term polynomial such as 7x7x or 4x34x^3 or 99 is a monomial. A two-term polynomial such as x+1x + 1 is a binomial. A three-term polynomial such as x25x+6x^2 - 5x + 6 is a trinomial. Past three terms there is no special word, and you simply call it a polynomial.

Standard form

A polynomial is in standard form when its terms are written in descending order of degree, the highest power first and the constant last. The polynomial 3x45x2+7x23x^4 - 5x^2 + 7x - 2 above is already in standard form. You could rearrange it as 7x2+3x45x27x - 2 + 3x^4 - 5x^2, and it would equal the same number for every value of xx, but that scrambled order hides everything useful about it.

Descending order earns its place as the default for three reasons. The degree and the leading term sit right at the front, so you can read a polynomial’s most important features at a glance. Two polynomials written in standard form can be compared term by term, the way you compare two whole numbers digit by digit. And when you add or subtract, lining terms up by descending power drops like terms into the same column automatically. That alignment is exactly the setup the rest of this lesson uses.

Check your understanding

For the polynomial 6x3x5+42x6x^3 - x^5 + 4 - 2x, what is the leading coefficient?

Answer choices

Why only like terms combine

Like terms are terms with the same variable part, meaning the same power of xx. In a single variable that just means the same exponent. So 3x23x^2 and 8x2-8x^2 are like terms, and 5x5x and xx are like terms, but x2x^2 and x3x^3 are not, and neither are 4x4x and 44. Only like terms can be merged into a single term, and the reason is the distributive property, run backward.

Why like terms combine and unlike terms do not#

The distributive property says that for any numbers and quantities, ba+ca=(b+c)aba + ca = (b + c)a. Let the shared quantity aa be a single power of xx, say x2x^2. Two terms that both carry that power are bb copies and cc copies of the very same thing, so

3x2+5x2=(3+5)x2=8x2.3x^2 + 5x^2 = (3 + 5)x^2 = 8x^2.

The common factor x2x^2 pulls out to the right, the coefficients 33 and 55 add, and the power itself is untouched. That is the whole mechanism: combining like terms is the distributive property read from left to right. That combination works only because both terms are copies of the identical power. The exponent stays 22, so the answer is 8x28x^2, never 8x48x^4.

Now try two different powers, x2x^2 and x3x^3. Factoring the smaller power out is the most you can do,

x2+x3=x2(1+x),x^2 + x^3 = x^2(1 + x),

and 1+x1 + x is not a number, so the result is not a single term cxkc\,x^k for any constant cc and power kk. There is nothing to add, because the two terms are not copies of one shared power. It helps to remember what those powers measure: x2x^2 is an area and x3x^3 is a volume. Adding an area to a volume collapses to a single number no more than adding 33 metres to 55 square metres does. Like terms carry the same power and merge into one; unlike terms carry different powers and stay side by side.

The rule to carry forward is short: to combine like terms, add their coefficients and keep the shared power unchanged.

Adding polynomials

Adding two polynomials is now almost mechanical. A plus sign in front of a parenthesis changes nothing inside it, so you can erase the parentheses, gather the like terms, and add their coefficients.

Worked example 1 Add (3x2+5x2)+(x24x+6)(3x^2 + 5x - 2) + (x^2 - 4x + 6)

The leading plus sign lets the parentheses drop with every sign kept as it stands:

(3x2+5x2)+(x24x+6)=3x2+5x2+x24x+6.(3x^2 + 5x - 2) + (x^2 - 4x + 6) = 3x^2 + 5x - 2 + x^2 - 4x + 6.

Group the like terms by power, then add the coefficients in each group:

(3x2+x2)+(5x4x)+(2+6)=4x2+x+4.(3x^2 + x^2) + (5x - 4x) + (-2 + 6) = 4x^2 + x + 4.

The x2x^2 terms give 3+1=43 + 1 = 4, the xx terms give 5+(4)=15 + (-4) = 1, and the constants give 2+6=4-2 + 6 = 4. The sum 4x2+x+44x^2 + x + 4 is already in standard form.

Lining the terms up in columns, one column per power, makes the bookkeeping visible. It is ordinary column addition, with powers of xx playing the role that place values play for whole numbers.

Column addition of polynomialsTwo polynomials stacked with like terms aligned in three columns headed x squared terms, x terms, and constants. Adding down each column gives 4x squared plus x plus 4.x² termsx termsconstants3x²+5x-2+-4x+64x²+x+4
Adding polynomials by lining up like terms in columns, one column per power of x, then adding down each column. It is column addition, with powers of x in place of place values.

When one polynomial is missing a power the other one has, leave that column empty rather than forcing an entry. The gap just means the coefficient there is 00.

Worked example 2 Add (2x3+x5)+(4x23x+1)(2x^3 + x - 5) + (4x^2 - 3x + 1)

The first polynomial has no x2x^2 term and the second has no x3x^3 term, so those powers each appear in only one of the two. Drop the parentheses and group by power:

2x3+x5+4x23x+1=2x3+4x2+(x3x)+(5+1).2x^3 + x - 5 + 4x^2 - 3x + 1 = 2x^3 + 4x^2 + (x - 3x) + (-5 + 1).

Only the xx terms and the constants have partners to combine:

2x3+4x22x4.2x^3 + 4x^2 - 2x - 4.

The 2x32x^3 and the 4x24x^2 carry straight down, because nothing is there to add to them. Writing the result in descending order gives 2x3+4x22x42x^3 + 4x^2 - 2x - 4.

Subtracting polynomials

Subtraction is where nearly every mistake happens, and it has a single cause. Subtracting a polynomial means subtracting every term in it, not just the first. A minus sign in front of a parenthesis is a factor of 1-1 multiplying the whole group. By the distributive property, that factor flips the sign of each term inside:

(2x2+6x7)=2x26x+7.-(2x^2 + 6x - 7) = -2x^2 - 6x + 7.

The 2x22x^2 becomes 2x2-2x^2, the +6x+6x becomes 6x-6x, and the 7-7 becomes +7+7. Every sign turns over. Once the parentheses are gone, you combine like terms exactly as with addition.

Worked example 3 Subtract (5x23x+4)(2x2+6x7)(5x^2 - 3x + 4) - (2x^2 + 6x - 7)

Distribute the minus sign across all three terms of the second polynomial, flipping each sign:

(5x23x+4)(2x2+6x7)=5x23x+42x26x+7.(5x^2 - 3x + 4) - (2x^2 + 6x - 7) = 5x^2 - 3x + 4 - 2x^2 - 6x + 7.

Watch the two signs that changed: +6x+6x became 6x-6x, and 7-7 became +7+7. Now group and combine:

(5x22x2)+(3x6x)+(4+7)=3x29x+11.(5x^2 - 2x^2) + (-3x - 6x) + (4 + 7) = 3x^2 - 9x + 11.

Had you flipped only the first term and written 5x23x+42x2+6x75x^2 - 3x + 4 - 2x^2 + 6x - 7, the xx term and the constant would both come out wrong. The sign change has to reach every term.

Worked example 4 Subtract (4x32x2+x)(x35x23x+2)(4x^3 - 2x^2 + x) - (x^3 - 5x^2 - 3x + 2)

The second polynomial has four terms, so four signs flip. In particular the 5x2-5x^2 becomes +5x2+5x^2, and the +2+2 becomes 2-2:

4x32x2+xx3+5x2+3x2.4x^3 - 2x^2 + x - x^3 + 5x^2 + 3x - 2.

Group by power and add the coefficients in each group:

(4x3x3)+(2x2+5x2)+(x+3x)2=3x3+3x2+4x2.(4x^3 - x^3) + (-2x^2 + 5x^2) + (x + 3x) - 2 = 3x^3 + 3x^2 + 4x - 2.

The middle group is the one to double-check: 2x2-2x^2 plus the flipped +5x2+5x^2 gives +3x2+3x^2, not 7x2-7x^2. Subtracting a negative term adds it back, which is precisely what the distributed minus sign takes care of.

Check your understanding

Simplify (4x2x+3)(x2+2x5)(4x^2 - x + 3) - (x^2 + 2x - 5).

Answer choices

Closure and the degree of a sum

Add or subtract two polynomials and you always get another polynomial. Adding or subtracting real coefficients gives real coefficients, and the powers involved were already nonnegative integers, so the result still fits the definition. Mathematicians describe this by saying the polynomials are closed under addition and subtraction, the same way the whole numbers are closed under addition.

The degree of the result is usually easy to predict. When you add two polynomials, the highest power present in either one is still present in the sum. Because that power is still present, the degree of the sum is the larger of the two degrees. There is one exception worth knowing, and it happens only when the two polynomials share the same degree and their leading terms cancel.

Worked example 5 Compare the degree of (x2+x)+(x21)(x^2 + x) + (x^2 - 1) with (x2+x)(x21)(x^2 + x) - (x^2 - 1)

Both polynomials have degree 22, with the same leading term x2x^2. Add them first:

(x2+x)+(x21)=2x2+x1.(x^2 + x) + (x^2 - 1) = 2x^2 + x - 1.

The leading coefficients are 11 and 11, and 1+1=21 + 1 = 2 is not zero, so the x2x^2 term survives and the sum keeps degree 22. Now subtract instead:

(x2+x)(x21)=x2+xx2+1=x+1.(x^2 + x) - (x^2 - 1) = x^2 + x - x^2 + 1 = x + 1.

This time the x2x^2 terms cancel, since 11=01 - 1 = 0, and the highest power left is x1x^1. The difference has degree 11, lower than either polynomial you started with. The same two polynomials give a degree-22 sum and a degree-11 difference. The difference comes out lower because subtraction lined up equal leading terms with opposite signs, and they wiped each other out.

Check your understanding

What is the degree of (3x2+2x1)(3x2x+4)(3x^2 + 2x - 1) - (3x^2 - x + 4)?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (Optional)

For most of the history of algebra there was no plus sign. Writers set the terms of a sum beside each other and left it at that.

Diophantus worked in Alexandria, a Greek city in Egypt, around the year 250. He wrote the earliest surviving book that handles unknowns with symbols rather than sentences. He had short marks for the unknown, for its square, and for its cube. Addition needed no mark at all. Two terms written next to each other were simply added together.

Subtraction was another matter. Diophantus had one symbol for it, and he used that symbol once. Every term he meant to take away was gathered behind it, at the end of the expression. A reader met the added terms first, then the single mark, then the entire subtracted group in a bundle.

That looks like a strange habit until you notice what you did in this lesson. Write (2x2+6x7)-(2x^2 + 6x - 7) and the minus sign in front is standing guard over three terms at once, exactly as his did. Clearing the parentheses means letting that one sign reach every term inside, so all three signs turn over. Diophantus bundled the subtracted terms together. Your first move is to unbundle them.