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

Take the expression

3x4−5x2+7x−2.3x^4 - 5x^2 + 7x - 2.

Every piece of it follows the same pattern, a number multiplied by a whole-number power of xx. Reading it piece by piece pins down the vocabulary you will use for the rest of the chapter.

TermCoefficientDegree
3x43x^43344
−5x2-5x^2−5-522
7x7x7711
−2-2−2-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.

In general, a polynomial in xx is any finite sum of terms built the same way, each one a real number (its coefficient) times a whole-number power of xx. 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.

Check your understanding

Which of these is a polynomial in xx?

Answer choices

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 x2−5x+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 3x4−5x2+7x−23x^4 - 5x^2 + 7x - 2 above is already in standard form. You could rearrange it as 7x−2+3x4−5x27x - 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 6x3−x5+4−2x6x^3 - x^5 + 4 - 2x, what is the leading coefficient?

Answer choices

Check your understanding

Which of these is 5−3x4+2x2−x5 - 3x^4 + 2x^2 - x written in standard form?

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 constant, since it still contains an xx, so the result is not a single term c xkc\,x^k for any constant cc and power kk. The two terms cannot merge into one, because they are not copies of the same shared power. 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+5x−2)+(x2−4x+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+5x−2)+(x2−4x+6)=3x2+5x−2+x2−4x+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)+(5x−4x)+(−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+x²-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+x−5)+(4x2−3x+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+x−5+4x2−3x+1=2x3+4x2+(x−3x)+(−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+4x2−2x−4.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+4x2−2x−42x^3 + 4x^2 - 2x - 4.

Check your understanding

Add (3x3−2x+4)+(−x3+5x2−7)(3x^3 - 2x + 4) + (-x^3 + 5x^2 - 7).

Answer choices

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+6x−7)=−2x2−6x+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 (5x2−3x+4)−(2x2+6x−7)(5x^2 - 3x + 4) - (2x^2 + 6x - 7)

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

(5x2−3x+4)−(2x2+6x−7)=5x2−3x+4−2x2−6x+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:

(5x2−2x2)+(−3x−6x)+(4+7)=3x2−9x+11.(5x^2 - 2x^2) + (-3x - 6x) + (4 + 7) = 3x^2 - 9x + 11.

Had you flipped only the first term and written 5x2−3x+4−2x2+6x−75x^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 (4x3−2x2+x)−(x3−5x2−3x+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:

4x3−2x2+x−x3+5x2+3x−2.4x^3 - 2x^2 + x - x^3 + 5x^2 + 3x - 2.

Group by power and add the coefficients in each group:

(4x3−x3)+(−2x2+5x2)+(x+3x)−2=3x3+3x2+4x−2.(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 (4x2−x+3)−(x2+2x−5)(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. In the rare case where every term cancels, the result is 00 itself, which has no degree at all, since there is no term left to point to.

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

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

(x2+x)+(x2−1)=2x2+x−1.(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)−(x2−1)=x2+x−x2+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 1−1=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 (2x3−4x+1)+(−2x3+5x2−3)(2x^3 - 4x + 1) + (-2x^3 + 5x^2 - 3)?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

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

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems 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+6x−7)-(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.