Lagrange Error Bound
A Taylor polynomial gives an approximation, but an approximation is only useful if you know how far off it might be. The alternating series error bound handles alternating series. The Lagrange error bound works for any Taylor polynomial, alternating or not, as long as you can put a ceiling on the next derivative. It’s a favourite on the AP BC exam.
Key ideas
Section titled “Key ideas”The remainder
Section titled “The remainder”The remainder (or error) of the th-degree Taylor polynomial is
It’s what you’d still need to add to the polynomial to get the exact value.
The Lagrange error bound
Section titled “The Lagrange error bound”If is the th-degree Taylor polynomial for about , then
where is any number with for every between and .
Notice the pattern: the bound looks just like the next term of the Taylor polynomial, , except that is replaced by , the largest the th derivative can be on the interval.
Choosing M
Section titled “Choosing M”only has to be an upper bound for on the interval from to ; it doesn’t have to be the smallest one. A slightly bigger gives a slightly weaker, but still true, bound. Common choices:
| Situation | Good choice of M |
|---|---|
| is or | |
| is increasing or decreasing on the interval | its value at the endpoint where it’s largest |
| on | , rounded up (e.g. ) |
| The problem gives "" |
Never round down: a bound that’s too small isn’t a bound.
Finding the degree you need
Section titled “Finding the degree you need”To guarantee an error less than some tolerance, increase until drops below it. Because of the factorial, this usually happens quickly.
Which error bound should I use?
Section titled “Which error bound should I use?”- If the series you’re using is alternating, with terms decreasing to , the alternating series error bound is usually easier.
- Otherwise (for example, at a positive , or for , where all terms have the same sign), use the Lagrange error bound.
- If a question says “Lagrange error bound,” use it, even if the series happens to alternate.
On the AP exam, show the setup: state and why it works, then write the bound with numbers substituted. You don’t need to simplify the final number.
Worked examples
Section titled “Worked examples”Example 1: sin x near 0
Section titled “Example 1: sin x near 0”Use to approximate (radians), and use the Lagrange error bound to show the error is less than .
Solution.
Here , so you need the fourth derivative: . Since for every , take .
(Check: , so the actual error is about , well within the bound. Since the coefficient of sine is , this is also , and using would give the even smaller bound .)
Example 2: ln x, choosing M at an endpoint
Section titled “Example 2: ln x, choosing M at an endpoint”Use the second-degree Taylor polynomial for about to approximate , and find a Lagrange error bound.
Solution. , gives , and gives :
The next derivative is . On it is positive and decreasing, so its largest value is at the left endpoint: .
(Check: , so the actual error is about .)
Example 3: A bound given in the problem
Section titled “Example 3: A bound given in the problem”A function has a third-degree Taylor polynomial about called . It is known that for . Show that approximates with an error less than .
Solution. Take , , :
Example 4: How many terms for e?
Section titled “Example 4: How many terms for e?”Using , find the smallest for which the Lagrange error bound guarantees that the Maclaurin polynomial approximates within .
Solution. Every derivative of is , which is increasing, so on the largest value is . So works, and :
You need . Since and , you need , so .
Common mistakes
Section titled “Common mistakes”Using the wrong derivative. For , the bound uses the th derivative and , one step past the polynomial. For , use and .
Evaluating M at the centre instead of finding the maximum. must bound on the whole interval from to . In Example 2 the maximum happened to be at the centre, but for on it’s at .
Rounding M down. , so is too small. Use , , or even .
Forgetting the absolute value or using x instead of x − a. The bound uses . For a polynomial about evaluated at , that’s , not .
Thinking the bound is the error. The bound says the error is no more than this amount. The actual error is often much smaller.
Using the alternating series bound when the terms don’t alternate. For , the Taylor terms about are all negative, so only the Lagrange error bound applies.
Practice
Section titled “Practice”1. (Warm-up) The approximation uses for about . Find a Lagrange error bound.
Solution
, so use , with , so :
2. (Warm-up) A function has for all . Its third-degree Maclaurin polynomial is used to approximate . Find an upper bound for the error.
Solution
3. (Warm-up) is used to approximate . Explain why is a valid choice, and find the error bound.
Solution
is increasing, so on its largest value is . So works.
(Actual: and , an error of about .)
4. (Core) In the Taylor polynomials lesson, was used to approximate . Use the Lagrange error bound with to show the error is less than .
Solution
is increasing, so on its maximum is .
5. (Core) The tangent line to at gives . Find a Lagrange error bound for this approximation.
Solution
The tangent line is , so use . Its absolute value is decreasing on , so the maximum is at :
(Actual error: .)
6. (Core) A function has , and , and for .
- (a) Use the second-degree Taylor polynomial about to approximate .
- (b) Find a Lagrange error bound for your approximation.
- (c) Can equal ? Explain.
Solution
(a)
(b)
(c) No. must be within of , that is, between and . Since , cannot be .
7. (Core) Using , what is the smallest degree for which the Lagrange error bound guarantees that the Maclaurin polynomial for approximates within ?
Solution
Every derivative of is or , so , and :
You need . Since and , , so . (The degree 6 polynomial is the same as the degree 5 one, , because sine has no term.)
8. (Challenge) Use the third-degree Taylor polynomial for about to approximate , and find a Lagrange error bound. Why can’t you use the alternating series error bound here?
Solution
The derivatives of at are , , , so
With :
Next, , and is decreasing, so on its maximum is at : (use to be safe).
At every term , , , … is negative, so the series isn’t alternating and the alternating series bound doesn’t apply. (Check: , an error of about .)
9. (Challenge) Use and the Lagrange error bound with to show that .
Solution
As in Example 4, works on :
So .
Also, every term of the Maclaurin series for is positive, so the remainder (the sum of the terms left out) is positive: .
Together, .
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
All angles are in radians. In every bound, state your and explain why it works.
Foundations
Section titled “Foundations”H1. (Foundations) The third-degree Maclaurin polynomial for is .
- (a) Use to approximate .
- (b) Use the Lagrange error bound to find an upper bound for the error.
- (c) Use a calculator to find the actual error, and confirm that it is less than your bound.
H2. (Foundations) The polynomial is used to approximate .
- (a) Find the approximation.
- (b) Explain why is a valid choice for the Lagrange error bound, then find the bound.
- (c) Compare your bound with the actual error.
H3. (Core) Let .
- (a) Use the second-degree Taylor polynomial for about to approximate .
- (b) Find a Lagrange error bound. Explain carefully where takes its largest value on the interval.
- (c) Find the actual error and check that the bound holds.
H4. (Core) (AP style) A function has derivatives of all orders. Its values at are , , and . It is also known that for .
- (a) Write the third-degree Taylor polynomial for about , and use it to approximate .
- (b) Use the Lagrange error bound to find an upper bound for the error in part (a).
- (c) Explain how you know that is positive.
H5. (Core) You want to approximate with a Maclaurin polynomial , with an error less than .
- (a) Explain why works for every .
- (b) Find the smallest for which the Lagrange error bound guarantees this accuracy. Show the bound for that and for the degree just below it.
H6. (Core) In a physics class, students model a pendulum at a science centre in Ottawa using the small-angle approximation , where is the angle from vertical in radians.
- (a) Explain why is both the first-degree and the second-degree Maclaurin polynomial for .
- (b) Using , find a Lagrange error bound for the approximation when .
- (c) Find the actual error. How close is it to the bound?
Challenge
Section titled “Challenge”H7. (Challenge) A student uses to approximate and writes this error bound:
”, and at the centre , so . The error is at most .”
- (a) Find the two mistakes in the student’s work.
- (b) Write a correct Lagrange error bound.
- (c) Suppose the student fixed only the first mistake and kept . Compute that “bound” and compare it with the actual error. What does this show?
H8. (Challenge) The fifth-degree Maclaurin polynomial is used to approximate .
- (a) Find the Lagrange error bound using .
- (b) Find the alternating series error bound.
- (c) Explain why the Lagrange error bound with gives exactly the same number as part (b).
- (d) Which bound also tells you whether is too big or too small? Find the actual error and check all three bounds.
H9. (Challenge) The approximation uses for about .
- (a) Using , find the values of for which the Lagrange error bound guarantees an error of at most . Give your answer in set notation, rounding the endpoint safely.
- (b) Explain why you may also use for the same polynomial, and find the larger set of that this guarantees.
H10. (Challenge) (AP style) A function has derivatives of all orders, and for every ,
Let be the th-degree Maclaurin polynomial for . Find the smallest for which the Lagrange error bound guarantees that approximates with an error less than .