Professional Documents
Culture Documents
Taylor Polynomials
Higher-Order Derivatives
The symbol f ( n ) is used to represent the nth derivative of the function f. When stating
formulas involving a function and its higher-order derivatives, it is convenient to let f (0)
represent the function f (that is, the zeroth derivative of a function is just the function itself).
f ( x) (1) 2 2!(1 x) 3 , n 2,
f (3) ( x) (1)3 3!(1 x) 4 , n 3,
f (4) ( x) (1)4 4!(1 x)5 , n 4.
This suggests that
f ( n ) ( x) (1)n n !(1 x) ( n 1) .
1
This determines the value of a0 . To determine the value of a1 , we require that both functions
have the same slope at 0. Since p1 ( x) a1 and f ( x) e x , this implies that
a1 p1 (0) f (0) e0 1 .
f ( x) e x ,
p2 ( x) a1 2a2 x,
f ( x) e x ,
p2 ( x) 2a2 ,
f ( x) e x .
Thus,
a0 p2 (0) f (0) e0 1 implies a0 1 ,
a1 p2 (0) f (0) e0 1 implies a1 1 ,
1
2a2 p2 (0) f (0) e0 1 implies a2 ,
2
It seems reasonable to assume that a third-degree polynomial would yield a still better
approximation. We state the required condition as:
Find
p3 ( x) a0 a1 x a2 x 2 a3 x3 ,
(3)
satisfying
p3( k ) (0) f ( k ) (0),
k 0, 1, 2, 3 .
As before, we obtain the value of the additional coefficient a3 by adding the requirement that
p3(3) (0) f (3) (0) .
Thus,
p3 ( x) a0 a1 x a2 x 2 a3 x3 ,
f ( x) e x ,
p3 ( x) a1 2a2 x 3a3 x 2 ,
f ( x) e x ,
p3 ( x) 2a2 6a3 x,
f ( x) e x ,
p3(3) ( x) 6a3 ,
f (3) ( x) e x .
1 2 1 3
x x .
2
6
Taylor Polynomials at 0
The process we have used to determine p1 , p2 , and p3 can be continued. Given any
positive integer n, we define
pn ( x) a0 a1 x a2 x 2 an x n ,
and require that
pn ( k ) (0) f ( k ) (0),
k 0,1, 2, , n .
The polynomial pn is called a Taylor polynomial. Before determining pn for f ( x) e x , it will
be convenient to make some general statements concerning the relationship between ak ,
pn ( k ) (0) , and f ( k ) (0) for an arbitrary function f. First, pn ( x) is differentiated n times to obtain
the following relationships:
pn ( x) a0 a1 x a2 x 2 a3 x3 an x n ,
pn ( n ) ( x) n (n 1)(n 2) 1 an n !an .
Evaluating each derivative at 0 and applying the requirement that pn ( k ) (0) f ( k ) (0) leads to the
following equations:
a0 pn (0) f (0),
a1 pn (0) f (0),
2a2 pn (0) f (0),
3 2 a3 pn (3) (0) f (3) (0),
k!
k!
This relationship enables us to state the general definition of a Taylor polynomial.
pn ( x) a0 a1 x a2 x 2 an x n ak x k ,
k 0
where
pn ( k ) (0) f ( k ) (0)
and
ak
f ( k ) (0)
,
k!
k 0,1, 2, , n .
(Taylor polynomials at 0 are also often referred to as Maclaurin polynomials, but we will not use
this terminology).
4
Returning to our original function f ( x) e x , it is now an easy matter to find the nthdegree Taylor polynomial for this function. Since (d / dx)e x e x , it follows that
f ( k ) (0) 1
k!
k!
for all values of k. Thus, for any n, the nth-degree Taylor polynomial for e x is
n
1
1
1
1
pn ( x) 1 x x 2 x3 x n x k .
2!
3!
n!
k 0 k !
f ( k ) ( x) e x ,
f ( k ) (0) e0 1,
ak
f ( x)
1
( x 4) 1/2 ,
2
1
f ( x) ( x 4)3/2 ,
4
1
1
f (0) 4 3/ 2 ,
4
32
3
f (3) ( x) ( x 4)5/2 .
8
3
3
f (3) (0) 4 5/2
.
8
256
(3)
f (0)
f (0) 1
f (0)
1
f (0) 256
1
a0
2, a1
, a2
32 , a3
.
0!
1!
4
2!
2
64
3!
6
512
Step 4. Write down the Taylor polynomial:
1
1 2
1 3
p3 ( x) 2 x
x
x
4
64
512
To use p3 to approximate
(Taylor polynomial).
x 4 5,
x 1.
Thus,
5 f (1) p3 (1) 2
1 1
1
2.2363281 .
4 64 512
Taylor Polynomials at a
Now we generalize the definition of the Taylor polynomial. Proceeding as we did before,
given a function f with n derivatives at a number a, we want to find an nth-degree polynomial
pn with the property that
pn ( k ) (a ) f ( k ) (a ),
k 0,1, 2, , n .
That is, we require that pn and its first n derivatives agree with f and its first n derivatives at the
number a. It turns out that it is much easier to find pn when it is expressed in powers of x a .
The general expression for an nth-degree polynomial in powers of x a and its first n
derivatives are as follows:
pn ( x) a0 a1 ( x a ) a2 ( x a )2 a3 ( x a )3 an ( x a )n ,
pn ( x) a1 2a2 ( x a ) 3a3 ( x a ) 2 nan ( x a ) n 1 ,
pn ( x) 2a2 3 2a3 ( x a ) n(n 1)an ( x a ) n 2 ,
pn (3) ( x) 3 2a3 n (n 1)(n 2)an ( x a ) n 3 ,
pn ( n ) ( x) n (n 1)(n 2) 1 an n !an .
Now we evaluate each function at a and apply the appropriate condition:
a0 pn (a ) f (a ),
a1 pn (a) f (a),
2a2 pn (a) f (a),
3 2 a3 pn (3) (a) f (3) (a),
n !an pn ( n ) (a ) f ( n ) (a).
Thus, each coefficient of pn satisfies ak
f ( k ) (a)
, k 0,1, 2, , n .
k!
pn ( x) f (a) f (a)( x a )
n
f (a)
f ( n ) (a)
f ( k ) (a)
( x a)2
( x a) n
( x a)k ,
2!
n!
k
!
k 0
Example 3 (Taylor Polynomials at a). Find the third-degree Taylor polynomial at a 1 for
f ( x) 4 x . Use p3 to approximate 4 2 .
Solution.
Step 1. Find the derivatives:
f ( x) x1/4 ,
f ( x)
1 3/4
x ,
4
f ( x)
3 7/4
x ,
16
f (3) ( x)
21 11/4
x
.
64
1
f (1) ,
4
f (1)
3
,
16
f (3) (1)
21
.
64
(3)
1
f (1)
3
f (1) 64
7
16 , a3
a0 f (1) 1, a1 f (1) , a2
.
4
2!
2
32
3!
6 128
Step 4. Write down the Taylor polynomial:
1
3
7
p3 ( x) 1 ( x 1) ( x 1) 2
( x 1)3 .
4
32
128
Now we use the Taylor polynomial to approximate 4 2 :
1 3
7
4
2 f (2) p3 (2) 1
1.2109375 .
4 32 128
Applications
Example 4 (Average Price). Given the demand function
p D( x) 2,500 x 2 ,
use the second-degree Taylor polynomial at 0 to approximate the average price (in dollars) over
the demand interval [10, 40] .
Solution. The average price over the demand interval [10, 40] is given by
40
1
2,500 x 2 dx .
30 10
This integral cannot be evaluated by any of the techniques we have discussed. However, we can
use a Taylor polynomial to approximate the value of the integral. Omitting the details, the
Average price
1
1 2
1
1 3
Average price
50
x dx 50 x
x
30 10
100
30
300
40
40
$ 43 .
10