topic badge

4.03 Graphing polynomial functions

Introduction

In lesson  3.06 Solving polynomial equations  , we learned how to find the solutions to polynomials in the form f\left(x\right)=0. In lesson  4.02 Zeros and factors  , we learned how to connect those solutions to the graphs of polynomials. In this lesson, we will connect the concepts from those lessons to one final piece of information in order to draw rough sketches of the graph of polynomial functions.

Graphing polynomials

Exploration

  1. Use the applet below to determine the end behavior of each function based on the degree and leading coefficient. Fill in the blanks in the End Behavior column of the table.

  2. After finding the end behavior, state whether the graph rises or falls to the left and to the right. Fill in the blanks with "rises" or "falls" in the Graph of the function column of the table.

  3. What patterns do you notice in the end behavior of functions with an even degree versus functions with an odd degree?

DegreeLeading CoefficientEnd BehaviorGraph of the function
\text{even}\text{positive}\text{As } x \to -\infty, f(x) \to ⬚ \\ \text{As } x \to +\infty, f(x) \to ⬚\text{⬚ to the left and} \\ \text{⬚ to the right}
\text{even}\text{negative}\text{As } x \to -\infty, f(x) \to ⬚ \\ \text{As } x \to +\infty, f(x) \to ⬚\text{⬚ to the left and} \\ \text{⬚ to the right}
\text{odd}\text{positive}\text{As } x \to -\infty, f(x) \to ⬚ \\ \text{As } x \to +\infty, f(x) \to ⬚\text{⬚ to the left and} \\ \text{⬚ to the right}
\text{odd}\text{negative}\text{As } x \to -\infty, f(x) \to ⬚ \\ \text{As } x \to +\infty, f(x) \to ⬚\text{⬚ to the left and} \\ \text{⬚ to the right}
Loading interactive...

Depending on the leading coefficient and degree of the polynomial, we can identify some trends on the end behavior of the function, where the function values are increasing/decreasing, and where the function values are positive/negative.

x
y
Positive leading coefficient, even degree
x
y
Negative leading coefficient, even degree
x
y
Positive leading coefficient, odd degree
x
y
Negative leading coefficient, odd degree

Between these extremities, a polynomial of degree n can have a maximum of n-1 turning points, with those of even degree having at least one turning point. A polynomial of degree n can have a maximum of n x-intercepts, with those of odd degree having at least one x-intercept.

Steps for sketching the graph of a polynomial function:

  1. Identify the degree and leading coefficient to determine the end behavior

  2. Find the y-intercept by evaluating the expression when x=0

  3. Find the x-intercepts by determining the zeros of the function (when y=0 or f\left(x\right)=0)

  4. Determine the multiplicity of the x-intercepts

If more points on the graph are needed to get a better idea of the key features, we can always build a table of values to find other points on the curve.

Examples

Example 1

Consider the graph of a polynomial with only real roots shown below:

-4
-3
-2
-1
1
2
x
-8
-6
-4
-2
2
4
y
a

State the least possible degree of the polynomial.

Worked Solution
Create a strategy

To determine the degree of the polynomial, we need to find the zeros and their multiplicities. The sum of the multiplicities of each zero will be the degree of the polynomial.

Apply the idea

The real zeros are the x-intercepts of the graph. These are at x=-3, 0, 1. Now, we need to look at how the graph behaves at each intercept to determine the multiplicity of each zero.

At x=-3, the graph crosses the x-axis with a point of inflection, so this zero has multiplicity 3. At x=0, the graph crosses the x-axis with no point of inflection, so this zero has multiplicity 1. At x=1, the graph is tangent to the x-axis, so this zero has multiplicity 2.

Adding the multiplicities of each zero, we find the polynomial has degree of at least 3+1+2=6.

Reflect and check

The graph behaves in similar ways for zeros with even multiplicities or zeros with odd multiplicities greater than 1. For this reason, we cannot always assume that the multiplicity is 2 when the graph is tangent to the x-axis at a zero.

This is why the directions specify finding the least possible degree of the polynomial.

b

Determine whether the leading coefficient is positive or negative.

Worked Solution
Create a strategy

In part (a), we determined that the degree of the polynomial was even. When the degree is even, the end behavior will tend toward the same direction. The leading coefficient tells us whether both ends tend toward positive or negative infinity.

Apply the idea

As x\to-\infty, f\left(x\right)\to\infty and as x\to\infty, f\left(x\right)\to\infty. Since both ends of the graph rise toward positive infinity, the leading coefficient is positive.

Reflect and check

When both ends of the graph tend toward the same direction, the degree of the polynomial is even. When the ends of the graph tend toward opposite directions, the degree of the polynomial is odd.

c

State the equation of the least degree polynomial for the displayed graph.

Worked Solution
Create a strategy

In part (a), we found the zeros at x=-3,0,1, and their multiplicities were 3, 1, and 2 respectively. We can use this information with the factor theorem to write the factors of the function. Then, we need to use another point to find the leading coefficient.

In this case, we cannot use the y-intercept to determine the leading coefficient because it is one of the roots. Instead, we can use the point \left(-1,-8\right).

Apply the idea

From the zeros and their multiplicities, we get the expression \left(x+3\right)^3\left(x-0\right)\left(x-1\right)^2 which can be simplified to x\left(x+3\right)^3\left(x-1\right)^2

Next, we need to use the point \left(-1,-8\right) to find the leading coefficient.

\displaystyle f\left(x\right)\displaystyle =\displaystyle ax\left(x+3\right)^3\left(x-1\right)^2Equation of the function
\displaystyle -8\displaystyle =\displaystyle a\left(-1\right)\left(-1+3\right)^3\left(-1-1\right)^2Substitute values from known point
\displaystyle -8\displaystyle =\displaystyle -a\left(2\right)^3\left(-2\right)^2Evaluate the addition and multiplication
\displaystyle -8\displaystyle =\displaystyle -32aEvaluate the exponents and multiplication
\displaystyle \dfrac{1}{4}\displaystyle =\displaystyle aDivide both sides by -32 and evaluate

Therefore, the equation of this polynomial is f\left(x\right)=\dfrac{1}{4}x\left(x+3\right)^3\left(x-1\right)^2.

Reflect and check

We can check this answer by graphing with technology. When you graph the equation, it would be helpful to adjust the window of your device to show the same domain and range as shown in the graph given.

Example 2

Consider the function f\left(x\right)=2x^3-13x^2+24x-9.

a

Determine all the zeros of f\left(x\right) and their multiplicities.

Worked Solution
Create a strategy

Since the degree of the polynomial is 3, this polynomial has at most 2 turning points and a total of 3 complex roots. To find those roots, we can first try to factor the polynomial by grouping. However, that strategy will not work in this case.

When factoring does not work, we can try to use the rational roots theorem to find the possible rational roots. This theorem can only be used if the coefficients are integers. All the coefficients of this polynomial are integers, so we can use this theorem.

Apply the idea

The leading coefficient is 2 and the constant term is -9. By the rational roots theorem, the possible rational roots will all be factors of 9 or half a factor of 9. So, the possible rational zeros of the polynomial are: \pm 1, \pm 3, \pm 9, \pm \frac{1}{2}, \pm \frac{3}{2}, and \pm \frac{9}{2}.

First, we need to find one root by substituting the possible rational roots. By the remainder theorem, x=a is a root if f\left(a\right)=0. We can start by testing x=1:

\begin{aligned}f\left(1\right)&=2\left(1\right)^3-13\left(1\right)^2+24\left(1\right)-9\\&=2-13+24-9\\&=4\end{aligned}

Since 4\neq 0, x=1 is not a root. Next, we'll try x=-1:

\begin{aligned}f\left(-1\right)&=2\left(-1\right)^3-13\left(-1\right)^2+24\left(-1\right)-9\\&=-2-13-24-9\\&=-48\end{aligned}

Since -48\neq 0, x=-1 is not a root. Testing x=3 next:

\begin{aligned}f\left(3\right)&=2\left(3\right)^3-13\left(3\right)^2+24\left(3\right)-9\\&=2\left(27\right)-13\left(9\right)+24\left(3\right)-9\\&=54-117+72-9\\&=0\end{aligned}

So, x=3 is a root and \left(x-3\right) is a factor by the factor theorem.

Next, we can find \dfrac{f\left(x\right)}{x-3} to find the quadratic factor using synthetic or polynomial long division.

A figure showing the polynomial long division for 2 x cubed minus 13 x squared plus 24 x minus 9 divided by x minus 3. Speak to your teacher for more information.

Finally, we can factor the quadratic to fully factor the original cubic f\left(x\right)=2x^3-13x^2+24x-9.

\displaystyle f\left(x\right)\displaystyle =\displaystyle 2x^3-13x^2+24x-9Original cubic
\displaystyle =\displaystyle \left(x-3\right)\left(2x^2-7x+3\right)Using the root x=3 and long division
\displaystyle =\displaystyle \left(x-3\right)\left(2x-1\right)\left(x-3\right)Factor the quadratic
\displaystyle =\displaystyle \left(x-3\right)^2\left(2x-1\right)Rewrite since \left(x-3\right)\left(x-3\right)=\left(x-3\right)^2

From here, we can see that x=3 is a zero with multiplicity 2, and x=\dfrac{1}{2} is a zero with multiplicity 1.

Reflect and check

Notice how the leading coefficient in standard form is not written in front of the factors in factored form. Instead, the 2 is a coefficient inside a linear factor. When determining the leading coefficient of a polynomial, we should take into account any coefficients in front of the factors and within the factors.

b

Sketch the graph of f\left(x\right).

Worked Solution
Create a strategy

We will need to determine the end behavior using the leading coefficient and degree of the polynomial, find the y-intercept, and use the multiplicity of the x-intercepts to sketch a graph of this function.

Apply the idea

The degree of the function is odd, so the end behavior of each side of the graph will go in opposite directions. The leading coefficient is positive, so we know that as {x\to\infty} we will have y\to\infty. This means that as {x\to -\infty} we will have y\to-\infty.

To find the y-intercept, we need to substitute x=0 into the function.

\displaystyle f\left(x\right)\displaystyle =\displaystyle 2x^3-13x^2+24x-9Original cubic
\displaystyle f\left(0\right)\displaystyle =\displaystyle 2\left(0\right)^3-13\left(0\right)^2+24\left(0\right)-9Substitute x=0
\displaystyle =\displaystyle -9Evaluate the multiplication

The y-intercept is at \left(0,-9\right).

The function will have x-intercepts at \left(3,0\right) and \left(\dfrac{1}{2},0\right). At x=\dfrac{1}{2}, the graph will cross the axis since the multiplicity is 1. After that, the function will have a turning point and will decrease to the next intercept at x=3. At x=3, the graph will touch the axis and turn back around since the multiplicity is even.

Now we have enough information to sketch the function.

x
y
Reflect and check

Due to the x-intercepts and their multiplicities, there must be a relative maximum somewhere between the zeros. Eventually, we will have more mathematical tools to determine the exact positions of local turning points.

For now, the intercepts, their multiplicities, and the end behavior allow us to understand the function's basic shape which is enough for us to make a decent sketch.

Example 3

Sketch the graphs of the following polynomials using the given information.

a
  • Rational coefficients

  • Leading coefficient of -3

  • Degree of 3

  • Zeros include x=1+\sqrt{5} and x=2

Worked Solution
Create a strategy

Since the degree of the polynomial is 3, this polynomial has at most 2 turning points and a total of 3 complex roots. The zeros of the function that were given and their multiplicities are x=2 with multiplicity 1 and x=1+\sqrt{5} with multiplicity 1.

Since the polynomial has rational coefficients, we can use the irrational conjugate theorem to find the remaining zero.

Apply the idea

By the irrational conjugate theorem, if x=1+\sqrt{5} is a zero, then x=1-\sqrt{5} must also be a zero. From these three zeros, we get the expression (x-2)\left[x-\left(1+\sqrt{5}\right)\right]\left[x-\left(1-\sqrt{5}\right)\right]

By the fundamental theorem of algebra, there are no additional factors as the product of the factors has degree 3. Since the leading coefficient is -3, f\left(x\right)=-3\left(x-2\right)\left(x-1-\sqrt{5}\right)\left(x-1+\sqrt{5}\right) is the polynomial function.

We can now find the y-intercept using the equation:

\displaystyle f\left(x\right)\displaystyle =\displaystyle -3\left(x-2\right)\left(x-1-\sqrt{5}\right)\left(x-1+\sqrt{5}\right)Equation of polynomial
\displaystyle f\left(0\right)\displaystyle =\displaystyle -3\left(0-2\right)\left(0-1-\sqrt{5}\right)\left(0-1+\sqrt{5}\right)Substitute x=0
\displaystyle =\displaystyle 6\left(-1-\sqrt{5}\right)\left(-1+\sqrt{5}\right)Evaluate the rational products
\displaystyle =\displaystyle 6\left(1-\sqrt{5}+\sqrt{5}-\sqrt{5}^2\right)Distributive property
\displaystyle =\displaystyle 6\left(1-5\right)Evaluate the exponent, combine like terms
\displaystyle =\displaystyle -24Evaluate the product

The y-intercept is \left(0,-24\right).

We will now determine the end behavior of f\left(x\right)=-3\left(x-2\right)\left(x-1-\sqrt{5}\right)\left(x-1+\sqrt{5}\right).

The degree of the function is 3 which is odd and the leading coefficient is -3 which is negative.

So as x\to\infty, we have f(x)\to-\infty and as x\to-\infty, we have f\left(x\right)\to\infty.

Sketching the graph gives us:

x
y
Reflect and check

Notice that we estimated where 1-\sqrt{5} and 1+\sqrt{5} will be on the axis. If you cannot use a calculator to estimate the decimal, then you can use what you know about other square roots to estimate the decimal.

The \sqrt{5} lies between \sqrt{4} and \sqrt{9} which are both perfect squares.\begin{aligned}\sqrt{4}<&\sqrt{5}<\sqrt{9}\\2<&\sqrt{5}<3\end{aligned}

This means \sqrt{5} is somewhere between 2 and 3. Adding 1 to each expression, \begin{aligned}1+2<&1+\sqrt{5}<1+3\\3<&1+\sqrt{5}<4\end{aligned} we find that 1+\sqrt{5} lies somewhere between 3 and 4.

To estimate where 1-\sqrt{5} lies, we need to multiply by -1 which flips the inequality signs, then add 1.\begin{aligned}-2>&-\sqrt{5}>-3\\1-2>&1-\sqrt{5}<1-3\\-1>&1-\sqrt{5}>-2\end{aligned} This means 1-\sqrt{5} lies somewhere between -1 and -2.

b
  • Increasing intervals: \left(-\infty,-2\right)\cup \left(0,2\right)

  • Decreasing intervals: \left(-2,0\right)\cup \left(2,\infty\right)

  • Only 2 roots, both real, each with degree 2

  • Relative minimum at \left(0,-8\right)

Worked Solution
Create a strategy

Recall that increasing and decreasing intervals are given in terms of x. From this information, we know the x-values of the turning points, but we do not know the y-values. Picturing these increasing and decreasing intervals, the graph will go up, then down, then up, then down again, forming an M-shape.

Apply the idea

The next piece of information given says there are only 2 roots and both are real, so we know there are 2 x-intercepts. Since they both have a multiplicity of 2, these will be tangent to the axis. This means the function must turn at the roots, so the x-intercepts are also the relative maxima.

The last thing we are told is the relative minimum is the y-intercept. This accounts for the last turning point, so we can now draw our sketch.

x
y
Reflect and check

According to the information given, this function is even because it is symmetric to the y-axis. The function also has an even degree since the end behavior tends toward the same direction.

Not all even degree polynomials will also be even functions. If this function had x-intercepts at the origin and \left(4,0\right) for example, it would still have an even degree but it would no longer be an even function.

For a polynomial to be an even function, all terms must have a degree that is even or 0.

Idea summary

The degree of a polynomial and the leading coefficient determine the end behavior.

  • If the degree is even, the end behavior tends toward the same direction

    • Positive leading coefficient: both ends tend toward +\infty

    • Negative leading coefficient: both ends tend toward -\infty

  • If the degree is odd, the end behavior tends toward opposite directions

    • Positive leading coefficient: the left side falls toward -\infty and the right side rise toward +\infty

    • Negative leading coefficient: the left side rises toward +\infty and the right side falls toward -\infty

Outcomes

A.APR.B.3

Identify zeros of polynomials when suitable factorizations are available, and use the zeros to construct a rough graph of the function defined by the polynomial.

F.IF.C.7.C

Graph polynomial functions, identifying zeros when suitable factorizations are available, and showing end behavior.

F.IF.C.8

Write a function defined by an expression in different but equivalent forms to reveal and explain different properties of the function.

What is Mathspace

About Mathspace