Next: Infinite Series
Up: Differentiability
Previous: (Rates of growth)
  Contents
  Index
Taylor's Theorem
We have so far explored the Mean Value theorem, which can be rewritten as
f (a + h) = f (a) + hf'(c)
where c is some point between a and a + h. [By writing the definition of c in this way, we have a statement that works whether h > 0 or h < 0.]
We have already met the approximation
f (
a +
h)
f (
a) +
hf'(
a)
when we studied the Newton - Raphson method for solving an equation, and have already observed that the Mean Value Theorem provides a more accurate version of this. Now consider what happens when f is a polynomial of degree n
f (x) = a0 + a1x + a2x2 +...+ an-1xn-1 + anxn.
Note that
f (0) = a0. Differentiating gives
f'(x) = a1 + 2a2x + 3a3x2...+ (n - 1)an-1xn-2 + nanxn-1,
and so
f'(0) = a1. Again, we have
f''(x) = 2a2 + 3.2a3x...+ (n - 1)(n - 2)an-1xn-3 + n(n - 1)anxn-2,
and
f''(0) = 2a2. After the next differentiation, we get
f'''(0) = 3!a3, while after k differentiations, we get,
f(k)(0) = k!ak, provided k
n. Thus we can rewrite the polynomial, using its value, and the value of its derivatives at 0, as
f (
x) =
f (0) +
f'(0)
x +
x2 +
x3 +...+
xn-1 +
xn.
This opens up the possibility of representing more general functions than polynomials in this way, and so getting a generalisation of the Mean Value Theorem.
Theorem 5.29 (Taylors Theorem - Lagrange form of Remainder)
Let
f be continuous on [
a,
x], and assume that each of
f',
f'',...,
f(n+1) is defined on [
a,
x]. Then we can write
f (x) = Pn(x) + Rn(x),
where
Pn(
x), the Taylor polynomial of degree
n about
a, and
Rn(
x), the corresponding remainder, are given by
| Pn(x) |
= |
f (a) + f'(a)(x - a) + (x - a)2 + (x - a)n, |
|
| Rn(x) |
= |
(x - a)n+1, |
|
where
c is some point between
a and
x.
We make no attempt to prove this, although the proof can be done with
the tools we have at our disposal. Some quick comments:
- the theorem is also true for x < a; just restate it for the interval [x, a] etc;
- if n = 0, we have
f (x) = f (a) + (x - a)f'(c) for some c between a and x; this is a restatement of the Mean Value Theorem;
- if n = 1, we have
f (
x) =
f (
a) + (
x -
a)
f'(
x) +

(
x -
a)
2
for some c between a and x; this often called the Second
Mean Value Theorem;
- in general we can restate Taylor's Theorem as
f (
x) =
f (
a) + (
x -
a)
f'(
x) +...+

(
x -
a)
n +

(
x -
a)
n+1,
for some c between a and x;
- the special case in which a = 0 has a special name; it is called Maclaurin's Theorem;
- just as with Rolle, or the Mean Value Theorem, there is no useful information about the point c.
We now explore the meaning and content of the theorem with a number of
examples.
Example 5.30
Find the Taylor polynomial of order
n about 0 for
f (
x) =
e
, and write down the corresponding remainder term.
Solution. There is no difficulty here in calculating derivatives -- clearly
f(k)(x) = e
for all k, and so
f(k)(0) = 1. Thus by Taylor's theorem,
for some point c between 0 and x. In particular,
Pn(
x) = 1 +
x +

+

+...

and
Rn(
x) =
e
.
We can actually say a little more about this example if we recall that x is fixed. We have
ex =
Pn(
x) +
Rn(
x) =
Pn(
x) +
e
We show that
Rn(x)
0 as
n
, so that (again for fixed x), the sequence
Pn(x)
ex as
n
. If x < 0,
e
< 1, while if x
1, then since c < x, we have
e
< e
.
thus
We think of the limit of the polynomial as forming a series, the
Taylor series for
e
. We study series (and then Taylor
series) in Section 7.
Example 5.31
Find the Taylor polynomial of order 1 about
a for
f (
x) =
e
,
and write down the corresponding remainder term.
Solution. Using the derivatives computed above, by Taylor's theorem,
for some point c between a and x. In particular,
P1(
x) =
e
+ (
x -
a)
e
and
R1(
x) =
e
.
Example 5.32
Find the Maclaurin polynomial of order n > 3 about 0 for
f (x) = (1 + x)3, and write down the corresponding remainder term.
Solution. We have
| f (x) = (1 + x)3 |
| f'(x) = 3(1 + x)2 |
| f''(x) = 6(1 + x) |
| f'''(x) = 6 |
| f(n)(x) = 0 if n > 3. |
and so, by Taylor's theorem
(1 +
x)
3 = 1 + 3
x +
x2 +
x3,
a result we could have got directly, but which is at least reassuring.
Example 5.33
Find the Taylor polynomial of order n about 0 for
f (x) = sin x, and write down the corresponding remainder term.
Solution. There is no difficulty here in calculating derivatives -- we have
| f (x) = sin x |
| f'(x) = cos x |
| f''(x) = - sin x |
| f'''(x) = - cos x |
| f(4)(x) = sin x and so on. |
Thus by Taylor's theorem,
sin
x =
x -

+

+...+ (- 1)
n+1
+...
Writing down the remainder term isn't particularly useful, but the important point is that
Exercise 5.34
Recall that
cosh
x =

, and that
sinh
x =

. Now check the shape of the following Taylor polynomials:
| cos x |
= |
1 - + +...+ (- 1)n +... |
|
| sinh x |
= |
x + + +...+ +... |
|
| cosh x |
= |
1 + + +...+ +... |
|
Example 5.35
Find the maximum error in the approximation
sin(
x)
x -
given that |
x| < 1/2.
Solution. We use the Taylor polynomial for sin x of order 4 about 0, together with the corresponding remainder. Thus
sin
x =
x -

+

cos
c
for some c with
0 < c < 1/2 or
-1/2 < c < 0.
In any case, since | x| < 1/2,
Warning:The Taylor polynomial always exists, providing f is suitably differentiable. But it need not be useful. Consider the example
f (
x) =

The interest in f is at 0; it is well behaved everywhere else. It
turns out that
f (0) = f'(0) = f''(0) =...= f(n)(0) =...= 0.
So the Taylor polynomial of degree n for f about 0 is
Pn(x) = 0 + 0x + 0x2 +...+ 0.xn = 0, and so for every n,
Rn(x) = f (x). Clearly in this case, Pn tells us nothing useful about the
function.
Example 5.36
Find the Taylor polynomial of order
n about 0 for
f (
x) = (1 +
x)

, and note that this gives a derivation of the binomial theorem. In fact, the remainder
|
Rn(
x)|

0 as
n

, provided |
x| < 1.
Solution. There is again no difficulty here in calculating derivatives -- we have
f (x) = (1 + x) |
f'(x) = (1 + x) -1 |
f''(x) = ( - 1)(1 + x) -2 |
f'''(x) = ( - 1)( - 2)(1 + x) -3 |
| and in general |
f(n)(x) = ( - 1)...( - n + 1)(1 + x) -n |
Thus by Taylor's theorem,
(1 + x) |
= 1 + x - x2 + x3 + |
|
| |
...+ xn +.... |
|
The remainder is not hard to deal with, but we omit the proof; in fact
| Rn(x)|
0 when
n
.
Note also that if
> 0 is an integer, say
= n then
| Rn(x)| = 0 and
f (x) = Pn(x). This is another way to get the Binomial theorem described in Section 1.8.
Next: Infinite Series
Up: Differentiability
Previous: (Rates of growth)
  Contents
  Index
Ian Craw
2002-01-07