The Lagrange error bound

Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

About this lesson

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

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

Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

The Lagrange error bound

Taylor and Maclaurin series.

Warm-up

Three quick questions from earlier lessons.

  1. Find the degree-2 Maclaurin polynomial of f(x)=e8xf(x) = e^{ 8x}.
  2. f(0)=−6f(0) = -6, f′(0)=−6f'(0) = -6 and f′′(0)=4f''(0) = 4. Write the degree-2 Maclaurin polynomial of ff.
  3. Find the degree-2 Taylor polynomial of f(x)=8ln⁡xf(x) = 8\ln x centered at x=1x = 1.

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)∣≤3|f^{(3)}(x)| \le 3 on [0,1][0, 1]. Bound the error of the degree-2 Maclaurin polynomial at x=1x = 1.
  2. ∣f(3)(x)∣≤13|f^{(3)}(x)| \le 13 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)∣≤3|f^{(3)}(x)| \le 3 on [0,1][0, 1]. Bound the error of the degree-2 Maclaurin polynomial at x=1x = 1.
  2. ∣f(3)(x)∣≤13|f^{(3)}(x)| \le 13 on [0,1][0, 1]. Bound the error of the degree-2 Maclaurin polynomial at x=1x = 1.
  3. ∣f(3)(x)∣≤1|f^{(3)}(x)| \le 1 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.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Bound the error of the degree-3 Maclaurin polynomial of sin⁡x\sin x at x=19x = \dfrac{1}{ 9 }, using ∣f(4)(x)∣≤1|f^{(4)}(x)| \le 1.
Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits