For functions such as ,, and that, like , have derivatives at for any choice of , how can we use patterns in those derivatives to find a general formula for the degree polynomial approximation to each?
How are the coefficients of the polynomial approximation to a function near completely determined by the values of the various derivatives of , evaluated at ?
In Activity 8.1.3, we used as a case study to investigate polynomial approximations to near near . For the degree approximation, we chose the conditions ,,, and . Starting with and , we found the first three derivatives of and and evaluated them at , which led to the results below.
One important pattern we observed in our work with is that for every natural number , the th derivative’s value at is . As we will see, this information will ultimately help us find a general formula for , the coefficient of in the degree polynomial approximation of .
In this section, we will learn how we can more systematically find degree approximations for functions that have at least derivatives, as well as how to center the approximation at a value other than .
Let and let . Our goal is to find the values of that make the sine function and its derivative values agree with those of the cubic polynomial at and to study the resulting degree approximation of the sine function.
As in previous work, the derivatives of and their respective values at are those shown in the following table. Compute the various derivatives of and evaluate them at accordingly, recording your results in the left side of the table.
We’ve also observed that as the degree of the approximation increases, the polynomial approximation gets more accurate by being closer to the original function at each fixed value of as well as on a wider interval. To find better and better approximations of any function with a sufficient number of derivatives, we naturally want to find approximations of arbitrary degree . We thus define the Taylor polynomial of degree centered at .
enable us to determine the coefficients in terms of the values of the various derivatives of . First, we take derivatives of , and assemble those below. As we do so, we choose not to combine products of numbers that arise in order to see certain patterns in the coefficients.
Next, we evaluate each of the derivatives of at and set each result equal to the corresponding derivative value of evaluated at , which ultimately enables us to determine the coefficients . These two steps are summarized in Table 8.2.3. Note how we use the index variable, , to track the various derivatives of and .
We see a natural pattern that results from taking the th derivative of the th power of ,. For example, the repeated derivatives of are ,,, and finally . By the time we get to the fourth derivative of , only a constant remains, and that constant is the factorial 1
For any positive whole number , its factorial, , is the product of all of the positive whole numbers less than or equal to :.
From the rightmost column of Table 8.2.3, we now see how the values of are determined by the values of the various derivatives evaluated at , each scaled by a corresponding factorial. In particular, solving each equation in the rightmost column of Table 8.2.3 for , we see that
This enables us to find the degree Taylor polynomial for any function by finding the values of and using these numbers to determine . We summarize our recent work as follows.
To find the degree Taylor polynomial, we need to compute ,,,,, so we first find the first through fifth derivatives of in the first several rows of Table 8.2.5, and then evaluate those derivatives at in the last several rows.
When finding the coefficients of a Taylor polynomial, it is often helpful to not combine products such as and into a single number, in order to better observe patterns; indeed, by not combining the constants that arise in higher derivatives of , we see patterns of alternating signs and factorials that arise. From the last six rows of Table 8.2.5 and the fact that , we find that
so that the degree Taylor approximation of at is
.
Thus, we have found the approximation
,
and by plotting along with and in Figure 8.2.6, we see how much better the degree approximation is than the tangent line approximation.
From our work in Example 8.2.4, we see the pattern that arises in the various derivatives of . We therefore find that the general degree Taylor polynomial centered at for is
For many familiar functions, a pattern emerges in their derivatives that enables us to find the general form of the degree Taylor polynomial.
Build a spreadsheet similar to the one in Table 8.1.9 and Table 8.1.10 from Activity 8.1.4, but do so using , a start value of , and the functions ,,, and . The first six columns of your spreadsheet should begin as shown in Table 8.2.12.
Our work so far with the functions ,,, and has revealed patterns in their derivatives that enable us to find even higher degree Taylor polynomials easily. Furthermore, these higher degree polynomials provide outstanding approximations that only require the use of addition and multiplication.
For example, in Activity 8.2.2, we found that the degree Taylor approximation of the cosine function at is
,
so
.
The pattern of alternating signs and even numbers in the factorials and powers of lets us see that we could easily write down, say, . We can reason similarly to extend what we found in Preview Activity 8.2.1 and observe that
,
the degree Taylor approximation of the sine function at .
When we ask a computational device to find numerical estimates for quantities such as ,, and , high degree Taylor polynomials are one approach 2
For computing values of trigonometric functions, a method known as CORDIC (that remarkably doesn’t even use multiplication) is employed by many calculating devices.
that can be used to generate the results. For example,
is a surprisingly accurate estimate of that only involves the sum of four rational numbers.
Subsection8.2.3Taylor polynomial approximations centered at an arbitrary value
In all of our work so far in Chapter 8, we have focused on approximating functions such as ,,, and near . But we could instead be interested in the behavior of some function near , or be interested in a function that wasn’t even defined at . Thus, we next generalize our earlier work to Taylor polynomial approximations centered at any value .
From our early studies in Section 1.8, we know that at any input value where a function has a first derivative, has a tangent line approximation
that satisfies for values near . Provided that has a second derivative at , we can build a quadratic approximation near for , similar to the one we found at for in Activity 8.1.3. In addition, as long as has a third derivative at , we can even find a cubic approximation (just as we did at in Activity 8.1.4), and so on.
In developing such approximations centered at any value , our guiding principle is the same as with our work at : we’ll require that at the input value , the original function’s output and its derivatives’ outputs match the corresponding approximation’s output and derivatives’ output.
Similar to the situation when , it follows that we can find the coefficients of the Taylor polynomial in terms of the various derivatives of evaluated at .
Let , and recall that is only defined for . As such, we can’t consider the tangent line (or any other) approximation at . Instead, we choose to work with an approximation to centered at and will find the degree Taylor polynomial approximation
Compute for several different values (you might find it helpful to use a slider in Desmos in the variable to experiment with ); for approximately what values of is it true that ?
For approximately what interval of -values is it true that ? What about ? How is this situation different from what we observed with in Activity 8.2.2?
This activity builds on Activity 8.2.3, and only changes one key thing: the location where the approximation is centered. Again, we let , and recall that is only defined for . Here, we choose to work with an approximation centered at , and find the degree Taylor polynomial approximation
For about what interval of -values is it true that ? What about ? How is this different from what we observed with the Taylor approximations centered at in Activity 8.2.3? How is it similar?
Just as we can consider any function that has derivatives at and find approximations centered there, we can also consider any input value at which those derivatives exist, and find a polynomial approximation that satisfies ,,,,.
In Exercise 8.2.5.5, we found that the degree 2 Taylor polynomial centered at of a quadratic function is the quadratic function itself. In this exercise, we explore how changing the center of the approximation offers additional insight into the function.
Recall that we found in Preview 8.2.1 and subsequent work that , which is the degree Taylor approximation centered at . And in Activity 8.2.2, we found that the degree Taylor approximation centered at for is .
where is the degree Taylor approximation of centered at . (Here we are using “” and “” to distinguish between these two degree polynomial approximations of the two different functions and , centered at two different values.)