Lagrange error bound
Calculate a Taylor polynomial error bound and use it to certify accuracy.
It opens on
P₃ gives sin(0.1)≈0.0998333. Can we guarantee an error below 0.00001 without finding sin(0.1)?
Why it matters
An approximation is useful when we can guarantee it meets a required tolerance.
Good to know first
- Finding Taylor polynomial approximations of functions (Pₙ(x)=Σₖ₌₀ⁿ f⁽ᵏ⁾(a)(x−a)ᵏ/k!, a polynomial built from derivatives at center a)
- absolute value as distance (|x−a| is how far x is from a)
Step by step
The next derivative
Identify the derivative, power, and factorial in the error of Pₙ.
For sin x centered at 0, P₃(0.1)=0.1−0.1³/3!=0.0998333…; its last term is −0.1³/3!.
A common mix-up
P₃’s error uses f⁽³⁾ and 3!
In fact: The next-degree remainder uses f⁽⁴⁾ and 4!.
Bound and certify
Choose an interval-wide derivative ceiling and decide what its error bound guarantees.
Sine stays between −1 and 1; on [0,0.1], |f⁽⁴⁾(z)|=|sin z|≤1, so M=1.
A common mix-up
A bound above the tolerance proves the approximation fails.
In fact: The actual error may be much smaller than its ceiling.
Try it
For P₄ centred at a, name the remainder’s derivative, power, and factorial.Answer
f⁽⁵⁾, |x−a|⁵, 5! (hint: go one degree past four).
Given |f⁽⁴⁾(z)|≤6 on [1,1.5], bound P₃(1.5)’s error when centred at 1.Answer
≤6(0.5)⁴/4!=0.015625 (hint: |x−a|=0.5).
Write the remainder line for the gap at P₂(0.1).Answer
|sin(0.1)−0.1|=|−cos z|(0.1)³/3!, for some 0<z<0.1.
Write the new bound and decide about 0.00001.Answer
|error|≤0.2⁴/4!≈0.00006667; not certified.
