## Section7.2Graphing Polynomial Functions

In Section 7.1, we considered applications of polynomial functions. Although most applications use only a portion of the graph of a particular polynomial, we can learn a lot about these functions by taking a more global view of their behavior.

### SubsectionClassifying Polynomials by Degree

The graph of a polynomial function depends first of all on its degree. We have already studied the graphs of polynomials of degrees $0\text{,}$ $1\text{,}$ and $2\text{.}$

• A polynomial of degree $0$ is a constant, and its graph is a horizontal line. An example of such a polynomial function is $f(x) = 3\text{.}$

• A polynomial of degree $1$ is a linear function, and its graph is a straight line. The function $f(x) = 2x - 3$ is an example of a polynomial of degree $1\text{.}$

• Quadratic functions, such as $f(x) = -2x^2 + 6x + 8\text{,}$ are polynomials of degree $2\text{.}$ The graph of every quadratic function is a parabola, with the same basic shape as the standard parabola, $y = x^2\text{.}$ It has one turning point, where the graph changes from increasing to decreasing or vice versa. The turning point of a parabola is the same as its vertex.

### SubsectionCubic Polynomials

Do the graphs of all cubic, or third-degree, polynomials have a basic shape in common? We can graph a few examples and find out. Unlike the basic parabola, the graph of $y = x^3$ is always increasing. At the origin, however, it changes from concave down to concave up. A point where the graph changes concavity is called an inflection point.

###### Example7.14

Graph the cubic polynomial $P(x) = x^3 - 4x$ and compare its graph with that of the basic cubic, $y = x^3\text{.}$

Solution

The graph of the basic cubic is shown in figure (a) below. To help us understand the graph of the polynomial $P(x) = x^3 - 4x\text{,}$ we will evaluate the function to make a table of values. We can do this by hand or use the Table feature on the graphing calculator.

 $x$ $-3$ $-2$ $-1$ $0$ $1$ $2$ $3$ $P(x)$ $-15$ $0$ $3$ $0$ $-3$ $0$ $15$

The graph of $P(x) = x^3 - 4x$ is shown in figure (b). It is not exactly the same shape as the basic cubic—it has two turning points—but it is similar, especially at the edges of the graphs.

Despite the differences in the central portions of the two graphs, they exhibit similar long-term behavior.

• For very large and very small values of $x\text{,}$ both graphs look like the power function $y = x^3\text{.}$
• The $y$-values increase from $-\infty$ toward zero in the third quadrant, and they increase from zero toward $+\infty$ in the first quadrant. Or we might say that the graphs start at the lower left and extend to the upper right.

All cubic polynomials display this behavior when their lead coefficients (the coefficient of the $x^3$ term) are positive.

• Both of the graphs in Example 7.14 are smooth curves without any breaks or holes. This smoothness is a feature of the graphs of all polynomial functions.
• The domain of any polynomial function is the entire set of real numbers.
###### Checkpoint7.15
1. Complete the table of values below for $C(x) = -x^3 - 2x^2 + 4x + 4\text{.}$

 $x$ $-4$ $-3$ $-2$ $-1$ $0$ $1$ $2$ $3$ $4$ $y$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$
2. Graph $y = C(x)$ in the standard window. Compare the graph to the graphs in Example 7.14: What similarities do you notice? What differences?

1.  $x$ $-4$ $-3$ $-2$ $-1$ $0$ $1$ $2$ $3$ $4$ $y$ $20$ $1$ $-4$ $-1$ $4$ $5$ $-4$ $-29$ $-76$
2. Both graphs have three $x$-intercepts, but the function in Example 7.14 has long-term behavior like $y = x^3\text{,}$ and this function has long-term behavior like $y = -x^3\text{.}$

### SubsectionQuartic Polynomials

Now let’s compare the long-term behavior of two quartic, or fourth-degree, polynomials.

###### Example7.16

Graph the polynomials $f(x) = x^4 - 10x^2 + 9$ and $g(x) = x^4 + 2x^3\text{,}$ and compare.

Solution

For each function we make a table of values.

 $x$ $-4$ $-3$ $-2$ $-1$ $0$ $1$ $2$ $3$ $4$ $f(x)$ $105$ $0$ $-15$ $0$ $9$ $0$ $-15$ $0$ $105$ $G(x)$ $128$ $27$ $0$ $-1$ $0$ $3$ $32$ $135$ $384$

The graphs are shown below. All the essential features of the graphs are shown in these viewing windows. The graphs continue forever in the directions indicated, without any additional twists or turns. You can see that the graph of $f$ has three turning points, and the graph of $g$ has one turning point.

As in Example 7.14, both graphs have similar long-term behavior. The $y$-values decrease from $-\infty$ toward zero as $x$ increases from $-\infty\text{,}$ and the $y$-values increase toward $+\infty$ as $x$ increases to $+\infty\text{.}$ This long-term behavior is similar to that of the power function $y = x^4\text{.}$ Its graph also starts at the upper left and extends to the upper right.

###### Checkpoint7.17
1. Complete the following table of values for $Q(x) = -x^4 - x^3 - 6x^2 + 2\text{.}$

 $x$ $-4$ $-3$ $-2$ $-1$ $0$ $1$ $2$ $3$ $4$ $y$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$ $\hphantom{000}$
2. Graph $y = Q(x)$ in the window

\begin{equation*} \begin{aligned}[t] \text{Xmin} \amp = -5 \amp\amp \text{Xmax} = 5\\ \text{Ymin} \amp = -15 \amp\amp \text{Ymax} = 10 \end{aligned} \end{equation*}

Compare the graph to the graphs in Example 7.16: What similarities do you notice? What differences?

1.  $x$ $-4$ $-3$ $-2$ $-1$ $0$ $1$ $2$ $3$ $4$ $y$ $-286$ $-106$ $-30$ $-4$ $2$ $-6$ $-48$ $-160$ $-414$
2. The graphs all have long-term behavior like a fourth degree power function, $y = ax^4\text{.}$ The long-term behavior of the graphs in Example 7.16 is the same as that of $y = x^4\text{,}$ but the graph here has long-term behavior like $y = -x^4\text{.}$

In Examples 7.14 and 7.16, we have seen polynomials of degree 3 and degree 4, whose graphs are illustrated in the next box. In the Homework Problems, you will consider more graphs to help you verify the following observations.

###### Long-Term Behavior of Polynomial Functions
1. A polynomial of odd degree (with positive lead coefficient) has negative $y$-values for large negative $x$ and positive $y$-values for large positive $x\text{.}$

2. A polynomial of even degree (with positive lead coefficient) has positive $y$-values for both large positive and large negative $x\text{.}$

###### Note7.18

Another way to describe the long-term behavior of a polynomial graph is to note that for large values of $\abs{x}\text{,}$ the shape is similar to a power function of the same degree. It is the presence of the lower-degree terms in the polynomial that are responsible for any extra wiggles or turning points in the graph.

### Subsection$x$-Intercepts and the Factor Theorem

In Chapter 6, we saw that the x-intercepts of a quadratic polynomial, $f(x) = ax^2 + bx + c\text{,}$ occur at values of $x$ for which $f(x) = 0\text{,}$ that is, at the real-valued solutions of the equation $ax^2 + bx + c = 0\text{.}$ The same holds true for polynomials of higher degree.

Solutions of the equation $P(x) = 0$ are called zeros of the polynomial $P\text{.}$ In Example 7.14, we graphed the cubic polynomial $P(x) = x^3 - 4x\text{.}$ Its $x$-intercepts are the solutions of the equation $x^3 - 4x = 0\text{,}$ which we can solve by factoring the polynomial $P(x)\text{.}$

\begin{align*} x^3 - 4x \amp= 0\\ x(x - 2)(x + 2) \amp= 0 \end{align*}

The zeros of $P$ are $0\text{,}$ $2\text{,}$ and $-2\text{.}$ Each zero of $P$ corresponds to a factor of $P(x)\text{.}$ This result suggests the following theorem, which holds for any polynomial $P\text{.}$

###### Factor Theorem

Let $P(x)$ be a polynomial with real number coefficients. Then $(x - a)$ is a factor of $P(x)$ if and only if $P(a) = 0\text{.}$

The factor theorem follows from the division algorithm for polynomials. We will consider both of these results in more detail in the Homework problems.

Because a polynomial function of degree $n$ can have at most $n$ linear factors of the form $(x - a)\text{,}$ it follows that $P$ can have at most $n$ distinct zeros.

Another way of saying this is that if $P(x)$ is a polynomial of $n$th degree, the equation $P(x) = 0$ can have at most $n$ distinct solutions, some of which may be complex numbers. (We consider complex numbers in Section 7.3.)

Because only real-valued solutions appear on the graph as $x$-intercepts, we have the following corollary to the factor theorem.

###### $x$-Intercepts of Polynomials

A polynomial of degree $n$ can have at most $n$ $x$-intercepts.

If some of the zeros of $P$ are complex numbers, they will not appear on the graph, so a polynomial of degree $n$ may have fewer than $n$ $x$-intercepts.

###### Example7.19

Find the real-valued zeros of each of the following polynomials, and list the $x$-intercepts of its graph.

1. $f(x) = x^3 + 6x^2 + 9x$
2. $g(x) = x^4 - 3x^2 - 4$
Solution
1. Factor the polynomial to obtain

\begin{align*} f(x) \amp= x(x^2 + 6x + 9)\\ \amp= x(x + 3)(x + 3) \end{align*}

By the factor theorem, the zeros of $f$ are $0\text{,}$ $-3\text{,}$ and $-3\text{.}$ (We say that $f$ has a zero of multiplicity two at $-3\text{.}$) Because all of these are real numbers, all will appear as $x$-intercepts on the graph. Thus, the $x$-intercepts occur at $(0, 0)$ and at $(-3, 0)\text{.}$

2. Factor the polynomial to obtain

\begin{align*} g(x) \amp= (x^2 - 4)(x^2 + 1)\\ \amp= (x - 2)(x + 2)(x^2 + 1) \end{align*}

Because $x^2 + 1$ cannot be factored in real numbers, the graph has only two $x$-intercepts, at $(-2, 0)$ and $(2, 0)\text{.}$ The graphs of both polynomials are shown below.

###### Checkpoint7.20
1. Find the real-valued zeros of $P(x) = -x^4 + x^3 + 2x^2$ by factoring.

2. Sketch a rough graph of $y = P(x)$ by hand.

1. $-1, 0, 2$

### SubsectionZeros of Multiplicity Two or Three

The appearance of the graph near an $x$-intercept is determined by the multiplicity of the zero there.

• Both real zeros of the polynomial $g(x) = x^4 - 3x^2 - 4$ in Example 7.19b are of multiplicity one, and the graph crosses the $x$-axis at each intercept.
• The polynomial $f(x) = x^3 + 6x^2 + 9x$ in Example 7.19a has a zero of multiplicity two at $x = -3\text{.}$ The graph of $f$ just touches the $x$-axis and then reverses direction without crossing the axis.

To understand what happens in general, compare the graphs of the three polynomials below.

1. In figure (a), $L(x) = x - 2$ has a zero of multiplicity one at $x = 2\text{,}$ and its graph crosses the $x$-axis there.

2. In figure (b), $Q(x) = (x - 2)^2$ has a zero of multiplicity two at $x = 2\text{,}$ and its graph touches the $x$-axis there but changes direction without crossing.

3. In figure (c), $C(x) = (x - 2)^3$ has a zero of multiplicity three at $x = 2\text{.}$ In this case, the graph makes an S-shaped curve at the intercept, like the graph of $y = x^3\text{.}$

Near its $x$-intercepts, the graph of a polynomial takes one of the characteristic shapes illustrated above.

###### Note7.21

Although we will not consider zeros of multiplicity greater than three, they correspond to similar behavior in the graph:

• At a zero of odd multiplicity, the graph has an inflection point at the intercept; its graph makes an S-shaped curve.
• At a zero of even multiplicity, the graph has a turning point; it changes direction without crossing the $x$-axis.
###### Example7.22

Graph the polynomial

\begin{equation*} f(x) = (x + 2)^3(x - 1)(x - 3)^2 \end{equation*}
Solution

The polynomial has degree six, an even number, so its graph starts at the upper left and extends to the upper right. Its $y$-intercept is

\begin{equation*} f(0) = (2)^3(-1)(-3)^2 = -72 \end{equation*}

$f$ has a zero of multiplicity three at $x = -2\text{,}$ a zero of multiplicity one at $x = 1\text{,}$ and a zero of multiplicity two at $x = 3\text{.}$ The graph has an S-shaped curve at $x = -2\text{,}$ crosses the $x$-axis at $x = 1\text{,}$ touches the $x$-axis at $x = 3\text{,}$ and then changes direction, as shown below.

###### Checkpoint7.23

Sketch a rough graph of $f(x) = (x + 3)(x - 1)^2$ by hand. Label the $x$- and $y$-intercepts.

### SubsectionSection Summary

#### SubsubsectionVocabulary

Look up the definitions of new terms in the Glossary.

• Degree

• Multiplicity

• Inflection point

• Quartic

• Turning point

• Cubic

• Corollary

• Zero

#### SubsubsectionCONCEPTS

1. The graphs of all polynomials are smooth curves without breaks or holes.

2. The graph of a polynomial of degree $n$ (with positive leading coefficient) has the same long-term behavior as the power function of the same degree.

3. ###### Factor Theorem

Let $P(x)$ be a polynomial with real number coefficients. Then $(x - a)$ is a factor of $P(x)$ if and only if $P(a) = 0\text{.}$

4. A polynomial of degree $n$ can have at most $n$ $x$-intercepts.

5. At a zero of multiplicity two, the graph of a polynomial has a turning point. At a zero of multiplicity three, the graph of a polynomial has an inflection point.

#### SubsubsectionSTUDY QUESTIONS

1. Describe the graphs of polynomials of degrees $0\text{,}$ $1\text{,}$ and $2\text{.}$

2. What does the degree of a polynomial tell you about its long-term behavior?

3. What is a zero of a polynomial?

4. How are zeros related to the factors of a polynomial?

5. What do the zeros tell you about the graph of a polynomial?

6. Explain the difference between a turning point and an inflection point.

#### SubsubsectionSKILLS

Practice each skill in the Homework  problems listed.

1. Identify $x$-intercepts, turning points, and inflection points: #1–8, 11–18

2. Use a graph to factor a polynomial: #21–28

3. Sketch the graph of a polynomial: #29–46

4. Find a possible formula for a polynomial whose graph is shown: #47–52

5. Graph translations of polynomials: #53–56

### SubsectionHomework 7.2

In Problems 1–8, use your calculator to graph each cubic polynomial.

1. Describe the long-term behavior of each graph. How does this behavior compare to that of the basic cubic? How does the sign of the lead coefficient affect the graph?

2. How many $x$-intercepts does each graph have? How many turning points? How many inflection points?

###### 1

$y = x^3 + 4$

###### 2

$y = x^3 - 8$

###### 3

$y = -2 - 0.05x^3$

###### 4

$y = 5 - 0.02x^3$

###### 5

$y = x^3 - 3x$

###### 6

$y = 9x - x^3$

###### 7

$y = x^3 + 5x^2 - 4x - 20$

###### 8

$y = -x^3 - 2x^2 + 5x + 6$

For Problems 9–10, use a calculator to graph each cubic polynomial.Which graphs are the same?

###### 9
1. $y=x^3-2$

2. $y=(x-2)^3$

3. $y= x^3-6x^2+12x-8$

###### 10
1. $y = x^3 + 3$

2. $y = (x + 3)^3$

3. $y = x^3 + 9x^2+27x+27$

In Problems 11–18, use your calculator to graph each quartic polynomial.

1. Describe the long-term behavior of each graph. How does this behavior compare to that of the basic quartic? How does the sign of the lead coefficient affect the graph?

2. How many $x$-intercepts does each graph have? How many turning points? How many inflection points?

###### 11

$y = 0.5x^4 - 4$

###### 12

$y = 0.3x^4 + 1$

###### 13

$y = -x^4 + 6x^2 - 10$

###### 14

$y = x^4 - 8x^2 - 8$

###### 15

$y = x^4 - 3x^3$

###### 16

$y = -x^4 - 4x^3$

###### 17

$y = -x^4 - x^3 - 2$

###### 18

$y = x^4 + 2x^3 + 4x^2 + 10$

###### 19

From your answers to Problems 1–8, what you can conclude about the graphs of cubic polynomials? Consider the long-term behavior, $x$-intercepts, turning points, and inflection points.

###### 20

From your answers to Problems 11–18, what you can conclude about the graphs of quartic polynomials? Consider the long-term behavior, $x$-intercepts, turning points, and inflection points.

For Problems 21–26,

1. Use your calculator to graph each polynomial and locate the $x$-intercepts. Set $\text{Xmin} =-4.7\text{,}$ $\text{Xmax} = 4.7\text{,}$ and adjust Ymin and Ymax to get a good graph.

2. Write the polynomial in factored form.

3. Expand the factored form of the polynomial (that is, multiply the factors together). Do you get the original polynomial?

###### 21

$P(x) = x^3 - 7x - 6$

###### 22

$Q(x) = x^3 + 3x^2 - x - 3$

###### 23

$R(x) = x^4 - x^3 - 4x^2 + 4x$

###### 24

$S(x) = x^4 + 3x^3 - x^2 - 3x$

###### 25

$p(x) = x^3 - 3x^2 - 6x + 8$

###### 26

$q(x) = x^3 + 6x^2 - x - 30$

###### 27

$r (x) = x^4 - x^3 - 10x^2 + 4x + 24$

###### 28

$s(x) = x^4 - x^3 - 12x^2 - 4x + 16$

For Problems 29–36, sketch a rough graph of each polynomial function by hand, paying attention to the shape of the graph near each $x$-intercept. Check by graphing with a calculator.

###### 29

$q(x) = (x + 4)(x + 1)(x - 1)$

###### 30

$p(x) = x(x + 2)(x + 4)$

###### 31

$G(x) = (x - 2)^2(x + 2)^2$

###### 32

$F(x) = (x - 1)^2 (x - 3)^2$

###### 33

$h(x) = x^3(x + 2)(x - 2)$

###### 34

$H(x) = (x + 1)^3(x - 2)^2$

###### 35

$P(x) = (x + 4)^2(x + 1)^2(x - 1)^2$

###### 36

$Q(x) = x^2(x - 5)(x - 1)^2(x + 2)$

For Problems 37–46,

1. Find the zeros of each polynomial by factoring.

2. Sketch a rough graph by hand.

###### 37

$P(x) = x^4 + 4x^2$

###### 38

$P(x) = x^3 + 3x$

###### 39

$f (x) = x^4 + 4x^3 + 4x^2$

###### 40

$g(x) = x^4 + 4x^3 + 3x^2$

###### 41

$g(x) = 4x - x^3$

###### 42

$f(x) = 8 x -x^4$

###### 43

$K(x) = x^4 - 10x^2 + 16$

###### 44

$m(x) = x^4 - 15x^2 + 36$

###### 45

$r (x) = (x^2 - 1)(x + 3)^2$

###### 46

$s(x) = (x^2 - 9)(x - 1)^2$

For Problems 47–52, find a possible equation for the polynomial whose graph is shown.

###### 52

For Problems 53–56, write the formula for each function in parts (a) through (d) and graph with a calculator. Describe how the graph differs from the graph of $y = f(x)\text{.}$

###### 53

$f (x) = x^3 - 4x$

1. $y=f(x)+3$

2. $y=f(x)-5$

3. $y=f(x-2)$

4. $y=f(x+3)$

###### 54

$f (x) = x^3 -x^2 +x -1$

1. $y=f(x)+4$

2. $y=f(x)-4$

3. $y=f(x-3)$

4. $y=f(x+5)$

###### 55

$f (x) = x^4 - 4x^2$

1. $y=f(x)+6$

2. $y=f(x)-2$

3. $y=f(x-1)$

4. $y=f(x+2)$

###### 56

$f (x) = x^4 + 3x^3$

1. $y=f(x)+5$

2. $y=f(x)-3$

3. $y=f(x-2)$

4. $y=f(x+1)$

###### Division Algorithm for Polynomials

If $f(x)$ and $g(x)$ are nonconstant polynomials with real coefficients, then there exist unique polynomials $q(x)$ and $r (x)$ such that

\begin{equation*} f (x) = g(x)q(x) + r(x), \end{equation*}

where $\text{deg } r(x) \lt \text{deg }g(x)\text{.}$

In Problems 57–60, use polynomial division to divide $f(x)$ by $g(x) \text{,}$ and hence find the quotient, $q(x) \text{,}$ and remainder, $r(x) \text{.}$ (See Algebra Skills Refresher Section A.7 to review polynomial division.)

###### 57

$f (x) = 2x^3 - 2x^2 - 19x - 11, ~g(x) = x - 3$

###### 58

$f (x) = 3x^3 + 12x^2 - 13x - 32, ~g(x) = x + 4$

###### 59

$f (x) = x^5 + 2x^4 - 7x^3 - 12x^2 + 5, ~g(x) = x^2 + 2x - 1$

###### 60

$f (x) = x^5 - 4x^4 + 11x^3 - 12x^2 + 5x + 2, ~g(x) = x^2 - x + 3$

###### 61

The remainder theorem states: If $P(x)$ is a polynomial and $a$ is any real number, there is a unique polynomial $Q(x)$ such that

\begin{equation*} P(x) = (x - a)Q(x) + P(a) \end{equation*}

Follow the steps below to prove the remainder theorem.

1. State the division algorithm applied to the polynomials $P(x)$ and $x-a\text{.}$

2. What must be the degree of $r(x)$ in this case?

3. Evaluate your expression from part (a) at $x = a\text{.}$ What does this tell you about the remainder, $r (x)\text{?}$

###### 62

Verify the remainder theorem for the following:

1. $P(x) = x^3 - 4x^2 + 2x - 1, a = 2$

2. $P(x) = 3x^2 + x - 5, ~a = -3$

###### 63

Use the remainder theorem to prove the factor theorem, stated earlier in this section. You will need to justify two statements:

1. If $P(a) = 0\text{,}$ show that $x - a$ is a factor of $P(x) \text{.}$

2. If $x-a$ is a factor of $P(x)\text{,}$ show that $P(a)=0 \text{.}$

###### 64

Verify the factor theorem for the following:

1. $P(x) = x^4 - 4x^3 - 11x^2 + 3x + 2, ~a = -2$

2. $P(x) = x^3 + 2x^2 - 31x - 20, ~a = 5$

For Problems 65–68,

1. Verify that the given value is a zero of the polynomial.

2. Find the other zeros. (Hint: Use polynomial division to write $P(x) = (x - a)Q(x)\text{,}$ then factor $Q(x)\text{.}$)

###### 65

$P(x) = x^3 - 2x^2 + 1\text{;}$ $a = 1$

###### 66

$P(x) = x^3 + 2x^2 - 1\text{;}$ $a = -1$

###### 67

$P(x) = x^4 - 3x^3 - 10x^2 + 24x\text{;}$ $a = -3$

###### 68

$P(x) = x^4 + 5x^3 - x^2 - 5x\text{;}$ $a = -5$

In Problems 69–70, we use polynomials to approximate other functions.

###### 69
1. Graph the functions $f (x) = e^x$ and

\begin{equation*} p(x) = 1 + x + \frac{1}{2}x^2+\frac{1}{6}x^3 \end{equation*}

in the standard window. For what values of $x$ does it appear that $p(x)$ would be a good approximation for $f (x)\text{?}$

2. Change the window settings to

\begin{align*} {\text{Xmin}} \amp = -4.7 \amp\amp {\text{Xmax}} = 4.7\\ {\text{Ymin}} \amp = 0 \amp\amp {\text{Ymax}} = 20 \end{align*}

and fill in the table of values below. (You can use the value feature on your calculator.)

 $x$ $-1$ $-0.5$ $0$ $0.5$ $1$ $1.5$ $2$ $f(x)$ $\hphantom{0000}$ $\hphantom{0000}$ $\hphantom{0000}$ $\hphantom{0000}$ $\hphantom{0000}$ $\hphantom{0000}$ $\hphantom{0000}$ $p(x)$       
3. The error in the approximation is the difference $f (x) - p(x)\text{.}$ We can reduce the error by using a polynomial of higher degree. The $n$th degree polynomial for approximating $e^x$ is

\begin{equation*} P_n(x) = 1 + x + \frac{1}{2!}x^2+\frac{1}{3!}x^3+ \cdots +\frac{1}{n!}x^n \end{equation*}

where $n! = n(n - 1)(n - 2) \cdots 3 \cdot 2 \cdot 1\text{.}$ Graph $f(x)$ and $P_5(x)$ in the same window as in part (b). What is the error in approximating $f (2)$ by $P_5(2)\text{?}$

4. Graph $f (x) - P_5(x)$ in the same window as in part (b). What does the graph tell you about the error in approximating $f (x)$ by $P_5(x)\text{?}$

###### 70

In Projects for Chapter 2: Periodic Functions, we investigated periodic functions. The sine function, $f (x) = \sin(x)\text{,}$ is a useful periodic function.

1. Graph the functions

\begin{equation*} f (x) =\sin(x)~~~~ \text{and}~~~~p(x) = x - \frac{1}{6}x^3 \end{equation*}

in the standard window. (Check that your calculator is set in Radian mode.) For what values of $x$ does it appear that $p(x)$ would be a good approximation for $f (x)\text{?}$

2. Change the window settings to

\begin{align*} {\text{Xmin}} \amp = -4.7 \amp\amp {\text{Xmax}} = 4.7\\ {\text{Ymin}} \amp = -2 \amp\amp {\text{Ymax}} = 2 \end{align*}

and fill in the table of values below. (You can use the value feature on your calculator.)

 $x$ $-1$ $-0.5$ $0$ $0.5$ $1$ $1.5$ $2$ $f(x)$ $\hphantom{0000}$ $\hphantom{0000}$ $\hphantom{0000}$ $\hphantom{0000}$ $\hphantom{0000}$ $\hphantom{0000}$ $\hphantom{0000}$ $p(x)$       
3. Two more polynomials for approximating $f (x) = \sin(x)$ are

\begin{align*} P_5(x) \amp = 1 -\frac{1}{3!}x^3+\frac{1}{5!}x^5\\ P_7(x) \amp = 1 -\frac{1}{3!}x^3+\frac{1}{5!}x^5 - +\frac{1}{7!}x^7 \end{align*}

(See Problem 69 for the definition of $n!\text{.}$) Graph $f(x)$ and $P_5(x)$ in the same window as in part (b). What is the error in approximating $f (2)$ by $P_5(2)\text{?}$

4. Graph $f (x) - P_5(x)$ in the same window as in part (b). What does the graph tell you about the error in approximating $f (x)$ by $P_5(x)\text{?}$