Skip to main content
Mathematics LibreTexts

11.2.2: Adding and Subtracting Polynomials

  • Page ID
    67620
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    Learning Objectives
    • Add polynomials.
    • Find the opposite of a polynomial.
    • Subtract polynomials.

    Introduction

    Adding and subtracting polynomials may sound complicated, but it’s really not much different from the addition and subtraction that you do every day. The main thing to remember is to look for and combine like terms.

    Adding Polynomials

    You can add two (or more) polynomials as you have added algebraic expressions. You can remove the parentheses and combine like terms.

    Example

    Add. \(\ (3 b+5)+(2 b+4)\)

    Solution

    \(\ (3 b+2 b)+(5+4)\) Regroup using the commutative property of addition and the associative property of addition.
    \(\ 5 b+9\) Combine like terms.

    \(\ (3 b+5)+(2 b+4)=5 b+9\)

    Example

    A rectangular garden has one side with a length of \(\ x+7\) and another with a length \(\ 2 x+3\). Find the perimeter of the garden.

    Screen Shot 2021-06-11 at 4.05.43 PM.png

    Solution

    \(\ (x+7)+(2 x+3)+(x+7)+(2 x+3)\) The perimeter of a rectangle is the sum of its side lengths.
    \(\ (x+2 x+x+2 x)+(7+3+7+3)\) Regroup by like terms using commutative and associative properties.
    \(\ 6 x+20\) Add like terms.

    The perimeter is \(\ 6 x+20\).

    The procedure is the same when you add polynomials that contain negative coefficients or subtraction:

    Example

    Add.

    \(\ \left(-5 x^{2}-10 x+2\right)+\left(3 x^{2}+7 x-4\right)\)

    Solution

    \(\ -5 x^{2}+(-10 x)+2+3 x^{2}+7 x+(-4)\) Rewrite subtraction as addition of the opposite.
    \(\ \left(-5 x^{2}+3 x^{2}\right)+(-10 x+7 x)+(2-4)\) Regroup using commutative and associative properties.
    \(\ -2 x^{2}+(-3 x)+(-2)\) Combine like terms.

    \(\ \left(-5 x^{2}-10 x+2\right)+\left(3 x^{2}+7 x-4\right)=-2 x^{2}-3 x-2\)

    The above examples show addition of polynomials horizontally, by reading from left to right along the same line. Some people like to organize their work vertically instead, because they find it easier to be sure that they are combining like terms. The example below shows this “vertical” method of adding polynomials:

    Example

    Add.

    \(\ \left(3 x^{2}+2 x-7\right)+\left(7 x^{2}-4 x+8\right)\).

    Solution

    \(\ \begin{array}{r}
    3 x^{2}+2 x-7 \\
    +\quad 7 x^{2}-4 x+8
    \end{array}\)
    Write one polynomial below the other, making sure to line up like terms.
    \(\ \begin{array}{r}
    3 x^{2}+2 x-7 \\
    +\quad 7 x^{2}-4 x+8 \\
    \hline 10 x^{2}-2 x+1
    \end{array}\)
    Combine like terms, paying close attention to the signs.

    \(\ \left(3 x^{2}+2 x-7\right)+\left(7 x^{2}-4 x+8\right)=10 x^{2}-2 x+1\)

    Sometimes in a vertical arrangement, you can line up every term beneath a like term, as in the example above. But sometimes it isn't so tidy. When there isn't a matching like term for every term, there will be empty places in the vertical arrangement.

    Example

    Add.

    \(\ \left(4 x^{3}+5 x^{2}-6 x+2\right)+\left(-4 x^{2}+10\right)\)

    Solution

    \(\ \begin{array}{r}
    4 x^{3}+5 x^{2}-6 x\ \ +2\ \ \\
    +\quad\quad\quad\quad\ -4 x^{2}+10 \\
    \hline
    \end{array}\)

    Write one polynomial below the other, lining up like terms vertically.

    Leave a blank space above or below every term without a matching like term.

    \(\ \begin{array}{r}
    4 x^{3}+5 x^{2}\ \ -6 x\ \ +2\ \ \\
    +\quad\quad \ -4 x^{2}\ \ \ \ \ \ \ \ \ \ \ \ \ + 10 \\
    \hline 4 x^{3}+\ \ x^{2}\ \ -6 x\ \ +12
    \end{array}\)
    Combine like terms, paying close attention to the signs.

    \(\ \left(4 x^{3}+5 x^{2}-6 x+2\right)+\left(-4 x^{2}+10\right)=4 x^{3}+x^{2}-6 x+12\)

    Exercise

    Find the sum.

    \(\ \left(4 a^{2}+5 a+7\right)+(8 a+2)\)

    1. \(\ 9 a^{2}+8 a+9\)
    2. \(\ 16 a^{2}+10 a\)
    3. \(\ 12 a^{2}+5 a+9\)
    4. \(\ 4 a^{2}+13 a+9\)
    Answer
    1. Incorrect. \(\ 4 a^{2}\) and \(\ 5a\) cannot be combined because they are not like terms. Regroup by like terms to get \(\ 4 a^{2}+(5 a+8 a)+(7+2)\). The correct answer is \(\ 4 a^{2}+13 a+9\).
    2. Incorrect. You must first regroup by like terms before you add coefficients. Regrouping gives \(\ 4 a^{2}+(5 a+8 a)+(7+2)\). The correct answer is \(\ 4 a^{2}+13 a+9\).
    3. Incorrect. You can’t combine \(\ 4 a^{2}\) and \(\ 8a\) because they aren’t like terms. Regroup by like terms to get \(\ 4 a^{2}+(5 a+8 a)+(7+2)\). The correct answer is \(\ 4 a^{2}+13 a+9\).
    4. Correct. Regroup by like terms to get \(\ 4 a^{2}+(5 a+8 a)+(7+2)\), which is \(\ 4 a^{2}+13 a+9\).

    Finding the Opposite of a Polynomial

    When you subtract polynomials, you will add the opposite, as you have done with real numbers. So how do you find the opposite of a polynomial? Recall that the opposite of 3 is -3, and the opposite of -3 is 3. Just as the opposite of a number is found by multiplying the number by -1, we can find the opposite of a polynomial by multiplying it by -1.

    Example

    Find the opposite of \(\ 9 x^{2}+10 x+5\).

    Solution

    \(\ (-1)\left(9 x^{2}+10 x+5\right)\) Find the opposite by multiplying by -1
    \(\ (-1) 9 x^{2}+(-1) 10 x+(-1) 5\) Distribute -1 to each term in the polynomial.
    \(\ -9 x^{2}+(-10 x)+(-5)\) Multiply each coefficient by -1.
    The opposite of \(\ 9 x^{2}+10 x+5\) is \(\ -9 x^{2}-10 x-5\). Rewrite addition of a negative term as subtraction.

    Be careful when there are negative values or subtractions in the polynomial already.

    Example

    Find the opposite of \(\ 3 p^{2}-5 p+7\).

    Solution

    \(\ (-1)\left(3 p^{2}-5 p+7\right)\) Find the opposite by multiplying by -1.
    \(\ (-1)\left[3 p^{2}+(-5) p+7\right]\) Change the subtraction to adding the opposite.
    \(\ (-1) 3 p^{2}+(-1)(-5) p+(-1) 7\) Distribute -1 to each term in the polynomial and multiply each coefficient by -1.
    \(\ -3 p^{2}+5 p+(-7)\) Rewrite addition of a negative term as subtraction.

    The opposite of \(\ 3 p^{2}-5 p+7 \text { is }-3 p^{2}+5 p-7\).

    Notice that in finding the opposite of a polynomial, you change the sign of each term in the polynomial.

    Exercise

    Find the opposite of the polynomial.

    \(\ 8 a^{3}-3 a-2\).

    1. \(\ -8 a^{3}-3 a-2\)
    2. \(\ 8 a^{3}+3 a-2\)
    3. \(\ 8 a^{3}+3 a+2\)
    4. \(\ -8 a^{3}+3 a+2\)
    Answer
    1. Incorrect. Each term must have the sign changed. The correct answer is \(\ -8 a^{3}+3 a+2\).
    2. Incorrect. Each term must have the sign changed. The correct answer is \(\ -8 a^{3}+3 a+2\).
    3. Incorrect. Each term must have the sign changed. The correct answer is \(\ -8 a^{3}+3 a+2\).
    4. Correct. Each term must have the sign changed, so the answer is \(\ -8 a^{3}+3 a+2\).

    Subtracting Polynomials

    Just as subtracting real numbers is the same as adding the opposite, you can subtract polynomials by adding the opposite of the second polynomial. Let's look at an example:

    Example

    Subtract. \(\ \left(15 x^{2}+12 x+20\right)-\left(9 x^{2}+10 x+5\right)\)

    Solution

    \(\ \left(15 x^{2}+12 x+20\right)+\left(-9 x^{2}-10 x-5\right)\) Change the subtraction to adding the opposite. Be careful to change the sign of each term!
    \(\ \left(15 x^{2}+-9 x^{2}\right)+(12 x-10 x)+(20-5)\) Regroup to match like terms.
    \(\ 6 x^{2}+2 x+15\) Combine like terms.

    \(\ \left(15 x^{2}+12 x+20\right)-\left(9 x^{2}+10 x+5\right)=6 x^{2}+2 x+15\)

    When polynomials include a lot of terms, it can be easy to lose track of the signs. Be careful to transfer them correctly, especially when subtracting a negative term.

    Example

    Subtract. \(\ \left(14 x^{3}+3 x^{2}-5 x+14\right)-\left(7 x^{3}+5 x^{2}-8 x+10\right)\)

    Solution

    \(\ \left(14 x^{3}+3 x^{2}-5 x+14\right)+\left(-7 x^{3}-5 x^{2}+8 x-10\right)\) Rewrite as adding the opposite.
    \(\ 14 x^{3}+3 x^{2}+(-5) x+14+(-7) x^{3}+(-5) x^{2}+8 x+(-10)\) You may want to rewrite all subtractions as adding the opposite.
    \(\ 14 x^{3}+(-7) x^{3}+3 x^{2}+(-5) x^{2}+(-5) x+8 x+14+(-10)\) Regroup to put like terms together.
    \(\ 7 x^{3}+(-2) x^{2}+3 x+4\) Combine like terms.

    \(\ \left(14 x^{3}+3 x^{2}-5 x+14\right)-\left(7 x^{3}+5 x^{2}-8 x+10\right)=7 x^{3}-2 x^{2}+3 x+4\)

    Complex problems, like the one above, may be more easily solved using the vertical approach (shown below). However you choose to combine polynomials is up to you; the key point is to identify like terms, and be able to organize them accurately.

    Example

    \(\ \left(14 x^{3}+3 x^{2}-5 x+14\right)-\left(7 x^{3}+5 x^{2}-8 x+10\right)\)

    Solution

    \(\ \begin{array}{r}
    14 x^{3}+3 x^{2}-5 x+14\ \ \\
    -\left(7 x^{3}+5 x^{2}-8 x+10\right) \\
    \hline
    \end{array}\)
    Reorganizing using the vertical approach.
    \(\ \begin{array}{r}
    14 x^{3}+3 x^{2}-5 x+14 \\
    -7 x^{3}-5 x^{2}+8 x-10 \\
    \hline 7 x^{3}-2 x^{2}+3 x+\ \ 4
    \end{array}\)
    Change the subtraction to adding the opposites, and combine like terms.

    \(\ \left(14 x^{3}+3 x^{2}-5 x+14\right)-\left(7 x^{3}+5 x^{2}-8 x+10\right)=7 x^{3}-2 x^{2}+3 x+4\)

    As with integer operations, experience and practice makes it easier to add and subtract polynomials.

    Exercise

    Subtract. \(\ \left(4 a^{3}-5 a+7\right)-\left(8 a^{3}-3 a-2\right)\)

    1. \(\ -4 a^{3}-8 a+5\)
    2. \(\ -\left(-4 a^{3}\right)+3 a+9\)
    3. \(\ -4 a^{3}-2 a+9\)
    4. \(\ -4 a^{3}+2 a+5\)
    Answer
    1. Incorrect. Each term in the second polynomial must be subtracted from the first polynomial: \(\ 4 a^{3}-5 a+7-8 a^{3}+3 a+2\). The correct answer is \(\ -4 a^{3}-2 a+9\).
    2. Incorrect. The subtracted \(\ 5a\) in the first polynomial must still be subtracted: \(\ 4 a^{3}-5 a+7-8 a^{3}+3 a+2\). The correct answer is \(\ -4 a^{3}-2 a+9\).
    3. Correct. \(\ 4 a^{3}-5 a+7-8 a^{3}+3 a+2=-4 a^{3}-2 a+9\).
    4. Incorrect. Each term in the second polynomial must be subtracted from the first polynomial: \(\ 4 a^{3}-5 a+7-8 a^{3}+3 a+2\). The correct answer is \(\ -4 a^{3}-2 a+9\).

    Summary

    When adding or subtracting polynomials, use the commutative and associative properties to regroup the terms in a polynomial into groups of like terms. Change subtraction, including subtraction of the second polynomial, to addition of the opposite. When finding the opposite of a polynomial, be sure to change the sign of each term. Then you can combine the like terms.


    This page titled 11.2.2: Adding and Subtracting Polynomials is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by The NROC Project via source content that was edited to the style and standards of the LibreTexts platform.