Error Bounds for Power Series (College Board AP® Calculus BC): Study Guide
Lagrange error bound
What is a Lagrange error bound?
A Lagrange error bound gives a maximum interval for the error when a Taylor polynomial is used to approximate a function
Let
be a function and let
be the nth degree Taylor polynomial for
about
may be thought of as the nth partial sum of the function's Taylor series
Note that
will also be a function of
, i.e.
Then the remainder,
, of the Taylor series is
I.e. the difference between the exact value of the function and the value of
at a particular value of
If
can be differentiated
times on an interval containing
(i.e. containing the center of the Taylor series expansion), then for all
in that interval
where
is a number such that
for all
in the interval
I.e.
is an upper bound on the absolute value of the (n+1)th derivative of
for all values of
within the interval we're interested in
Ideally you want the smallest value of
that still bounds the absolute value of the (n+1)th derivative
But any value of
satisfying the inequality will still give a mathematically valid result
How do I calculate a Lagrange error bound for an interval of x values?
Calculating a Lagrange error bound is best shown using an example, e.g. consider the Taylor series of
about
Say we want to use the first three terms to approximate the value of the function on the interval
I.e.
for
The Lagrange error bound will be
To find
we need to find a number such that
for all
in
Note that
, so
for all
And
is an increasing positive function, so on
it is true that
is less than its value at
, i.e.
So we can use
Therefore for any
, the Lagrange error bound is
I.e., the difference between the exact value and the approximated value cannot be greater than that for any
in the interval
By substituting a value of
into that formula, you can obtain an error bound for that value of
Examiner Tips and Tricks
Remember that and
for any real number
. Because all derivatives of sine or cosine functions are also sine or cosine functions, those inequalities can be very useful for finding a value for
when you have a Taylor series for sine or cosine.
How do I calculate a Lagrange error bound for a particular value of x?
A question may ask to calculate an error bound for a particular value of
only, say
rather than an error bound valid for
in an interval containing
To do this, first substitute
into the same formula above to get
Then calculate
such that
for
in the interval:
if
or
if
Using the example above, if we now want the Lagrange error bound from using
about
to approximate
at the particular value
then calculate
is as follows:
is an increasing positive function, so on the interval
then
is less than its value at
, i.e.
So
is a better (tighter) error bound than you would have found by substituting
into the previous Lagrange error bound for
(which gives
)
Worked Example
x | f(x) | f'(x) | f''(x) | f'''(x) | f(4)(x) |
---|---|---|---|---|---|
2 | 7 | 5 | 3 | 2 | 1 |
3 | 14 | 9 | |||
4 | 26 | 15 |
Let be a function having derivatives of all orders for
. Selected values of
and its first four derivatives are indicated in the table above. The function
and these four derivatives are all increasing on the interval
.
(a) Write the third-degree Taylor polynomial for about
and use it to approximate
.
The third-degree Taylor polynomial about is given by
Substitute in the values from the table
To find the estimate for , substitute
into that polynomial
13.123 (3 d.p.)
(b) Use the Lagrange error bound to show that the third-degree Taylor polynomial for about
approximates
with error less than
.
The Lagrange error bound is given by
where is a constant such that
Here , so to find a value for
we need to consider the fourth derivative; i.e.
We are told that the first four derivatives are all increasing on the interval , so we can say that the maximum value of the fourth derivative on the interval
is equal to
(Note that using the maximum value on a bigger interval, say or
, would also give a mathematically valid bound; but using
will give a tighter, and hence more accurate, bound)
Substitute this as and
into the Lagrange error bound formula
Alternating series error bound with power series
How can I use the alternating series error bound with power series?
If a Taylor series (or other power series) is an alternating series, then you may be able to use the alternating series error bound to find a bound on the error for a particular value of
The power series must be convergent, and the value of
must lie within the interval of convergence of the series
Recall that the alternat series error bound is
where
is the limit of the alternating series
is the partial sum (the sum of the first n terms)
is the positive part of the (n+1)th term
For example, consider the Maclaurin series for
(where
is in radians)
That is a convergent power series, whose interval of convergence is
So in this case the alternating series error bound can be used with any value of
Say we want to find the error bound for using the first three terms of the Maclaurin expansion to calculate the value of
First write out the series with the value
substituted in
The error bound
is then given by
So
, which is indeed less than
See the 'Alternating Series Error Bound' study guide for more info on this form of error bound
Examiner Tips and Tricks
You may be asked to find an error bound for a function that is only given in power series form. In such a case it will not be possible to calculate the derivative that is needed for the Lagrange error bound. However if the power series is an alternating series, the alternating series error bound can still be used.
Worked Example
The function has derivatives of all orders, and the Maclaurin series for
is
. The interval of convergence for the series is
.
(a) Approximate the value of using the first three non-zero terms of the Maclaurin series.
Substitute into the series, just using the first three terms
(b) Find an upper bound for the error of this approximation.
From the information given the series converges for (since it is in the interval of convergence
) so we can use the alternating series error bound here
The first three terms are used for the approximation, so the error given by will be less than or equal to the absolute value of the fourth term when
Sign up now. It’s free!
Did this page help you?