One of the most important uses of infinite series is the potential for using an initial portion of the series for to approximate . We have seen, for example, that when we add up the first terms of an alternating series with decreasing terms that the difference between this and the true value is at most the size of the next term. A similar result is true of many Taylor series.
Theorem 11.11.1: Taylor's Theorem
Suppose that is defined on some open interval around and suppose exists on this interval. Then for each in there is a value between and so that
Proof
The proof requires some cleverness to set up, but then the details are quite elementary. We want to define a function . Start with the equation Here we have replaced by in the first terms of the Taylor series, and added a carefully chosen term on the end, with to be determined. Note that we are temporarily keeping fixed, so the only variable in this equation is , and we will be interested only in between and . Now substitute : Set this equal to : Since , we can solve this for , which is a "constant''---it depends on and but those are temporarily fixed.
Now we have defined a function with the property that . Consider also : all terms with a positive power of become zero when we substitute for , so we are left with So is a function with the same value on the endpoints of the interval . By Rolle's theorem (6.5.1), we know that there is a value such that . Let's look at . Each term in , except the first term and the extra term involving , is a product, so to take the derivative we use the product rule on each of these terms.
It will help to write out the first few terms of the definition: Now take the derivative: Now most of the terms in this expression cancel out, leaving just At some , so Now we can write Recalling that we get which is what we wanted to show.
It may not be immediately obvious that this is particularly useful; let's look at some examples.
Example 11.11.1
Find a polynomial approximation for accurate to .
Solution
From Taylor's theorem: What can we say about the size of the term Every derivative of is or , so . The factor is a bit more difficult, since could be quite large. Let's pick and ; if we can compute for , we can of course compute for all .
We need to pick so that Since we have limited to , The quantity on the right decreases with increasing , so all we need to do is find an so that A little trial and error shows that works, and in fact , so
Figure 11.11.1 shows the graphs of and and the approximation on . As gets larger, the approximation heads to negative infinity very quickly, since it is essentially acting like .
Example 11.11.2
Figure 11.11.1. and a polynomial approximation.
Solution
We can extract a bit more information from this example. If we do not limit the value of , we still have so that is represented by
If we can show that for each x then
that is, the sine function is actually equal to its Maclaurin series for all x. How can we prove that the limit is zero? Suppose that N is larger than , and let M be the largest integer less than (if the following is even easier). Then
The quantity is a constant, so and by the Squeeze Theorem (11.1.3)
as desired. Essentially the same argument works for and ; unfortunately, it is more difficult to show that most functions are equal to their Maclaurin series.
Example 11.11.3
Find a polynomial approximation for near accurate to .
Solution
From Taylor's theorem: since for all n. We are interested in x near 2, and we need to keep in check, so we may as well specify that , so . Also so we need to find an N that makes . This time makes , so the approximating polynomial is This presents an additional problem for approximation, since we also need to approximate , and any approximation we use will increase the error, but we will not pursue this complication.
Note well that in these examples we found polynomials of a certain accuracy only on a small interval, even though the series for and converge for all ; this is typical. To get the same accuracy on a larger interval would require more terms.