## Section 10.3 Addition and Subtraction of Polynomials

ΒΆI am going to begin this discussion with a backwards analogy β that is, I'm going to state the analogy before I tell you what it is an analogy for. Here's the analogy:

Bill and Todd are moving in together. Bill and Todd each really like framed photos of dogs. Bill brings to the new apartment \(7\) framed photos with only one dog in them and \(4\) framed photos with two dogs in them. Todd brings to the apartment \(2\) framed photos that have only one dog in them and \(10\) framed photos that have two dogs in them. Here's a question for you: between the two of them, how many framed photos have only one dog in them and how many framed photos have two dogs in them?

That situation is any analogy for this algebra problem: Determine the following sum:

In the analogy, \(x\) is representing a picture with only one dog in it and \(x^2\) is representing a picture that has two dogs in it. Between Bill and Todd, they have a total of \(9\) photos with only one dog in them and a total of \(14\) photos that have two dogs in them. Similarly, the algebraic sum is simplified as follows.

In the photo scenario, we are basically just counting like objects by adding the number of photos of one dog (\(7+2)\) and then adding the number of photos with two dogs (\(4+10\)). We are doing the same thing in the algebraic scenario, in this case the two types of objects are \(x\) and \(x^2\text{,}\) and we are adding the coefficients on each type of object.

\(7x\) and \(2x\) are called like terms as are \(4x^2\) and \(10x^2\text{.}\) Like polynomial terms are terms that have the exact same variables, and any variable that appears has the same exponent in all of the like terms. Because we don't write the exponent on linear or constant terms, it is clarifying to state that all constant terms are like terms with all other constant terms and all linear terms of a given variable are like terms of every other linear term of the same variable. Lets see some examples.

###### Example 10.3.1.

State the like terms of the following expression.

The following pairs are the like terms.

When adding polynomials, only the like terms can actually be combined into a single term, and the coefficient on the single term is the sum of the coefficients of the original terms. For example, we can combine the terms in the expression \(-3x^4+8x^4\) as follows.

Notice that the equality

is simply the distributive property written in reverse. That is, instead of distributing \(x^4\) through the sum \(-3+8\text{,}\) we are "undoing" the distribution. The actual math expression for the undoing of distribution is "factoring". For now, the addition of coefficients of like terms is the only sort of factoring we will be doing. I only mentioned factoring because it is technically what we're doing, it is the mathematical justification for the legitimacy of the process. It is also the reason why we can't combine something like \(3x+7x^2\) into a single polynomial term. Consider the following (in each case I am applying the distributive property).

There simply is no way to distribute a power of \(x\) through a sum of integers and come up with \(3x+7x^2\text{,}\) so we cannot combine \(3x+7x^2\) into a single polynomial term.

I may have occurred to you that you have been combining like terms ever since you learned how to solve linear equations. Consider the following.

In the second step shown above we are combining the like constant terms \(-5\) and \(5\) as well as the like constant terms \(19\) and \(5\text{.}\) In the fourth line we are combining the like linear terms \(2x\) and \(-8x\) as well as the like linear terms \(8x\) and \(-8x\text{.}\) I mention this in part to highlight the fact that we don't actually write out the edition of the coefficients when combining linear terms β we do the addition or subtraction in our head (or perhaps on scratch paper or calculator). After one more example, I will adopt that strategy when combining all polynomial terms.

Let's see one more example where the step of adding the coefficients is explicitly shown. Let's add the following two polynomials.

The addition and simplification follow.

Sometimes we will multiply one or more polynomial by a constant before combining the polynomials.

###### Example 10.3.2.

Simplify the following expression.

We begin by distributing the factor of \(-2\) to each term of the first polynomial and the factor of \(5\) to each term of the second polynomial. As with the addition of coefficients, we generally do this mentally. In this one example I am going to show the distribution to help ensure that you understand the process. I will, however, add the coefficients of like terms in my head.

###### Example 10.3.3.

Simplify the following expression.

Note that in the solution I am combining the like terms mentally and simply writing the results.

###### Example 10.3.4.

Simplify the following expression.

In order to simplify, we want to view the subtraction of \(6\) as addition of \(-6\text{.}\) That is, we need to distribute \(-6\) through the second polynomial. I'll show the actual process this time to help you understand my words.

Notice on the second line of the last example that the final two terms are, in order, negative and positive. This is the reverse of the signs on the original expression \(12x-4\text{.}\) One repercussion of distributing a negative value though an expression is that all of the signs in the result are the reverse of their initial status. That is, addition becomes subtraction and subtraction becomes addition.

###### Example 10.3.5.

Simplify the following expression.

###### Example 10.3.6.

Simplify the following expression.

In this expression we are actually subtracting a polynomial. One way we could think about this is as follows.

So we can think of the subtraction as a distribution of \(-1\) through the second polynomial. But the sole effect of such a distribution will be the reversal of all of the signs. In other words, the only thing that will change is that in the second polynomial addition will change to subtraction and subtraction will change to addition. Let's go ahead and do it.

### Exercises Exercises

Combine and completely simplify each of the following expressions.

###### 1.

\((-3x^3+4x^2-7x+5)-(2x^2-5x+4)\)

\(\begin{aligned}[t] \amp(-3x^3+4x^2-7x+5)-(2x^2-5x+4)\\ \amp \phantom{={}} \phantom{={}} =-3x^3+4x^2-7x+5-2x^2+5x-4\\ \amp \phantom{={}} \phantom{={}} =-3x^3+2x^2-2x+1 \end{aligned}\)

###### 2.

\(2(9x^2-3xy+9y^2)+(x^2+xy+y^2)\)

\(\begin{aligned}[t] \amp2(9x^2-3xy+9y^2)+(x^2+xy+y^2)\\ \amp \phantom{={}} \phantom{={}} =18x^2-6xy+18y^2+x^2+xy+y^2\\ \amp \phantom{={}} \phantom{={}} =19x^2-5xy+19y^2 \end{aligned}\)

###### 3.

\(-3(x^3-4x-1)-6(3x^2+2x-5)\)

\(\begin{aligned}[t] \amp-3(x^3-4x-1)-6(3x^2+2x-5)\\ \amp \phantom{={}} \phantom{={}} =-3x^3+12x+3-18x^2-12x+30\\ \amp \phantom{={}} \phantom{={}} =-3x^3-18x^2+33 \end{aligned}\)

###### 4.

\(-(-7x^2+2x)+(10x^2+6x-4)\)

\(\begin{aligned}[t] \amp-(-7x^2+2x)+(10x^2+6x-4)\\ \amp \phantom{={}} \phantom{={}} =7x^2-2x+10x^2+6x-4\\ \amp \phantom{={}} \phantom{={}} =17x^2+4x-4 \end{aligned}\)

###### 5.

\(4(-x^3-5x^2+7x-2)-2(-2x^3+4x^2-x+1)\)

\(\begin{aligned}[t] \amp4(-x^3-5x^2+7x-2)-2(-2x^3+4x^2-x+1)\\ \amp \phantom{={}} \phantom{={}} =-4x^3-20x^2+28x-8+4x^3-8x^2+2x-2\\ \amp \phantom{={}} \phantom{={}} =-28x^2+30x-10 \end{aligned}\)