Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Lagrange Error Bound Calculator

Degree n of the Taylor polynomial: enter 0 or more. Prefilled example: 3.

Center a: enter a number. Prefilled example: 0.

Point x: enter a number. Prefilled example: 0.5.

M, a bound on |f⁽ⁿ⁺¹⁾| between a and x: enter a number. Prefilled example: 1.6487.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Degree n of the Taylor polynomial: enter 0 or more.
  2. Center a: enter a number.
  3. Point x: enter a number.
  4. M, a bound on |f⁽ⁿ⁺¹⁾| between a and x: enter a number.
  5. 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

  1. Fac=factorial⁡(round⁡(n)+1)
  2. B=M×|x−a|round⁡(n)+1Fac
Symbols used in the formula
SymbolMeaning
nDegree n of the Taylor polynomial
aCenter a
xPoint x
MM, a bound on |f⁽ⁿ⁺¹⁾| between a and x
Fac(n + 1)!
BError 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 polynomial3
Center a0
Point x0.5
M, a bound on |f⁽ⁿ⁺¹⁾| between a and x1.6487
Error bound to 10 decimals0.0042934896
(n + 1)!24
  1. Fac=factorial⁡(round⁡(3)+1)=24
  2. B=1.6487×|0.5−0|round⁡(3)+124=0.00429349

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.

Related calculators