The Lagrange error bound

About this lesson

Calculus BC (AP-aligned) › Taylor and Maclaurin series

To save a PDF, choose “Save as PDF” in the print dialog.

The Lagrange error bound

Taylor and Maclaurin series.

Warm-up

Three quick questions from earlier lessons.

Discover

P2P_2 matches ff, f′f' and f′′f'' at aa. Which derivative is responsible for the error?

  1. f(3)f^{(3)}
  2. f′′f''

Key idea

The next term, with the worst derivative, bounds the error.

Lagrange error bound: if ∣f(n+1)(t)∣≤M|f^{(n+1)}(t)| \le M between aa and xx, then ∣f(x)−Pn(x)∣≤M ∣x−a∣n+1(n+1)!|f(x) - P_n(x)| \le \dfrac{M\,|x - a|^{n+1}}{(n + 1)!}.

Worked example

Bound the error of P3P_3 for exe^x at x=0.5x = 0.5 (center 0).

M=2M = 2
f⁽⁴⁾ = eˣ ≤ e^0.5 < 2 on [0, 0.5].
∣R3∣≤2⋅0.5424|R_3| \le \dfrac{2 \cdot 0.5^4}{24}
|x|⁴/4!.
≈0.0052\approx 0.0052
Compute.

Your turn, guided

Your turn: ∣f(3)∣≤6|f^{(3)}| \le 6; bound the error of P2P_2 at ∣x−a∣=1|x - a| = 1.

∣R2∣≤1|R_2| \le 1
6 · 1³/3!.

Practice ★

  1. ∣f(3)(x)∣≤9|f^{(3)}(x)| \le 9 on [0,1][0, 1]. Bound the error of the degree-2 Maclaurin polynomial at x=1x = 1.
  2. ∣f(3)(x)∣≤8|f^{(3)}(x)| \le 8 on [0,1][0, 1]. Bound the error of the degree-2 Maclaurin polynomial at x=1x = 1.
  1. The Lagrange error bound for the degree-4 Taylor polynomial uses the maximum of which derivative?
    1. f(5)f^{(5)}, the next derivative
    2. f(4)f^{(4)}
    3. ff itself

Watch out!

Practice ★★

  1. On the interval, ∣f(2)(x)∣≤2|f^{(2)}(x)| \le 2. Bound the error of the degree-1 Taylor polynomial centered at aa, at a point with ∣x−a∣=12|x - a| = \tfrac{1}{2}.
  2. On the interval, ∣f(3)(x)∣≤1|f^{(3)}(x)| \le 1. Bound the error of the degree-2 Taylor polynomial centered at aa, at a point with ∣x−a∣=12|x - a| = \tfrac{1}{2}.

Exit ticket

Three questions to check you have got it.

  1. ∣f(3)(x)∣≤9|f^{(3)}(x)| \le 9 on [0,1][0, 1]. Bound the error of the degree-2 Maclaurin polynomial at x=1x = 1.
  2. ∣f(3)(x)∣≤8|f^{(3)}(x)| \le 8 on [0,1][0, 1]. Bound the error of the degree-2 Maclaurin polynomial at x=1x = 1.
  3. ∣f(3)(x)∣≤2|f^{(3)}(x)| \le 2 on [0,1][0, 1]. Bound the error of the degree-2 Maclaurin polynomial at x=1x = 1.

Summary card

Lagrange error bound

∣Rn∣≤M∣x−a∣n+1(n+1)!|R_n| \le \dfrac{M|x - a|^{n+1}}{(n + 1)!}, M≥∣f(n+1)∣M \ge |f^{(n+1)}|.

Watch out: n+1n + 1 everywhere.

CC BY-SA 4.0