The Taylor polynomial approximates ff, but with what error? The remainder Rn(x)=f(x)Tn(x)R_n(x) = f(x) - T_n(x) can be written in three equivalent forms, each useful in a different context.

Theorem — Taylor's formula with Lagrange remainder

If ff is differentiable n+1n+1 times in a neighbourhood of x0x_0, then for every xx in that neighbourhood there exists a point cc strictly between x0x_0 and xx such that f(x)=Tn(x)+f(n+1)(c)(n+1)!(xx0)n+1Rn(x): Lagrange remainder.f(x) = T_n(x) + \underbrace{\frac{f^{(n+1)}(c)}{(n+1)!}(x-x_0)^{n+1}}_{R_n(x):\ \text{Lagrange remainder}}.

Remark — A linguistic reading: " xc\forall x\,\exists c"

The logical structure of the formula is nested: for every xx in the neighbourhood, there exists a cc (which depends on xx!) such that the equality holds. It is a "xc\forall x\,\exists c", not an "cx\exists c\,\forall x": the point cc changes with xx and is not known exactly, one knows only that it lies between x0x_0 and xx. For numerical applications this is enough: to bound the error Rn(x)|R_n(x)| one bounds f(n+1)|f^{(n+1)}| over the whole interval (so the estimate holds whatever cc may be). Being able to read "\forall\ldots\exists\ldots" is, as Esty observes, a skill of a higher level than mere algebraic manipulation.

Theorem — Taylor's formula with Peano remainder

If ff is differentiable nn times at x0x_0, then as xx0x\to x_0 f(x)=Tn(x)+o((xx0)n),f(x) = T_n(x) + o\bigl((x-x_0)^n\bigr), where o((xx0)n)o\bigl((x-x_0)^n\bigr) is a function that tends to zero more rapidly than (xx0)n(x-x_0)^n (little-o).

Theorem — Taylor's formula with Cauchy remainder

Under Lagrange’s hypotheses, there exists cc between x0x_0 and xx such that Rn(x)=f(n+1)(c)n!(xc)n(xx0).R_n(x) = \frac{f^{(n+1)}(c)}{n!}(x-c)^n(x-x_0).

Remark — When to use which

  • Lagrange: needed when one wants to estimate numerically the approximation error (it suffices to bound f(n+1)|f^{(n+1)}| over the interval).
  • Peano: needed when one wants to compute an indeterminate limit by replacing ff with its Taylor series.
  • Cauchy: an alternative form of Lagrange, useful in some technical proof (rarely in calculations).

Topics: Derivatives
Concepts: Little-o · Taylor polynomial · Taylor remainder
Methods: Taylor Lagrange remainder · Taylor Peano remainder
Skills: Estimating
People: Augustin-Louis Cauchy · Joseph-Louis Lagrange · Peano