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:

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:

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

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

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

Lagrange vs. Other Remainder Forms

FeatureLagrange RemainderAlternating Series Test
Use caseAny Taylor seriesAlternating series only
OutputMaximum possible errorMaximum possible error
DifficultyHarder — need MEasier — use first omitted term
GuaranteeAbsolute boundAbsolute 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:

Skip it when:

Quick Reference: Steps to Apply Lagrange Error Bound

  1. Write down your Taylor polynomial Pn(x)
  2. Identify n (degree) and a (center)
  3. Find the (n+1)th derivative f(n+1)(x)
  4. Find M: maximum |f(n+1)(x)| on [a, x]
  5. Plug into: (M / (n+1)!) · |x - a|n+1
  6. 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.