Mathematical Economics: Hasin Yousaf
Mathematical Economics: Hasin Yousaf
Hasin Yousaf
Week 3
Differentiation (cont’d)
Overview of today’s lecture
Differentiation
• Implicit functions
Partial Differentiation
Consider a function
y = f (x1 , x2 , · · · , xn )
where the variables xi i = 1, · · · , n are all independent of one another,
so that each can vary by itself without affecting the others. If the
variable x1 undergoes a change ∆x1 while x2 , · · · , xn all remain fixed,
there will be a corresponding change in y, ∆y.
= 6x1 + x2
= x1 + 8x2
Techniques of Partial Differentiation
Exercise
∇f (x1 , x2 , · · · , xn ) = (f1 , f2 , · · · , fn )
Note that since the function f has n arguments, there are altogether n
partial derivatives, hence ∇f is a 1 × n vector.
Exercise
Qd = a − bP (a, b > 0)
Qs = −c + dP (c, d > 0)
∂P ∗ 1 ∂Q∗ d
= >0 = >0
∂a b+d ∂a b+d
Hence, when the parameter a increases, both the equilibrium quantity
and the equilibrium price increase.
S
a
Q∗0
Q∗
D0
D
0 P
P ∗P ∗0
-c
Change in the Parameter d
∂P ∗ −(a + c) ∂Q∗ ab + bc
= <0 = >0
∂d (b + d)2 ∂d (b + d)2
Hence, when the parameter d increases, the equilibrium quantity
increases and the equilibrium price decreases.
Q
S0
a
S
Q∗0
Q∗
D
0 P
-c P ∗0P ∗
General-Function Models
y = f (x1 , x2 )
The easiest way to proceed might be to find the two separate partial
derivatives fx1 and fx2 , and then substitute these into the equation:
∂y ∂y
dy = dx1 + dx2
∂x1 ∂x2
∂z ∂z
dz = dx + dy
∂x ∂y
= (6x + 2y)dx + (2x − 6y 2 )dy
x
Example 2: Given z = x+y
, find the total differential of z.
∂z ∂z
dz = dx + dy
∂x ∂y
(1)(x + y) − (x)(1) −(x)(1)
= dx + dy
(x + y)2 (x + y)2
y x
= dx − dy
(x + y)2 (x + y)2
Total Derivatives
The total derivative is just a ratio of two differentials. So, to find the
total derivative:
• Step 1: Find the total differential
• Step 2 : Divide by the relevant differential
dy
Example 1: Find dw given y = f (x, w) = 4x2 − 2w where
2
x = g(w) = w + w − 3.
• Step 1: First find the total differential:
∂y ∂y
dy = dx + dw
∂x ∂w
• Step 2: Divide the total differential by dw:
dy ∂y dx ∂y dw
= +
dw ∂x dw ∂w dw
∂y dx ∂y
= +
∂x dw ∂w
= (8x)(2w + 1) + (−2)
= 16wx + 8x − 2
= 16w(w2 + w − 3) + 8(w2 + w − 3) − 2
= 16w3 + 24w2 − 40w − 26
Implicit Functions
F (y, x1 , ..., xn ) = 0
if
1. F has continuous partial derivatives Fy , F1 , · · · , Fn ,
2. at a point (y0 , x10 , ..., xn0 ) satisfying the equation, Fy 6= 0,
then there exists an n-dimensional neighbourhood of
(y0 , x10 , ..., xn0 ) in which y is an implicitly defined function of
the variables x1 , · · · , xn in the form of y = f (x1 , ..., xn ).
Implicit Functions
F (y, x1 , · · · , xn ) = 0
This is a nice result because it means that even if you don’t know what
the implicit function looks like, you can still find its derivatives.
Derivatives of Implicit Functions
dy Fx (−12x3 )
=− =− = 12x3
dx Fy 1
dy Fx y 2 − 2wy + 10w
=− =−
dx Fy 2xy − 2xw
dy Fw −2xy + 10x
=− =−
dw Fy 2xy − 2xw
Extension to the Simultaneous-Equation Case
y1 = f 1 (x1 , · · · , xn )
y2 = f 2 (x1 , · · · , xn )
···
m
ym = f (x1 , · · · , xn )
Extension to the Simultaneous-Equation Case
F 1 (x, y, w; z) = xy − w = 0
F 2 (x, y, w; z) = y − w3 − 3z = 0
F 3 (x, y, w; z) = w3 + z 3 − 2zw = 0
ydx + xdy − dw = 0
dy − 3w2 dw − 3dz = 0
3w2 dw + 3z 2 dz − 2zdw − 2wdz = 0
Extension to the Simultaneous-Equation Case
0 x −1
2
3 1 −3w
2 2
dx |Jx | 2w − 3z 0 3w − 2z
= =
dz |J| y x
−1
2
0 1
−3w
0 0 3w2 − 2z
dy dw
We can solve for dz and dz in the same way.
Announcements
• Duration: 75 minutes
Go Back
• The partial derivative with respect to x1 is
∂y
= f1 = 3x2 + 4x3
∂x1
Go Back