Chapter 10
Polynomial and Series Representations of Functions
10.3 Taylor Series
10.3.3 Taylor Series for `e^x` and `sin x`
In Activity 1 you explored the sequences of numbers of the form
where `P_ntext[(]xtext[)]` is the `n`th Taylor polynomial for `e^x,` and `x_0` is any one of your test values. It appeared that each such sequence has `e^(x_0)` as its limit. In fact, Taylor polynomials are partial sums of an infinite series, because each polynomial is the preceding polynomial plus one more term. Specifically, for the exponential function, the terms are the power functions
and the partial sums are
We summarize the convergence of these partial sums to `e^x` by writing
We have certainly not shown yet that this assertion about limiting values is true — that will come later in the chapter. But we have some graphic and numerical evidence that it is true for a variety of numbers `x_0`. We further illustrate convergence of partial sums with the case of `x = 1` which leads to the following interesting formula for `e`:
Calculate the first ten partial sums of this series representation for `e,` and show that the resulting sequence appears to be approaching `e.`
Solution Here are the sums:
The error after adding up `10` terms (i.e., the difference between our last partial sum and `e`) is about `3 times 10^(-7)` — that is, the first six decimal places agree with `e`.
The Taylor polynomials for the sine function create a small problem in that all the even-numbered terms are zero. Specifically, as they were originally derived, the terms are
Our record keeping will be simpler if we drop all the zero terms — which contribute nothing to the sum — and renumber the remaining terms by `k = 0, 1, 2, ...`. This makes the degree of the `k`th term `2k + 1`. Thus the `text[(]2n + 1text[)]`th partial sum is
The corresponding series [the limiting value of `P_(2n+1)text[(]xtext[)]` as `n rarr oo`] is
In particular, for `x=-pi//2`, the series interpretation is the improbable (but true) formula
Activity 2
Use your computer or calculator to calculate `sin 1` (radian) by substituting `x = 1` in the series for `sin x` and adding up partial sums until you see no change in the sixth decimal place. Check your result by comparing your partial sums with your tool's value for `sin 1`.
It should come as no surprise that the series whose partial sums are Taylor polynomials are called Taylor series.
Definition The Taylor
series for a function `f text[(] x text[)]` at the reference
point `x
= 0` is the series
In sigma notation, we may write the defining formula as |
Here are the formulas for the Taylor series we know so far. For completeness sake, we include a formula for the cosine function — see Exercise 1.
Use the Taylor series for `e^x` to explain why, for any positive integer `m`,
That is, show that the exponential function grows much faster than any power function.
Solution Since the terms in the exponential series are all positive when `x` is positive, `e^x` is bigger than every term of the series. In particular,
Thus
No matter how big `text[(]m + 1text[)]!` is, it's constant, and `x` will eventually be bigger. Thus
Hence the limit must be `0`.
In Figure 2 we illustrate the significance of Example 3 for the case of `m = 30`. Take careful note of the scales in the figure. The function `x^30`/`e^x` peaks at about `x = 30` with a value of about `1.93 times 10^31`. Pretty big! If you started to graph this function without knowing what to look for, you might never guess that this is a function that eventually goes to zero. If you try to produce a comparable picture for `m = 100,` your graphing tool will fail. (Don't take our word for it — try it!) Nevertheless, we can solve problems of such enormous magnitude with relatively simple calculations — and powerful concepts.
