This is “Adding and Subtracting Polynomials”, section 5.3 from the book Beginning Algebra (v. 1.0). For details on it (including licensing), click here.

Has this book helped you? Consider passing it on:
Creative Commons supports free culture from music to education. Their licenses helped make this book available to you.
DonorsChoose.org helps people like you help teachers fund their classroom projects, from art supplies to books to calculators.

## 5.3 Adding and Subtracting Polynomials

### Learning Objectives

2. Subtract polynomials.
3. Add and subtract polynomial functions.

Recall that we combine like terms, or terms with the same variable part, as a means to simplify expressions. To do this, add the coefficients of the terms to obtain a single term with the same variable part. For example,

Notice that the variable part, $x2$, does not change. This, in addition to the commutative and associative properties of addition, allows us to add polynomialsThe process of combining all like terms of two or more polynomials..

Example 1: Add: $3x+(4x−5)$.

Solution: The property $+(a+b)=a+b$, which was derived using the distributive property, allows us to remove the parentheses so that we can add like terms.

Answer: $7x−5$

Example 2: Add: $(3x2+3x+5)+(2x2−x−2)$.

Solution: Remove the parentheses and then combine like terms.

Answer: $5x2+2x+3$

Example 3: Add: $(−5x2y−2xy2+7xy)+(4x2y+7xy2−3xy)$.

Solution: Remember that the variable parts have to be exactly the same before we can add the coefficients.

Answer: $−x2y+5xy2+4xy$

It is common practice to present the terms of the simplified polynomial expression in descending order based on their degree. In other words, we typically present polynomials in standard form, with terms in order from highest to lowest degree.

Example 4: Add: $(a−4a3+a5−8)+(−9a5+a4−7a+5+a3)$.

Solution:

Answer: $−8a5+a4−3a3−6a−3$

Try this! Add: $(6−5x3+x2−x)+(x2+x+6x3−1)$.

Answer: $x3+2x2+5$

### Video Solution

(click to see video)

## Subtracting Polynomials

When subtracting polynomialsThe process of subtracting all the terms of one polynomial from another and combining like terms., we see that the parentheses become very important. Recall that the distributive property allowed us to derive the following:

In other words, when subtracting an algebraic expression, we remove the parentheses by subtracting each term.

Example 5: Subtract: $10x−(3x+5)$.

Solution: Subtract each term within the parentheses and then combine like terms.

Answer: $7x−5$

Subtracting a quantity is equivalent to multiplying it by −1.

Example 6: Subtract: $(3x2+3x+5)−(2x2−x−2)$.

Solution: Distribute the −1, remove the parentheses, and then combine like terms.

Answer: $x2+4x+7$

Multiplying the terms of a polynomial by −1 changes all the signs.

Example 7: Subtract: $(−5x3−2x2+7)−(4x3+7x2−3x+2)$.

Solution: Distribute the −1, remove the parentheses, and then combine like terms.

Answer: $−9x3−9x2+3x+5$

Example 8: Subtract $6x2−3x−1$ from $2x2+5x−2$.

Solution: Since subtraction is not commutative, we must take care to set up the difference correctly. First, write the quantity $(2x2+5x−2)$; from this, subtract the quantity $(6x2−3x−1)$.

Answer: $−4x2+8x−1$

Example 9: Simplify: $(2x2−3x+5)−(x2−3x+1)+(5x2−4x−8)$.

Solution: Apply the distributive property, remove the parentheses, and then combine like terms.

Answer: $6x2−4x−4$

Try this! Subtract: $(8x2y−5xy2+6)−(x2y+2xy2−1)$.

Answer: $7x2y−7xy2+7$

### Video Solution

(click to see video)

## Adding and Subtracting Polynomial Functions

We use function notation to indicate addition and subtraction of functions as follows:

 Addition of functions: $(f+g)(x)=f(x)+g(x)$ Subtraction of functions: $(f−g)(x)=f(x)−g(x)$

When using function notation, be careful to group the entire function and add or subtract accordingly.

Example 10: Calculate: $(f+g)(x)$, given $f(x)=−x2−3x+5$ and $g(x)=3x2+2x+1$.

Solution: The notation $(f+g)(x)$ indicates that you should add the functions $f(x)+g(x)$ and collect like terms.

Answer: $(f+g)(x)=2x2−x+6$

Example 11: Calculate: $(f−g)(x)$, given $f(x)=2x−3$ and $g(x)=−2x2+2x+5$.

Solution: The notation $(f−g)(x)$ indicates that you should subtract the functions $f(x)−g(x)$:

Answer: $(f−g)(x)=2x2−8$

We may be asked to evaluate the sum or difference of two functions. We have the option to first find the sum or difference and use the resulting function to evaluate for the given variable, or to first evaluate each function and then find the sum or difference.

Example 12: Calculate: $(f−g)(5)$, given $f(x)=x2+x−7$ and $g(x)=4x+10$.

Solution: First, find $(f−g)(x)=f(x)−g(x)$.

Therefore,

Next, substitute 5 for the variable x.

Answer: $(f−g)(5)=−7$

Alternate Solution: Since $(f−g)(5)=f(5)−g(5)$, we can find $f(5)$ and $g(5)$ and then subtract the results.

Therefore, we have

Answer: $(f−g)(5)=−7$

### Key Takeaways

• When adding polynomials, remove the associated parentheses and then combine like terms.
• When subtracting polynomials, distribute the −1 and subtract all the terms before removing the parentheses and combining like terms.
• The notation $(f+g)(x)$ indicates that you add the functions.
• The notation $(f−g)(x)$ indicates that you subtract the functions.

### Topic Exercises

1. $(2x+1)+(−x+7)$

2. $(−6x+5)+(3x−1)$

3. $(23x+12)+(13x−2)$

4. $(13x−34)+(56x+18)$

5. $(2x+1)+(x−3)+(5x−2)$

6. $(2x−8)+(−3x2+7x−5)$

7. $(x2−3x+7)+(3x2−8x−5)$

8. $(−5x2−1+x)+(−x+7x2−9)$

9. $(12x2−13x+16)+(−32x2+23x−1)$

10. $(−35x2+14x−6)+(2x2−38x+52)$

11. $(x2+5)+(3x2−2x+1)+(x2+x−3)$

12. $(a3−a2+a−8)+(a3+a2+6a−2)$

13. $(a3−8)+(−3a3+5a2−2)$

14. $(4a5+5a3−a)+(3a4−2a2+7)$

15. $(2x2+5x−12)+(7x−5)$

16. $(3x+5)+(x2−x+1)+(x3+2x2−3x+6)$

17. $(6x5−7x3+x2−15)+(x4+2x3−6x+12)$

18. $(1+7x−5x3+4x4)+(−3x3+5−x2+x)$

19. $(x2y2−7xy+7)+(4x2y2−3xy−8)$

20. $(x2+xy−y2)+(7x2−5xy+2y2)$

21. $(2x2+3xy−7y2)+(−5x2−3xy+8y2)$

22. $(a2b2−100)+(2a2b2−3ab+20)$

23. $(ab2−3a2b+ab−3)+(−2a2b+ab2−7ab−1)$

24. $(10a2b−7ab+8ab2)+(6a2b−ab+5ab2)$

25. Find the sum of $2x+8$ and $7x−1$.

26. Find the sum of $13x−15$ and $16x+110$.

27. Find the sum of $x2−10x+8$ and $5x2−2x−6$.

28. Find the sum of $a2−5a+10$ and $−9a2+7a−11$.

29. Find the sum of $x2y2−xy+6$ and $x2y2+xy−7$.

30. Find the sum of $x2−9xy+7y2$ and $−3x2−3xy+7y2$.

Part B: Subtraction of Polynomials

Subtract.

31. $(5x−3)−(2x−1)$

32. $(−4x+1)−(7x+10)$

33. $(14x−34)−(34x+18)$

34. $(−35x+37)−(25x−32)$

35. $(x2+7x−5)−(4x2−5x+1)$

36. $(−6x2+3x−12)−(−6x2+3x−12)$

37. $(−3x3+4x−8)−(−x2+4x+10)$

38. $(12x2+13x−34)−(32x2−16x+12)$

39. $(59x2+15x−13)−(13x2+310x+59)$

40. $(a3−4a2+3a−7)−(7a3−2a2−6a+9)$

41. $(3a3+5a2−2)−(a3−a+8)$

42. $(5x5+4x3+x2−6)−(4x4−3x3−x+3)$

43. $(3−5x−x3+5x4)−(−5x3+2−x2−7x)$

44. $(x5−6x3+9x)−(4x4+2x2−5)$

45. $(2x2y2−4xy+9)−(3x2y2−3xy−5)$

46. $(x2+xy−y2)−(x2+xy−y2)$

47. $(2x2+3xy−7y2)−(−5x2−3xy+8y2)$

48. $(ab2−3a2b+ab−3)−(−2a2b+ab2−7ab−1)$

49. $(10a2b−7ab+8ab2)−(6a2b−ab+5ab2)$

50. $(10a2b2+5ab−6)−(5a2b2+5ab−6)$

51. Subtract $3x+1$ from $5x−9$.

52. Subtract $x2−5x+10$ from $x2+5x−5$.

53. Find the difference of $3x−7$ and $8x+6$.

54. Find the difference of $2x2+3x−5$ and $x2−9$.

55. The cost in dollars of producing customized coffee mugs with a company logo is given by the formula $C=150+0.10x$, where x is the number of cups produced. The revenue from selling the cups in the company store is given by $R=10x−0.05x2$, where x is the number of units sold.

a. Find a formula for the profit. (profit = revenue − cost)

b. Find the profit from producing and selling 100 mugs in the company store.

56. The cost in dollars of producing sweat shirts is given by the formula $C=10q+1200$, where C is the cost and q represents the quantity produced. The revenue generated by selling the sweat shirts for $37 each is given by $R=37q$, where q represents the quantity sold. Determine the profit generated if 125 sweat shirts are produced and sold. 57. The outer radius of a washer is 3 times the radius of the hole. a. Derive a formula for the area of the face of the washer. b. What is the area of the washer if the hole has a diameter of 10 millimeters? 58. Derive a formula for the surface area of the following rectangular solid. Part C: Addition and Subtraction of Polynomial Simplify. 59. $(2x+3)−(5x−8)+(x−7)$ 60. $(3x−5)−(7x−11)−(5x+2)$ 61. $(3x−2)−(4x−1)+(x+7)$ 62. $(5x−3)−(2x+1)−(x−1)$ 63. $(5x2−3x+2)−(x2+x−4)+(7x2−2x−6)$ 64. $(−2x3+x2−8)−(3x2+x−6)−(2x−1)$ 65. $(2x−7)−(x2+3x−7)+(6x−1)$ 66. $(6x2−10x+13)+(4x2−9)−(9−x2)$ 67. $(a2−b2)−(2a2+3ab−4b2)+(5ab−1)$ 68. $(a2−3ab+b2)−(a2+ b2)−(3ab−5)$ 69. $(12x2−34x+14)−(32x−34)+(54x−12)$ 70. $(95x2−13x+2)−(310x2−45)−(x+52)$ Part D: Addition and Subtraction of Polynomial Functions Find $(f+g)(x)$ and $(f−g)(x)$, given the following functions. 71. $f(x)=4x−1$ and $g(x)=−3x+1$ 72. $f(x)=−x+5$ and $g(x)=2x−3$ 73. $f(x)=3x2−5x+7$ and $g(x)=−2x2+5x−1$ 74. $f(x)=x3+2x2−6x+2$ and $g(x)=2x3+2x2−5x−1$ 75. $f(x)=12x+13$ and $g(x)=15x2−32x+16$ 76. $f(x)=x2−5x+13$ and $g(x)=23x2−x−12$ Given $f(x)=2x−3$ and $g(x)=x2+3x−1$, find the following. 77. $(f+g)(x)$ 78. $(g+f)(x)$ 79. $(f−g)(x)$ 80. $(g−f)(x)$ 81. $(g+g)(x)$ 82. $(f+g)(3)$ 83. $(f+g)(−2)$ 84. $(f+g)(0)$ 85. $(f−g)(0)$ 86. $(f−g)(−2)$ 87. $(g−f)(−2)$ 88. $(g−f)(12)$ Given $f(x)=5x2−3x+2$ and $g(x)=2x2+6x−4$, find the following. 89. $(f+g)(x)$ 90. $(g+f)(x)$ 91. $(f−g)(x)$ 92. $(g−f)(x)$ 93. $(f+g)(−2)$ 94. $(f−g)(−2)$ 95. $(f+g)(0)$ 96. $(f−g)(0)$ ### Answers 1: $x+8$ 3: $x−32$ 5: $8x−4$ 7: $4x2−11x+2$ 9: $−x2+13x−56$ 11: $5x2−x+3$ 13: $−2a3+5a2−10$ 15: $2x2+12x−17$ 17: $6x5+x4−5x3+x2−6x−3$ 19: $5x2y2−10xy−1$ 21: $−3x2+y2$ 23: $−5a2b+2ab2−6ab−4$ 25: $9x+7$ 27: $6x2−12x+2$ 29: $2x2y2−1$ 31: $3x−2$ 33: $−12x−78$ 35: $−3x2+12x−6$ 37: $−3x3+x2−18$ 39: $29x2−110x−89$ 41: $2a3+5a2+a−10$ 43: $5x4+4x3+x2+2x+1$ 45: $−x2y2−xy+14$ 47: $7x2+6xy−15y2$ 49: $4a2b+3ab2−6ab$ 51: $2x−10$ 53: $−5x−13$ 55: a. $P=−0.05x2+9.9x−150$; b.$340

57: a. $A=8πr2$; b. 628.32 square millimeters

59: $−2x+4$

61: 6

63: $11x2−6x$

65: $−x2+5x−1$

67: $−a2+2ab+3b2−1$

69: $12x2−x+12$

71: $(f+g)(x)=x$ and $(f−g)(x)=7x−2$

73: $(f+g)(x)=x2+6$ and $(f−g)(x)=5x2−10x+8$

75: $(f+g)(x)=15x2−x+12$ and $(f−g)(x)=−15x2+2x+16$

77: $(f+g)(x)=x2+5x−4$

79: $(f−g)(x)=−x2−x−2$

81: $(g+g)(x)=2x2+6x−2$

83: $(f+g)(−2)=−10$

85: $(f−g)(0)=−2$

87: $(g−f)(−2)=4$

89: $(f+g)(x)=7x2+3x−2$

91: $(f−g)(x)=3x2−9x+6$

93: $(f+g)(−2)=20$

95: $(f+g)(0)=−2$