Professional Documents
Culture Documents
John Riley
is mapped into
2 0
2 4
1 2
3 2 1 2 1 0
C AB 1 1
1 3 , C AB
0 1
1 1 1 3 0 1
0 3
0 3
Then a linear transformation is the product of the m n matrix A and the column vector x.
y Ax
31 August2013
John Riley
Inverse of a matrix
a
Consider the 2 2 matrix A 11
a21
a12
.
a22
The ij-th sub-matrix of A is the matrix created by deleting the i-th row and j-th columns. In the
2 2 case each sub-matrix is just a number. They are shown below as a second 2 2 matrix.
m12 a22
m
M 11
a21
.
a11
Flipping a matrix on its side is called transposing a matrix. The transposed matrix is written
m
as M 11
m12
m21
m22
Next define the cofactor of the number mij to be cij (1)i j mij so that the sign changes if i j
is odd and consider the matrix
3
4
c12 c22 (1) m12 (1) m22 m12
.
m22 a21 a11
A
AC = CA
0
0
1 0
A
A I.
A
0 1
As long as the determinant of A is not zero we can therefore define the inverse matrix
1
B
C .
A
Then we have proved that if A 0
AB=BA=I.
We use the notation A 1 to denote the inverse of A.
2
31 August2013
John Riley
Then
AA1 A1A I .
11 8
A
7 5
(a) Solve for the inverse matrix.
4
(b) Solve the linear equation system Ax=b if b
3
(c) For a general vector b solve for x(b), the solution to Ax=b.
a
a
Ax 11 x1 12 x2 .
a21
a22
0 0
(b) If A 0 explain why AC=
.
0 0
a
a
0
(c) Hence show that 11 c11 12 c21
0
a21
a22
Thus the two column vectors of A are linearly related.
(d) Show also that the two rows of A are linearly related.
3
31 August2013
John Riley
x (t )
The state of an economic system is characterized by the column vector x(t ) 1 , t 1, 2.... .
x2 (t )
x (1) 1
The initial state is 1
x2 (1) 0
The economy evolves according to the following linear system of equations. x(t 1) Ax(t ) ,
that is,
x1 (t 1) a11 a12 x1 (t )
x (t 1) a
2
21 a22 x2 (t )
Then x(2) Ax(1) , x(3) Ax(2) A(Ax(1)) A2 x(1) ,.
x(t ) At 1 x(1) .
It is helpful to use a spreadsheet to compute the sequence x(1), x(2),..x(T) for some finite
number of periods. Download the spreadsheet and you will find that the matrix is the one in
Exercise 2.1: Explosive dynamics?
Sheet 1A andSheet1B depict the evolution of x(t) for T=5 and T=10 and a different starting state
x(1).
(a) Use Sheet1C to see how the state evolves for different initial states.
(b) Show that the evolution depicted in one of the first two sheets is unusual.
Suggestion: The starting state for Sheet1A is on the line. Try starting states (i) on this line and
(ii) near this line.
(c) Confirm your conclusions using Sheet2B one which allows a choice of how many periods
(up to 100.)
(d) What can you conclude about the ratio x2 (t ) / x1 (t ) as t increases for almost all initial states?
31 August2013
John Riley
Exercise 2.2:
0.25 x1 (t )
x1 (t 1) 1
x (t 1) 0.25
1 x2 (t )
2
(a) Does the state vary approximately as depicted for all initial x(1)?
(b) Vary the parameters of the matrix to see some of the possible outcomes. In particular, by
increasing or decreasing the parameters along the leading diagonal (a11 and a22) try to
characterize parameters that lead the system to damped oscillations and parameters that lead the
system to oscillate explosively.
31 August2013
John Riley
x (t 1) 0 x1 (t )
x(t 1) 1
Ix(t )
x2 (t 1) 0 x2 (t )
Since x(t 1) Ax(t ) , it follows that Ax(t ) Ix(t ) , that is
Bx(t ) 0 where B A I .
If B is invertible x(t ) B1 0 0 . Thus if we are to find some non zero x(1) it must be the case
that B cannot be inverted. As we have seen this is the case if and only of the determinant of B is
equal to zero. Thus
Exercise 3.1
4 2
(a) Consider the matrix A
.
1 3
(b) For the first of these characteristic roots show that the state grows at a constant rate if the
x (1)
x (1)
starting state is x (1) 1 . Solve also for the starting state x (1) 1 if the state
x2 (1)
x1 (1)
vector grows at the constant rate .
(c) For any starting point x(1) explain why there is a unique such that
31 August2013
John Riley
1 2
(g) Suppose that A
1 1
Use your spread-sheet to depict the evolution of the state. Solve for the characteristic roots if
any.
31 August2013
John Riley
11 8
5 7
5 8
5 8
1 5 8 5 8
A
C
, M
, M
, A 1
.
A 7 11 7 11
7 5
8 11
7 11
7 11
It is easy to check the result by multiplying
11 8
5 8
A
and
7 11
7 5
5 8 b1
(b) Ax=b. Therefore x Ix A -1 Ax A -1b
7 11 b2
Exercise 1.3:
a x a x a x
a
(a) Ax 11 12 1 11 1 12 2
a21 a22 x2 a21 x1 a22 x2
a11
a12
a11 x1 a12 x2 a11 x1 a12 x2
a x1 a x2 a x a x a x a x Ax
21
22
21 1 22 2 21 1 22 2
(b) As shown above,
A
AC = CA
0
0
1 0
A
A I.
A
0 1
a c
a
Therefore if A 0 , AC 11 12 11
a21 a22 c12
c21 0 0
.
c22 0 0
11
21
a
a
0
21 a22 c21 a21
22
31 August2013
John Riley
Exercise 2.1
The chart below shows x(t ) when T =24 and the starting state is very close to the line
x2 52 x1 . Note that for the first 15 periods the state approaches the origin. But x(t) eventually
starts veering away.
If you choose a higher T you will see that x(t) eventually gets close to the line x2 x1 . This is
true for all starting states not on the line x2 52 x1 . Thus the ratio x2 (t ) / x1 (t ) approaches 1.
Note finally that if the starting point is above the line x2 52 x1 then x1 (t ) is large and positive
for large T. If the starting point is below the line then x1 (t ) is large and negative for large T.
31 August2013
John Riley
Exercise 2.2
The chart below shows a case in which the oscillations are almost stable. However in this case
the oscillations are slightly damped. For higher values on the leading diagonal the oscillations
become explosive. For lower values the cycles become more damped.
10