Lecture 12
Lecture 12
ables (cont.)
Some Definitions: Matrices of Derivatives
• Jacobian matrix
y1 = f 1 (x1 , x2 )
y2 = f 2 (x1 , x2 )
∗ Each equation has two first-order partial derivatives, so there are 2x2=4 first-order
partial derivatives
— Caveat: Mathematicians (and economists) call ’the Jacobian’ to both the matrix and
the determinant
1
— Generalization to system of n equations with n exogenous variables:
y1 = f 1 (x1 , x2 )
y2 = f 2 (x1 , x2 )
..
.
y2 = f 2 (x1 , x2 )
2
• Hessian matrix:
— Suppose y = f (x1 , x2 )
∂y ∂y
∗ There are 2 first-order partial derivatives: ∂x1 , ∂x2
∂y ∂y
∗ There are 2x2 second-order partial derivatives: ∂x ,
1 ∂x2
Example 2 Example y = x41 + x22 x21 + x32 . Then the Hessian matrix is
12x21 + 2x22 4x1 x2
H [f (x1 , x2 )] =
4x1 x2 2
2x1 + 6x2
3
— Generalization: Suppose y = f (x1 , x2 , x3 , ..., xn )
4
Chain Rules for Many Variables
• Suppose y = f (x, w) , while in turn x = g (t) and w = h (t) . How does y change when t
changes?
dy ∂y dx ∂y dw
= +
dt ∂x dt ∂w dt
• Suppose y = f (x, w) , while in turn x = g (t, s) and w = h (t, s) . How does y change when
t changes? When s changes?
∂y ∂y ∂x ∂y ∂w
= +
∂t ∂x ∂t ∂w ∂t
∂y ∂y ∂x ∂y ∂w
= +
∂s ∂x ∂s ∂w ∂s
• Notice that the first point is called the total derivative, while the second is the ’partial
total’ derivative
5
Derivatives of implicit functions
• So far, we have had functions like y = f (x) or z = g (x, w) , where a (endogenous) variable is
expressed as a function of other (exogenous) variables =⇒ explicit functions. Examples:
y = 4x2 , or z = 3xw + ln w
Fy · dy + Fx · dx = 0
Fy · (fx · dx) + Fx · dx = 0
[Fy · fx + Fx ] dx = 0
∂F
dy
Example 6 F (y, x) = y 2 − 2xy − x2 = 0. Then dx = − ∂F
∂x
= − −2y−2x
2y−2x =
y+x
y−x
∂y
∂F x
dy
Example 7 F (y, x) = y x + 1 = 0. Then dx = − ∂F
∂x
= − yxyx−1
ln y
= − xy ln y
∂y
6
• Generalization: One Implicit Equation