Docsity

Questions on Differential Calculus and Matrix Notation | EconS 521, Study notes of Economics

Toggle sidebar
bg1
1
Differential Calculus in Matrix Notation
1. Consider the simple linear function
1
n
ii
i
ax
=
=
∑
ax
T. If we take the partial derivative with
respect to each xi, we obtain
1
1
2
2
n
n
a
x
a
x
a
x
∂
=
∂
∂
=
∂
∂
=
∂
ax
ax
ax
T
T
T
Arranging the n partial derivatives as an n×1 vector, we have
()∂
=
∂
ax a
x
T.
2. Consider the set of m linear functions Ax, where A is an m×n matrix, so that
1
1
11 21 1 1 1
21 22 2 2 2
2
1
12
1
n
jj
j
nn
njj
j
n
mm mnn m
mj j
j
ax
aa ax
aa ax ax
aa a x ax
=•
•
=
•
=
⎡⎤
⎡⎤⎡⎤⎡⎤
⎢⎥
⎢⎥⎢⎥⎢⎥
⎢⎥
⎢⎥⎢⎥⎢⎥
⎢⎥
===
⎢⎥⎢⎥⎢⎥
⎢⎥
⎢⎥⎢⎥⎢⎥
⎢⎥
⎣⎦⎣⎦⎣⎦
⎢⎥
⎣⎦
∑
∑
∑
ax
ax
Ax
ax

,
where the "·" for the second subscript on the far right-hand-side indicates rows of A. For
each i = 1,...,m (that is, each row of A), we have from the previous case that
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Questions on Differential Calculus and Matrix Notation | EconS 521 and more Study notes Economics in PDF only on Docsity!

Differential Calculus in Matrix Notation

1. Consider the simple linear function

1

n

i i i

a x

a x = (^) ∑

T

. If we take the partial derivative with

respect to each x i , we obtain

1 1 2 2 n n a x a x a x

a x

a x

a x

T

T

T

Arranging the n partial derivatives as an n ×1 vector, we have

a x a x

T .

2. Consider the set of m linear functions Ax , where A is an m × n matrix, so that

1 1 11 21 1 1 1

21 22 2 2 1 2 2

1 2 1

n j j^ j n n n (^) j j j

m m mn n n m j mj^ j

a x a a a x

a a a x a x

a a a x a x

=

= •

=

= ⎢^ ⎥ ⎢^ ⎥^ = ⎢^ ⎥=⎢^ ⎥

∑

∑

∑

a x

a x Ax

a x

where the "·" for the second subscript on the far right-hand-side indicates rows of A. For

each i = 1,..., m (that is, each row of A ), we have from the previous case that

1

( ) 2

i

i i

in

a

a

a

∂

∂

= ⎢^ ⎥=

a x i (^) a

x

i

T ,

an n ×1 column vector. Since Ax is an m ×1 column vector, to keep track of rows and

columns properly we should have ∂ ( Ax ) ∂ x

T defined as an m × n matrix. That is, the

number of rows of ∂ ( Ax ) ∂ x

T equals the number of rows of A , while the number of

columns of ∂( Ax ) ∂ x

T equals the number of elements of x (and columns of A ).

Therefore, we arrange the rows ∂ ( a xi • ) ∂ x = a i •

T vertically to obtain the definition

1

2

m

= ⎢^ ⎥=

∂ ⎢^ ⎥

a

Ax a A x

a

T.

Similarly, if we arrange the columns of ∂ ( a x i • ) ∂ x = a i •

T (^) T side by side, we have

( (^1) • ) ( (^2) • ) ( (^) m • )

∂ ∂ ⎣^ ⎦

Ax x A a a a A x x

T (^) T T T T T T .

Remarks:

  1. Ax is an m ×1 column vector and x

T an n ×1 row vector, so we must have

∂ ( Ax ) ∂ x

T as an m × n matrix.

  1. x A =( Ax )

T T T is a 1× m row vector and x is an n ×1 column vector, so we must

have ∂ ( Ax ) ∂ x

T as an n × m matrix.

  1. This is precisely what these definitions give us.

11 1 12 2 1 1

21 1 22 2 2 2 2

1 1 2 2

n n

n n

n n nn n n n

a x a x a x x

a x a x a x x

a x a x a x x

1

x Ax a x

x Ax a x

x Ax a x

T

T

T

where aij = aji for all i , j = 1,..., n has been used (e.g., a 21 = a 12 ). Since x Ax

T is a scalar, we

must have ∂ ( x Ax )∂ x

T as an n ×1 column vector. Therefore, we arrange the elements of

∂ ( x Ax ) ∂ xj

T vertically to obtain the definition

x Ax Ax x

T

.

5. Consider y = f ( x ) , where y is an m ×1 vector, with each element of y a function of the

n ×1 vector x , that is,

1 1

2 2

m m (^ )

y f

y f

y f

x

x

x

Each y (^) i can be partially differentiated with respect to each x j , giving a total of mn partial

derivatives, which we arrange as an m × n matrix,

1 1 1

1 2

2 2 2

1 2

1 2

n

n

m m m

n

f f f

x x x

f f f

x x x

f f f

x x x

⎡ ∂^ ∂^ ∂ ⎤

⎢ ∂^ ∂^ ∂ ⎥

= = ∂^ ∂^ ∂

∂ ∂ ⎢^ ⎥

⎢⎣ ∂^ ∂^ ∂ ⎥⎦

x x x

x x x y f x

x x

x x x

T T.

Note that this is consistent with the definition in 2 above for linear functions.

6. To distinguish between minimum and maximum points, we need to look at second-

order derivatives. Let y = f ( ) x be a scalar function of the n ×1 vector x and set the n × 1

vector of first-order partial derivatives, ∂ y / ∂ x = ∂ f ( )/ x ∂ x , equal to 0 (the n ×1 column

vector of zeros) gives a stationary point for y. That is, y is neither increasing nor

decreasing in any of the elements of x at the point x °, say.

The point y ° = f ( x °)will be a local maximum if

2

1 1

n n

i j i j (^) i j

y dx dx = = x^ x

∑∑

x D

for every vector d x such that the individual dx (^) i 's are arbitrarily small, not all are zero, and

the second-order partial derivatives are evaluated at the stationary point, x °.

In matrix notation, we define the Hessian matrix for y = f ( ) x as

As a result, if we can find a vector d x with length ε that causes Q to become positive (in

the case where we are checking to see if x ° maximizes y ), then we can also find a vector z

≡ td x of any length we desire that also causes Q to be positive. This is why the conditions

on the Hessian (e.g., negative definiteness) can be stated in terms of any z ∈ §

n , not just

for those z 's that are contained in an n-dimensional ball with radius ε.

Jacobians

Let

1 1

2 2

n n (^ )

y f

y f

y f

x

x

x

be n functions of n variables. Suppose each f (^) i is differentiable in each x (^) j. The Jacobian

determinant (or Jacobian ) is defined by

1 1 1

1 2

2 2 2

1 2

1 2

n

n

n n n

n

f f f

x x x

f f f

J x^ x^ x

f f f

x x x

= ∂^ ∂^ ∂ =

x x x

x x x f x

x

x x x

T.

The n functions { f 1 ,..., fn } are functionally independent in the n -dimensional ball around

the point x defined by

2 1

n x + Δ x − x = Δ x = (^) ∑ j =Δ xj <ε for some small ε > 0 if and

only if | J | ≠ 0 at x.

Note: For all x + Δ x close enough to x , the functions fi ( x + Δ x (^) )are given by

( ) ( )

( ) ( ) 1

n i i i j j (^) j

f f f x o x

=

∑

x x x x

( )

0

where lim 0

o

ε

, ∀ i = 1,..., n , by Taylor’s theorem. Therefore, for small enough ε,

we can ignore the term o (ε) and write

( ) ( )

( )

1

n i i i i j j (^) j

f y f f x i n x

=

∑

x x x x

In matrix notation we have

1 1 1

1 2 1 1 2 2 2 2 2 1 2

1 2

n

n

n n n n n

n

f f f

x x x x y f f f x y x x x

x y f f f

x x x

⎡ ∂^ ∂^ ∂ ⎤

⎢ ∂^ ∂^ ∂ ⎥ ⎢ ⎥ ⎢ ⎥

⎢⎣ ∂^ ∂^ ∂ ⎥⎦

x x x

x x x

x x x

which is a linearized representation of the local transformation from changes in x to

changes in y. This relationship is well-defined globally for each given ( x D,^ f ( x D))^ pair.

As ε becomes arbitrarily small, the representation becomes an exact of the function space

n n x y ∈ \ ×\

Functional Independence

From linear algebra, we know that the matrix ⎡ ∂ f (^) i ( )∂ xj ⎤ ⎣ ⎦

x spans n dimensions if and

only if | J | ≠ 0. Keep in mind that ⎡ ∂ f (^) i ( )∂ xj ⎤ ⎣ ⎦

x is independent of (i.e., is not a function of)

Δ x

k

for any k = 1,..., n.

remaining f (^) k , k ≠ i , then | J | = 0 and the matrix of partial derivatives ⎡ ∂ f (^) i ( )∂ xj ⎤ ⎣ ⎦

x can not

span n -space. We have the following result.

Theorem: The vector-valued function :

n n f \ →\ is functionally independent at

the point x if and only if |J| ≠ 0 at x. If |J| ≠ 0 ∀ x in the domain of f ,

then :

n n f \ →\ is functionally independent on its domain.

Functional independence is equivalent to the full dimension of the linear space locally

spanned by a system of n functions in n variables. This concept plays a fundamental role

in virtually all qualitative analyses of comparative statics and dynamics properties in

economics.