If the Taylor series for a function
is truncated at the
n-th term, what is the difference between
and the value given
by the n-th Taylor polynomial? That is, what is the error involved in
using the Taylor polynomial to approximate the function?
Suppose you expand f around a, and that f is
times continuously
differentiable on an open interval containing a. Taylor's theorem
says that if x is another point in this interval, then
where c is a number in the open interval between x and a.
is the n-th Taylor polynomial at a. The other term on
the right is called the Lagrange remainder
term:
The appearance of c, a point between x and a, and the fact that it's
being plugged into a derivative suggest that there is a connection
between this result and the Mean Value Theorem. In fact, for
the result says
where c is between x and a. This is the Mean Value Theorem.
On the one hand, this reflects the fact that Taylor's theorem is proved using a generalization of the Mean Value Theorem. On the other hand, this shows that you can regard a Taylor expansion as an extension of the Mean Value Theorem.
There is also an expression for the error which involves an integral. I won't discuss it here.
Example. Compute the Remainder Term
for
.
For the third remainder term, I need the fourth derivative:
The Remainder Term is
where c is a number between x and 1.
Example. Compute the Remainder Term
for
.
Since I want the
Remainder Term, I need to find an
expression for the
derivative.
Clearly, the pattern is
The Remainder Term is
where c is a number between x and 3.
Example. The Maclaurin series for
is
What is the largest error which might result from using the first
three terms of the series to approximate
, if
?
The remainder term is
where
. Note that since
, we have
. I want to estimate the maximum size of
. (I take absolute values, because I only care about
the magnitude of the error.)
, so
. Thus,
. So
(I used the fact that
.)
How large can
be, given that
? As c goes from 0 to 1,
decreases, so it is never larger than it would be if
.
In that case,
. Therefore,
The error is no greater than
.
I can check this by plotting the difference between the
degree Taylor polynomial and
. The graph
below shows
:
From the picture, it looks as though the maximum error is around 0.15
(in absolute value). The estimated error was pretty conservative.
Example. Calvin wants to impress Phoebe
Small by using the MacLaurin series for
to approximate
to within 0.0001. How many terms
of the series should he use?
The Maclaurin series for
is
(Substitute
in the standard series for
.) I want to know how
many terms of the series to use to approximate the integral.
Since
,
,
, and
in general,
. Therefore,
In the integral, x goes from 0 to 0.5, and c is a number between 0
(the expansion point) and x. Therefore, I know that c is a number
between 0 and 0.5. Taking the worst possible case, the largest
could be is
. Replace
with e to obtain
Insert this into the integral (remembering to multiply by x):
I want the smallest value of n for which this ugly mess is less than
0.0001. The easiest way to do this is by trial: Plug in successive
values of n until you discover that
is the smallest value that
works.
Example. (a) Compute
for
, and express
using
and the remainder
term.
Since I want
, I need the fourth derivative:
Thus,
Now
Therefore,
where c is between x and 0.
(b) Use
to approximate the largest error that occurs in using
to approximate
for
.
Since
and c is between 0 and x, it follows that
. On this interval,
decreases, so it attains its largest value at
. For
,
. Thus,
The error is no greater than
.
Send comments about this page to: bikenaga@marauder.millersville.edu.
Last updated: December 2, 2005
Millersville University Home Page
Copyright 2005 by Bruce Ikenaga