# Taylor's Theorem/One Variable

## Contents

## Theorem

Let $f$ be a real function which is continuous on the closed interval $\left[{a \,.\,.\, b}\right]$ and $n + 1$ times differentiable on the open interval $\left({a \,.\,.\, b}\right)$.

Let $\xi \in \left({a \,.\,.\, b}\right)$.

Then, given any $x \in \left({a \,.\,.\, b}\right)$, there exists some $\eta \in \R: x \le \eta \le \xi$ or $\xi \le \eta \le x$ such that:

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle f \left({x}\right)\) | \(=\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle \frac 1 {0!} f \left({\xi}\right)\) | \(\displaystyle \) | \(\displaystyle \) | |||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(+\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle \frac 1 {1!} \left({x - \xi}\right) f^{\prime} \left({\xi}\right)\) | \(\displaystyle \) | \(\displaystyle \) | |||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(+\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle \frac 1 {2!} \left({x - \xi}\right)^2 f^{\prime \prime} \left({\xi}\right)\) | \(\displaystyle \) | \(\displaystyle \) | |||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(+\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle \cdots\) | \(\displaystyle \) | \(\displaystyle \) | |||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(+\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle \frac 1 {n!} \left({x - \xi}\right)^n f^{\left({n}\right)} \left({\xi}\right)\) | \(\displaystyle \) | \(\displaystyle \) | |||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(+\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle R_n\) | \(\displaystyle \) | \(\displaystyle \) |

where $R_n$ (sometimes denoted $E_n$) is known as the **error term**, and satisfies:

- $\displaystyle R_n = \frac 1 {\left({n+1}\right)!} \left({x - \xi}\right)^{n+1} f^{\left({n+1}\right)} \left({\eta}\right)$

Note that when $n = 0$ Taylor's Theorem reduces to the Mean Value Theorem.

The expression:

- $\displaystyle f \left({x}\right) = \sum_{n \mathop = 0}^\infty \frac {\left({x - \xi}\right)^n} {n!} f^{\left({n}\right)} \left({\xi}\right)$

where $n$ is taken to the limit, is known as the Taylor series expansion of $f$ about $\xi$.

## Proof

### Integral Version

We first prove Taylor's theorem with the integral remainder term.^{[1]}

The Fundamental Theorem of Calculus states that

- $\displaystyle \int_a^x f' \left({t}\right) \ \mathrm d t = f \left({x}\right) - f \left({a}\right)$

which can be rearranged to:

- $\displaystyle f \left({x}\right) = f \left({a}\right) + \int_a^x f'(t) \ \mathrm d t$

Now we can see that an application of Integration by Parts yields:

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle f \left({x}\right)\) | \(=\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle f \left({a}\right) + x f' \left({x}\right) - a f' \left({a}\right) - \int_a^x t f'' \left({t}\right) \ \mathrm d t\) | \(\displaystyle \) | \(\displaystyle \) | $u = f' \left({t}\right)$ and $\mathrm d v = \mathrm d t$ | ||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(=\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle f \left({a}\right) + \int_a^x x f'' \left({t}\right) \ \mathrm d t + x f' \left({a}\right) - a f' \left({a}\right)-\int_a^x \, t f'' \left({t}\right) \ \mathrm d t\) | \(\displaystyle \) | \(\displaystyle \) | $\displaystyle \int_a^x x f'' \left({t}\right) \ \mathrm d t = x f' (x)-x f' (a)$ | ||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(=\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle f \left({a}\right) + (x-a) f' \left({a}\right) + \int_a^x (x-t) f'' \left({t}\right) \ \mathrm d t\) | \(\displaystyle \) | \(\displaystyle \) | factoring out some common terms |

Another application yields:

- $\displaystyle f \left({x}\right) = f \left({a}\right)+(x-a) f' \left({a}\right)+ \frac 1 2 (x-a)^2f'' \left({a}\right) + \frac 1 2 \int_a^x (x-t)^2 f''' \left({t}\right) \ \mathrm d t$

By repeating this process, we may derive Taylor's theorem for higher values of $n$.

This can be formalized by applying the technique of Principle of Mathematical Induction. So, suppose that Taylor's theorem holds for a $n$, that is, suppose that:

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle f \left({x}\right)\) | \(=\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle f(a)\) | \(\displaystyle \) | \(\displaystyle \) | |||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(+\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle \frac{f'(a)}{1!}(x - a)\) | \(\displaystyle \) | \(\displaystyle \) | |||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(+\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle \cdots\) | \(\displaystyle \) | \(\displaystyle \) | |||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(+\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle \frac{f^{(n)}(a)}{n!}(x - a)^n\) | \(\displaystyle \) | \(\displaystyle \) | |||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(+\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle \int_a^x \frac{f^{(n+1)} (t)}{n!} (x - t)^n \ \mathrm d t\) | \(\displaystyle \) | \(\displaystyle \) | $*$ |

We can rewrite the integral using integration by parts. An antiderivative of $(x-t)^n$ as a function $t$ is given by $\dfrac{-(x-t)^{n+1}}{n+1}$, so:

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle \int_a^x \frac{f^{(n+1)} \left({t}\right)}{n!} \left({x - t}\right)^n \ \mathrm d t\) | \(\displaystyle \) | \(\displaystyle \) | |||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(=\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle - \left[ \frac{f^{(n+1)} \left({t}\right)}{(n+1)n!} \left({x - t}\right)^{n+1} \right]_a^x + \int_a^x \frac{f^{(n+2)} \left({t}\right)}{(n+1)n!} \left({x - t}\right)^{n+1} \ \mathrm d t\) | \(\displaystyle \) | \(\displaystyle \) | |||

\(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(=\) | \(\displaystyle \) | \(\) | \(\displaystyle \) | \(\displaystyle \frac{f^{(n+1)} (a)}{(n+1)!} (x - a)^{n+1} + \int_a^x \frac{f^{(n+2)} \left({t}\right)} {(n+1)!} \left({x - t}\right)^{n+1} \ \mathrm d t\) | \(\displaystyle \) | \(\displaystyle \) |

The last integral can be solved immediately, which leads to

- $\displaystyle R_n = \frac{f^{(n+1)}(\xi)}{(n+1)!} (x-a)^{n+1}$

$\blacksquare$

### Proof using Cauchy Mean Value Theorem

An alternative proof, which holds under milder technical assumptions on the function $f$, can be supplied using the Cauchy Mean Value Theorem.

Let $G$ be a real-valued function continuous on $\left[{a \,.\,.\, x}\right]$ and differentiable with non-vanishing derivative on $\left({a \,.\,.\, x}\right)$.

Let:

- $\displaystyle F \left({t}\right) = f \left({t}\right) + \frac{f' \left({t}\right)}{1!}(x-t) + \cdots + \frac{f^{(n)} \left({t}\right)}{n!}(x-t)^n$

By the Cauchy Mean Value Theorem:

- $\displaystyle \frac{F'(\xi)}{G'(\xi)} = \frac{F(x) - F(a)}{G(x) - G(a)} \qquad (1)$

for some $\xi \in \left({a \,.\,.\, x}\right)$.

Note that the numerator $F(x)-F(a)=R_n$ is the remainder of the Taylor polynomial for $f(x)$.

On the other hand, computing $F^{\prime} (\xi)$:

- $\displaystyle F'(\xi) = f'(\xi) - f'(\xi) + \frac{f''(\xi)}{1!}(x-\xi) - \frac{f''(\xi)}{1!}(x-\xi) + \cdots + \frac{f^{(n+1)}(t)}{n!}(x-\xi)^n = \frac{f^{(n+1)}(\xi)}{n!}(x-\xi)^n$

Putting these two facts together and rearranging the terms of $(1)$ yields:

- $\displaystyle R_n = \frac{f^{(n+1)}(\xi)}{n!}(x-\xi)^n\cdot\frac{G(x)-G(a)}{G'(\xi)}$

which was to be shown.

Note that the Lagrange Form of the Remainder comes from taking $G \left({t}\right) = \left({x - t}\right)^{n+1}$ and the given Cauchy Form of the Remainder comes from taking $G \left({t}\right) = t - a$.

$\blacksquare$

### Proof using Rolle's Theorem directly

Yet another proof for Lagrange Form of the Remainder can be constructed applying Rolle's theorem directly $n$ times; this proof might be easier to visualize geometrically.

Let the function $g$ be defined by:

- $\displaystyle g \left({t}\right) = R_n \left({t}\right) - \frac{(t-a)^{n+1}}{(x-a)^{n+1}}R_n(x)$

Then:

- $g^{\left({k}\right)} \left({a}\right)=0$ for $k=0, \ldots, n$, and $g \left({x}\right) = 0$.

Apply Rolle's Theorem successively to $g$, to $g'$, and so until $g^{\left({n}\right)}$.

Then there are:

- $\xi_1, \ldots, \xi_{n+1}$

between $a$ and $x$ such that:

- $g'(\xi_1)=0$, $g''(\xi_2)=0, \ldots, g^{\left({n+1}\right)}(\xi_{n+1}) = 0$

Let $\xi = \xi_{n+1}$.

Then:

- $\displaystyle 0 = g^{\left({n+1}\right)} \left({\xi}\right) = f^{\left({n+1}\right)} \left({\xi}\right) - \frac{\left({n+1}\right)!}{(x-a)^{n+1}} R_n \left({x}\right)$

and the formula for $R_n \left({x}\right)$ follows.

$\blacksquare$

## Source of Name

This entry was named for Brook Taylor.

## References

- ↑ Note that this proof requires $f^{\left({n}\right)}$ to be absolutely continuous on $\left[{a \,.\,.\,x}\right]$ so that the Fundamental Theorem of Calculus holds.

Except at the end when the mean value theorem is invoked, differentiability of $f^{\left({n}\right)}$ need not be assumed since absolute continuity implies differentiability almost everywhere as well as the validity of the fundamental theorem of calculus, provided the integrals involved are understood as Lebesgue integrals.

Consequently, the integral form of the remainder holds with this particular weakening of the assumptions on $f$.