Ch4eng 18
Ch4eng 18
Ch4eng 18
1. Introduction
Definition 1.1. Given a function f : D → R we define the second partial deriva-
tives as
∂2f
∂ ∂f
Dij f = =
∂xi ∂xj ∂xi ∂xj
f (x, y, z) = xy 2 + ezx
then
∂f ∂f ∂f
= y 2 + zezx = 2xy = xezx
∂x ∂y ∂z
We see that
∂2f ∂2f
=
∂x∂z ∂z∂x
We may check that this also holds for the other variables
The following result provides conditions under which the cross partial derivatives
coincide.
Theorem 1.4 (Schwarz). Suppose that for some i, j = 1 . . . , n the partial deriva-
tives
∂f ∂2f ∂f ∂2f
, , ,
∂xi ∂xi ∂xj ∂xj ∂xj ∂xi
exist and are continuous in some ball B(p, r), with r > 0. Then,
∂2f ∂2f
(x) = (x)
∂xi ∂xj ∂xj ∂xi
for every x in the ball B(p, r).
Definition 1.5. Let D be an open subset of Rn and let f : D → R. We say that
f is of class
∂f
• C 1 (D) if all the first partial derivatives ∂x i
of f exist and are continuous
on D for all i = 1 . . . , n.
• C 2 (D) if all the first partial derivatives
∂f
∂xi
of f exist and are of class C 1 (D) for every i = 1 . . . , n.
• C k (D) if all the first partial derivatives
∂f
∂xi
of f exist and are of class C k−1 (D) for every i = 1 . . . , n.
We write f ∈ C k (D).
Definition 1.6. Let f ∈ C 2 (D). The Hessian matrix of f at p is the matrix
2
2 ∂ f
D f (p) = H f (p) = (p)
∂xi ∂xj i,j=1,...,n
Remark 1.7. Note that by Schwarz’s theorem, if f ∈ C 2 (D) then the matrix H f (p)
is symmetric.
f1 (u) = 0
f2 (u) = 0
..
.
fm (u) = 0
where u ∈ Rn and f1 , f2 , . . . , fm : Rn → R. For example, the system 2.1 may be
written as
f1 (u) = 0
f2 (u) = 0
Remark 2.3. The conclusion of the implicit function Theorem may be expressed in
the following way,
(1) The functions
z1 = g1 (u), z2 = g1 (u), . . . , zm = gm (u)
are a solution of the system of equations 2.2.
(2) The derivatives of the functions g1 , . . . gm : U → R may be computed by
implicitly differentiating the system of equations 2.2 and applying the chain
rule.
Remark 2.4. Applying several times the implicit function Theorem we may also
compute the higher order derivatives of the dependent variables.
Example 2.5. Let us apply the implicit function Theorem to the system of equations
(2.4) x2 + zexy + z = 1
3x + 2y + z = 3
First we note that x = 1, y = z = 0 is a solution of the system. On the other hand,
we have seen that
xzexy exy + 1
∂ (f1 , f2 )
(1, 0, 0) = det = (xzexy − 2exy − 2)|x=1,y=z=0 = −4 6= 0
∂ (y, z) 2 1
x=1,y=z=0
6 CHAPTER 4: HIGHER ORDER DERIVATIVES
The implicit function Theorem guarantees that we may solve for the variables y
and z as functions of x for values of x near 1. Furthermore, differentiating with
respect to x in the system we obtain
(2.5) 2x + z 0 exy + z(y + xy 0 )exy + z 0 = 0
0 0
3 + 2y + z = 0
Now substitute x = 1, y = z = 0,
(2.6) 2 + 2z 0 (1) = 0
3 + 2y 0 (1) + z 0 (1) = 0
so that z 0 (1) = y 0 (1) = −1. This could be computed as well using formula 2.3,
∂(f1 ,f2 )
∂(x,z) (1, 0, 0) 2x + yzexy exy + 1
1 −4
y 0 (1) = − = det = = −1
−4 4 3 1
x=1,y=z=0 4
and
∂(f1 ,f2 )
∂(y,x) (1, 0, 0) xzexy 2x + yzexy
0 1 −4
z (1) = − = det = = −1
−4 4 2 3
x=1,y=z=0 4
00 00
To compute the second derivatives y (x) y z (x), we differentiate each equation
of the system 2.5 with respect to x. After simplifying we obtain
2 + z 00 exy + 2z 0 (y + xy 0 )exy + z(2y 0 + xy 00 )exy + z(y + xy 0 )2 exy + z 00 = 0
00 00
2y + z = 0
0 0
and substituting x = 1, y(1) = z(1) = 0, z (1) = y (1) = −1
2 + 2z 00 (1) = 0
2y (1) + z 00 (1)
00
= 0
from here we see that z 00 (1) = −1, y 00 (1) = 1/2. Iterated differentiation allows us
to obtain the derivatives of any order z (n) (1), y (n) (1).
Example 2.6. Consider the macroecononomic model
(2.7) Y = C +I +G
C = f (Y − T )
I = h(r)
r = m(M )
where the variables are Y (national income), C (consumption), I (investment) and
r (interest rate) and the parameters are M (money supply), T (taxes collected) and
G (public spending). We assume that 0 < f 0 (z) < 1. Compute
∂Y ∂Y ∂Y
, ,
∂M ∂T ∂G
The system may be written as follows
f1 = C +I +G−Y =0
f2 = f (Y − T ) − C = 0
f3 = h(r) − I = 0
f4 = m(M ) − r
CHAPTER 4: HIGHER ORDER DERIVATIVES 7
First we compute
−1 1 1 0
∂ (f1 , f2 , f3 , f4 ) f 0 (Y − T ) −1 0 0
= det = 1 − f 0 (Y − T ) 6= 0
∂ (Y, C, I, r) 0 0 −1 h0 (r)
0 0 0 −1
By the implicit function Theorem the system 2.7 defines implicitly Y , C, I and
r as functions of M , T and G. (we assume that the system has some solution).
Differentiating in 2.7 with respect to M we obtain
∂Y ∂C ∂I
= +
∂M ∂M ∂M
∂C ∂Y
= f 0 (Y − T )
∂M ∂M
∂I ∂r
= h0 (r)
∂M ∂M
∂r
= m0 (M )
∂M
Solving these equations, we obtain
∂Y h0 (r)m0 (M )
=
∂M 1 − f 0 (Y − T )
Differentiating in 2.7 with respect to T we obtain
∂Y ∂C ∂I
= +
∂T ∂T ∂T
∂C ∂Y
= f 0 (Y − T )( − 1)
∂T ∂T
∂I ∂r
= h0 (r)
∂T ∂T
∂r
= 0
∂T
Solving these equations, we obtain
∂Y −f 0 (Y − T )
=
∂t 1 − f 0 (Y − T )
Differentiating in 2.7 with respect to G we obtain
∂Y ∂C ∂I
= + +1
∂G ∂G ∂G
∂C ∂Y
= f 0 (Y − T )
∂G ∂G
∂I 0 ∂r
= h (r)
∂G ∂G
∂r
= 0
∂G
Solving these equations, we obtain
∂Y 1
=
∂T 1 − f 0 (Y − T )
8 CHAPTER 4: HIGHER ORDER DERIVATIVES
Example 2.7 (Indifference curves). Suppose that there are two consumption goods
and a consumer whose preferences a represented by a utility function u(x, y). The
indifference curves of the consumer are the sets
{(x, y) ∈ R2 : x, y > 0, u(x, y) = C}
with C ∈ R. Suppose that the function u(x, y) is differentiable and that
∂u ∂u
>0 >0
∂x ∂y
Applying the implicit function Theorem, we see that the equation
u(x, y) = C
defines y as a function of x. The set
{(x, y) ∈ R2 : x, y > 0, u(x, y) = C}
may be represented as the graph of the function y(x).
y(x)
y(a)
{ (x,y) : u(x,y) = C }
y(x)
∇ u(a,y(a))
y(a)
{ (x,y) : u(x,y) = C }
Example 2.8. Suppose that there are two consumption goods and the agent has
preferences over theses which might be represented by a utility function u(x, y).
Suppose the prices of the goods are px and py . Consuming the bundle (x, y) costs
px x + py y
to the agent. If his income is I then
px x + py y = I
That is, if the agent buys x units of the first good, then the maximum amount he
can consume of the second good is
I px
− x
py py
so his utility is
I px
(2.8) u x, − x
py py
10 CHAPTER 4: HIGHER ORDER DERIVATIVES
In Economic Theory one assumes that the agent chooses the bundle of goods (x, y)
that maximizes his utility. That is the agent maximizes the function 2.8. Differen-
tiating implicitly with respect to x we obtain
∂u ∂u px
(2.9) − =0
∂x ∂y py
Thus, the first order condition is
px
MRS(x, y) =
py
The above equation together with the budget restriction
px x + py y = I
determines the demand of the agent.
For example if the preferences of the consumer may be represented by a Cobb-
Douglas utility function
u(x, y) = x2 y
the MRS is
2xy 2y
MRS(x, y) = 2 =
x x
and the demand of the agent is determined by the system of equations
2y px
=
x py
px x + py y = I
from these we obtain the demand of the agent
2I
x(px , py , I) =
3px
I
y(px , py , I) =
3py
Example 2.9 (Isoquants and the marginal rate of technical substitution). Suppose
that a firm uses the production function Y = f (x1 , x2 ) where (x1 , x2 ) are the units
of inputs used in manufacturing ofY units of the product. Given a fixed level of
production ȳ, the corresponding isoquant is the level set
{(x1 , x2 ) ∈ R2 : x1 , x2 > 0, f (x1 , x2 ) = ȳ}
As in the previous exercise, we see that on the isoquants we may write x2 as a
function of x1 and that
∂f / ∂x1
x02 (x1 ) = −
∂f / ∂x2
The marginal rate of technical substitution is defined as
∂f / ∂x1
RMST = −x02 (x1 ) =
∂f / ∂x2
1/3 1/2
For example, if the production function of the firm is Y = x1 x2 then the
marginal rate of technical substitution is
1 −2/3 1/2
∂Y / ∂x1 3 x1 x2 2x2
RMST = = =
∂Y / ∂x2 1 1/3 −1/2 3x1
2 x1 x2
CHAPTER 4: HIGHER ORDER DERIVATIVES 11
1 1
P2 (x) = f (p)+∇f (p)·(x−p)+ (x−p) H f (p)(x−p) = P1 (x)+ (x−p) H f (p)(x−p)
2 2
Remark 3.4. If f (x, y) is a function of two variables and p = (a, b) then Taylor’s
second order polynomial for the function f around the point p = (a, b) is the
polynomial
∂f ∂f
P2 (x, y) = f (a, b) + (a, b)(x − a) + (a, b)(y − b) +
∂x ∂y
2
∂2f ∂2f
1 ∂ f 2 2
+ (x − a) + 2 (x − a)(y − b) + (y − b)
2 ∂x∂x ∂x∂y ∂y∂y
Remark 3.5. These are good approximations to f (x) in the sense that if f is of
class C 1 (D), then,
f (x) − P1 (x)
lim =0
x→p kx − pk
and if f is of class C 2 (D), then,
f (x) − P2 (x)
lim =0
x→p kx − pk2
4. Quadratic forms
Definition 4.1. A quadratic form of order n is a function Q : Rn → R of the
form
n
X
Q(x1 , x2 , . . . , xn ) = aij xi xj
i,j=1
It is possible to do this in general (infinitely many) ways. For example, the previous
quadratic form can also be expressed as
1 −2 1 x
Q(x, y, z) = x y z 0 0 4 y
3 2 5 z
(The condition is that
xAxt = xBxt
as long as aij + aji = bij + bji for every i, j = 1, 2, . . . , n)
But, there is a unique way if we require that A be symmetric.
Proposition 4.4. Every quadratic form Q : Rn → R, can be written in a unique
way Q(x) = xAxt with A = At a symmetric matrix.
Remark 4.5. Observe that the symmetric matrix
A = (aij )
is associated with the following quadratic form
n
X n
X X
Q(x) = aij xi xj = aii x2i + 2 xi xj
i,j=1 i=1 1≤i<j≤n
We will identify the quadratic form Q(x) = xAxt with the matrix A.
Next, we study some examples that illustrate some of thing one can do when
Dn = 0 and some of the D1 . . . , Dn−1 vanish.
Example 4.14. Consider the matrix
1 0 0
0 0 0
0 0 a
We see that D1 = 1, D2 = D3 = 0. Clearly, the eigenvalues are λ1 = 1, λ1 = 0,
λ1 = a. So, the associated quadratic form is positive semidefinite if and only if
a ≥ 0 and indefinite if and only if a < 0. But, this is impossible to tell from
D1 = 1, D2 = D3 = 0.
Remark that in the previous example, if we exchange the variables y and z then
the associated matrix becomes
1 0 0
0 a 0
0 0 0
and then, the above propositions apply. This is formalized in the following obser-
vation.
Definition 4.15. A principal minor is centered if includes the same rows and
columns. For example, the minor
a11 a13
a31 a33
is a centered minor, because it includes rows and columns 1, 3. But, the minor,
a11 a12
a31 a32
is NOT centered, because it includes rows 1, 3 and columns 1, 2.
Proposition 4.16. Proposition 4.13 still holds if we replace the chain of leading
principal minors by any other chain consisting of principal centered minors.
Remark 4.17. The methods above are especially useful for symmetric 2×2 matrices.
For example if A is 2 × 2 matrix and |A| < 0, then the associated quadratic form is
indefinite. Why?
may be represented as the graph of the function y(x). Differentiation implicitly the
equation u(x, y) = C we may compute the derivative y 0
∂u ∂u 0
+ y (x) = 0
∂x ∂y
Applying again the implicit function Theorem we obtain an equation for the
second derivative y 00
y(x)
that is, the function y(x) is convex, so that y 0 (x) is increasing. Since MRS(x, y(x)) =
−y 0 (x), we see that if the preferences of the consumer are convex his marginal rate
of substitution is decreasing.