Early in our study of calculus in Section 1.8, we learned that if a function has a derivative at a fixed value , when we zoom in on its graph near , the function looks linear. Indeed, such a function is differentiable, and we know that near a fixed input value ,
Build a spreadsheet that computes the difference between and for -values between and , spaced units apart. Note: we will revisit this spreadsheet for additional computations in Activity 8.1.4, so it would be ideal if you save your work electronically in place you can find it later.
Notice that the curvature in is what makes the linear approximation lose accuracy. What kind of simple function might do a better job approximating than a linear one?
In Preview Activity 8.1.1, we found that the error in the tangent line approximation of at grows significantly as we consider -values further and further from . This is due to the fact that the tangent line is straight while the function has some curvature. To hopefully improve the approximation, we are going to try to find a quadratic function whose curvature matches that of at the point of tangency.
While we have usually used the notation “” for the tangent line, in what follows we will instead write “”, and think of this as “the degree approximation”. In a similar way, we will write “” for the quadratic (degree ) approximation.
Recall that for any function that has a derivative at , its tangent line approximation at is
.
Moreover, the functions and have two exact values in common. First, their function values agree at the point of tangency: . And second, since is a linear function whose slope is , it is also true that their derivative values agree at the point of tangency: .
To generate a quadratic function that approximates near , we choose to have this quadratic function not only share the same function value and derivative value as at , but also the same second derivative value 1
Here we are implicitly assuming that the function has a second derivative at , which is a property that holds for .
at in order to match the concavity or curvature of . In other words, we are adding a term to the linear approximation that gives the same amount of curvature as the function .
Next, observe that since , it follows that . Reason similarly to determine the values of and , as well as those of ,, and and enter these values appropriately in the blanks below.
Now, recall that we want the function values, first derivative values, and second derivative values of and to match at . What does tell us about the value of , and what is its value? What does imply the value of is? How can we reason similarly to find ?
Having now determined the numerical values of ,, and , use appropriate computing technology to plot the function along with and in the same window as that shown in Figure 8.1.3.
A remarkable feature of mathematics is that when a process effectively generates an approximation, doing that same process again (perhaps with some slight modifications) often improves the approximation. In Activity 8.1.2, we found a quadratic approximation of near the point that results in an improvement over the linear approximation of . It is reasonable to hope that a degree 3 polynomial approximation of will be even better.
We are using the unknown constants ,,, and for instead of the constants ,, and that we considered for since we don’t yet know whether the first three values of will be the same as those of or not.
Like in our work with , we observe that since is a polynomial, its derivatives are straightforward to compute. For instance,
We continue our investigation of this new approximation of in Activity 8.1.3, where we work to determine the values of ,,, and plus explore how well approximates near .
Next, recall that we want and to share the same function and derivative values at up to and including the third derivative. For instance, one of the four needed equations is . Use the four equations your work in the preceding question to determine the values of ,,, and .
Having now determined the numerical values of ,,, and , use appropriate computational technology to plot the function along with ,, and in the same window as shown in Figure 8.1.7.
What if we wanted a degree- polynomial approximation to near ? Based on the patterns you’ve observed in ,, and , conjecture values for the constants for a function of the form
that satisfies ,,,. Add this function to your plot in part (c) that includes and the lower-degree polynomial approximations. What do you notice?
In the next activity, we introduce the idea of the error of a polynomial approximation and investigate explicitly how the error varies for approximations of as we vary and vary .
In Preview Activity 8.1.1, we built a spreadsheet that computed the differences between and for -values between and , spaced units apart. Your spreadsheet started like the one shown in the table in Preview Activity 8.1.1.
Next, we build an updated version of this spreadsheet that computes similar differences between and the three higher degree approximations we have found. In particular, we now want to have columns for ,,,,,, and , plus the absolute differences ,,, and .Hint: when building your entries, note that you can think of as , and similarly view as “ plus one more term”.
We call the value of the absolute error of the quadratic approximation of at the value . What is the absolute error of the quadratic approximation at ? at ?
Investigate the errors in the various approximations for a wider interval of -values. For example, you might consider starting at with . What do you notice?
One important application of our work so far is that these polynomial approximations provide a way to approximate values of the function . For example, since we’ve shown that
,
it follows that
.
In fact, this approach through polynomial approximation is one way that computers determine the value of , which is approximately , to whatever accuracy is needed: by using even better polynomial approximations than the degree- one that we found, computers are able to generate the approximate value simply by the basic computations of addition and multiplication with enough terms.
Throughout this section, we have focused on . One of the characteristics that makes special is the fact that its derivative is itself; indeed, the th derivative of is for every natural number , which in turn implies that for every value of . This will ultimately help to find patterns in the coefficients of the degree polynomial approximation, , and be able to easily write down a formula for any value of .
It is natural to think that we can find similar approximations of other functions, especially ones such as and that also exhibit repeating patterns in their derivatives. In Section 8.2, we will develop a general approach to finding the coefficient of in the degree approximation of any function with derivatives and learn how to find a general expression for the degree approximation.
For the function , which bends considerably as we move away from (especially for ), the tangent line, , is not a very good approximation for -values that satisfy . For example, , so the linear approximation has an absolute error of more than at .
Using the strategy of finding a higher degree polynomial whose function and derivative values match at the selected point of tangency, we are able to find higher degree polynomials that much more effectively approximate near than the approximation generated by the tangent line. For example, using the degree approximation , we see that for all that satisfy .
It appears that the degree of the polynomial impacts the accuracy of the approximation of in at least two ways: if we fix an -value, the higher the degree of the polynomial, the more accurate the approximation. In addition, raising the degree of the polynomial approximation appears to widen the interval on which the approximation is effective.
In the following problem, note that “second degree Taylor polynomial” is the same as the quadratic approximation we’ve been studying, and we’ll see this terminology again in the following section.
(For each, enter if the term is positive, and if it is negative. Note that because this is essentially multiple choice problem it will not show which parts of your answer are correct or incorrect.)
Throughout our work in Section 8.1, we have focused on approximating the function . In this exercise, we change the function of interest to , and consider the linear and quadratic approximations to near .
Let be the quadratic approximation to near that satisfies ,, and . You might start by letting , and creating an updated table like the one shown below.
In this exercise, we extend our work in Exercise 8.1.6.6. We continue to consider the function , but now build the cubic (degree ) approximation to near .