Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Matematik Pengurusan
Chapter:2 Matrix
Prepared by
Richard Ng
Page 1 of 47
1. Introduction to Matrix
Examples:
[1
3]
1x2 Matrix
1
5
2
3x1 Matrix
3
2
2 4
1 5
2x1 Matrix
2x2 Matrix
3 1 0
5 2 1
1 2 3
0 1 5
7 2 3
2x3 Matrix
3x3 Matrix
Page 2 of 47
2. Elements of a 3 x 3 Matrix
a
a
11
21
22
31
32
12
a
a
a
13
23
33
Page 3 of 47
3. Classifications of Matrices
Column Matrix
Column Matrix
3x1
4x1
[1
2]
[2
0 1]
[3
1 0 4]
Row Matrix
Row Matrix
Row Matrix
1x2
1x3
1x4
Page 4 of 47
0 0
0 0
0 0 0
0 0 0
0
0
0
0
0 0 0
0 0 0
0 0 0
1 2
3 4
2 1 5
3 4 8
1 2 0
2x2 Matrix
3x3 Matrix
Page 5 of 47
Main Diagonal
1 2
(i) 3 4
(ii)
2 1 5
3 4 8
1 2 0
a
a
(iii)
a
11
21
22
31
32
a
a
12
13
23
33
Page 6 of 47
Identity Matrix
Example:
1 0 0
0 1 0
0 0 1
1 0
0 1
Page 7 of 47
4. Matrix Operations
Transpose
1 0 3
A=
2 4 1
1 2
T
Then A = 0 4
3 1
Example: 2
If
1 2 3
B = 4 5 6
7 8 9
1 4 7
T
Then B = 2 5 8
3 6 9
Page 8 of 47
Matrix Addition
1 2 2 0
3 2
3 4 + 1 3 = 4 7
Example: 4
1 3 2 1
0 1 + 1 3
2 0 4 2
3 4
= 1 4
6 2
Page 9 of 47
Matrix Subtraction
1 2 2 0
1 2
=
3 4 1 3
2 1
Example: 6
1 3 2 1
0 1 1 3
2 0 4 2
1 2
= 1 2
2 2
Page 10 of 47
Matrix Multiplication
1 2
A=
3 4
If
1 2 2 4
=
3 4 6 8
Then 2A = 2
Example: 8
1 0 2
1 0 2 3 0 6
B = 2 1 4 Then 3B = 32 1 4 = 6 3 12
3 1 0
3 1 0 9 3 0
If
Page 11 of 47
Multiplication of Matrices
Tips:
Matrix
2x1
Matrix
1x2
Matrix
2x2
Matrix
2x3
Matrix
3x3
Matrix
2x3
Page 12 of 47
Example: 9
2 1 1 2 2 + 0 4 + 1 2 5
3 4 0 1 = 3 + 0 6 + 4 = 3 10
Example: 10
2
2 0
2 0 2 0
1 3 = 1 3 1 3 =
Example: 11
1 3 2 2 + 3 5
2 4 1 = 4 + 4 = 8
4 + 0 0 + 0 4 0
2 + 3 0 + 9 = 5 9
Example: 12
1 3 1 2 3 2 2 + 9 + 1 3 + 0 + 1 2 + 9 + 0 12 4 11
0 1 2 3 0 3 = 0 + 3 + 2 0 + 0 + 2 0 + 3 + 0 = 5 2 3
2 0 1 1 1 0 4 + 0 + 1 6 + 0 + 1 4 + 0 + 0 5 7 4
BBMP1103 Chapter 2 - Richard Ng (2008)
Page 13 of 47
5. Determinant
Is defined only for square matrices
Is used to find the invertible matrix
a) For a 2 x 2 Matrix
If A =
2 1
4 3
Page 14 of 47
b) For a 3 x 3 Matrix
If B =
2 1 3
0 3 1
4 2 0
Hence |B| = 0
3 2
1 0
0 4
1
3
2
1
3
2
= [(2)(3)(0)+(1)(1)(4)+(3)(0)(2)][(4)(3)(3)+(2)(1)(2)+(0)(0)(1)]
= [0 + 4 + 0][36 + 4 + 0]
= -36
BBMP1103 Chapter 2 - Richard Ng (2008)
Page 15 of 47
Example: 13
If A =
0 1
2 4
1 2
and B =
0 1
a) |A|
b) |B|
e) |A||B|
f) |B||A|
Find:
c) |AB|
d) |BA|
Answer:
0 1
4
a) A = 2
Page 16 of 47
1 2
b) B =
0 1
0 1 1
4 0
c) AB = 2
2
0 + 0 0 + (1)
=
1
4 + 4
2 + 0
0 1
=
2 8
0 1
Hence |AB|=
2 8
= (0)(8) (2)(-1)
= 0 (-2) = 2
BBMP1103 Chapter 2 - Richard Ng (2008)
Page 17 of 47
0 + 4
1 2 0 1
d) BA =
2 4 = 0 + 2
0 1
1 + 8
0 + 4
4 7
2 4
4 7
Hence |BA| =
2 4
= (4)(4) (2)(7)
= 16 14
=2
BBMP1103 Chapter 2 - Richard Ng (2008)
Page 18 of 47
|B| = 1
|B| = 1
Page 19 of 47
1 2
Given P =
3 4
Step: 1 Find the matrix minor of P:
Minor of P:
a
= 11
a21
1 2
a11 =
3 4
4 3
a12
=
2 1
a22
=4
1 2
a21 =
=2
3
4
1 2
a12 =
=3
3
4
1 2
a22 =
3 4
=1
Page 20 of 47
( 2 +1)
1 (1) ( 2+ 2 )
2 (1)
4 (1) ( 2 ) 3 (1) ( 3)
=
( 3)
1 (1) ( 4 )
2 (1)
4 3
=
1
2
BBMP1103 Chapter 2 - Richard Ng (2008)
Page 21 of 47
1 2
Original matrix P =
3 4
4 3
1
2
Cofactor of P =
1 2 4 3
3 4 2
1
Page 22 of 47
Example: 15
2 1 3
Given that Q = 0 3 1
4 2 0
Using the second row to find the determinant, then:
Step: 1 Find the elements in the 2nd row of Minor Q:
2 1 3
a21 = 0 3 1
4 2 0
= (1)(0) (2)(3) = 0 6 = - 6
Page 23 of 47
2 1 3
a22 = 0 3 1 = (2)(0) (4)(3) = 0 12 = - 12
4 2 0
2 1 3
a23 = 0 3 1 = (2)(2) (4)(1) = 4 4 = 0
4 2 0
Step: 2 Find elements in the 2nd row of cofactor Q:
Page 24 of 47
2 1 3
0 3 1
4 2 0
6 -12
Page 25 of 47
6. Inverse Matrix
Example: 16
Let A =
2 1
4 3
2 1
4 3
= (2)(3) (4)(1)
=64
=2
Page 26 of 47
3 1
4 2
2 1
4 3
A 1 =
1
x[Adjo int A ]
|A|
1
2
A-1 = | A | x 4
1 3
= 2 x 4
= 2
1
2
1
2
1
Page 27 of 47
1 4
0 2
2 3
1
0
3
|A| =
1 4
0 2
2 3
1
0
3
0 2
2 3
= [6+0+0] [4+0+0]
=64
=2
Page 28 of 47
1 4
a11 = 0 2
2 3
1
0 = (2)(3) (-3)(0) = 6 0 = 6
3
1 4
a12 = 0 2
2 3
1
0 = (0)(3) (2)(0) = 0 0 = 0
3
1 4
a13 = 0 2
2 3
1
0 = (0)(-3) (2)(2) = 0 4 = -4
3
Page 29 of 47
1 4
a21 = 0 2
2 3
1
0 = (4)(3) (-3)(1) = 12 + 3 = 15
3
1 4
a22 = 0 2
2 3
1
0 = (1)(3) (2)(1) = 3 2 = 1
3
1 4
a23 = 0 2
2 3
1
0 = (1)(-3) (2)(4) = -3 8 = -11
3
Page 30 of 47
1 4
a31 = 0 2
2 3
1
0 = (4)(0) (2)(1) = 0 - 2 = -2
3
1 4
a32 = 0 2
2 3
1
0 = (1)(0) (0)(1) = 0 0 = 0
3
1 4
a33 = 0 2
2 3
1
0 = (1)(2) (0)(4) = 2 0 = 2
3
Matrix Minor A =
Page 31 of 47
6
15
0 4
1 11
0
2
Matrix cofactor A =
6
15
2
6
= 15
2
0 4 +
1 11
0
2 +
+
+
0 4
1 11
0 2
Page 32 of 47
0 4
1 11
0 2
6
0
15
1
11
2
0
2
6 15 2
1
0
1
0
| A|
4 11 2
6 15 2
= 0 1 0 = 0
2
2
4 11 2
15
2
1
2
11
2
Page 33 of 47
Step: 2 Find the determinant of A
1 1
2 1
Let A =
1 1
2 1
1
1
1
1 1
=
1
-3 2
1
3
3
= 2 1
Page 35 of 47
2 + 1 3
x
1
Hence = 3 3 = 3 =
y 4 1 3 1
3 3 3
Thus x =1 and y = 1
Check:
x + y = 2 (a)
2x y = 1 (b)
3x = 3
x=1
Substitute
Then
and
x = 1 into (a)
1+y=2
y=1
Page 36 of 47
Example: 19
Solve the following equations:
x + 4y + z = 1
2y = 3
2x 3y + 3z = 0
Step: 1 Change the equations in the form AX = B
x + 4y + z = 1
2y = 3
2x 3y + 3z = 0
1 4
0 2
2 3
1
0
3
x
y
z
1
3
0
|A| = 2
Page 37 of 47
0 4
1 11
0 2
15
1
11
2
0
2
Page 38 of 47
3 2
1
Inverse A = 0
2
2 11
x Inverse 1
y = Matrix 3
z A 0
BBMP1103 Chapter 2 - Richard Ng (2008)
15
2
x
1
y = 0
2
z
2 11
Page 39 of 47
45
1
1
3 + 2 + 0 19
2
1
1
3
0 3 = 0 + + 0 = 1
2
2
33
1
2 + + 0 14
1
1
2
and z = 14
BBMP1103 Chapter 2 - Richard Ng (2008)
1
2
1
2
Page 40 of 47
Example: 20
Solve the equations:
x + 2y = 0
2x y = 5
Step: 1 Change the equation in the form AX = B
1 2 x 0
2 1 y = 5
Step: 2 Find |A|, |A1| dan |A2|
Let A =
1 2
2 1
Let A1 =
0 2
5 1
Let A2 =
1
2
0
5
Page 41 of 47
| A1 |
|A|
y=
| A2 |
5
=
|A|
-5
= - 10 = 2
-5
= -1
Page 42 of 47
Example: 21
Solve the equations:
2 x y + 3z = 3
x + 2y z = 4
2x 2z = 0
Step: 1 Change the equations in the form AX = B
2 1
1 2
2 0
3 x 3
1 y = 4
2 z 0
Page 43 of 47
2 1
1 2
2 0
3 2
1 1
2 2
1
2
0
Let A1 =
3 1
4 2
0 0
3 3 1
1 4 2
2 0 0
Page 44 of 47
Let A2 =
2 3 3 2
1 4 1 1
2 0 2 2
3
4
0
Let A3 =
2 1
1 2
2 0
3 2 1
4 1 2
0 2 0
Page 45 of 47
20
= 1
20
x=
| A1 |
|A|
y=
40
| A2 |
=
= 2
|A|
20
z=
| A3 |
20
=
= 1
| A|
20
Page 46 of 47
End of
Chapter
2
Page 47 of 47