If the Taylor series for a function
is truncated at the
term, what is the difference between
and the value given by the
Taylor polynomial? That is, what is the error
involved in using the Taylor polynomial to approximate the function?
Theorem. (Taylor's Theorem with Remainder)
Suppose you expand f around c, and that f is
-times continuously differentiable on an open
interval containing c. If x is another point in this interval, then
for some z in the open interval between x and c,
is the
degree Taylor polynomial at
c. The other term on the right is called the
Lagrange remainder term:
The appearance of z, a point between x and c, 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 theorem says that there is a number z between c
and x such that
This is the Mean Value Theorem. Thus, Taylor's Theorem with Remainder is a generalization of the Mean Value Theorem.
The connection goes further. I'll give a proof of the theorem at the end, since it's rather technical and isn't needed to do the error approximation examples which are the focus of this section. The proof uses Rolle's Theorem, which you may recall is a special case of the Mean Value Theorem.
Example. Compute the Remainder Term
for
.
For the third remainder term, I need the fourth derivative:
The Remainder Term is
z 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. I'll compute
derivative until I see a pattern:
Notice that it's easier to see the pattern if you don't multiply out the power of 4.
Thus,
The Remainder Term is
z is a number between x and 3.
There are several things you might do with the Remainder Term:
1. Estimate the error in using
to estimate
on a given interval
. (The
interval and the degree n are fixed; you want to find the error.)
2. Find the smallest value of n for which
approximates
to within a given
error ("tolerance") on a given interval
. (The interval and the error are fixed; you want to
find the degree.)
3. Find the largest interval
on which
approximates
to within a given
error ("tolerance"). (The degree and the error are fixed;
you want to find the interval.)
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
I have
. I want to estimate the maximum size of
. I take absolute values, because I don't care
whether the error is positive or negative, only how large it is.
, and you can check by taking derivatives
that
. Thus,
. So
Since I want the largest possible error, I want to see how large the
terms
and
could be.
Remember that z is between 0 and x, and
. So
First,
means that
How large can
be, given that
? As z goes from 0 to 1,
decreases, so it is largest if
. This means that
You can also see this by doing the algebra:
In general, to estimate the z-term you'd have to find the absolute max on the interval for z. If you know that the z-term is either increasing or decreasing, you can check its value at the interval endpoints, and take the largest.
Using the estimates for
and
, I have
The error is no greater than
.
I can check this by plotting the difference between the
degree Taylor polynomial and
.
From the picture, it looks as though the maximum error is around 0.15
(in absolute value). The estimated error was pretty conservative.
Example. (a) Compute
for
, and express
using
and the remainder term.
(b) Use
to approximate the largest error that
occurs in using
to approximate
for
.
(a) Since I want
, I need the fourth derivative:
Thus,
Now
Therefore,
Here z is between 0 and x.
(b) I have
I'll estimate the z and x-terms one at a time.
Since
, I have
Since
and z is between 0 and x, it follows that
. On this interval,
decreases, so it attains its largest value
at
. Therefore,
Alternatively,
Thus,
The error is no greater than
.
Example. Find the smallest value of n for
which the
degree Taylor series for
at
approximates
on the interval
with an
error no greater than
.
Notice that
So
First, I'll estimate how large the z and x-terms can be. Since
and
is an increasing function, I have
Since
and since
is an increasing function, I have
Thus,
Therefore, I want the smallest n for which
I can't solve this inequality algebraically, so I'll have to use trial-and-error:
The smallest value of n is
.
You can also use the Remainder Term to estimate the error in using a Taylor polynomial to approximate an integral.
Example. Calvin Butterball 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
, I have
Therefore,
In the integral, x goes from 0 to 0.5, and z is a number between 0
(the expansion point) and x. Therefore, I know that z 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.
is the smallest value that works.
Now I'll give a proof of the Remainder Term Theorem. The proof is a little tricky, and as the previous examples show, it isn't necessary to know the proof in order to apply the Theorem. This version of the proof roughly follows that given by G. H. Hardy in his classic A Course of Pure Mathematics [1].
In what follows, I'll take
. You can adapt everything to
the case
without too much trouble.
As I noted at the start, the theorem says roughly that there's a
number z in an interval
and z satisfies certain
conditions. It's natural to think of other theorems with similar
conclusions, with the idea of using those theorems to prove this one.
The Mean Value Theorem has a similar conclusion, stating that there's
a number z in
such that
I'll actually use Rolle's Theorem, which is a special case of the
Mean Value Theorem. It says that, with appropriate conditions on f,
if
and
, then
for some z in
.
The tricky part is knowing what function to apply Rolle's Theorem to: It isn't just the "f" in the statement of the theorem. If you look at the proof, you can see how the function used might have been concocted by working backwards from the conclusion.
Theorem. Suppose f is
-times continuously differentiable on an open
interval containing c. If x is another point in this interval, then
for some z in the open interval between x and c,
Proof. I'll write the proof for the case
, but the same approach works if
. To make the writing easier, I'll define two helper
functions:
(Note that the variable in these functions is t.) Observe that
g is continuous on
and differentiable on
, so the same is true for h. If I plug the endpoints
c and x into h, I get
Thus, the conditions for applying Rolle's Theorem to h on the
interval
are satisfied. I'll compute the derivative
of h, first computing the derivative of g:
Note how adjacent terms cancel in pairs, except for the last one. Using this, the derivative of h is
Rolle's Theorem implies that
for some z in
. That is,
Now
So
Hence,
[1] G. H. Hardy, A Course of Pure Mathematics. Cambridge, UK: Cambridge University Press, 1952 (tenth edition). [0-521-09227-2]
The proof above is essentially the one in Section 150, page 286.
Hardy's book was first published in 1909. Not all books from that era have aged well, but this one has. Hardy was an excellent expositor, and the writing is very clear. Most of the material would be found in our current first-term calculus or elementary functions courses. However, Hardy covers topics at substantial depth: For instance, the book begins with a construction of the real numbers using Dedekind cuts. Proofs are given for all major results.
Thus, this is a proof-oriented calculus book, somewhat like Tom Apostol's two-volume calculus text. It's a little bit below a typical real analysis text in some respects, though some of the problems would be challenging for real analysis students. I'd recommend it if you'd like to deepen your knowledge of calculus.
Copyright 2026 by Bruce Ikenaga