Matrices 2
Matrices 2
Matrices
Types of matrices
Operations of matrices
Properties of matrices
Determinants
Inverse of a matrix
Why use it?
Matrix algebra makes mathematical
expression and computation easier. Ex
solve systems of linear eqns.
It allows you to get rid of cumbersome
notation, concentrate on the concepts
involved and understand where your results
come from.
Where we use matrices cont…
In economics: input-output analysis,
Insurance/Social protection: Pricing products
Banking: Portfolio analysis
In statistics: forecasting, time series
In survival model: Application of Markov
processes
Computer graphics: store inventory data,
transportation routing for storing connections,
etc
Engineering, geology, etc
Definitions - Matrix
A matrix is an array of numbers enclosed by a
pair of brackets.
Why matrix?
5
Matrices cont…..
numbers aij are called elements. First
subscript indicates the row; second
subscript indicates the column. The matrix
consists of mn elements
It is called “the m n matrix A = [aij]” or
simply “the matrix A ” if number of rows
and columns are understood.
What is it?
Matrix algebra is a means of making
calculations upon arrays of numbers (or
data).
Most data sets are matrix-type
Types of Matrices
A square matrix is a matrix that has the
same number of rows and columns (n n)
When m = n, a11 a12 a1n
a a2 n
i.e., A 21
a22
an1 an 2 ann
a
i 1
ii a11 a22 ... ann
is called the trace of 8
Types cont...
Row matrix
A= 1 2 3 4 5
9
Types cont...
Column matrix
1
B= 2
3
4
5
10
Types cont...
Equal matrices
1 0 a b
Example: A and B
4 2 c d
Given that A = B, find a, b, c and d.
if A = B, then a = 1, b = 0, c = -4 and d = 2.
12
Types cont….
Triangular matrix
14
Types cont...
Scalar matrix
3 0 0
0 3
A 0
0 0 3
15
Types cont...
Identity matrix
17
Types cont..
The transpose of a matrix -Not really type!!
1 2 3
A
Example: 4 5 6 1 4
The transpose of A is AT 2 5
3 6
2 3 2 n 1 n
A A. A, A A A.......... A A A
Submatrix
A matrix obtained by deleting some of the
rows and/or columns of a matrix is said to
be a submatrix of the given matrix.
1 4 5
For example , if A
0 1 2
Then
1
1 , 2, , 1 5, 0 2
0
Are few submatrices of A.
Submatrices cont…..
1 4 1 4
A and A
1 0 0 2
Example a a a
11 12 13
A a21 a22 a23
a31 a32 a33
a 22 a 23
M 11
a32 a33
Minors cont…
4 7 8
If A = -9 0 0 , then
2 3 4
4 7
Similarly, M23 = Minor of a23 = = 12 -14 = -2
2 3
4 8
M32 = Minor of a32 = = 0+72 = 72 etc.
-9 0
cij M ij Cofactors
Cofactor of an element cij is a signed minor,
mathematically obtained as:
i+ j
Cij = Cofactor of aij in A = -1 Mij ,
4 7
C23 = Cofactor of a23 = (–1)2 + 3 M23 = 2
2 3
4 8
C32 = Cofactor of a32 = (–1)3 + 2M32 =- = - 72 etc.
-9 0
Cofactors (Con.)
4 7 8
A = -9 0 0
2 3 4
0 0
C11 = Cofactor of a11 = (–1)1 + 1 M11 = (–1)1 +1 =0
3 4
4 7
C23 = Cofactor of a23 = (–1)2 + 3 M23 = 2
2 3
1 a22 a12
Its inverse can be written as 1
A a
A 21 a11
1 0
Example: Find the inverse of A
1 2
The determinant of A is -2
1 0
Hence, the inverse of A is 1
A
1/ 2 1/ 2
47
Inverse of order 3
1 2 3
Consider an example: A 4 5 6
7 8 9
Its determinant can be obtained by:
1 2 3
4 5 1 2 1 2
A 4 5 6 3 6 9
7 8 7 8 4 5
7 8 9
3 3 6 6 9 3 0
48
Inverse cont…
1 2 3
Cofactor matrix of A 0 4 5
1 0 6
The cofactor for each element of matrix A:
4 5 0 5 0 4
A11 24 A12 5 A13 4
0 6 1 6 1 0
2 3 1 3 1 2
A21 12 A22 3 A23 2
0 6 1 6 1 0
2 3 1 3 1 2
A31 2 A32 5 A33 4
4 5 0 5 0 4
49
Inverse cont….
1 2 3
Cofactor matrix of A 0 4 5 is then given by:
1 0 6
24 5 4
12 3 2
2 5 4
50
Inverse cont….
1 2 3
Inverse matrix of A 0 4 5 is given by:
1 0 6
T
24 5 4 24 12 2
1 1 1
A 12 3 2 5 3 5
A 22
2 5 4 4 2 4
12 11 6 11 1 11
5 22 3 22 5 22
2 11 1 11 2 11
51
Properties of inverse matrices
AB 1
B A-1 -1
'
A'
1
A -1
A
-1 1
A
For example,
a = [1 21 12] and b = [1/3 7 4] are
linearly dependent