Skip to content

Add and Subtract Polynomials

By the end of this section, you will be able to: determine the degree of polynomials, add and subtract polynomials, evaluate a polynomial function for a given value, and add and subtract polynomial functions.

Determine the degree of polynomials

We have learned that a term is a constant or the product of a constant and one or more variables. A monomial is an algebraic expression with one term. When it is of the form axmax^m, where aa is a constant and mm is a whole number, it is called a monomial in one variable. Some examples of monomials in one variable are 2x2x, 5y5y, 17z17z, and 4y24y^2. Monomials can also have more than one variable, such as 5abc5abc and 4a2b3c2-4a^2b^3c^2.

Monomial. A monomial is an algebraic expression with one term. A monomial in one variable is a term of the form axmax^m, where aa is a constant and mm is a whole number.

A monomial, or two or more monomials combined by addition or subtraction, is a polynomial. Some polynomials have special names, based on the number of terms. A monomial is a polynomial with exactly one term. A binomial has exactly two terms, and a trinomial has exactly three terms. There are no special names for polynomials with more than three terms.

Polynomials. polynomial — a monomial, or two or more algebraic terms combined by addition or subtraction, is a polynomial. monomial — a polynomial with exactly one term is called a monomial. binomial — a polynomial with exactly two terms is called a binomial. trinomial — a polynomial with exactly three terms is called a trinomial.

Here are some examples of polynomials.

Polynomialy+1y+14a27ab+2b24a^2-7ab+2b^24x4+x3+8x29x+14x^4+x^3+8x^2-9x+1
Monomial14148y28y^29x3y5-9x^3y^513a3b2c-13a^3b^2c
Binomiala+7ba+7b4x2y24x^2-y^2y216y^2-163p3q9p2q3p^3q-9p^2q
Trinomialx27x+12x^2-7x+129m2+2mn8n29m^2+2mn-8n^26k4k3+8k6k^4-k^3+8kz4+3z21z^4+3z^2-1

Notice that every monomial, binomial, and trinomial is also a polynomial. They are just special members of the “family” of polynomials, and so they have special names. We use the words monomial, binomial, and trinomial when referring to these special polynomials, and just call all the rest polynomials.

The degree of a polynomial and the degree of its terms are determined by the exponents of the variable. A monomial that has no variable, just a constant, is a special case. The degree of a constant is 00.

Degree of a polynomial. The degree of a term is the sum of the exponents of its variables. The degree of a constant is 00. The degree of a polynomial is the highest degree of all its terms.

Let’s start by looking at a monomial. The monomial 8ab28ab^2 has two variables, aa and bb. To find the degree, we need to find the sum of the exponents. The variable aa doesn’t have an exponent written, but remember that means the exponent is 11. The exponent of bb is 22. The sum of the exponents, 1+21+2, is 33, so the degree is 33.

Here are some additional examples.

Monomials14148ab28ab^29x3y5-9x^3y^513a-13a
Degree00338811
Binomialh+7h+77b23b7b^2-3bx3y225x^3y^2-254n38n24n^3-8n^2
Degree of each term1,01,02,12,14,04,03,23,2
Degree of polynomial11224433
Trinomialx212x+27x^2-12x+279a2+6ab+b29a^2+6ab+b^26m4m3n2+8mn56m^4-m^3n^2+8mn^5z4+3z21z^4+3z^2-1
Degree of each term2,1,02,1,02,2,22,2,24,5,64,5,64,2,04,2,0
Degree of polynomial22226644
Polynomialy1y-13y22y53y^2-2y-54x4+x3+8x29x+14x^4+x^3+8x^2-9x+1
Degree of each term1,01,02,1,02,1,04,3,2,1,04,3,2,1,0
Degree of polynomial112244

Working with polynomials is easier when you list the terms in descending order of degrees. When a polynomial is written this way, it is said to be in standard form of a polynomial. Get in the habit of writing the term with the highest degree first.

Example. Determine whether each polynomial is a monomial, binomial, trinomial, or other polynomial. Then find the degree of each polynomial: (a) 7y25y+37y^2-5y+3 (b) 2a4b2-2a^4b^2 (c) 3x54x36x2+x83x^5-4x^3-6x^2+x-8 (d) 2y8xy32y-8xy^3 (e) 1515.

PolynomialNumber of termsTypeDegree of termsDegree of polynomial
(a)7y25y+37y^2-5y+333Trinomial2,1,02,1,022
(b)2a4b2-2a^4b^211Monomial6666
(c)3x54x36x2+x83x^5-4x^3-6x^2+x-855Polynomial5,3,2,1,05,3,2,1,055
(d)2y8xy32y-8xy^322Binomial1,41,444
(e)151511Monomial0000

Determine whether 8y37y2y38y^3-7y^2-y-3 is a monomial, binomial, trinomial, or other polynomial, then find its degree. Enter just the degree as a number.

Determine the degree of the monomial 3x6y3z-3x^6y^3z. Enter just the degree as a number.

Add and subtract polynomials

We have learned how to simplify expressions by combining like terms. Remember, like terms must have the same variables with the same exponent. Since monomials are terms, adding and subtracting monomials is the same as combining like terms. If the monomials are like terms, we just combine them by adding or subtracting the coefficients.

Example. Add or subtract: (a) 25y2+15y225y^2+15y^2 (b) 16pq3(7pq3)16pq^3-(-7pq^3).

(a)

25y2+15y2Combine like terms.40y2 \begin{array}{lrcl} &&& 25y^2+15y^2 \\[4pt] \text{Combine like terms.} &&& 40y^2 \end{array}

(b)

16pq3(7pq3)Combine like terms.23pq3 \begin{array}{lrcl} &&& 16pq^3-(-7pq^3) \\[4pt] \text{Combine like terms.} &&& 23pq^3 \end{array}

Add or subtract: 12q2+9q212q^2+9q^2.

Add or subtract: 8mn3(5mn3)8mn^3-(-5mn^3).

Remember that like terms must have the same variables with the same exponents.

Example. Simplify: (a) a2+7b26a2a^2+7b^2-6a^2 (b) u2v+5u23v2u^2v+5u^2-3v^2.

(a)

a2+7b26a2Combine like terms.5a2+7b2 \begin{array}{lrcl} &&& a^2+7b^2-6a^2 \\[4pt] \text{Combine like terms.} &&& -5a^2+7b^2 \end{array}

(b)

u2v+5u23v2There are no like terms to combine.In this case, the polynomial is unchanged.u2v+5u23v2 \begin{array}{lrcl} &&& u^2v+5u^2-3v^2 \\[4pt] \text{There are no like terms to combine.} \\[4pt] \text{In this case, the polynomial is unchanged.} &&& u^2v+5u^2-3v^2 \end{array}

Simplify: 8y2+3z23y28y^2+3z^2-3y^2.

We can think of adding and subtracting polynomials as just adding and subtracting a series of monomials. Look for the like terms — those with the same variables and the same exponent. The Commutative Property allows us to rearrange the terms to put like terms together.

Example. Find the sum: (7y22y+9)+(4y28y7)(7y^2-2y+9)+(4y^2-8y-7).

Identify like terms.(7y22y+9)+(4y28y7)Rewrite without the parentheses, rearrangingto get the like terms together.7y2+4y22y8y+97Combine like terms.11y210y+2 \begin{array}{lrcl} \text{Identify like terms.} &&& (7y^2-2y+9)+(4y^2-8y-7) \\[4pt] \text{Rewrite without the parentheses, rearranging} \\[4pt] \text{to get the like terms together.} &&& 7y^2+4y^2-2y-8y+9-7 \\[4pt] \text{Combine like terms.} &&& 11y^2-10y+2 \end{array}

Find the sum: (7x24x+5)+(x27x+3)(7x^2-4x+5)+(x^2-7x+3).

Be careful with the signs as you distribute while subtracting the polynomials in the next example.

Example. Find the difference: (9w27w+5)(2w24)(9w^2-7w+5)-(2w^2-4).

(9w27w+5)(2w24)Distribute and identify like terms.9w27w+52w2+4Rearrange the terms.9w22w27w+5+4Combine like terms.7w27w+9 \begin{array}{lrcl} &&& (9w^2-7w+5)-(2w^2-4) \\[4pt] \text{Distribute and identify like terms.} &&& 9w^2-7w+5-2w^2+4 \\[4pt] \text{Rearrange the terms.} &&& 9w^2-2w^2-7w+5+4 \\[4pt] \text{Combine like terms.} &&& 7w^2-7w+9 \end{array}

To subtract aa from bb, we write it as bab-a, placing the bb first.

Find the difference: (8x2+3x19)(7x214)(8x^2+3x-19)-(7x^2-14).

Example. Subtract (p2+10pq2q2)(p^2+10pq-2q^2) from (p2+q2)(p^2+q^2).

(p2+q2)(p2+10pq2q2)Distribute.p2+q2p210pq+2q2Rearrange the terms, to put like terms together.p2p210pq+q2+2q2Combine like terms.10pq+3q2 \begin{array}{lrcl} &&& (p^2+q^2)-(p^2+10pq-2q^2) \\[4pt] \text{Distribute.} &&& p^2+q^2-p^2-10pq+2q^2 \\[4pt] \text{Rearrange the terms, to put like terms together.} &&& p^2-p^2-10pq+q^2+2q^2 \\[4pt] \text{Combine like terms.} &&& -10pq+3q^2 \end{array}

Subtract (a2+5ab6b2)(a^2+5ab-6b^2) from (a2+b2)(a^2+b^2).

When we add and subtract more than two polynomials, the process is the same.

Example. Simplify: (a3a2b)(ab2+b3)+(a2b+ab2)(a^3-a^2b)-(ab^2+b^3)+(a^2b+ab^2).

(a3a2b)(ab2+b3)+(a2b+ab2)Distribute.a3a2bab2b3+a2b+ab2Rewrite without the parentheses, rearrangingto get the like terms together.a3a2b+a2bab2+ab2b3Combine like terms.a3b3 \begin{array}{lrcl} &&& (a^3-a^2b)-(ab^2+b^3)+(a^2b+ab^2) \\[4pt] \text{Distribute.} &&& a^3-a^2b-ab^2-b^3+a^2b+ab^2 \\[4pt] \text{Rewrite without the parentheses, rearranging} \\[4pt] \text{to get the like terms together.} &&& a^3-a^2b+a^2b-ab^2+ab^2-b^3 \\[4pt] \text{Combine like terms.} &&& a^3-b^3 \end{array}

Simplify: (x3x2y)(xy2+y3)+(x2y+xy2)(x^3-x^2y)-(xy^2+y^3)+(x^2y+xy^2).

Evaluate a polynomial function for a given value

A polynomial function is a function defined by a polynomial. For example, f(x)=x2+5x+6f(x)=x^2+5x+6 and g(x)=3x4g(x)=3x-4 are polynomial functions, because x2+5x+6x^2+5x+6 and 3x43x-4 are polynomials.

Polynomial function. A polynomial function is a function whose range values are defined by a polynomial.

In Graphs and Functions, where we first introduced functions, we learned that evaluating a function means finding the value of f(x)f(x) for a given value of xx. To evaluate a polynomial function, we substitute the given value for the variable and then simplify using the order of operations.

Example. For the function f(x)=5x28x+4f(x)=5x^2-8x+4, find: (a) f(4)f(4) (b) f(2)f(-2) (c) f(0)f(0).

(a)

f(x)=5x28x+4To find f(4), substitute 4 for x.f(4)=5(4)28(4)+4Simplify the exponents.f(4)=5168(4)+4Multiply.f(4)=8032+4Simplify.f(4)=52 \begin{array}{lrcl} & f(x) &=& 5x^2-8x+4 \\[4pt] \text{To find } f(4)\text{, substitute } 4 \text{ for } x. & f(4) &=& 5(4)^2-8(4)+4 \\[4pt] \text{Simplify the exponents.} & f(4) &=& 5\cdot 16-8(4)+4 \\[4pt] \text{Multiply.} & f(4) &=& 80-32+4 \\[4pt] \text{Simplify.} & f(4) &=& 52 \end{array}

(b)

f(x)=5x28x+4To find f(2), substitute 2 for x.f(2)=5(2)28(2)+4Simplify the exponents.f(2)=548(2)+4Multiply.f(2)=20+16+4Simplify.f(2)=40 \begin{array}{lrcl} & f(x) &=& 5x^2-8x+4 \\[4pt] \text{To find } f(-2)\text{, substitute } -2 \text{ for } x. & f(-2) &=& 5(-2)^2-8(-2)+4 \\[4pt] \text{Simplify the exponents.} & f(-2) &=& 5\cdot 4-8(-2)+4 \\[4pt] \text{Multiply.} & f(-2) &=& 20+16+4 \\[4pt] \text{Simplify.} & f(-2) &=& 40 \end{array}

(c)

f(x)=5x28x+4To find f(0), substitute 0 for x.f(0)=5(0)28(0)+4Simplify the exponents.f(0)=508(0)+4Multiply.f(0)=0+0+4Simplify.f(0)=4 \begin{array}{lrcl} & f(x) &=& 5x^2-8x+4 \\[4pt] \text{To find } f(0)\text{, substitute } 0 \text{ for } x. & f(0) &=& 5(0)^2-8(0)+4 \\[4pt] \text{Simplify the exponents.} & f(0) &=& 5\cdot 0-8(0)+4 \\[4pt] \text{Multiply.} & f(0) &=& 0+0+4 \\[4pt] \text{Simplify.} & f(0) &=& 4 \end{array}

For the function f(x)=3x2+2x15f(x)=3x^2+2x-15, find f(3)f(3).

For the function f(x)=3x2+2x15f(x)=3x^2+2x-15, find f(5)f(-5).

The polynomial functions similar to the one in the next example are used in many fields to determine the height of an object at some time after it is projected into the air. The polynomial in the next function is used specifically for dropping something from 250250 ft.

Example. The polynomial function h(t)=16t2+250h(t)=-16t^2+250 gives the height of a ball tt seconds after it is dropped from a 250250-foot tall building. Find the height after t=2t=2 seconds.

h(t)=16t2+250To find h(2), substitute 2 for t.h(2)=16(2)2+250Simplify.h(2)=164+250Simplify.h(2)=64+250Simplify.h(2)=186 \begin{array}{lrcl} & h(t) &=& -16t^2+250 \\[4pt] \text{To find } h(2)\text{, substitute } 2 \text{ for } t. & h(2) &=& -16(2)^2+250 \\[4pt] \text{Simplify.} & h(2) &=& -16\cdot 4+250 \\[4pt] \text{Simplify.} & h(2) &=& -64+250 \\[4pt] \text{Simplify.} & h(2) &=& 186 \end{array}

After 22 seconds, the height of the ball is 186186 feet.

The polynomial function h(t)=16t2+150h(t)=-16t^2+150 gives the height of a stone tt seconds after it is dropped from a 150-foot tall cliff. Find the height after t=0t=0 seconds (the initial height of the object).

The polynomial function h(t)=16t2+175h(t)=-16t^2+175 gives the height of a ball tt seconds after it is dropped from a 175-foot tall bridge. Find the height after t=3t=3 seconds.

Add and subtract polynomial functions

Just as polynomials can be added and subtracted, polynomial functions can also be added and subtracted.

Addition and subtraction of polynomial functions. For functions f(x)f(x) and g(x)g(x),

(f+g)(x)=f(x)+g(x)(f+g)(x)=f(x)+g(x)(fg)(x)=f(x)g(x)(f-g)(x)=f(x)-g(x)

Example. For functions f(x)=3x25x+7f(x)=3x^2-5x+7 and g(x)=x24x3g(x)=x^2-4x-3, find: (a) (f+g)(x)(f+g)(x) (b) (f+g)(3)(f+g)(3) (c) (fg)(x)(f-g)(x) (d) (fg)(2)(f-g)(-2).

(a)

(f+g)(x)=f(x)+g(x)Substitute f(x)=3x25x+7 and g(x)=x24x3.(f+g)(x)=(3x25x+7)+(x24x3)Rewrite without the parentheses.(f+g)(x)=3x25x+7+x24x3Put like terms together.(f+g)(x)=3x2+x25x4x+73Combine like terms.(f+g)(x)=4x29x+4 \begin{array}{lrcl} & (f+g)(x) &=& f(x)+g(x) \\[4pt] \text{Substitute } f(x)=3x^2-5x+7 \text{ and } g(x)=x^2-4x-3. & (f+g)(x) &=& (3x^2-5x+7)+(x^2-4x-3) \\[4pt] \text{Rewrite without the parentheses.} & (f+g)(x) &=& 3x^2-5x+7+x^2-4x-3 \\[4pt] \text{Put like terms together.} & (f+g)(x) &=& 3x^2+x^2-5x-4x+7-3 \\[4pt] \text{Combine like terms.} & (f+g)(x) &=& 4x^2-9x+4 \end{array}

(b) In part (a) we found (f+g)(x)(f+g)(x) and now are asked to find (f+g)(3)(f+g)(3).

(f+g)(x)=4x29x+4To find (f+g)(3), substitute x=3.(f+g)(3)=4(3)293+4(f+g)(3)=4993+4(f+g)(3)=3627+4=13 \begin{array}{lrcl} & (f+g)(x) &=& 4x^2-9x+4 \\[4pt] \text{To find } (f+g)(3)\text{, substitute } x=3. & (f+g)(3) &=& 4(3)^2-9\cdot 3+4 \\[4pt] & (f+g)(3) &=& 4\cdot 9-9\cdot 3+4 \\[4pt] & (f+g)(3) &=& 36-27+4=13 \end{array}

Notice that we could have found (f+g)(3)(f+g)(3) by first finding the values of f(3)f(3) and g(3)g(3) separately and then adding the results.

Find f(3).f(x)=3x25x+7f(3)=3(3)25(3)+7f(3)=19Find g(3).g(x)=x24x3g(3)=324(3)3g(3)=6Find (f+g)(3).(f+g)(x)=f(x)+g(x)Substitute f(3)=19 and g(3)=6.(f+g)(3)=19+(6)(f+g)(3)=13 \begin{array}{lrcl} \text{Find } f(3). & f(x) &=& 3x^2-5x+7 \\[4pt] & f(3) &=& 3(3)^2-5(3)+7 \\[4pt] & f(3) &=& 19 \\[4pt] \text{Find } g(3). & g(x) &=& x^2-4x-3 \\[4pt] & g(3) &=& 3^2-4(3)-3 \\[4pt] & g(3) &=& -6 \\[4pt] \text{Find } (f+g)(3). & (f+g)(x) &=& f(x)+g(x) \\[4pt] \text{Substitute } f(3)=19 \text{ and } g(3)=-6. & (f+g)(3) &=& 19+(-6) \\[4pt] & (f+g)(3) &=& 13 \end{array}

(c)

(fg)(x)=f(x)g(x)Substitute f(x)=3x25x+7 and g(x)=x24x3.(fg)(x)=(3x25x+7)(x24x3)Rewrite without the parentheses.(fg)(x)=3x25x+7x2+4x+3Put like terms together.(fg)(x)=3x2x25x+4x+7+3Combine like terms.(fg)(x)=2x2x+10 \begin{array}{lrcl} & (f-g)(x) &=& f(x)-g(x) \\[4pt] \text{Substitute } f(x)=3x^2-5x+7 \text{ and } g(x)=x^2-4x-3. & (f-g)(x) &=& (3x^2-5x+7)-(x^2-4x-3) \\[4pt] \text{Rewrite without the parentheses.} & (f-g)(x) &=& 3x^2-5x+7-x^2+4x+3 \\[4pt] \text{Put like terms together.} & (f-g)(x) &=& 3x^2-x^2-5x+4x+7+3 \\[4pt] \text{Combine like terms.} & (f-g)(x) &=& 2x^2-x+10 \end{array}

(d)

(fg)(x)=2x2x+10To find (fg)(2), substitute x=2.(fg)(2)=2(2)2(2)+10(fg)(2)=24(2)+10(fg)(2)=8+2+10=20 \begin{array}{lrcl} & (f-g)(x) &=& 2x^2-x+10 \\[4pt] \text{To find } (f-g)(-2)\text{, substitute } x=-2. & (f-g)(-2) &=& 2(-2)^2-(-2)+10 \\[4pt] & (f-g)(-2) &=& 2\cdot 4-(-2)+10 \\[4pt] & (f-g)(-2) &=& 8+2+10=20 \end{array}

For functions f(x)=2x24x+3f(x)=2x^2-4x+3 and g(x)=x22x6g(x)=x^2-2x-6, find (f+g)(x)(f+g)(x).

For functions f(x)=2x24x+3f(x)=2x^2-4x+3 and g(x)=x22x6g(x)=x^2-2x-6, find (fg)(2)(f-g)(-2).

Key terms

monomial — an algebraic expression with one term, of the form axmax^m in one variable. polynomial — a monomial, or two or more terms combined by addition or subtraction. binomial — a polynomial with exactly two terms. trinomial — a polynomial with exactly three terms. degree of a term — the sum of the exponents of its variables. degree of a polynomial — the highest degree of all its terms. standard form of a polynomial — a polynomial written with terms in descending order of degree. polynomial function — a function whose range values are defined by a polynomial.


This section is adapted from Intermediate Algebra 2e, Section 5.1: Add and Subtract Polynomials by Lynn Marecek and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: omitted the Be Prepared quiz, media links, and end-of-section exercises; recreated the polynomial-classification tables as markdown tables; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.