Lagrange Error Bound- Complete Guide with Examples
What the Lagrange Error Bound Actually Is
The Lagrange error bound gives you a guaranteed maximum error when you approximate a function using a Taylor polynomial. Not an estimate. Not a guess. A mathematical guarantee.
That's it. That's the whole point.
You use it when you need to know how far off your approximation might be. Engineers use it. Scientists use it. Anyone who needs to know "is this approximation good enough" uses it.
The Formula
Here's the Lagrange error bound formula:
|Rn(x)| ≤ (M / (n+1)!) · |x - a|n+1
Where:
- Rn(x) is the remainder (error) — what you're trying to bound
- M is the maximum value of the (n+1)th derivative on the interval between a and x
- n is the degree of your Taylor polynomial
- a is your center point
- x is where you're evaluating
Don't panic about the M value. I'll show you exactly how to find it.
How to Find M (The Part That Stumps Everyone)
M is the maximum absolute value of the (n+1)th derivative on the closed interval between your center point a and evaluation point x.
Steps to find M:
- Take the (n+1)th derivative of your original function
- Evaluate that derivative at several points in the interval
- Take absolute values of all those results
- Pick the largest one — that's M
You don't need to prove it's the absolute maximum. You just need to find a value that's definitely at least as big as the maximum. If you're unsure, overestimate M slightly. The bound still holds.
Step-by-Step: Finding the Lagrange Error Bound
Example: Approximate ex at x = 0.5 using a 3rd-degree Taylor polynomial centered at 0
Step 1: Identify your values
- Function: f(x) = ex
- Center: a = 0
- Evaluation point: x = 0.5
- Degree: n = 3
Step 2: Find the (n+1)th derivative
For ex, every derivative is ex. So the 4th derivative is ex.
Step 3: Find M on the interval [0, 0.5]
ex is increasing, so its maximum on [0, 0.5] occurs at x = 0.5.
M = e0.5 ≈ 1.649
Step 4: Plug into the formula
|R3(0.5)| ≤ (1.649 / 4!) · |0.5 - 0|4
|R3(0.5)| ≤ (1.649 / 24) · (0.0625)
|R3(0.5)| ≤ 0.00429
The error is guaranteed to be less than 0.0043.
Another Example: sin(x)
Approximate sin(0.3) using a 2nd-degree Taylor polynomial centered at 0
Step 1: Set up
- f(x) = sin(x)
- a = 0, x = 0.3
- n = 2
- Need the 3rd derivative: f'''(x) = -cos(x)
Step 2: Find M on [0, 0.3]
|f'''(x)| = |-cos(x)| = |cos(x)|
cos(x) is decreasing on [0, 0.3], so maximum absolute value is at x = 0: |cos(0)| = 1
M = 1
Step 3: Calculate
|R2(0.3)| ≤ (1 / 3!) · |0.3|3
|R2(0.3)| ≤ (1 / 6) · 0.027
|R2(0.3)| ≤ 0.0045
Your approximation is off by at most 0.0045. That's a solid bound.
Common Mistakes
- Using the wrong derivative order. If your polynomial is degree n, you need the (n+1)th derivative. Always add one.
- Wrong interval for M. The interval is between a and x, not from 0 to x. If a ≠ 0, adjust accordingly.
- Forgetting to take absolute values when finding M. You want the maximum absolute value, not the maximum value.
- Not checking endpoints. Derivatives often have critical points inside the interval. Test them all.
Lagrange vs. Other Remainder Forms
| Feature | Lagrange Remainder | Alternating Series Test |
|---|---|---|
| Use case | Any Taylor series | Alternating series only |
| Output | Maximum possible error | Maximum possible error |
| Difficulty | Harder — need M | Easier — use first omitted term |
| Guarantee | Absolute bound | Absolute bound |
The Lagrange form works for all Taylor series. The alternating series test only works when your series alternates in sign. Know which situation you're in.
When to Use Lagrange Error Bound
Use it when:
- You need a guaranteed error bound, not an estimate
- Your Taylor series doesn't alternate
- You're doing engineering or scientific calculations where precision matters
- You're asked for a rigorous bound in a math class
Skip it when:
- The alternating series test applies — it's faster
- You just need a rough idea of error size
Quick Reference: Steps to Apply Lagrange Error Bound
- Write down your Taylor polynomial Pn(x)
- Identify n (degree) and a (center)
- Find the (n+1)th derivative f(n+1)(x)
- Find M: maximum |f(n+1)(x)| on [a, x]
- Plug into: (M / (n+1)!) · |x - a|n+1
- Done. That's your guaranteed maximum error.
The Lagrange error bound isn't complicated. It's just methodical. Follow the steps, find M correctly, and you get a real error guarantee.