Lagrange
Error Bound
Learn how to bound the error when approximating functions with Taylor polynomials, and guarantee accuracy to a desired precision.
Why Do We Need Error Bounds?
Taylor polynomials let us approximate complicated functions with simple polynomials. But every approximation carries error: the difference between the true value and the polynomial's value. The critical question is: how large can that error be?
Quick Review: Taylor Polynomials
The \(n\)-th degree Taylor polynomial of \(f(x)\) centered at \(x = c\) is:
Defining the Remainder
The remainder (or error) is the difference between the actual function and the Taylor polynomial:
The Lagrange Error Bound
If \(f\) has derivatives of all orders on an interval \(I\) containing \(c\) and \(x\), and if \(M\) is a number such that \(|f^{(n+1)}(t)| \leq M\) for all \(t\) between \(c\) and \(x\), then:
Breaking Down Each Piece
Bound vs. Exact Error
| Lagrange Error Bound | Exact Error | |
|---|---|---|
| Formula | \(\frac{M}{(n+1)!}|x-c|^{n+1}\) | \(|f(x) - P_n(x)|\) |
| Requires | Max of \(|f^{(n+1)}|\) | Exact value of \(f(x)\) |
| Gives you | An overestimate | The true difference |
| Useful when | \(f(x)\) is unknown | \(f(x)\) is known |
How to Apply the Bound
Example 1: Bounding Error for \(\sin x\)
Use the 3rd-degree Maclaurin polynomial for \(\sin x\) to approximate \(\sin(0.5)\). Find the Lagrange error bound.
Example 2: Bounding Error for \(e^x\)
Use the 4th-degree Maclaurin polynomial for \(e^x\) to approximate \(e^{0.1}\). Find the error bound.
Example 3: Finding \(n\) for a Desired Accuracy
How many terms of the Maclaurin series for \(\cos x\) are needed to approximate \(\cos(1)\) with error less than \(10^{-6}\)?
Visualizing the Error Bound
The error bound creates a band around the Taylor polynomial. The true function is guaranteed to lie within this band.
Finding \(M\): The Hardest Part
The value \(M\) must satisfy \(|f^{(n+1)}(t)| \leq M\) for all \(t\) between \(c\) and \(x\). Here are strategies for common functions:
Alternating Series vs. Lagrange
For series with alternating signs, you have two tools. When should you use each?
| Alternating Series Bound | Lagrange Error Bound | |
|---|---|---|
| Applies when | Series alternates and terms decrease | Any Taylor series |
| Error ≤ | First omitted term \(|a_{n+1}|\) | \(\frac{M}{(n+1)!}|x-c|^{n+1}\) |
| Tightness | Often tighter | Often looser (overestimates) |
| Use when | Conditions are met | Non-alternating or general case |
Common Mistakes
Quick Reference Summary
Question 1 of 5
The 3rd-degree Taylor polynomial for \(f(x) = e^x\) centered at \(x = 0\) is used to approximate \(e^{0.2}\). Which expression gives the Lagrange error bound?
Question 2 of 5
The Lagrange error bound for the \(n\)-th degree Maclaurin polynomial of \(\sin x\) uses \(M = 1\) because:
Question 3 of 5
To guarantee the error of a Maclaurin polynomial for \(\cos(0.5)\) is less than \(10^{-4}\), what is the minimum degree \(n\) needed?
Question 4 of 5
If you increase the degree \(n\) of a Taylor polynomial while keeping \(x\) and \(c\) fixed, what generally happens to the Lagrange error bound?
Question 5 of 5
The 2nd-degree Taylor polynomial for \(f(x) = \ln x\) centered at \(x = 1\) is \(P_2(x) = (x-1) - \frac{(x-1)^2}{2}\). What is the Lagrange error bound at \(x = 1.5\)?