Nathan Wakefield, Christine Kelley, Marla Williams, Michelle Haver, Lawrence Seminario-Romero, Robert Huben, Aurora Marks, Stephanie Prahl, Based upon Active Calculus by Matthew Boelkins
Polynomial functions are the simplest possible functions in mathematics, in part because they require only addition and multiplication to evaluate. Consequently, in practical applications, it is often useful to approximate complicated functions using polynomials. In this section we will learn how to obtain polynomial approximations of functions, and how to determine how good an approximation is.
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 (7.22) 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
for small values of . This shows one way that a polynomial function can be used to approximate a non-polynomial function; such approximations are one of the main themes in this section and the next.
In Example 7.52, we begin our exploration of approximating functions with polynomials.
Example7.52.
Example 7.20 showed how we can approximate the number using linear, quadratic, and other polynomial functions; we then used similar ideas in Example 7.35 to approximate . In this example, we review and extend the process to find the “best” quadratic approximation to the exponential function around the origin. Let throughout this example.
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 . Plot and near to illustrate this fact.
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 ; this is because and . It is therefore reasonable to seek a value of so that
,,and .
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 .
Solution.
We know that
.
Since and , the graphs of and agree at and have the same slope at (which means they go in the same direction at ). This is why is a good approximation to for values of close to .
Since
we have that
as desired.
A simple calculation shows . So as desired.
A simple calculation shows . So . To have we must have or .
The second derivative of a function tells us the concavity of the function. Concavity measures how the slopes of the tangent lines to the graph of the function are changing. This tells us how much bend there is in the graph. So if , then will have the same bend in it at as does. This will make the graph of mold to the graph of around .
Example 7.52 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 Example 7.52 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
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
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 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.
This degree polynomial approximates near and has the property that for .
Example7.53.
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
.
Example7.54.
We have just seen that the th order Taylor polynomial centered at for the exponential function is
.
In this example, we determine small order Taylor polynomials for several other familiar functions, and look for general patterns.
Let .
Calculate the first four derivatives of at . Then find the fourth order Taylor polynomial for centered at .
Based on your results from part (i), determine a general formula for .
Let .
Calculate the first four derivatives of at . Then find the fourth order Taylor polynomial for centered at .
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.)
Let .
Calculate the first four derivatives of at . Then find the fourth order Taylor polynomial for centered at .
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.)
Answer.
.
.
if is odd, and .
if is even and if is odd.
if is even and .
if is odd and if is even.
Solution.
The first four derivatives of at are
.
It appears that the pattern is
.
The th order Taylor polynomial for at is
.
This makes sense since is the sum of the geometric series with ratio , so the th order Taylor polynomial should just be the th partial sum of this geometric series.
The first four derivatives of at are
.
It appears that the odd derivatives of are all plus or minus and so have values of 0 at and the even derivatives are and have alternating values of 1 and at . Since the even numbers can be represented in the form where is an integer we have if is odd and .
Based on the previous part of this problem the th order Taylor polynomial for is
if is even and
if is odd.
The first four derivatives of at are
.
It appears that the even derivatives of are all plus or minus and so have values of 0 at and the odd derivatives are and have alternating values of 1 and at . Since the odd numbers can be represented in the form where is an integer we have if is even and .
Based on the previous part of this problem the th order Taylor polynomial for is
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 Example 7.56 we found that the second order Taylor polynomial centered at for is . In this case, the second order Taylor polynomial is a degree 1 polynomial.
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