Lagrange Error Bound Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the degree of a Taylor polynomial, its center, the point x and a bound M on the next derivative to get the maximum possible approximation error.
Result
Error bound M|x − a|ⁿ⁺¹/(n + 1)!
(n + 1)!
- Error bound to 10 decimals
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Degree n of the Taylor polynomial: enter 0 or more.
- Center a: enter a number.
- Point x: enter a number.
- M, a bound on |f⁽ⁿ⁺¹⁾| between a and x: enter a number.
- Read the result: Error bound M|x − a|ⁿ⁺¹/(n + 1)!; the panel also shows (n + 1)! and Error bound to 10 decimals.
How this calculator works
Taylor's theorem with the Lagrange form of the remainder says that f(x) = Pₙ(x) + Rₙ(x) with Rₙ(x) = f⁽ⁿ⁺¹⁾(c)(x − a)ⁿ⁺¹/(n + 1)! for some c between a and x.
If |f⁽ⁿ⁺¹⁾| ≤ M on that interval, then |Rₙ(x)| ≤ M|x − a|ⁿ⁺¹/(n + 1)!. Choose M as the largest value of the (n + 1)th derivative's absolute value between a and x.
The formula
| Symbol | Meaning |
|---|---|
| Degree n of the Taylor polynomial | |
| Center a | |
| Point x | |
| M, a bound on |f⁽ⁿ⁺¹⁾| between a and x | |
| (n + 1)! | |
| Error bound M|x − a|ⁿ⁺¹/(n + 1)! | |
factorial(n) | the product of the whole numbers from one to n. |
round(x, d) | x rounded to d decimal places, or to a whole number without d. |
Worked example
| Degree n of the Taylor polynomial | 3 |
|---|---|
| Center a | 0 |
| Point x | 0.5 |
| M, a bound on |f⁽ⁿ⁺¹⁾| between a and x | 1.6487 |
| Error bound to 10 decimals | 0.0042934896 |
|---|---|
| (n + 1)! | 24 |
Error bound M|x − a|ⁿ⁺¹/(n + 1)! 0.0043
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How accurate is the degree-3 Maclaurin polynomial of eˣ at x = 0.5?
The 4th derivative is eˣ ≤ e^0.5 ≈ 1.6487 on [0, 0.5], so the error is at most 1.6487 × 0.5⁴ / 24 ≈ 0.0043.
What is M in the Lagrange error bound?
An upper bound for the absolute value of the (n + 1)th derivative of f on the interval between a and x.