Skip to main content
Mathematics LibreTexts

1.5: Polynomials

  • Page ID
    96232
  • \( \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

    In this section students will:

    • Identify the degree and leading coefficient of polynomials.
    • Add and subtract polynomials.
    • Multiply polynomials.
    • Use FOIL to multiply binomials.
    • Perform operations with polynomia
    • ls of several variables.

    Earl is building a doghouse, whose front is in the shape of a square topped with a triangle. There will be a rectangular door through which the dog can enter and exit the house. Earl wants to find the area of the front of the doghouse so that he can purchase the correct amount of paint. Using the measurements of the front of the house, shown in Figure \(\PageIndex{1}\), we can create an expression that combines several variable terms, allowing us to solve this problem and others like it.

    Sketch of a house formed by a square and a triangle based on the top of the square. A rectangle is placed at the bottom center of the square to mark a doorway. The height of the door is labeled: x and the width of the door is labeled: 1 foot. The side of the square is labeled: 2x. The height of the triangle is labeled: 3/2 feet.
    Figure \(\PageIndex{1}\)
    • First find the area of the square in square feet.

    \[\begin{align*} A &= s^2\\ &= {(2x)}^2\\ &= 4x^2 \end{align*}\]

    • Then find the area of the triangle in square feet.

    \[\begin{align*} A &= \dfrac{1}{2}bh\\ &= \dfrac{1}{2}(2x)\left (\dfrac{3}{2} \right )\\ &= \dfrac{3}{2}x \end{align*}\]

    • Next find the area of the rectangular door in square feet.

    \[\begin{align*} A &= lw\\ &= x\times1\\ &= x \end{align*}\]

    The area of the front of the doghouse can be found by adding the areas of the square and the triangle, and then subtracting the area of the rectangle. When we do this, we get

    \(4x^2+\dfrac{3}{2}x-x\) \(ft^2\)

    or

    \(4x^2+\dfrac{1}{2}x\) \(ft^2\)

    In this section, we will examine expressions such as this one, which combine several variable terms.

    Identifying the Degree and Leading Coefficient of Polynomials

    The formula just found is an example of a polynomial, which is a sum of or difference of terms, each consisting of a variable raised to a nonnegative integer power. A number multiplied by a variable raised to an exponent, such as \(384\pi\), is known as a coefficient. Coefficients can be positive, negative, or zero, and can be whole numbers, decimals, or fractions. Each product \(a_ix^i\), such as \(384\pi w\), is a term of a polynomial. If a term does not contain a variable, it is called a constant.

    A polynomial containing only one term, such as \(5x^4\), is called a monomial. A polynomial containing two terms, such as \(2x−9\), is called a binomial. A polynomial containing three terms, such as \(−3x^2+8x−7\), is called a trinomial.

    We can find the degree of a polynomial by identifying the highest power of the variable that occurs in the polynomial. The term with the highest degree is called the leading term because it is usually written first. The coefficient of the leading term is called the leading coefficient. When a polynomial is written so that the powers are descending, we say that it is in standard form.

    A polynomial reading: a sub n times x to the nth power plus and so on plus a sub 2 times x squared plus a sub one times x plus a subzero is shown. The a in the term a sub n is labeled: leading coefficient. The n in the term x to the nth power is labeled: degree. Finally, the entire term is labeled as: Leading term.

    Polynomials

    A polynomial is an expression that can be written in the form

    \[a_nx^n+...+a_2x^2+a_1x+a_0\]

    Each real number ai is called a coefficient. The number \(a_0\) that is not multiplied by a variable is called aconstant. Each product \(a_ix^i\) is a term of a polynomial. The highest power of the variable that occurs in the polynomial is called the degree of a polynomial. The leading term is the term with the highest power, and its coefficient is called the leading coefficient.

    How to: Given a polynomial expression, identify the degree and leading coefficient.
    1. Find the highest power of x to determine the degree.
    2. Identify the term containing the highest power of x to find the leading term.
    3. Identify the coefficient of the leading term.
    Example \(\PageIndex{1}\): Identifying the Degree and Leading Coefficient of a Polynomial

    For the following polynomials, identify the degree, the leading term, and the leading coefficient.

    1. \(3+2x^2−4x^3\)
    2. \(5t^5−2t^3+7t\)
    3. \(6p−p^3−2\)

    Solution

    1. The highest power of \(x\) is \(3\), so the degree is \(3\). The leading term is the term containing that degree, \(−4x^3\). The leading coefficient is the coefficient of that term, \(−4\).
    2. The highest power of \(t\) is \(5\), so the degree is \(5\). The leading term is the term containing that degree, \(5t^5\). The leading coefficient is the coefficient of that term, \(5\).
    3. The highest power of \(p\) is \(3\), so the degree is \(3\). The leading term is the term containing that degree, \(−p^3\), The leading coefficient is the coefficient of that term, −1.
    Exercise \(\PageIndex{1}\)

    Identify the degree, leading term, and leading coefficient of the polynomial \(4x^2−x^6+2x−6\).

    Answer

    The degree is \(6\), the leading term is \(−x^6\), and the leading coefficient is \(−1\).

    Adding and Subtracting Polynomials

    We can add and subtract polynomials by combining like terms, which are terms that contain the same variables raised to the same exponents. For example, \(5x^2\) and \(−2x^2\) are like terms, and can be added to get \(3x^2\), but \(3x\) and \(3x^2\) are not like terms, and therefore cannot be added.

    How to: Given multiple polynomials, add or subtract them to simplify the expressions.
    1. Combine like terms.
    2. Simplify and write in standard form.
    Example \(\PageIndex{2}\): Adding Polynomials

    Find the sum.

    \((12x^2+9x−21)+(4x^3+8x^2−5x+20)\)

    Solution

    \[\begin{align*} &4x^3+(12x^2+8x^2)+(9x-5x)+(-21+20)\qquad \text{Combine like terms} \\ &4x^3+20x^2+4x-1\qquad \qquad \qquad \qquad \qquad \qquad \; \; \; \text{Simplify} \end{align*}\]

    Analysis

    We can check our answers to these types of problems using a graphing calculator. To check, graph the problem as given along with the simplified answer. The two graphs should be equivalent. Be sure to use the same window to compare the graphs. Using different windows can make the expressions seem equivalent when they are not.

    Exercise \(\PageIndex{2}\)

    Find the sum.

    \((2x^3+5x^2−x+1)+(2x^2−3x−4)\)

    Answer

    \(2x^3+7x^2−4x−3\)

    Example \(\PageIndex{3}\): Subtracting Polynomials

    Find the difference.

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

    Solution

    \(7x^4−5x^3+(−x^2+2x^2)+(6x−3x)+(1−2)\) Combine like terms

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

    Analysis

    Note that finding the difference between two polynomials is the same as adding the opposite of the second polynomial to the first.

    Exercise \(\PageIndex{3}\)

    Find the difference.

    \((−7x^3−7x^2+6x−2)−(4x^3−6x^2−x+7)\)

    Answer

    \(−11x^3−x^2+7x−9\)

    Multiplying Polynomials

    Multiplying polynomials is a bit more challenging than adding and subtracting polynomials. We must use the distributive property to multiply each term in the first polynomial by each term in the second polynomial. We then combine like terms. We can also use a shortcut called the FOIL method when multiplying binomials. Certain special products follow patterns that we can memorize and use instead of multiplying the polynomials by hand each time. We will look at a variety of ways to multiply polynomials.

    Multiplying Polynomials Using the Distributive Property

    To multiply a number by a polynomial, we use the distributive property. The number must be distributed to each term of the polynomial. We can distribute the \(2\) in \(2(x+7)\) to obtain the equivalent expression \(2x+14\). When multiplying polynomials, the distributive property allows us to multiply each term of the first polynomial by each term of the second. We then add the products together and combine like terms to simplify.

    How to: Given the multiplication of two polynomials, use the distributive property to simplify the expression.
    1. Multiply each term of the first polynomial by each term of the second.
    2. Combine like terms.
    3. Simplify.
    Example \(\PageIndex{4}\): Multiplying Polynomials Using the Distributive Property

    Find the product.

    \((2x+1)(3x^2−x+4)\)

    Solution

    \[\begin{align*} &2x(3x^2-x+4)+1(3x^2-x+4)\qquad \text{ Use the distributive property }\\ &(6x^3-2x^2+8x)+(3x^2-x+4)\qquad \text{ Multiply }\\ &6x^3+(-2x^2+3x^2)+(8x-x)+4\qquad \text{ Combine like terms } \\ &6x^3+x^2+7x+4\qquad \text{ Simplify } \end{align*}\]

    Analysis

    We can use a table to keep track of our work, as shown in Table \(\PageIndex{1}\). Write one polynomial across the top and the other down the side. For each box in the table, multiply the term for that row by the term for that column. Then add all of the terms together, combine like terms, and simplify.

    Table \(\PageIndex{1}\)
      \(3x^2\) \(−x\) \(+4\)
    \(2x\) \(6x^3\) \(−2x^2\) \(8x\)
    \(+1\) \(3x^2\) \(−x\) \(4\)
    Exercise \(\PageIndex{4}\)

    Find the product.

    \((3x+2)(x^3−4x^2+7)\)

    Answer

    \(3x^4−10x^3−8x^2+21x+14\)

    Using FOIL to Multiply Binomials

    A shortcut called FOIL is sometimes used to find the product of two binomials. It is called FOIL because we multiply the first terms, the outer terms, the inner terms, and then the last terms of each binomial.

    Two quantities in parentheses are being multiplied, the first being: a times x plus b and the second being: c times x plus d. This expression equals ac times x squared plus ad times x plus bc times x plus bd. The terms ax and cx are labeled: First Terms. The terms ax and d are labeled: Outer Terms. The terms b and cx are labeled: Inner Terms. The terms b and d are labeled: Last Terms.

    The FOIL method arises out of the distributive property. We are simply multiplying each term of the first binomial by each term of the second binomial, and then combining like terms.

    FOIL to simplify expression

    Given two binomials, use FOIL to simplify the expression.

    1. Multiply the outer terms of the binomials.
    2. Multiply the last terms of each binomial.
    3. Combine like terms and simplify.
    Example \(\PageIndex{5}\): Using FOIL to Multiply Binomials

    Use FOIL to find the product.

    \((2x−10)(3x+3) \nonumber\)

    Solution

    Find the product of the first terms.

    alt

    Find the product of the outer terms.

    alt

    Find the product of the inner terms.

    alt

    Find the product of the last terms.

    alt

    \[\begin{align*} &6x^2+6x-54x-54\qquad \text{Add the products}\\ &6x^2+(6x-54x)-54\qquad \text{Combine like terms} \\ &6x^2-48x-54\qquad \qquad \qquad \text{Simplify} \end{align*}\]

    Exercise \(\PageIndex{5}\)

    Use FOIL to find the product.

    \((x+7)(3x−5)\)

    Answer

    \(3x^2+16x−35\)

    Perfect Square Trinomials

    Certain binomial products have special forms. When a binomial is squared, the result is called a perfect square trinomial. We can find the square by multiplying the binomial by itself. However, there is a special form that each of these perfect square trinomials takes, and memorizing the form makes squaring binomials much easier and faster. Let’s look at a few perfect square trinomials to familiarize ourselves with the form.

    \({(x+5)}^2=x^2+10x+25\)

    \({(x-3)}^2=x^2-6x+9\)

    \({(4x-1)}^2=16x^2-8x+1\)

    Notice that the first term of each trinomial is the square of the first term of the binomial and, similarly, the last term of each trinomial is the square of the last term of the binomial. The middle term is double the product of the two terms. Lastly, we see that the first sign of the trinomial is the same as the sign of the binomial.

    Perfect Square Trinomials

    When a binomial is squared, the result is the first term squared added to double the product of both terms and the last term squared.

    \[{(x+a)}^2=(x+a)(x+a)=x^2+2ax+a^2\]

    How to: Given a binomial, square it using the formula for perfect square trinomials.
    1. Square the first term of the binomial.
    2. Square the last term of the binomial.
    3. For the middle term of the trinomial, double the product of the two terms.
    4. Add and simplify.
    Example \(\PageIndex{6}\): Expanding Perfect Squares

    Expand \((3x−8)^2\).

    Solution

    Begin by squaring the first term and the last term. For the middle term of the trinomial, double the product of the two terms.

    \[\begin{align*} &{(3x)}^2-2(3x)(8)+{(-8)}^2 \\ &9x^2-48x+64\qquad \qquad \; \; \; \; \text{Simplify} \end{align*}\]

    Exercise \(\PageIndex{6}\)

    Expand \({(4x−1)}^2\).

    Answer

    \(16x^2−8x+1\)

    Difference of Squares

    Another special product is called the difference of squares, which occurs when we multiply a binomial by another binomial with the same terms but the opposite sign. Let’s see what happens when we multiply \((x+1)(x−1)\) using the FOIL method.

    \[\begin{align*} (x+1)(x-1) &= x^2-x+x-1\\ &= x^2-1 \end{align*}\]

    The middle term drops out, resulting in a difference of squares. Just as we did with the perfect squares, let’s look at a few examples.

    \((x+5)(x-5)=x^2-25\)

    \((x+11)(x-11)=x^2-121\)

    \((2x+3)(2x-3)=4x^2-9\)

    Because the sign changes in the second binomial, the outer and inner terms cancel each other out, and we are left only with the square of the first term minus the square of the last term.

    Q&A

    Is there a special form for the sum of squares?

    No. The difference of squares occurs because the opposite signs of the binomials cause the middle terms to disappear. There are no two binomials that multiply to equal a sum of squares.

    Difference of Squares

    When a binomial is multiplied by a binomial with the same terms separated by the opposite sign, the result is the square of the first term minus the square of the last term.

    \[(a+b)(a−b)=a^2−b^2\]

    Howto: Given a binomial multiplied by a binomial with the same terms but the opposite sign, find the difference of squares.
    1. Square the first term of the binomials.
    2. Square the last term of the binomials.
    3. Subtract the square of the last term from the square of the first term.
    Example \(\PageIndex{7}\): Multiplying Binomials Resulting in a Difference of Squares

    Multiply \((9x+4)(9x−4)\).

    Solution

    Square the first term to get \({(9x)}^2=81x^2\). Square the last term to get \(4^2=16\). Subtract the square of the last term from the square of the first term to find the product of \(81x^2−16\).

    Exercise \(\PageIndex{7}\)

    Multiply \((2x+7)(2x−7)\).

    Answer

    \(4x^2−49\)

    Performing Operations with Polynomials of Several Variables

    We have looked at polynomials containing only one variable. However, a polynomial can contain several variables. All of the same rules apply when working with polynomials containing several variables. Consider an example:

    \[\begin{align*} &(a+2b)(4a-b-c) a(4a-b-c)+2b(4a-b-c)\qquad \text{ Use the distributive property }\\ &4a^2-ab-ac+8ab-2b^2-2bc\qquad \qquad\qquad\qquad\qquad \text{ Multiply }\\ &4a^2+(-ab+8ab)-ac-2b^2-2bc\qquad \qquad\qquad\qquad \; \text{ Combine like terms } \\ &4a^2+7ab-ac-2bc-2b^2\qquad \qquad \qquad \qquad \qquad \qquad\text{ Simplify } \end{align*}\]

    Example \(\PageIndex{8}\): Multiplying Polynomials Containing Several Variables

    Multiply \((x+4)(3x−2y+5)\).

    Solution

    \[\begin{align*} &x(3x-2y+5)+4(3x-2y+5)\qquad \text{ Use the distributive property }\\ &3x^2-2xy+5x+12x-8y+20\qquad \text{ Multiply }\\ &3x^2-2xy+(5x+12x)-8y+20\qquad \text{ Combine like terms } \\ &3x^2-2xy+17x-8y+20\qquad \qquad\text{ Simplify } \end{align*}\]

    Exercise \(\PageIndex{8}\)

    Multiply \((3x−1)(2x+7y−9)\).

    Answer

    \(6x^2+21xy−29x−7y+9\)

    Media

    Access these online resources for additional instruction and practice with polynomials.

    1. Adding and Subtracting Polynomials
    2. Multiplying Polynomials
    3. Special Products of Polynomials

    Key Equations

    perfect square trinomial \({(x+a)}^2=(x+a)(x+a)=x^2+2ax+a^2\)
    difference of squares \((a+b)(a−b)=a^2−b^2\)

    Key Concepts

    • A polynomial is a sum of terms each consisting of a variable raised to a non-negative integer power. The degree is the highest power of the variable that occurs in the polynomial. The leading term is the term containing the highest degree, and the leading coefficient is the coefficient of that term. See Example.
    • We can add and subtract polynomials by combining like terms. See Example and Example.
    • To multiply polynomials, use the distributive property to multiply each term in the first polynomial by each term in the second. Then add the products. See Example.
    • FOIL (First, Outer, Inner, Last) is a shortcut that can be used to multiply binomials. See Example.
    • Perfect square trinomials and difference of squares are special products. See Example and Example.
    • Follow the same rules to work with polynomials containing several variables. See Example.

    This page titled 1.5: Polynomials is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.