Higher Order Derivatives and Taylor Expansions: Example
Higher Order Derivatives and Taylor Expansions: Example
Higher Order Derivatives and Taylor Expansions: Example
makes sense to talk about partial derivatives of partial derivatives; i.e., higher order partial derivatives.
2 f x2 f , f f and f f where f (x, y) = 3x y + x . x x xy x y yx y x
2 2
2f x2
(6xy + 2x) = x = 6y + 2 f x y
f x x
2 f xy
3x2 + 0 = x = 6x f y x
2 f yx
(6xy + 2x) = y = 6x + 0 = 6x
This is in fact a general phenomenon; the value of a mixed partial derivative does not depend on the order in which the derivatives are taken . Stated more formally;
Theorem 10.2.
then
If
: Rn
2f xi xj
2f xi xj
f = x x
j
Recall that if f (x) is a function of a single variable that is continuous and dierentiable up to order n + 1 then Taylors theorem says that
f (x) = f (a) + f (a)(x a) +
where the error term 1 2!
f (a)(x a)2 + +
f (n ) (a) n (x a) + Rn (x, a) n!
Rn (x, a)
Rn (x, a) =
xx a
n!
s f (n+1) (s)ds
and that, moreover, the error term is of order (x a)n+1 . Thus, to order (x a)n we can approximate the function f (x) by the polynomial function
Tn (x) = f (a) + f (a)(x a) +
There is an analogous theorem for functions of severa variables. However, since its general statement is a bit messy unless we introduce some new notation, well simply state the rst and second order Taylor formulae
Theorem 10.3.
Let
f : Rn
2.
f (x ) = f (a ) +
with the error term
f (a ) (x a ) + R (x , a )
1
R1 (x, a)
as
f (a) (x a)
= f (a ) +
f f ( x1 a1 ) + + ( xn a n ) . x1 a xn a
x.
idea of the best straight line t to a curve : it represents the best at plane approximation to the graph of
f ( x)
xo .
Theorem
10.4
Let
f (x ) = f (a ) +
f ( a ) (x i xi
ai ) + 1 2
i=0 j=0
2f (a) (xi xi xj
a i ) (x j a j ) + R ( x , a )
2
R2 (x, a)
as
Example 10.5. Compute the second order Taylor formula for the function f (x, y) = xy + x2 + y2 about the point (1, 1).
We have
= (y + 2x + 0)|(1 1) = 3
,
= (x + 0 + 2y)|(1 1) = 3
,
= (0 + 2 + 0)|(1 1) = 2
,
2 f yx (1,1)
= (1 + 0 + 0)|(1 1) = 1
, ,
= (0 + 0 + 2)|(1 1) = 2
So 1 +2
+
2 f x2
f (x, y) = f (1, 1) +
f f ( x 1) + (y 1) y (1,1) y (1,1)
(1 ,1)
(x 1)2 +
(1,1)
2f xy
(1 ,1)
(x 1)(y 1)
2 f y2
(1 ,1)
2 f yx
(y 1)(x 1) +
3
(y 1)2
+O
(x, y) (1, 1)
= 3 + 3(x 1) + 3(y 1) + +O
Below I present another (equivalent) formula for the second order Taylor expansion. Let (x a) be the n-dimensional column vector with components
x a 1 1 x2 a21 (x a ) = ...
xn a n
and let (x a) be the matrix transpose of (x a) (an n-dimensional row vector) (x a)T = (x1 a1 , x2 a2 , , xn an ) . The gradient vector f (a) = Df (a), according to the conventions of Section 2.3 is an n-dimensional row vector;
T
f (a) =
f f (a), f (a), , x ( a) x1 x2 n
Let us now dene the Hessian matrix at the point a as the n n matrix Hf (a) dened by
Hf (a) =
Then we can write 1 f (x) f (a) + f (a) (x a) + (x a)T Hf (a) (x a) + O 2 for the second order Taylor expansion of f about a.
(a ) 2 f x2 x1 (a ) . . . 2 f xn x1 (a )
2f x1 x1
(a) 2 f x2 x2 (a ) .. .
2f x1 x2
2f x1 xn
f xn xn
.. . .. . 2
( a) ( a)
xa