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.

Each term is a number times a whole-number power of xx. Its sign belongs to its coefficient:

TermCoefficientDegree
3x43x^43344
−5x2-5x^2−5-522
7x7x7711
−2-2−2-200

The degree of a nonzero term is its exponent. Here 7x=7x17x=7x^1 has degree 11, and the constant −2-2 has degree 00. After like terms are combined, the degree of a nonzero polynomial is its largest remaining exponent: 44 in this example. Its leading term is 3x43x^4, and its leading coefficient is 33. The constant term is −2-2. The x3x^3 coefficient is 00, so that term is left out.

In general, a polynomial in xx is a finite sum of real coefficients times nonnegative-integer powers of xx. The allowed exponents are 0,1,2,…0,1,2,\ldots. A nonzero constant has degree zero. Expressions such as 1/x1/x or x\sqrt{x} do not have this form: they use a negative or fractional power of the variable.

Check your understanding

Which of these is a polynomial in xx?

Answer choices

Count the nonzero terms after combining like terms to name a short polynomial. 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

Standard form lists the terms in descending order of degree, highest power first. The polynomial 3x4−5x2+7x−23x^4-5x^2+7x-2 is already in standard form. Reordering it as 7x−2+3x4−5x27x-2+3x^4-5x^2 gives the same value for every xx, but makes its degree harder to spot.

Putting the leading term first makes the degree and leading coefficient easy to read. It also lines up like powers when you add or subtract in columns.

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 have the same variable part. For polynomials in one variable, this means the same power: 3x23x^2 and −8x2-8x^2 are like terms, as are 5x5x and xx. But x2x^2 and x3x^3 are unlike, and so are 4x4x and 44. The distributive property explains why the shared power matters.

Why like terms combine and unlike terms do not#

Three copies of x2x^2 plus five copies of x2x^2 make eight copies:

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

This is the distributive property in reverse. More generally, for any coefficients b,cb,c and a shared power xkx^k,

bxk+cxk=(b+c)xk.bx^k+cx^k=(b+c)x^k.

The coefficients add; the shared power stays unchanged. Adding the square terms gives 8x28x^2, not 8x48x^4, because we are adding copies, not multiplying powers.

Different powers do not share that same variable part. For example,

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

The factor 1+x1+x changes with xx, so it cannot serve as a fixed coefficient of x2x^2. Equal expressions must give the same value for every xx. Nor can this sum be a single nonzero term of another degree: at x=−1x=-1 the sum is 00, while a term cxkcx^k with nonzero cc is nonzero at −1-1. The sum is not the zero polynomial either, since at x=1x=1 it equals 22. So this sum, x2+x3x^2+x^3, must stay as two terms.

The general rule is the same: two nonzero terms with different powers do not combine into a single term valid for every xx. The test values above were chosen for this particular pair of powers.

To combine like terms, add their coefficients and keep the shared power unchanged.

Adding polynomials

A plus sign before a group preserves every sign inside. Remove the parentheses, group like terms, and add their coefficients.

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

Because of the plus sign in front, you can drop the parentheses and keep every sign as it is:

(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.

You can also line the terms up in columns, one column per power. It is ordinary column addition, with powers of xx playing the role that place values play for whole numbers.

Column addition of polynomialsSquare terms, linear terms and constants each have a column. Their coefficients add to 4, 1 and 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.

Check your understanding

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

Answer choices

Subtracting polynomials

Subtracting a polynomial means subtracting every term in it. The minus sign before a group acts as a factor of −1-1. Distributing that factor reverses each sign:

−(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. 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.

In particular, watch these two sign changes: +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.

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.

For two nonzero polynomials, a nonzero sum or difference has degree at most the larger starting degree. Combining coefficients cannot create a higher power. If the degrees differ, the larger power has no partner and survives. If the degrees agree, check the leading coefficients: they may cancel, leaving a lower degree. If every term cancels, the result is the zero polynomial, which has no degree here: no nonzero term remains to supply an exponent.

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.

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)

Diophantus of Alexandria, usually placed around AD 250, wrote sums without a plus sign. In his Arithmetica, short symbols represented the unknown and powers such as its square and cube. Writing terms next to one another meant to add them.

Subtraction needed a different arrangement. He gathered the terms to be subtracted behind one subtraction mark, after the added terms. That single mark applied to the whole group.

You used a related idea in this lesson. In −(2x2+6x−7)-(2x^2+6x-7), one minus sign acts on all three terms. Distributing it gives −2x2−6x+7-2x^2-6x+7: every sign changes. Diophantus’s notation bundled the subtracted terms; our parentheses make the group explicit.

Source: the Dictionary of Scientific Biography account of Diophantus (PDF).

Your progress

See all your progress →