Source codeVideos

Command Palette

Search for a command to run...

Polynomial

Addition and Subtraction of Polynomials

Basic Concepts

The operations of addition and subtraction on polynomials are essentially the same as for other algebraic forms: we can only add or subtract like terms.

What Are Like Terms?

Like terms are terms that have the exact same variables and variable powers. The coefficients of these terms can be different.

Examples of Like Terms:

  • 3x, 7x, 15x3x, \space -7x, \space -\frac{1}{5}x (all have the variable xx to the power of 1)
  • 12x3, 4x3, 2x3\frac{1}{2}x^3, \space 4x^3, \space -2x^3 (all have the variable xx to the power of 3)
  • 2x2yz3, 34x2yz3, 5z3x2y2x^2yz^3, \space \frac{3}{4}x^2yz^3, \space -5z^3x^2y (all have the variable xx to the power of 2, yy to the power of 1, and zz to the power of 3)

Examples of Unlike Terms:

  • 11x11x and 4x24x^2 (different powers of xx )
  • 4x34x^3 and 2x4-2x^4 (different powers of xx )
  • 4x24x^2 and x5-x^5 (different powers of xx )
  • 34x2yz3\frac{3}{4}x^2yz^3 and 2x2y2x^2y (missing the variable z3z^3)
  • 34x2yz3\frac{3}{4}x^2yz^3 and 7xy2z3-7xy^2z^3 (different powers of xx and yy)

Polynomial Addition

To add two polynomials, we simply add the coefficients of like terms.

Horizontal Method:

  1. Write both polynomials in parentheses connected by a plus sign.
  2. Remove the parentheses.
  3. Group the like terms.
  4. Add the coefficients of each group of like terms (use the distributive property).

Example:

Find the result of (2x3+7x2+3x+5)+(6x3+2x2+4x+1)(2x^3 + 7x^2 + 3x + 5) + (6x^3 + 2x^2 + 4x + 1).

(2x3+7x2+3x+5)+(6x3+2x2+4x+1)(2x^3 + 7x^2 + 3x + 5) + (6x^3 + 2x^2 + 4x + 1)
=2x3+7x2+3x+5+6x3+2x2+4x+1(Remove parentheses)= 2x^3 + 7x^2 + 3x + 5 + 6x^3 + 2x^2 + 4x + 1 \quad \text{(Remove parentheses)}
=(2x3+6x3)+(7x2+2x2)+(3x+4x)+(5+1)(Group like terms)= (2x^3 + 6x^3) + (7x^2 + 2x^2) + (3x + 4x) + (5 + 1) \quad \text{(Group like terms)}
=(2+6)x3+(7+2)x2+(3+4)x+(5+1)(Distributive property)= (2 + 6)x^3 + (7 + 2)x^2 + (3 + 4)x + (5 + 1) \quad \text{(Distributive property)}
=8x3+9x2+7x+6(Final result)= 8x^3 + 9x^2 + 7x + 6 \quad \text{(Final result)}

Polynomial Subtraction

To subtract two polynomials, we change the sign of each term in the polynomial being subtracted, then add them as usual.

Horizontal Method:

  1. Write both polynomials in parentheses connected by a minus sign.
  2. Remove the parentheses. Remember: change the sign of each term in the second parenthesis (distribute the negative sign).
  3. Group the like terms.
  4. Add the coefficients of each group of like terms.

Example:

Find the result of (9x3+4x2+6x+5)(2x3+3x2+3x+4)(9x^3 + 4x^2 + 6x + 5) - (2x^3 + 3x^2 + 3x + 4).

(9x3+4x2+6x+5)(2x3+3x2+3x+4)(9x^3 + 4x^2 + 6x + 5) - (2x^3 + 3x^2 + 3x + 4)
=9x3+4x2+6x+52x33x23x4(Change signs & remove parentheses)= 9x^3 + 4x^2 + 6x + 5 - 2x^3 - 3x^2 - 3x - 4 \quad \text{(Change signs \& remove parentheses)}
=(9x32x3)+(4x23x2)+(6x3x)+(54)(Group like terms)= (9x^3 - 2x^3) + (4x^2 - 3x^2) + (6x - 3x) + (5 - 4) \quad \text{(Group like terms)}
=(92)x3+(43)x2+(63)x+(54)(Distributive property)= (9 - 2)x^3 + (4 - 3)x^2 + (6 - 3)x + (5 - 4) \quad \text{(Distributive property)}
=7x3+1x2+3x+1(Final result)= 7x^3 + 1x^2 + 3x + 1 \quad \text{(Final result)}
=7x3+x2+3x+1= 7x^3 + x^2 + 3x + 1

Note: When subtracting, the negative sign in front of the parenthesis changes the sign of every term inside that parenthesis.

Vertical Method

Besides the horizontal method, polynomial addition and subtraction can also be done using the vertical method, similar to adding and subtracting regular numbers.

Steps:

  1. Arrange both polynomials vertically.
  2. Ensure like terms are aligned in the same column.
  3. If a term is missing in one of the polynomials, leave a blank space or write a coefficient of 0.
  4. Add or subtract the coefficients in each column.

Example of Vertical Addition:

2x3+7x2+3x+5+6x3+2x2+4x+18x3+9x2+7x+6\begin{array}{rrrrr} & 2x^3 & +7x^2 & +3x & +5 \\ + & 6x^3 & +2x^2 & +4x & +1 \\ \hline & 8x^3 & +9x^2 & +7x & +6 \end{array}

Example of Vertical Subtraction:

9x3+4x2+6x+52x3+3x2+3x+47x3+1x2+3x+1\begin{array}{rrrrr} & 9x^3 & +4x^2 & +6x & +5 \\ - & 2x^3 & +3x^2 & +3x & +4 \\ \hline & 7x^3 & +1x^2 & +3x & +1 \end{array}

Both methods (horizontal and vertical) will yield the same answer. Choose the method that you find most comfortable and easiest to understand.

Graphical Addition and Subtraction of Polynomial Functions

Besides performing operations algebraically, we can also understand polynomial addition and subtraction visually through their graphs.

Suppose we have three graphs of polynomial functions:

Graph of f(x)=x+1f(x) = x + 1
Linear Function (Degree 1)
Graph of g(x)=0.5x42x2+1g(x) = 0.5x^4 - 2x^2 + 1
Degree 4 Function
Graph of h(x)=0.5x3+1.5xh(x) = -0.5x^3 + 1.5x
Degree 3 Function

Sketching the Graph of the Sum/Difference

Without needing the exact equations of functions ff, gg, or hh, we can sketch the graph of their sum (e.g., f(x)+g(x)f(x) + g(x)) or difference (e.g., f(x)g(x)f(x) - g(x)) as follows:

  1. Choose several identical xx values on both graphs.
  2. For each xx value, read the yy value from each graph. Let yf=f(x)y_f = f(x) and yg=g(x)y_g = g(x).
  3. For addition (f(x)+g(x)f(x) + g(x)): Calculate the value ynew=yf+ygy_{\text{new}} = y_f + y_g.
  4. For subtraction (f(x)g(x)f(x) - g(x)): Calculate the value ynew=yfygy_{\text{new}} = y_f - y_g.
  5. Plot the point (x,ynew)(x, y_{\text{new}}).
  6. Repeat for several other xx values.
  7. Connect the new points with a smooth curve.

Why does this work?

Because the definition of function addition or subtraction is to add or subtract their output values (yy) for each corresponding input value (xx).

Example Sketches

Here are example sketches of the graphs resulting from the sum f(x)+g(x)f(x) + g(x) and difference f(x)g(x)f(x) - g(x), obtained by vertically adding/subtracting the y-values for each x.

Graph of f(x)+g(x)f(x) + g(x), f(x)=x+1f(x) = x + 1, and g(x)=0.5x42x2+1g(x) = 0.5x^4 - 2x^2 + 1
The result of f(x)+g(x)f(x) + g(x) is x+1+0.5x42x2+1x + 1 + 0.5x^4 - 2x^2 + 1
Graph of f(x)g(x)f(x) - g(x), f(x)=x+1f(x) = x + 1, and g(x)=0.5x42x2+1g(x) = 0.5x^4 - 2x^2 + 1
The result of f(x)g(x)f(x) - g(x) is x+1(0.5x42x2+1)x + 1 - (0.5x^4 - 2x^2 + 1)

In the same way, you can sketch the graphs of f(x)+h(x), g(x)+h(x), f(x)h(x), and g(x)h(x)f(x) + h(x), \space g(x) + h(x), \space f(x) - h(x), \space \text{and} \space g(x) - h(x). The key is to add or subtract the heights (y-values) of the original graphs at each corresponding x-value.