Section 4. Examples
Section 4. Examples
Example 1: Let's begin with an example motivated by our first point
in Section 1. Namely, let's determine the Taylor series for the function
.
In order to do this, we must choose a value of c. To start, let's
find the Taylor series for
about
c=0.
(A bit of terminology is in order here. A Taylor series about
c=0 is also known as a Maclaurin series.)
The first task we must accomplish is to find the derivatives of
and then
evaluate these at c=0. (This information is needed as
part of the coefficient of each term in the Taylor series.)
We compile this information in the following table:
| n |
 |
 |
| 0 |
 |
0 |
| 1 |
 |
1 |
| 2 |
 |
0 |
| 3 |
 |
-1 |
| 4 |
 |
0 |
| 5 |
 |
1 |
| 6 |
 |
0 |
| 7 |
 |
-1 |
| 8 |
 |
0 |
Thanks to the cyclical nature of the derivatives of the sine function, we
see a pattern emerging in the table. We really need not build any other
derivatives because of this pattern.
From our definition of Taylor series above, we now see that
If we now wanted to approximate
for some value of x close to 0
(the c-value), we could do so by simply using a Taylor
polynomial derived by truncating the above Taylor series. For example,
from the work above, we see that
in this case. We could approximate
by simply evaluating
.
Here
while my hand-held calculator yields
That's not a bad approximation!!!
One last comment to close this out. Notice that this
is NOT a
good approximator of
if the value of x chosen is NOT close to
c=0. As an example, notice that
while
.
Example 2: Determine the Taylor series for the function
about c=1. (Question: Why can't c=0?)
We start by finding the derivatives in question. Again, we consolidate
them in the table below:
| n |
 |
 |
| 0 |
 |
0 |
| 1 |
 |
1 |
| 2 |
 |
-1 |
| 3 |
 |
2 |
| 4 |
 |
-6 |
| 5 |
 |
24 |
| 6 |
 |
-120 |
A pattern emerges. We note that
, which allows us to write
the Taylor series quickly. We have
which can be simplified to
Again, if we now want to approximate
for some x near 1, we may quickly
do so. Using
as our approximating function, we see that
while
(according to my calculator).
At this point, you might rightly say, "That's not a very good approximation
of
."
To a certain extent, I would agree. What do we do then? In general, using a
Taylor polynomial of higher degree should yield a better approximation.
Indeed, if we now use
instead of
, we find that
This is a better
approximation to the actual answer, but still leaves something to be desired.
Why aren't we "homing in" on the "exact" value of
in a quicker fashion? In the
jargon of infinite series, notice that the Taylor series for
about
c=1 is an alternating series which does converge
(by the Alternating Series Test). However, it is converging quite slowly.
Because of this, in order to get a good approximation of the full infinite
series, one must use many, many terms. This is equivalent to needing a large
degree for the Taylor polynomial.
Example 3: Consider an example similar to one of the motivating
examples at the beginning of this document. Namely, let's approximate
As noted above, we cannot find this integral in closed form. However, we can
approximate it with a tool such as Simpson's rule. Note that
if we use Simpson's Rule with 20 subintervals. (This will give us something
to compare to our approximation below using a Taylor polynomial.)
As a second approach, we want to approximate the integrand
using a Taylor polynomial
about
c=0 and then consider a new integral
Since
, we would assume
. (Keep your fingers crossed!!)
The "difficult" part of this process is to find this Taylor polynomial.
We begin by finding the Taylor series for the function
and then
transition to the Taylor series for
, the function in question. Given
,
we know that
as well for all positive integers n. Thus, the
contribution of
to each of the terms in the Taylor series is just
or 1.
Therefore, we know that the Taylor series expansion of
about
c=0 is given by
Now use this in finding the Taylor series for
. If we replace every
instance of x above by
x2 ,
we have
or
This is much easier than attempting to find the Taylor series of
in a
direct fashion. This is easily seen as one begins to compute the derivatives
of
.
This becomes less than enjoyable rather quickly!
Now to the task at hand. Using
, the truncation of the Taylor series
at the
term,
we see that
This integral is easily computed, because we are now simply integrating
polynomial terms! Going through the calculations, we see that
or
As we close out this example, let's compare the approximations of
. Recall
that Simpson's Rule yielded an approximation of 1.462653625. Our Taylor series
approximation gives 1.462530063. These agree at least at the thousandths
digit and differ by only one unit in the ten-thousandths digit.
Example 4:
As a final example, consider the function
This function occurs quite frequently in infinite series discussions. Its
most obvious connection to this area of mathematics is the geometric series.
Recall that, for |x| < 1 , we know
Thus, thanks to work in geometric series, we already know the Maclaurin
series representation of
As a matter of practice, I leave it to the reader to actually “compute”
this series using the derivatives and the definition of Maclaurin series.
James A. Sellers
sellersj@math.psu.edu