Motivating Questions
What is a Taylor polynomial? For what purposes are Taylor polynomials used?
What is a Taylor series?
How do we determine the accuracy when we use a Taylor polynomial to approximate a function?
So far, each infinite series we have discussed has been a series of real numbers, such as
In the remainder of this chapter, we will include series that involve a variable. For instance, if in the geometric series in Equation (8.5.1) we replace the ratio with the variable , we have the infinite (still geometric) series
Here we see something very interesting: because a geometric series converges whenever its ratio satisfies , and the sum of a convergent geometric series is , we can say that for
Equation (8.5.3) states that the non-polynomial function on the right is equal to the infinite polynomial expresssion on the left. Because the terms on the left get very small as gets large, we can truncate the series and say, for example, that
Preview Activity
Preview Activity 8.3.1 showed how we can approximate the number using linear, quadratic, and other polynomial functions; we then used similar ideas in Preview Activity 8.4.1 to approximate . In this activity, we review and extend the process to find the "best" quadratic approximation to the exponential function around the origin. Let throughout this activity.
a. Find a formula for , the linearization of at . (We label this linearization because it is a first degree polynomial approximation.) Recall that is a good approximation to for values of close to 0 . Plot and near to illustrate this fact.
b. Since is not linear, the linear approximation eventually is not a very good one. To obtain better approximations, we want to develop a different approximation that "bends" to make it more closely fit the graph of near . To do so, we add a quadratic term to . In other words, we let
for some real number . We need to determine the value of that makes the graph of best fit the graph of near .
Remember that was a good linear approximation to near 0 ; this is because and . It is therefore reasonable to seek a value of so that
Remember, we are letting .
- Calculate to show that .
- Calculate to show that .
- Calculate . Then find a value for so that .
- Explain why the condition will put an appropriate "bend" in the graph of to make fit the graph of around .
Taylor Polynomials
Preview Activity illustrates the first steps in the process of approximating functions with polynomials. Using this process we can approximate trigonometric, exponential, logarithmic, and other nonpolynomial functions as closely as we like (for certain values of ) with polynomials. This is extraordinarily useful in that it allows us to calculate values of these functions to whatever precision we like using only the operations of addition, subtraction, multiplication, and division, which can be easily programmed in a computer.
We next extend the approach in Preview Activity 8.5.1 to arbitrary functions at arbitrary points. Let be a function that has as many derivatives as we need at a point . Recall that is the tangent line to at and is given by the formula
is the linear approximation to near that has the same slope and function value as at the point .
We next want to find a quadratic approximation
so that more closely models near . Consider the following calculations of the values and derivatives of :
.
To make fit better than , we want and to have the same concavity at , in addition to having the same slope and function value. That is, we want to have
This implies that
and thus
Therefore, the quadratic approximation to centered at is
This approach extends naturally to polynomials of higher degree. We define polynomials
and in general
The defining property of these polynomials is that for each and all its first derivatives must agree with those of at . In other words we require that
for all from 0 to .
To see the conditions under which this happens, suppose
Then
and, in general,
So having means that and therefore
for each value of . Using this expression for , we have found the formula for the polynomial approximation of that we seek. Such a polynomial is called a Taylor polynomial.
Definition: :Taylor Polynomials
The th order Taylor polynomial of centered at is given by
This degree polynomial approximates near and has the property that for .
Example
Example 8.5.1. Determine the third order Taylor polynomial for , as well as the general th order Taylor polynomial for centered at .
Solution
We know that and so and . Thus,
So the third order Taylor polynomial of centered at is
In general, for the exponential function we have for every positive integer . Thus, the th term in the th order Taylor polynomial for centered at is
Therefore, the th order Taylor polynomial for centered at is
Activity
We have just seen that the th order Taylor polynomial centered at for the exponential function is
In this activity, we determine small order Taylor polynomials for several other familiar functions, and look for general patterns.
a. Let .
i. Calculate the first four derivatives of at . Then find the fourth order Taylor polynomial for centered at 0 .
ii. Based on your results from part (i), determine a general formula for
b. Let .
i. Calculate the first four derivatives of at . Then find the fourth order Taylor polynomial for centered at 0 .
ii. Based on your results from part (i), find a general formula for . (Think about how being even or odd affects the value of the th derivative.)
c. Let .
i. Calculate the first four derivatives of at . Then find the fourth order Taylor polynomial for centered at 0 .
ii. Based on your results from part (i), find a general formula for . (Think about how being even or odd affects the value of the th derivative.)
It is possible that an th order Taylor polynomial is not a polynomial of degree ; that is, the order of the approximation can be different from the degree of the polynomial. For example, in Activity 8.5.3 we found that the second order Taylor polynomial centered at 0 for is . In this case, the second order Taylor polynomial is a degree 1 polynomial.
Taylor Series
In Activity we saw that the fourth order Taylor polynomial for centered at 0 is
The pattern we found for the derivatives describe the higher-order Taylor polynomials, e.g.,
and so on. It is instructive to consider the graphical behavior of these functions; Figure shows the graphs of a few of the Taylor polynomials centered at 0 for the sine function.




Notice that is close to the sine function only for values of that are close to 0 , but as we increase the degree of the Taylor polynomial the Taylor polynomials provide a better fit to the graph of the sine function over larger intervals. This illustrates the general behavior of Taylor polynomials: for any sufficiently well-behaved function, the sequence of Taylor polynomials converges to the function on larger and larger intervals (though those intervals may not necessarily increase without bound). If the Taylor polynomials ultimately converge to on its entire domain, we write
Definition:
Let be a function all of whose derivatives exist at . The Taylor series for centered at is the series defined by
In the special case where in Definition 8.5.3, the Taylor series is also called the Maclaurin series for . From Example 8.5.1 we know the th order Taylor polynomial centered at 0 for the exponential function ; thus, the Maclaurin series for is
Activity
In Activity 8.5.2\</span> we determined small order Taylor polynomials for a few familiar functions, and also found general patterns in the derivatives evaluated at 0 . Use that information to write the Taylor series centered at 0 for the following functions.</p>
<p>a. \(f(x)=\frac{1}{1-x}
b. (You will need to carefully consider how to indicate that many of the coefficients are 0 . Think about a general way to represent an even integer.)
c. (You will need to carefully consider how to indicate that many of the coefficients are 0 . Think about a general way to represent an odd integer.)
d.
Activity
- Plot the graphs of several of the Taylor polynomials centered at 0 (of order at least 5) for and convince yourself that these Taylor polynomials converge to for every value of .
- Draw the graphs of several of the Taylor polynomials centered at 0 (of order at least 6 for and convince yourself that these Taylor polynomials converge to for every value of . Write the Taylor series centered at 0 for .
- Draw the graphs of several of the Taylor polynomials centered at 0 for . Based on your graphs, for what values of do these Taylor polynomials appear to converge to ? How is this situation different from what we observe with and ? In addition, write the Taylor series centered at 0 for .
The Maclaurin series for , and will be used frequently, so we should be certain to know and recognize them well.
The Interval of Convergence of a Taylor Series
In the previous section (in Figure and Activity ) we observed that the Taylor polynomials centered at 0 for , and converged to these functions for all values of in their domain, but that the Taylor polynomials centered at 0 for converge to on the interval and diverge for all other values of . So the Taylor series for a function does not need to converge for all values of in the domain of .
Our observations suggest two natural questions: can we determine the values of for which a given Taylor series converges? And does the Taylor series for a function actually converge to ?
Example
Graphical evidence suggests that the Taylor series centered at 0 for converges for all values of . To verify this, use the Ratio Test to determine all values of for which the Taylor series
converges absolutely.
Solution
Recall that the Ratio Test applies only to series of nonnegative terms. In this example, the variable may have negative values. But we are interested in absolute convergence, so we apply the Ratio Test to the series
Now, observe that
for any value of . So the Taylor series () converges absolutely for every value of , and thus converges for every value of .
One question still remains: while the Taylor series for converges for all , what we have done does not tell us that this Taylor series actually converges to for each . We'll return to this question when we consider the error in a Taylor approximation near the end of this section.
We can apply the main idea from Example 8.5.4 in general. To determine the values of for which a Taylor series
centered at will converge, we apply the Ratio Test with . The series converges if .
Observe that
so when we apply the Ratio Test, we get
Note suppose that
so that
There are three possibilities for can be 0 , it can be a finite positive value, or it can be infinite. Based on this value of , we can determine for which values of the original Taylor series converges.
- If , then the Taylor series converges on .
- If is infinite, then the Taylor series converges only at .
- If is finite and nonzero, then the Taylor series converges absolutely for all that satisfy
or for all such that
which is the interval
Because the Ratio Test is inconclusive when the , the endpoints have to be checked separately.
It is important to notice that the set of values at which a Taylor series converges is always an interval centered at . For this reason, the set on which a Taylor series converges is called the interval of convergence. Half the length of the interval of convergence is called the radius of convergence. If the interval of convergence of a Taylor series is infinite, then we say that the radius of convergence is infinite.
Activity
- Use the Ratio Test to explicitly determine the interval of convergence of the Taylor series for centered at .
- Use the Ratio Test to explicitly determine the interval of convergence of the Taylor series for centered at .
- Use the Ratio Test to explicitly determine the interval of convergence of the Taylor series for centered at .
The Ratio Test allows us to determine the set of values for which a Taylor series converges absolutely. However, just because a Taylor series for a function converges, we cannot be certain that the Taylor series actually converges to . To show why and where a Taylor series does in fact converge to the function , we next consider the error that is present in Taylor polynomials.
Error Approximations for Taylor Polynomials
We now know how to find Taylor polynomials for functions such as , and how to determine the interval of convergence of the corresponding Taylor series. We next develop an error bound that will tell us how well an th order Taylor polynomial approximates its generating function . This error bound will also allow us to determine whether a Taylor series on its interval of convergence actually equals the function from which the Taylor series is derived. Finally, we will be able to use the error bound to determine the order of the Taylor polynomial that we will ensure that approximates to the desired degree of accuracy.
For this argument, we assume throughout that we center our approximations at 0 (but a similar argument holds for approximations centered at ). We define the exact error, , that results from approximating with by
We are particularly interested in , the distance between and .
Because
for , we know that
for . Furthermore, since is a polynomial of degree less than or equal to , we know that
Thus, since , it follows that
for all .
Suppose that we want to approximate at a number close to 0 using . If we assume is bounded by some number on , so that
for all , then we can say that
for all between 0 and . Equivalently,
on . Next, we integrate the three terms in Inequality from to , and thus find that
for every value of in . Since , the First FTC tells us that
for every in .
Integrating this last inequality, we obtain
and thus
for all in .
Integrating times, we arrive at
for all in . This enables us to conclude that
for all in , and we have found a bound on the approximation's error, .
Our work above was based on the approximation centered at ; the argument may be generalized to hold for any value of , which results in the following theorem.
Definition: : The Lagrange Error Bound
The Lagrange Error Bound for .
Let be a continuous function with continuous derivatives. Suppose that is a positive real number such that on the interval . If is the th order Taylor polynomial for centered at , then
We can use this error bound to tell us important information about Taylor polynomials and Taylor series, as we see in the following examples and activities.
Example
Determine how well the 10th order Taylor polynomial for , centered at 0 , approximates .
Solution
To answer this question we use , and in the Lagrange error bound formula. We also need to find an appropriate value for . Note that the derivatives of are all equal to or . Thus,
for any and . Therefore, we can choose to be 1 . Then
So approximates to within at most . A computer algebra system tells us that
with an actual difference of about .
Activity
Let be the th order Taylor polynomial for centered at . Determine how large we need to choose so that approximates to 20 decimal places.
Example
Show that the Taylor series for actually converges to for all .
Solution
Recall from the previous example that since , we know
for any and . This allows us to choose in the Lagrange error bound formula. Thus,
for every .
We showed in earlier work that the Taylor series converges for every value of . Because the terms of any convergent series must approach zero, it follows that
for every value of . Thus, taking the limit as in the inequality , it follows that
As a result, we can now write
for every real number .
Activity
- Show that the Taylor series centered at 0 for converges to for every real number .
- Next we consider the Taylor series for .
- Show that the Taylor series centered at 0 for converges to for every nonnegative value of .
- Show that the Taylor series centered at 0 for converges to for every negative value of .
- Explain why the Taylor series centered at 0 for converges to for every real number . Recall that we earlier showed that the Taylor series centered at 0 for converges for all , and we have now completed the argument that the Taylor series for actually converges to for all .
- Let be the th order Taylor polynomial for centered at 0 . Find a value of so that approximates correct to 8 decimal places.
Summary
- We can use Taylor polynomials to approximate functions. This allows us to approximate values of functions using only addition, subtraction, multiplication, and division of real numbers. The th order Taylor polynomial centered at of a function is
- The Taylor series centered at for a function is
The th order Taylor polynomial centered at for is the th partial sum of its Taylor series centered at . So the th order Taylor polynomial for a function is an approximation to on the interval where the Taylor series converges; for the values of for which the Taylor series converges to we write
- The Lagrange Error Bound shows us how to determine the accuracy in using a Taylor polynomial to approximate a function. More specifically, if is the th order Taylor polynomial for centered at and if is an upper bound for on the interval , then