1 Matrix-PDF
1 Matrix-PDF
Matrices
1
Matrices
Operations of matrices
Types of matrices
Properties of matrices
Determinants
Inverse of a 33 matrix
2
Matrices
1 3 1
2 3 7
A B 2 1 4
1 1 5 4 7 6
Both A and B are examples of matrix. A matrix
is a rectangular array of numbers enclosed by a
pair of bracket.
3
a11 a12 a1n
In the matrix a
a22 a2n
A 21
am1 am2 amn
5
Zero matrices
6
Square matrix
Scalar matrix
8
Identity matrix
10
Determinants
Determinant of order 2
a11 a12
Consider a 2 2 matrix: A
a22
a21
11
Determinant of order 2
easy to remember (for order 2 only)..
a11 a12
| A | a11a22 a12 a21
a21 a22
- +
1 2
Example: Evaluate the determinant: 3 4
1 2
1 4 2 3 2
3 4
12
Determinants of order 3
1 2 3
Consider an example: A 4 5 6
7 8 9
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
16
17
Equal matrices
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.
19
Operations of matrices
Sums of matrices
If A = [aij] and B = [bij] are m n matrices,
then A + B is defined as a matrix C = A + B,
where C= [cij], cij = aij + bij for 1 i m, 1 j n.
1 2 3 2 3 0
Example: if A and B
0 1 4 1 2 5
Evaluate A + B and A – B.
1 2 2 3 3 0 3 5 3
A B
0 ( 1) 1 2 4 5 1 3 9
1 2 2 3 3 0 1 1 3
A B
0 ( 1) 1 2 4 5 1 1 1 20
Sums of matrices
Two matrices of the same order are said to
be conformable for addition or subtraction.
Two matrices of different orders cannot be
added or subtracted, e.g.,
2 3 7
1 3 1
1 1 5 2 1 4
4 7 6
22
23
24
Properties
Matrices A, B and C are conformable,
A + B = B + A (commutative law)
A + (B +C) = (A + B) +C (associative law)
l(A + B) = lA + lB, where l is a scalar
(distributive law)
25
Matrix multiplication
26
Matrix multiplication
1 2
1 2 3
Example: A , B 2 3 , Evaluate C = AB.
0 1 4
5 0
27
Matrix multiplication
1 2
1 2 3
Example: A , B 2 3 , Evaluate C = AB.
0 1 4
5 0
28
Matrix multiplication
1 2
1 2 3
Example: A , B 2 3 , Evaluate C = AB.
0 1 4
5 0
29
Matrix multiplication
1 2
1 2 3
Example: A , B 2 3 , Evaluate C = AB.
0 1 4
5 0
30
Matrix multiplication
1 2
1 2 3
Example: A , B 2 3 , Evaluate C = AB.
0 1 4
5 0
31
Matrix multiplication
1 2
1 2 3
Example: A , B 2 3 , Evaluate C = AB.
0 1 4
5 0
32
Matrix multiplication
1 2
1 2 3
Example: A , B 2 3 , Evaluate C = AB.
0 1 4
5 0
33
Matrix multiplication
1 2
1 2 3
Example: A , B 2 3 , Evaluate C = AB.
0 1 4
5 0
1 2
1 2 3 18 8
C AB 2 3
0 1 4 5 0 22 3
34
Matrix multiplication
In particular, A is a 1 m matrix and
B is a m 1 matrix, i.e., b11
b
A a11 a12 ... a1m B 21
bm1
m
then C = AB is a scalar. C a1k bk1 a11b11 a12b21 ... a1mbm1
k 1
35
Matrix multiplication
BUT BA is a m m matrix!
b11 b11a11 b11a12 b11a1m
b b a b21a12 b21a1m
BA 21
a a ... a1m
11 12
21 11
m1
b bm1a11 bm1a12 bm1a1m
So AB BA in general !
36
37
38
39