Skip to content
Tutorials Center
My learning

Topics

Lesson 22 of 37 · Exponents and Polynomials

Adding and Subtracting Polynomials

Learn what polynomials are, how to name them by degree and number of terms, and how to add and subtract them by combining like terms.

A polynomial is a sum of terms, where each term is a number times a variable raised to a whole-number power. Expressions such as 3x² − 5x + 2 and 7y⁴ are polynomials. Polynomials describe areas, paths of thrown balls, profits and many other things, so you will meet them everywhere in math.

This lesson shows you the vocabulary and the one skill you need to add or subtract polynomials: combining like terms.

Vocabulary

  • A term is a number, a variable, or a product of numbers and variables with whole-number exponents, such as -4x³.
  • The number in front of the variable is the coefficient (-4 here). A term with no variable, such as 9, is a constant.
  • The degree of a term is the exponent of its variable. The degree of -4x³ is 3, and the degree of a constant is 0.
  • The degree of a polynomial is the largest degree among its terms.
  • Standard form writes terms from the highest degree to the lowest. The coefficient of the highest-degree term is the leading coefficient.

Polynomials have special names by the number of terms and by degree.

Terms Name Degree Name Example
1 monomial 1 linear 5x
2 binomial 2 quadratic x² − 9
3 trinomial 3 cubic 2x³ + x − 1

An expression like 3/x or √x is not a polynomial, because the variable is in a denominator or under a root, so its exponent is not a whole number.

Like terms

Like terms have exactly the same variable part: the same variables with the same exponents. 5x² and -2x² are like terms. 5x² and 5x are not, and neither are 3xy and 3x.

You add or subtract like terms by adding or subtracting their coefficients. This is the distributive property read backwards: 5x² + (−2x²) = (5 − 2)x² = 3x². The variable part stays the same.

Adding polynomials

Remove the parentheses and group like terms.

Example 1. (3x² + 4x − 7) + (x² − 6x + 2)

  1. Group: (3x² + x²) + (4x − 6x) + (−7 + 2).
  2. Combine: 4x² − 2x − 5.

You can also stack the polynomials in columns, lining up like terms, like adding multi-digit numbers.

Subtracting polynomials

Subtracting means adding the opposite. The minus sign in front of the parentheses changes the sign of every term inside.

Example 2. (5x³ − 2x + 8) − (2x³ + 3x² − 4x + 1)

  1. Distribute the minus: 5x³ − 2x + 8 − 2x³ − 3x² + 4x − 1.
  2. Group: (5x³ − 2x³) − 3x² + (−2x + 4x) + (8 − 1).
  3. Combine: 3x³ − 3x² + 2x + 7.

The most common error is changing only the first term when you subtract: −(2x³ + 3x²) is −2x³ − 3x², not −2x³ + 3x².

Representing polynomials in code

A polynomial can be stored as a list of coefficients, where the position tells you the exponent. Adding polynomials is then just adding matching positions, which is exactly "combine like terms".

Python A polynomial adder and subtractor

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The same calculation with the symbolic library SymPy, which knows algebra, confirms the result:

Python Check with SymPy

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is the degree of 4x⁵ − x² + 9?

    The degree is the largest exponent among the terms, which is 5.
  2. 2. Simplify (2x² + 3x) + (5x² − x).

    Combine like terms: 2x² + 5x² = 7x² and 3x − x = 2x. The exponents do not change.
  3. 3. Simplify (6x − 5) − (2x − 9).

    Distribute the minus: 6x − 5 − 2x + 9 = 4x + 4.
  4. 4. Which pair are like terms?

    Like terms have identical variable parts. ab² matches ab².

Summary

  • A polynomial is a sum of terms with whole-number exponents; its degree is its largest exponent.
  • Like terms have identical variable parts; add or subtract only their coefficients.
  • To subtract, change the sign of every term in the second polynomial, then combine.
  • Write answers in standard form, highest degree first.

Next: Multiplying Polynomials