Matrices: Topic 2.5: Vector and Matrix Notation Topic 12.1
Matrices: Topic 2.5: Vector and Matrix Notation Topic 12.1
COURSE MANUAL
Topic 2.5 : Vector and Matrix Notation
Topic 12.1
1
A Vector: list of numbers arranged in
a row or column
2
e.g. let aij be amount good j
consumed by individual i
- columns1-3:represent goods X,
Y& Z
- rows 1-2:represent individuals 1 &
2
Matrix of consumption
c11 c12 c13 0 10 5
C= =
c21 c22 c23 4 0 6
Individual 1 consumes 0 of X, 10 of Y
and 5 of Z
Individual 2 consumes 4 of X, 0 of Y and
6 of Z
3
NOTE
Row Vector is a matrix with only 1 row :
A = [5 4 3] 1 X 3 matrix
Column Vector is a matrix with only 1 column :
5
A= 4
3
3 X 1 matrix
Transposing Matrices
Then
a11 a21
AT = a
12
a 13
a22
a23
3X2 matrix
4
0 10 5 0 4
A= then AT
= 10 0
4 0 6
5 6
5
Adding and Subtracting Matrices
Matrices must have same number of
rows and columns, m X n
Multiplying Matrices
To multiply A and B,
6
No. Columns in A = No. Rows in B
Then A x B= C
(1x 3) (3x 2) = (1x 2)
b11 b12
a11 a12 a13 . b21 b22 c11 c12
b31 b32
3 1 2 1
2 1 0 c c12 c13 c14
1 0 4 . 1 0 1 2 11
5 4 1 c21 c22 c23 c24
1
7 2 5 4
23 17 6 5
7
c12 = (2x1) + (1x0) + (0x4) = 2
c13 = (2x2) + (1x1) + (0x1) = 5
c14 = (2x1) + (1x2) + (0x1) = 4
8
SCALAR MULTIPLICATION
a11 a12
If A =
a21 a22
3 a11 3 a12
Then 3A =
3 a21 3 a22
then 2A =
4 3 8 6
A= 2
1 4
2
And 3A = 12 9
6 3
Determinant of a Matrix
9
a11 a12 a b
If A = a
21
a22 c d
Select row 1.
|A| = a11.C11 + a12.C12 = ad bc
Select column 2
10
MATRIX INVERSION
Square matrix: no. rows = no. columns
Identity Matrix I: AI = A and IA = A
I= (for 2 X 2 matrix)
1 0
0 1
TO INVERT 2 X 2 MATRIX
If A =
a b
c d
d c
1) Get Cofactor Matrix: b
a
b
2) Transpose Cofactor Matrix:
d
c a
b
3) multiply matrix by so
1 1 d
a
|A| ad bc c
11
Example.find the inverse of matrix A
A=
1 2
3 4
Check : A.A-1 = I =
1 0
0 1
12
Example.find the inverse of matrix B
B=
2 4
5 10
13
Example Expenditure model of national
income
Y= Income
C= Consumption
I = Investment
G= Government expenditure
Y = C+I+G (1)
15
Method 2
Now solve the same problem using matrix
algebra:
Rewrite (1) and (2) with endogenous
variables, C and Y, on left hand side
From eq. 1: Y - C =I+G
From eq. 2: -bY + C = a
Now write this in matrix notation:
1 1 Y I G
b 1 C a
or A.X =B
16
To invert the 2 X 2 A matrix, recall the
steps from earlier in the lecture
a b d b
If A = , then A 1 =
1
c d c a
ad bc
the determinant of A is :
|A| = 1.1 [ 1. b] = 1 b
Cofactor Matrix:
1 b
1 1
The inverse is :
1 1
1 1 1
A1 1 b 1 b
1 b b 1
b 1
1 b 1 b
17
so X=A-1B
Y I G
where X
C and B
a
1 1
Y 1 b 1 b I G
X
C b 1 a
1 b 1 b
18
1 1
A
b 1
Y
X
C
I G
B
a
19
Therefore the solution using Cramers
rule is:
| A1 | I G a
Y
|A| 1 b
20
| A2 | a b( I G )
C
|A| 1 b
21
TO INVERT 3 X 3 MATRIX
22
23
e.g. C23 is co-factor associated with a23, in
row 2 and column 3
so delete row 2 and column 3 to give a
2X2 matrix
a11 a12 a13
a21 a22 a23
a31 a32 a33
24
e.g find all co-factors of matrix
2 4 1
4 3 7
A=
2 1 3
1 3
2 1 3
25
2 4 1
4 3 7
and = [4.3 (7.2)] = +2
4 7
2 3
2 1 3
26
Other co-factors compute as
C13 = + = +[4.1 (3.6)] = -2
4 3
2 1
2 2 2
Co-factor Matrix = 11
25
4
10
6
10
27
Now we can find the determinant
Multiply elements in any one row or any
one column by corresponding co-factors,
and sum..
Select row 1.
|A| = a11.C11 + a12.C12 + a13.C13
or equivalently select column 2
|A| = a12.C12 + a22.C22 + a32.C32
2 4 1
4 3 7
so the determinant of A=
2 1 3
28
Now we can find the Inverse
C11 C21 C31
1 C
A = C12 C22 32
-1
A
C13 C23 C33
Step 1 : write matrix of co-factors
C11 C12 C13
2 2 2
29
C11 C21 C31
2 11 25
A = C12 C22 32 =
-1 1
10
2 4 10
A
2 6 10
1 11
10 5
5 2
-1
So A =
1
5
15
2
5
3
1
1
5
Check : A.A-1 = I
30
Practice inverting various 2X2 and 3X3 matrices using
examples from Jacques, or other similar text books.
31