1 Matrices 1hour
1 Matrices 1hour
4.1 Matrices
LEARNING OUTCOMES
At the end of the lesson, students should be able to:
n columns
• The order or dimension of a matrix with m rows
and n columns is m x n.
1
Let A = 5 6
2
2 3 7
Example 2
Which matrices below are the same?
1 2 1 2
A = 2 1 , B = 1 2 , C =
2 1
1 2 2 1
D = 2 1
Solution: A=D
Example 3
3 a 6 4 9 6 c 4
Let A = 8
4b 2 B= 2 3d 8 2
3–a=9 4b = -8
a = -6 b = -2
6–c=6 2 – 3d= 8
c=0 3d = -6
d = -2
a=-6 , b = -2, c = 0, d= -2
Types of Matrices
A=[1 2 3]
B=[1 0 7 8 4 3 5]
2. Column Matrix is a (m x 1)
matrix [ one column ]
a11
a Example
21 2
a31
3
. A = 0
. A= ,B =
5
.
a 4
m1
7
3. Square Matrix is a (nxn) matrix which has the
same number of rows as
columns.
Example
1 3
A= , 2 x 2 matrix
1 8
1 3 2
B = 3 1 2 , 3 x 3 matrix
2 3 1
4. Zero Matrix is a (m x n) matrix which
every entry is zero , and
denoted by .O
Example
0 0 0 0 0
0 0 0 0 0 0
O= O = 0 O =
0 0
0 0 0 0 0
5. Diagonal Matrix
Example
1 0 0 a 0 0
2 0 0 2 0 0 0 0
A= ,B = ,C =
0
3
0 0 3 0 0 b
6. Identity Matrix is a diagonal matrix
where all its diagonal entries are 1 and
denoted by I.
Example
1 0 0
1 0 0 1 0 = I3x3
0 1 = I2x2
0 0 1
7. Lower Triangular Matrix is a square matrix and
aij = 0 for i < j
a11 a12 a13
a a a
21 22 23
1 0 0 a 0 0
A= 3 2 0
,B = b f 0
3 2 3 c d e
8.Upper Triangular Matrix is a square matrix and aij
= 0 for i > j
a11 a12 a13
a a22 a23
21
a31 a32 a33
Example
1 2 3 a b c
0 2 4
R= 0 d e
P=
0 0 3 0 0 f
Operations on Matrices
Addition And Subtraction Of Matrices
For m x n matrices
A= [ a and] B = [b ]
ij ij
A+B=C= [ c where
] cij aij bij
ij
A–B=D= [ d where
] d ij aij bij .
ij
NOTE
1 2 4 3 1
A B C 2
3
4 5 6
,
FIND :
(a) A + B (b) A – B
(c) A + C
Solution
1 2 + 4 3
(a) A+B= 5 6
3 4
5 5
2 10
1 4 2 3
= 3 (5) 4 6
1 2 4 3
(b) A – B = -
3 4 5 6
1 4 2 3
=
3 (5) 4 6
3 1
=
8 2
c) A + C =
1 2 + 1
3 4 2
Since matrix A is of order
2 x 2 and matrix C is of order
2 x 1, the matrices have different orders, thus
A and C are incompatible.
Scalar Multiplication
bij caij
Example 6
2 4
Given A 8 5
6 7
·
Find
1
A
2
Solution
12 2 2 4
1
1
A 12 8 2 5
1
2 1
2 6 2 7
1
1 2
= 4 5
2
3 7
2
Example 6
1 4 3 6
Let A
5 3
and B
4 2
calculate 3A – 2B
Solution
3 A 2B 1 4 3 6
= 3 2
5 3 4 2
3 12 6 12
= 15 9 8 4
3 0
= 7 5
Properties
1. A + B = B + A (Commutative)
2. (A + B) + C = A + (B + C) (Associativite)
3. A + (-A) = (-A) + A = O (O - zero matrix)
4.( ) A A A
, constant
5. ( A B ) A B
6. ( A) ( ) A
Types of Matrices
1. Row Matrix
2. Column Matrix
3. Square Matrix
4. Zero Matrix
5. Diagonal Matrix
6. Identity Matrix
7. Lower/Upper Triangular Matrix
NOTE
m × n n × p
These numbers must
be equal
ATTENTION !
b1
b
2
R a1 a 2 a3 a n C b3
bn
Find :
2 1
1 2 3 3 4
2 0 5
2 1
Solution
2 1
1 2 3
2 0 5 3 4
2 1
1( 2) 2( 3) 3( 2) 1(1) 2(4) 3(1)
2( 2) 0( 3) 5( 2) 2(1) 0(4) 5(1)
2 12
6 3
Example 2
1 2 3 5
2 5 4
A B 3 2 1 5
1 7 5
5 4 0 7
Find AB.
Solution
7 30 11 43
AB
45 4 10 5
Example 3
1 2 2 1
Let A and
B
3 4
3 2
3 2 3 4
=
2(1) (1)3 2(2) (1)4
3(1) 2(3) 3(2) 2(4)
5 0
3 14
4 5 ≠
5 0
18 5 3 14
Thus, AB ≠ BA.
This result prove that the matrix multiplication is
not commutative.
Properties of Matrix Multiplication
• ASSOCIATIVE PROPERTY
A(BC) = (AB)C
• DISTRIBUTIVE PROPERTY
A(B+C) = AB+AC