Graphing Polynomial Functions

Site: Saylor Academy
Course: MA001: College Algebra
Book: Graphing Polynomial Functions
Printed by: Guest user
Date: Saturday, May 4, 2024, 11:09 AM

Description

In this section, we will bring all we know about polynomial functions and use it to sketch a graph given an equation. You will also learn about the intermediate value theorem and how we can use it to analyze behaviors when we don't know exactly where the zeros of a polynomial are.

Graphing Polynomial Functions

We can use what we have learned about multiplicities, end behavior, and turning points to sketch graphs of polynomial functions. Let us put this all together and look at the steps required to graph polynomial functions.


HOW TO

Given a polynomial function, sketch the graph.

1. Find the intercepts.

2. Check for symmetry. If the function is an even function, its graph is symmetrical about the y- axis, that is, f(−x)=f(x). If a function is an odd function, its graph is symmetrical about the origin, that is, f(−x)=−f(x).

3. Use the multiplicities of the zeros to determine the behavior of the polynomial at the x- intercepts.

4. Determine the end behavior by examining the leading term.

5. Use the end behavior and the behavior at the intercepts to sketch a graph.

6. Ensure that the number of turning points does not exceed one less than the degree of the polynomial.

7. Optionally, use technology to check the graph.


EXAMPLE 8

Sketching the Graph of a Polynomial Function

Sketch a graph of f(x)=-2(x+3)^{2}(x-5).


Solution

This graph has two x-intercepts. At x=−3, the factor is squared, indicating a multiplicity of 2. The graph will bounce at this x-intercept. At x=5, the function has a multiplicity of one, indicating the graph will cross through the axis at this intercept.

The y-intercept is found by evaluating f(0).

\begin{aligned}
f(0) &=-2(0+3)^{2}(0-5) \\
&=-2 \cdot 9 \cdot(-5) \\
&=90
\end{aligned}

The y-intercept is  (0, 90).

Additionally, we can see the leading term, if this polynomial were multiplied out, would be -2 x^{3},, so the end behavior is that of a vertically reflected cubic, with the outputs decreasing as the inputs approach infinity, and the outputs increasing as the inputs approach negative infinity. See Figure 13.

Figure 13


To sketch this, we consider that:

  • As x \rightarrow-\infty the function f(x) \rightarrow \infty, so we know the graph starts in the second quadrant and is decreasing toward the x- axis.
  • Since f(-x)=-2(-x+3)^{2}(-x-5) is not equal to f(x), the graph does not display symmetry.
  • At (−3,0), the graph bounces off of the x-axis, so the function must start increasing.
  • At (0,90), the graph crosses the y-axis at the y-intercept. See Figure 14.

Figure 14


Somewhere after this point, the graph must turn back down or start decreasing toward the horizontal axis because the graph passes through the next intercept at (5,0). See Figure 15.


Figure 15


As x \rightarrow \infty the function f(x) \rightarrow-\infty, so we know the graph continues to decrease, and we can stop drawing the graph in the fourth quadrant.

Using technology, we can create the graph for the polynomial function, shown in Figure 16, and verify that the resulting graph looks like our sketch in Figure 15.


Figure 16 The complete graph of the polynomial function f(x)=-2(x+3)^{2}(x-5)


TRY IT #3

Sketch a graph of f(x)=\frac{1}{4} x(x-1)^{4}(x+3)^{3}.

Using the Intermediate Value Theorem

In some situations, we may know two points on a graph but not the zeros. If those two points are on opposite sides of the x-axis, we can confirm that there is a zero between them. Consider a polynomial function f whose graph is smooth and continuous. The Intermediate Value Theorem states that for two numbers a and b in the domain of f, if a < b and f(a) \neq f(b), then the function f takes on every value between f(a) and f(b). (While the theorem is intuitive, the proof is actually quite complicated and requires higher mathematics.) We can apply this theorem to a special case that is useful in graphing polynomial functions. If a point on the graph of a continuous function f at x=a lies above the x- axis and another point at x=b lies below the x- axis, there must exist a third point between x=a and x=b where the graph crosses the x- axis. Call this point (c, \quad f(c)). This means that we are assured there is a solution c where f(c)=0.

In other words, the Intermediate Value Theorem tells us that when a polynomial function changes from a negative value to a positive value, the function must cross the x- axis. Figure 17 shows that there is a zero between a and b.

Figure 17 Using the Intermediate Value Theorem to show there exists a zero.


INTERMEDIATE VALUE THEOREM

Let f be a polynomial function. The Intermediate Value Theorem states that if f(a) and f(b) have opposite signs, then there exists at least one value c between a and b for which f(c)=0.


EXAMPLE 9

Using the Intermediate Value Theorem

Show that the function f(x)=x^{3}-5 x^{2}+3 x+6 has at least two real zeros between x=1 and x=4.


Solution

As a start, evaluate f(x) at the integer values x=1,2,3, and 4. See Table 2.

x 1 2 3 4
f(x) 5 0 - 3 2

Table 2


We see that one zero occurs at  x=2. Also, since f(3) is negative and f(4) is positive, by the Intermediate Value Theorem, there must be at least one real zero between 3 and 4.

We have shown that there are at least two real zeros between x=1 and x=4.


Analysis

We can also see on the graph of the function in Figure 18 that there are two real zeros between x=1 and x=4.


Figure 18


TRY IT #4

Show that the function f(x)=7 x^{5}-9 x^{4}-x^{2} has at least one real zero between x=1 and x=2.

Writing Formulas for Polynomial Functions

Now that we know how to find zeros of polynomial functions, we can use them to write formulas based on graphs. Because a polynomial function written in factored form will have an x-intercept where each factor is equal to zero, we can form a function that will pass through a set of x-intercepts by introducing a corresponding set of factors.


FACTORED FORM OF POLYNOMIALS

If a polynomial of lowest degree p has horizontal intercepts at x=x_{1}, x_{2}, \ldots, x_{n}, then the polynomial can be written in the factored form: f(x)=a\left(x-x_{1}\right)^{p_{1}}\left(x-x_{2}\right)^{p_{2}} \cdots\left(x-x_{n}\right)^{p_{n}} where the powers p_{i} on each factor can be determined by the behavior of the graph at the corresponding intercept, and the stretch factor a can be determined given a value of the function other than the x-intercept.


HOW TO

Given a graph of a polynomial function, write a formula for the function.

1. Identify the x-intercepts of the graph to find the factors of the polynomial.

2. Examine the behavior of the graph at the x-intercepts to determine the multiplicity of each factor.

3. Find the polynomial of least degree containing all the factors found in the previous step.

4. Use any other point on the graph (the y-intercept may be easiest) to determine the stretch factor.


EXAMPLE 10

Writing a Formula for a Polynomial Function from the Graph

Write a formula for the polynomial function shown in Figure 19.

Figure 19


Solution

This graph has three x-intercepts: x=−3,2, and 5. The y-intercept is located at (0,2). At x=−3 and x=5, the graph passes through the axis linearly, suggesting the corresponding factors of the polynomial will be linear. At x=2, the graph bounces at the intercept, suggesting the corresponding factor of the polynomial will be second degree (quadratic). Together, this gives us

f(x)=a(x+3)(x-2)^{2}(x-5)

To determine the stretch factor, we utilize another point on the graph. We will use the y- intercept (0,–2), to solve for a.

\begin{aligned}
f(0) &=a(0+3)(0-2)^{2}(0-5) \\
-2 &=a(0+3)(0-2)^{2}(0-5) \\
-2 &=-60 a \\
a &=\frac{1}{30}
\end{aligned}

The graphed polynomial appears to represent the function f(x)=\frac{1}{30}(x+3)(x-2)^{2}(x-5).


TRY IT #5

Given the graph shown in Figure 20, write a formula for the function shown.

Figure 20

Using Local and Global Extrema

With quadratics, we were able to algebraically find the maximum or minimum value of the function by finding the vertex. For general polynomials, finding these turning points is not possible without more advanced techniques from calculus. Even then, finding where extrema occur can still be algebraically challenging. For now, we will estimate the locations of turning points using technology to generate a graph.

Each turning point represents a local minimum or maximum. Sometimes, a turning point is the highest or lowest point on the entire graph. In these cases, we say that the turning point is a global maximum or a global minimum. These are also referred to as the absolute maximum and absolute minimum values of the function.


LOCAL AND GLOBAL EXTREMA

A local maximum or local minimum at x=a (sometimes called the relative maximum or minimum, respectively) is the output at the highest or lowest point on the graph in an open interval around x=a. If a function has a local maximum at a, then f(a) \geq f(x) for all x in an open interval around x=a. If a function has a local minimum at a, then f(a) \leq f(x) for all x in an open interval around x=a.

A global maximum or global minimum is the output at the highest or lowest point of the function. If a function has a global maximum at a, then f(a) \geq f(x) for all x. If a function has a global minimum at a, then f(a) \leq f(x) for all x.

We can see the difference between local and global extrema in Figure 21.

Figure 21


Q&A

Do all polynomial functions have a global minimum or maximum?

No. Only polynomial functions of even degree have a global minimum or maximum. For example,  f(x)=x has neither a global maximum nor a global minimum.


EXAMPLE 11

Using Local Extrema to Solve Applications

An open-top box is to be constructed by cutting out squares from each corner of a 14 cm by 20 cm sheet of plastic and then folding up the sides. Find the size of squares that should be cut out to maximize the volume enclosed by the box.


Solution

We will start this problem by drawing a picture like that in Figure 22, labeling the width of the cut-out squares with a variable, w.

Figure 22


Notice that after a square is cut out from each end, it leaves a (14−2w) cm by  (20−2w) cm rectangle for the base of the box, and the box will be w cm tall. This gives the volume

\begin{aligned}
V(w) &=(20-2 w)(14-2 w) w \\
&=280 w-68 w^{2}+4 w^{3}
\end{aligned}

Notice, since the factors are  w,  20–2w and  14–2w, the three zeros are 10, 7, and 0, respectively. Because a height of 0 cm is not reasonable, we consider the only the zeros 10 and 7. The shortest side is 14 and we are cutting off two squares, so values  w may take on are greater than zero or less than 7. This means we will restrict the domain of this function to  0 < w < 7 . Using technology to sketch the graph of V(w) on this reasonable domain, we get a graph like that in Figure 23. We can use this graph to estimate the maximum value for the volume, restricted to values for w that are reasonable for this problem – values from 0 to 7.

Figure 23


From this graph, we turn our focus to only the portion on the reasonable domain,  [0,7]. We can estimate the maximum value to be around 340 cubic cm, which occurs when the squares are about 2.75 cm on each side. To improve this estimate, we could use advanced features of our technology, if available, or simply change our window to zoom in on our graph to produce Figure 24.

Figure 24

From this zoomed-in view, we can refine our estimate for the maximum volume to about 339 cubic cm, when the squares measure approximately 2.7 cm on each side.


TRY IT #6

Use technology to find the maximum and minimum values on the interval  [−1,4] of the function f(x)=-0.2(x-2)^{3}(x+1)^{2}(x-4).

Real Zeros, Factors, and Graphs of Polynomial Functions


Source: Mathispower4u, https://www.youtube.com/watch?v=e_EttLeQblY
Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.