Example 1:: 1.1 Introduction To Matrix
Example 1:: 1.1 Introduction To Matrix
2 5 1
0 7 9
6 3 8
Example 1:
A manufacturer produces 3 types of products; A, B and C. The units of
labor and material used to produce each product were shown in the
table below:
Product A Product B Product C
Labor 15 7 3
Material 20 5 1
15 7 3
20 5 1 Row
Column
EXERCISE 1
For each matrix, identify the number of rows and columns.
1 5 4 2 − 1 3 8 3 4
a) 3 2 1 b) 0 1 1
c)
5 7 d)
5
2 1 0 0 0 5
e) [− 3 0 0 0]
Chapter 1: Matrix 1
QQM1023 Managerial Mathematics
• Generalizing, we say that the symbol aij denotes the entry in the
Therefore, we can represent the matrix from example 1(page 1), with
capital letter B
15 7 3
B=
20 5 1
Chapter 1: Matrix 2
QQM1023 Managerial Mathematics
b11 = 15 , b12 = 7 . How about other elements, b13 , b21 , b22 , b23 ?
ORDER OF A MATRIX
15 7 3
B=
20 5 1
the matrix B have 2 rows and 3 columns. Therefore we called it a matrix
of order 2 x 3.
m – number of rows
n – number of columns
Chapter 1: Matrix 3
QQM1023 Managerial Mathematics
EXERCISE 2
For each matrix, specify the
i) Number of rows
ii) Number of columns
iii) Order of the matrix
3 1 6
a)
6 2
b) [− 1 5 8] c)
9
− 1 0 4
1 2
For example, is a square matrix of order 2 x 2, and
3 4
4 1 3
5 7 2 is a square matrix of order 3 x 3.
− 1 6 0
EXERCISE 3
Write an example of a square matrix of
a) 1x1 b) 2x2 c) 3x3
Chapter 1: Matrix 4
QQM1023 Managerial Mathematics
1
For example,
− 2
is a column matrix of order 3 x 1
3
EXERCISE 4
Identify the type and order of each matrix.
6 6
a)
9 b) [9 8 − 3] c) 8
0
Chapter 1: Matrix 5
QQM1023 Managerial Mathematics
0
1.2.4 DIAGONAL MATRIX 0
A matrix [ ]m×n
A = aij where aij = 0 for
2 0 0
• For example, A = 0 − 1 0
0 0 3
Each elements in this matrix are zero EXCEPT for the element that
lie on the “main” diagonal extending from the upper left corner
0
1.2.5 UPPER TRIANGULAR MATRIX
Chapter 1: Matrix 6
QQM1023 Managerial Mathematics
aij ≠ 0; for i ≤ j
1 6 5
1 4
For example, , 0 3 7
0 2 0 0 − 2
0
1.2.6 LOWER TRIANGULAR MATRIX
aij ≠ 0; for i ≥ j
7 0 0
3 0
, 9 2 0
For example, 2 4
8 4 3
Chapter 1: Matrix 7
QQM1023 Managerial Mathematics
1.2.7 IDENTITY ( I )
For example,
0 0 0
O2×3 = is a null matrix of the order 2 x 3.
0 0 0
Chapter 1: Matrix 8
QQM1023 Managerial Mathematics
EXERCISE 5
For each matrix, determine the types and order:
1 7 3 − 1
a) A = 0 5 2 b) B = 0 c) C = [0 5 3]
3 0 − 1 0
− 2 0 3
1 0
d) D = 0 4 0 e) E=
0 2
1 0 6
− 1 0 0
f) F =
2 3 0
1 0 5
be written as A = B if;
n=q
ii. The corresponding elements are equal, where aij = bij for all i
& j.
Chapter 1: Matrix 9
QQM1023 Managerial Mathematics
For example,
Both matrices have
4 0 4 0 the same order and
2 1 = 2 1 corresponding
elements.
a) 5 6 5 6
3× 2 3×2
5 7 Both matrices
0 4 ≠ 5 0 6 have a different
order
7 4 3
b)
6 3
2×3
3×2
EXERCISE 6
1. Determine whether the pair of matrices below are equal
or not
1 1 2
5 5 0.5 2 5 0.5 0.4
2 , 3
a)
1 0
b)
1 3 , 0.25 0.3
0 1 2
2 4 10
2. Given
3 6 1 9
A = , B = , C = [3 7 ], D = ,
7
3 5 49
6 3 2 × 3 30
E= , F = 2 × 3 5
1 5
2
Name two matrices that are equal.
Chapter 1: Matrix 10
QQM1023 Managerial Mathematics
Example 2:
x y 6 3
a) Given the matrices A= and B= . If
4 0 z 0
A = B , determine the value of x , y and z .
3 q q + 1 3 q 5
b) If
q − 1 2r = determine the value of
p + 1 r 2r q − 4
p, q and r.
Solution:
x y 6 3
As A = B , therefore
4 0 = z 0 . By matching each
element to their corresponding element aij and bij , we know
that:
Chapter 1: Matrix 11
QQM1023 Managerial Mathematics
Example 3:
10 6 − 2 3 2 4
Given A= , B=
− 1 and C =
7 1 .
6 3 8
Determine the order of A , B and C . Find AT , BT , C T and the
order of each transposition.
For instance,
MATRIX ADDITION
So,
Chapter 1: Matrix 12
QQM1023 Managerial Mathematics
Example 4:
Calculate the sum of both matrices below:
1 4 4 − 2
A= , B =
2 − 1 3 Answer:
i)
3
2 1 5 − 3 2 4
ii) C = 7 4 − 1, D = 0 7 1 Answer:
1 6 8 − 4 − 2 3
Chapter 1: Matrix 13
QQM1023 Managerial Mathematics
EXERCISE 7
Get the subtraction for both matrices:
4 7
i) G = 5 , H = 1
ii) J = [− 1 5 4], K = [0 1 2]
A− B ≠ B− A
iii) Matrix addition is associative Æ
( A + B ) + C = A + (B + C )
iv) Matrix subtraction is NOT associativeÆ
( A − B ) − C ≠ A − (B − C )
v) Matrix addition has the identity propertyÆ
A+O =O+ A= A
vi) Matrix subtraction is NOT identicalÆ
A−O ≠ O− A
a) Scalar Multiplication
Chapter 1: Matrix 14
QQM1023 Managerial Mathematics
For example, if
5 1 3
A = − 2 9 4 , find the scalar multiple of A ( kA ) where
6 0 7
k = 2.
Solution:
i) k ( A + B ) = kA + kB
ii) (k1 + k2 )A = k1A + k2 A
iii) k1(k2 A) = (k1k2 ) A
iii) OA = O
iv) kO = O
Chapter 1: Matrix 15
QQM1023 Managerial Mathematics
of B.
• the product will be a matrix of order mxp it will have as
many rows as A and as many columns as B.
A multiply B = AB
Level : mx n n xp mxp
Example 5:
Solution
i. Determine whether operation is possible. If possible, determine
the size of the product.
Matrix A has size 2x3 and matrix B has size 3x3. The number of
Chapter 1: Matrix 16
QQM1023 Managerial Mathematics
c12 =
c13 =
c21 =
c22 =
c23 =
Chapter 1: Matrix 17
QQM1023 Managerial Mathematics
Example 6:
1 4 2 3
Given A= , B = 7 5 . Find AB .
0 2
Solution:
Example 7:
3 − 2
0 − 2 4
0 1
Compute 3
1 − 3
− 1 0
Example 8:
2 5 − 3
4 0 2 2 6
Compute 9 1
4 8 − 7
i) A(BC ) = ( AB )C
ii) A(B + C ) = AB + AC and
( A + B )C = AC + BC
iii) AB ≠ BA
iv) AI = IA = A
Chapter 1: Matrix 18
QQM1023 Managerial Mathematics
1.6.1 DETERMINANT
9 Determinant can only be obtained from a square matrix and is
denoted as A.
9 The determinant will determine whether a matrix is invertible or not.
• Determinant of a 2 x 2 matrix
FORMULA:
a11 a12
If A= .
a a
21 22
Therefore the determinant of A is
Example 9:
Find A :
5 − 3
a)
A=
2 2
Solution:
Chapter 1: Matrix 19
QQM1023 Managerial Mathematics
EXERCISE 8
Calculate the determinant (|A|) for each matrix:
2 1
0 3 4
A = 3
A= 3
− 3 2
a) b)
2
4
p − 3 0.5 − 4
c)
A= d)
A=
q 2 0.25 2
• Determinant for a 3 x 3 matrix
FORMULA:
Example 10:
Get the determinant for matrix A:
2 0 1
A = − 2 3 6
0 − 1 4
Chapter 1: Matrix 20
QQM1023 Managerial Mathematics
Solution:
EXERCISE 9:
Find the determinant for each matrix:
0 0 1
A = [5] B = 2 − 4 3
i) ii)
0 − 1 4
1
5 1 12 − 2 0
2
C = − 1 0 2 D = 1 9 1
iii) iv)
2 1 − 4 − 2 18 − 1
a certain row and column. The sub matrix for the entry aij
is obtained by excluding the entries in the i th row and the j th
column from the original matrix A .Thus, if a matrix consists of n entries,
therefore the number of sub matrix that can be obtained from the
matrix is n.
Chapter 1: Matrix 21
QQM1023 Managerial Mathematics
1.6.2 MINOR
Example 11:
a11 a12 a13
Given a matrix A = a21 a22 a23 , get the sub matrix and minor
a31 a32 a33
for the a11 and a12
Solution:
a a23
a11 = 22
a33
Sub matrix
a32
a a23 = a22 a33 − a32 a23
Minor m11 = 22
a32 a33
m11 is minor for the entry a11, which is a 2 × 2 determinant obtained
by excluding the first row and first column of the original matrix.
a21 a23
Sub matrix a12 =
a31 a33
a21 a23 = a 21a33 − a31a 23
Minor m12 =
a31 a33
Chapter 1: Matrix 22
QQM1023 Managerial Mathematics
Continue with,
m13 m31
m21 m32
m22 m33
m23
Minor matrix is obtained when all the minors are collected into one
single matrix. Thus,
EXERCISE 10:
1 2 3
If A = 1 3 5 , Find the minor matrix for A
1 5 12
1.6.3 COFACTOR
( )
1+1
a
K11for the entry 11 ⇒ −1 m11 = m11
K12 for the entry a12 ⇒ ( −1)
1+ 2
m12 = − m12
Continue with other cofactor entry
Chapter 1: Matrix 23
QQM1023 Managerial Mathematics
Therefore
1.6.3 ADJOIN
Adjoin = (Cofactor)T
EXERCISE 11:
1 2 3
If A = 1 3 5 , find the cofactor and adjoin for A .
1 5 12
Chapter 1: Matrix 24
QQM1023 Managerial Mathematics
a a
Given A = 11 12 thus
a21 a22
−1 1 a22 − a12
A =
A − a21 a11
EXERCISE 12:
Find the inverse for each matrix below (if exist):
2 4 0.5 3
A= B=
− 3 − 18
i) ii)
3 5
1
A = (adj ) A
−1
Chapter 1: Matrix 25
QQM1023 Managerial Mathematics
EXERCISE 13:
1 2 3
Find the inverse of A (if exist): A = 1 3 5
1 5 12
a11 x1 + a12 x2 = b1
(1)
a21 x1 + a22 x2 = b2
To solve the systems using matrix, the systems need to be rewritten
in a form of a matrix equation:
AX = B
a11 a12 x1 b1
a =
21 a22 x2 b2
A X B
coefficients unknowns constants
Chapter 1: Matrix 26
QQM1023 Managerial Mathematics
IX = A−1B
Where IX = X
So,
X = A−1B
x
Where X = for a 2 x 2 matrix of A
y
Chapter 1: Matrix 27
QQM1023 Managerial Mathematics
x
and X = y for a 3x3 matrix of A .
z
Example 11:
Find the value of x and y for the systems of linear equation:
2x + y = 4
− x + y =1
Solution
• Find A −1 ,
-1
• Find the value of x and y Æ X = A .B
Chapter 1: Matrix 28
QQM1023 Managerial Mathematics
EXERCISE 13:
Solve the following systems of linear equation using the inverse method:
a)
1
x+ y=5
2
3x = 20 + y
x + 2 y + 3z = 1
b) x + 3 y + 5z = 2
x + 5 y + 12 z = 3
Chapter 1: Matrix 29
QQM1023 Managerial Mathematics
M M M M M M L M
bn a2 n L amn am1 bn L amn
The 1st column is replaced by B The 2nd column is replaced by B
i th column
↓
a11 L b1 L
a L b2 L
21
Ai = a 31 L b3 L
M M M M
a m1 L bn L
↑
B
• Find the determinant of Ai Æ Ai
Ai
• The value of xi is obtained, using the formula xi =
A
Example 13:
Given a systems of linear equation:
5x − 2 y = 4
3x − y = 2
Find the value of x and y using the Cramer’s Rule.
Chapter 1: Matrix 30
QQM1023 Managerial Mathematics
Solution:
i) Write the systems in a form of AX = B
A1
x= =? and
A
A2
y= =?
A
EXERISE 14:
Solve the following systems of linear equations using the Cramer’s rule:
x + 2 y = −2
a) 2x + 3y = 3
Chapter 1: Matrix 31
QQM1023 Managerial Mathematics
x + 2 y + 3z = 1
b) x + 3 y + 5z = 2
x + 5 y + 12 z = 3
c) Every month Ali sends glass bottles, plastic bottles and old
newspapers to the recycling centre. Table 1 shows the weight of
each item sent by Ali for the first three months of 2005 and how
much it is paid.
ii. Find|A|
iii. Determine the price paid for a kilogram of old newspaper using
the Cramer’s Rule.
Chapter 1: Matrix 32