Professional Documents
Culture Documents
4
LEARNING OUTCOMES
By the end of this topic, you should be able to:
1. Explain the concept of matrix and the classification of matrices;
2. Define matrix addition, scalar multiplication and multiplication of
matrices and the properties related to these operations;
3. Calculate the determinant for square matrix using the cross
multiplication method and the cofactor expansion method;
4. Determine the inverse of an invertible matrix and use inverses to
solve the linear equation system; and
5. Apply Cramer’s rule to find the solution for a two-linear equation
system.
INTRODUCTION
Data is an important source of information. Therefore, it is necessary for the data
to be arranged in an easily understood and straightforward manner. Matrix is one
method which is frequently used.
In economics, the matrix is used to formulate problems and displaying data. For
example, a manufacturer who produces products D, E and F could represent the
units of labour and materials required for one week’s production as shown in
Table 4.1.
10 12 16
More simply, the data can be represented by the matrix A
5 9 7
A matrix can be categorised into several classes or types. Later on, this topic will
discuss matrix operations, each with its own properties which differ from the
operations of real numbers. The application of a matrix is to solve simultaneous
equation systems. Two methods will be employed to solve the simultaneous
equation systems, which is the inverse matrix method and the Cramer’s rule. The
knowledge of finding the determinant of a given matrix is essential in order to apply
these methods.
For any matrices, the data has to be placed in a rectangular table form, as shown
here:
2 0 1
0 1 3
The above matrix consists of two rows and three columns. Hence, the dimension,
order, size or degree of the above matrix is 2 3. The dimension of a matrix is the
number of rows first, followed by the number of columns. The elements or entries
of the above matrix in the first row are 2, 0 and 1 while the elements for the second
row are 0, –1 and 3.
Based on matrix A above, we can conclude that A is a matrix with the dimension of
3 3 since there are 3 horizontal rows and 3 vertical columns. Each element of
matrix A is denoted by a variable with two subscripts. For example:
(a) a11 lies in the first row and the first column;
(b) a21 lies in the second row and the first column; and
(c) a32 lies in the third row and the second column.
The dimension of the matrix A can be written at the lower right side of the letter, in
the form of a subscript, i.e. A33.
SELF-CHECK 4.1
3
1 2
(a) L31 0 (b) L41
1
3
0
3 2 1
1 2
(a) S 2 2 (b) S 33 3 1 0
4 0 2 1 4
The elements on the main diagonal of any given square matrix are all the elements
which lie from the upper left corner to the lower right corner. The main diagonal
elements for matrix S22 above are 1 and 0 while the main diagonal of matrix S33
are 3, 1 and 4.
1 0 0
1 0
(a) P22 (b) P33 0 0 0
0 1
0 0 3
1 0 0
1 0
(a) I 22 (b) I 33 0 1 0
0 1
0 0 1
A zero matrix or null matrix, denoted by 0 is the matrix when all the elements of
a matrix are set to 0. Examples as shown:
0 0
0 0 0
(a) 032 0 0 (b) 023
0 0 0 0 0
SELF-CHECK 4.2
If there exists only one element in a matrix, can the matrix be called a
square matrix? Explain.
EXERCISE 4.1
1. Given:
3 1 6
(a) B 6 2 (b) C 1 5 8 (c) D 9
1 0 4
a 0 0
2. Find the value(s) of a, that makes 0 0 0 a diagonal matrix.
0 0 0
1 0 0
3. Is the matrix an identity matrix? Clarify your answer.
0 1 0
0 0 0
0 0
0 0
(a)
0 0 0
(b) 0
(c) 1 2 1 0
2
0 0 0
1
5 2 5 0.5
3
1
0 1 0
2
2
but [1 2] ≠ [1 2 0]
3 q q 1 3 q 5
q 1 2r
p 1 r 2r q 4
q 1 5
q 5 1
q4
r q 1
r 4 1
r 3
p 1 q 4
p q 4 1
p q 5
p 4 5 1
4.2.2 Transpose
Given a matrix Amn with elements aij where i = 1, 2, …, m and j = 1, 2, …, n. The
transpose matrix for Amn, which is denoted by AT nm is a matrix with elements aij
where i = 1, 2, …, n and j = 1, 2, …, m. In other words, we just reverse the order of
the row and column elements of matrix Amn so that the rows turn into columns and
columns into rows.
Example 4.1
2 3 1 2 1 0
(a) If A = 1 2 0 , then A = 3 2 1
T
0 1 3 1 0 3
1 3
1 0 1
(b) If B = , then B = 0 2
T
3 2 0 1 0
T
The transpose operation has the property of AT = A
Example 4.2
1 0 2 4 1 4
(a) 2 2 + 1 3 = 1 5
2 2 0 1 2 0 3 4 0
(b) 4 1 3 + 3 2 0 = 7 1 3
2 3 7 1 3
(c) 1 5 + 3 1 3 , cannot be performed because the two matrices have
different dimensions.
Example 4.3
3 0 1 0 2 5 3 2 4
(a) 2 1 3 1 3 2 1 4 1
1 4 1 2 1 2 1 3 3
2 3 7 1 3
(b) , the subtraction cannot be carried out because the two
1 5 3 1 3
matrices have different dimensions.
A B B A
A B B A
A B C A B C
A B C A B C
AO O A A
AO O A
Example 4.4
1 0
(a) If A
2 3
1 0 5(1) 5(0) 5 0
5A 5 = =
2 3 5(2) 5(3) 10 15
3 0 1
(b) If B = 2 1 3
1 4 1
b b12 b13
a a12 a13 11
AB 11 b b22 b23
a21 a22 a23 21
b31 b32 b33
c c12 c13
11
c21 c22 c23
where:
Example 4.5
1 1
1 1 1 0 2
Given A32 0 2 , B2 2
, and C 23
1 0 1 0 0 1 1
2 1
2 0
1 1 3×2
(b) BA= B22 A32 is not possible because the number of columns in matrix B22
is not the same as the number of rows in matrix A32.
1 1 1
0 2 2
1 0 2
A BC AB C
A B C AB AC and A B C AC BC
AB BA
AI IA A
There are cases where the multiplication of two matrices is the matrix itself, i.e.
A A = A. This matrix A is known as idempotent matrix.
Example 4.6
1 0 0 1 0 0 1 0 0 1 0 0
1 1 0 1 1 1 1 1 1
Given A = 0 , then AA = 0 0 A
2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1
0 0 0 0
2 2 2 2 2 2 2 2
SELF-CHECK 4.3
EXERCISE 4.2
1. Suppose:
2 1 4 2
2 1 3 4 1 2
A= , B = , C = 0 6 and D 3 5
4 0 1 5 1 3 3 2 1 3
Find:
(g) (AT )A
1 0 1 3
A
1 3 3 6
4.3 DETERMINANT
The determinant is defined only for square matrices. The determinant of matrix A
is denoted by Aand has a scalar value. This subtopic will only emphasise on
obtaining the determinants for square matrices with the dimensions until 3 3.
Determinants are used to find the invertible matrices which are then used to
explicitly describe the solution to the linear equation system.
a a
Given matrix A22 = 11 12 . The determinant of a matrix can be obtained by
a21 a22
taking the difference between the multiplication of elements on the main diagonal
(a11 and a22) and that of the opposite diagonal ( a12 and a21 ). The determinant of the
matrix A22 is given by:
Example 4.7
0 1 1 2
If A = and B = 0 1 , determine
2 4
Solutions:
0 1
(c) AB = . Therefore, AB = (0)(8) – (–1)(2) = 2
2 8
4 7
(d) BA = . Therefore, BA= (4)(4) – (7)(2)
2 4
= 16 –14
=2
(e) | A| | B| = (2)(1) = 2
For entry a11, we delete the entries in row 1 and column 1, as shown next:
a a23
This leaves the matrix 22 of order 2. The determinant of this matrix is
a32 a33
called the minor of a11.
a21 a23 a a 22
Similarly, the minor of a12 is , and for a13 is 21 .
a31 a33 a31 a32
a11 a22 a33 a23 a32 a12 a21a33 a23a31 a13 a21a32 a22 a31
The minor of the element aij is the determinant of the sub-matrix left after omitting
the i th row and j th column. For instance, suppose
1 4 1
A 0 2 0
2 3 3
1 4 1
2 0
m11 (i.e. 1) = 0 2 0 = (2)(3) – (0)( –3) = 6
3 3
2 3 3
1 4 1
0 0
m12 (i.e. 4) = 0 2 0 = (0)(3) – (0)(2) = 0
2 3
2 3 3
1 4 1
0 2
m13 (i.e. 1) = 0 2 0 = (0)(3) – (2)(2) = – 4
2 3
2 3 3
1 4 1
4 1
m21 (i.e. 0) = 0 2 0 = (4)(3) – (1)( –3) = 15
3 3
2 3 3
1 4 1
1 1
m22 (i.e. 2) = 0 2 0 = (1)(3) – (1)(2) = 1
2 3
2 3 3
1 4 1
1 4
m23 (i.e. 0) = 0 2 0 = (1)( –3) – (4)(2) = –11
2 3
2 3 3
1 4 1
4 1
m31 (i.e. 2) = 0 2 0 = (4)(0) – (1)(2) = –2
2 0
2 3 3
1 4 1
1 1
m32 (i.e. –3) = 0 2 0 = (1)(0) – (1)(0) = 0
0 0
2 3 3
1 4 1
1 4
m33 (i.e. ) = 0 2 0 = (1)(2) – (4)(0) = 2
0 2
2 3 3
6 0 4
The minor matrix A is Minor A = 15
1 11 .
2 0 2
The cofactor of element cij is the minor of element mij multiplied by (–1)i+j. Hence,
the cofactor of element:
6 0 4
The cofactor matrix is cofactor A = 15 1 11
2 0 2
The following steps are required to compute the determinant of a matrix using the
cofactor expansion method:
(a) Step 1: Select one row or column to perform cofactor expansion. In general,
we choose the row or column with many zeroes. In matrix A, the second row
has many zeroes. Therefore, choose the second row of matrix A to perform
the cofactor expansion.
Note: The same value of the determinant will be obtained even though cofactor
expansion is performed on a different row or column.
6 15 2
0 1 0
4 11 2
EXERCISE 4.3
2 5 a b
(a) 1 3 (b) b a
1 2 3 3 2 1
(c) 2 3 0 (d) 0 3 2
3 0 0 0 0 3
2. (a) Calculate the value for a, given that the determinant for
1 a
2 4 is 6.
a b
(b) Find the determinant for 1 0 .
2 4
a a 1 a a12
Let A 11 12 and A a11a22 a12a21 . Therefore, A1 22
a21 a22 A a21 a11
1
If A is a square matrix of order 3, then A1 × Adjoint A
A
6 15 2
Let us now calculate the inverse matrix for 0 1 0
4 11 2
15
3 1
6 15 2 2
1 1
1
A 0 1 0 0 0
2 4 11
2
2
2 11
1
2
When matrix A is multiplied by its inverse A-1, the following properties are then
true:
EXERCISE 4.4
1. Find the inverse (if there exist any) for the following matrices. Then,
prove that your answers are correct.
2 3 4
3 4
(a) (b) 0 0 1
2 2 1
2 1
4 2 2 1 4 1
(c) 1 3 4 (d) 2 3 2
3 1 6 1 2 3
2. Given:
2 3 1 1 1
A . Find A and show that (A ) = A.
4 5
3. Suppose:
a b
B
c d
(a) Determine B1 and state the properties required for the
existence of B1 .
x
1 4 2 4
2 3 1 y 3
z
x 4 y 2z 4
2 x 3 y z 3
x 4 y 2z 4
2 x 3 y z 3
Hence, this system of linear equations can be expressed in the form of matrix
equation system AX = B. Where A is the matrix obtained from the coefficients of
the variables, X is a column matrix obtained from the variables and B is a column
matrix obtained from the constants.
Example 4.8
Given a two-linear equation system:
x 2y 0
2x y 5
1 2 x 0
It can be expressed as
2 1 y 5
1 2 x 0
where A , X and B as a matrix equation system.
2 1 y 5
Example 4.9
Given a three-linear equation system:
2 x y 3z 3
x 2y z 4
2x 2z 0
2 1 3 x 3
The matrix form is 1
2 1 y 4 , where
2 0 2 z 0
2 1 3 x 3
A 1 2 1 , X y and B 4
2 0 2 z 0
A1 AX A1B
A A X A
1 1
B
Example 4.10
Solve x 2 y 3
2x y 5
Solution:
1 2 x 0 1 2 x 0
2 1 y 5 where A 2 1 , X y and B 5
A 1 1 2 2 5
1 2
1 1 2 5 5
A1
5 2 1 2
1
5 5
1 2
x 5 5 0
y
2 1 5
5 5
2
1
Example 4.11
Solve 2 x y 3 z 3
x 2y z 4
2x 2z 0
Solution:
Step 1: Firstly, we have to convert the equation into a matrix equation form, which
is
2 1 3 x 3
1 2 1 y 4 , where
2 0 2 z 0
2 1 3 x 3
A 1 2 1 , X y and B 4
2 0 2 z 0
Step 2: Determine the inverse of matrix A i.e. A1. To do this we need to compute
its determinant, i.e.
1 2 1 1 2 2 2 3 3 2 2 3
A 1 1 2 1 0 1
2 2 2 2 1 1
A 1 0 2 10
A 20
Therefore,
4 0 4 4 0 4
Minor A 2 10 2 , Cofactor A 2
10 2
5 5 5 5 5 5
4 2 5
Adjoint A 0 10 5
4 2 5
1
A 1 Adjoint A
A
4 2 5
1
0
10 5
20
4 2 5
1 1 1
5 10 4
1 1
0
2 4
1 1 1
5 10 4
1 1 1
4 3 1
x 5 10
y 0 1 1
4 2
2 4
z 0 1
1 1 1
5 10 4
Thus, the solution for the given simultaneous equations are x = 1, y = 2 and z = 1.
Step 1: Determine the determinant for coefficient matrix A, that is,A. If A=
0, Cramer’s rule is no longer applicable.
Step 2: Find Aiwhere Ai is the matrix formed when ith column in matrix A is
substituted by matrix B as shown:
a11 b1 a1n
a b2 a2 n
21
Ai
a1n bn a2 n
ith column
Ai
xi
A
Example 4.12
Solve x 2 y 0
2x y 5
Solution:
1 2 x 0
Step 1: Determine A for
2 1 y 5
0 2
A1 . Therefore, A1= (0)( 1) – (2)(5) = 10
5 1
1 0
A2 . Thus, A2= (1)(5) – (0)(2) = 5
2 5
A 1 10
x 2
A 5
A2 5
y 1
A 5
Example 4.13
Solve 2 x y 3 z 3
x 2y z 4
2x 2z 0
Solution:
2 1 3 x 3
Step 1: Determine A for 1 2 1 y 4
2 0 2 z 0
31 1 3 33 2 1
A 2 1 2 1
2 1 1 2
2 5 2 5
20
3 1 3 2 3 3 2 1 3
A1 4 2 1 , A2 1 4 1 , A3 1 2 4
0 0 2 2 0 2 2 0 0
3 3 3 1
A1 2 1 2 3 2 1 4 20
4 2
3 1 3 3 3 1 2 3
A2 2 1 2 1
4 1 1 4
2 3 1 3 4 2 2 4 3 1
2 15 2 5
40
3 1 1 3
A3 2 1 2 1 4 3 2 20
2 4
A1 20
x 1
A 20
A2 40
y 2
A 20
A3 20
z 1
A 20
ACTIVITY 4.1
What are the advantages of using matrices to solve linear equation systems
compared to algebraic techniques (substitution/elimination)? Compile
your answer and share it with your course mates in myINSPIRE forum.
EXERCISE 4.5
(a) x 2 y 14
2x y 5
(b) x 2y z 7
x y z 4
3x y z 2
3x 2 y z b1
3x 2 y z b2
x y z b3
where:
(a) b1 = 2, b2 = 2, b3 = 4
(b) b1 = 8, b2 = 3, b3 = 6
1 2 4 7
1. Given A and B 3 1 . Find:
3 2.5
(a) A + 2B
8 9 9 7
A. 6 2 B. 3 0.5
6 3 9 11
C. 3 4 D. 9 4.5
(b) B
4 3
A. 7 1 B. –25 C. –17 D. 17
T
3 1 2 4
2. 2 0 4
2
8
A. 4 B. Does not exist
0
16
4
C. 16 4 0 D.
0
3 1 1
3. Given |A| = 6 and its cofactor is 3
1 1 . Find the inverse
6 4 2
of A.
3 3 6 3 1 1
1 1 4 1
A. B. 3 1 1
6
1 1 2 6 4 2
1 1 1 x 1
4.
Given A 3 2 1 , X y , B 2 , and A 1
2 5 3 z 1
A. ă18 B. ă10 C. ă7 D. 18
First nth
column column
The quantity aij is called the element of the matrix. For example, a11 is the
first element of the matrix.
The element aij represents the element at row-i and column-j of the matrix,
that is,
aij
ith row jth column
Zero Matrices
A matrix of any size (or order) with every element equal to zero is called
the zero or null matrix. It is normally written as O.
Diagonal Matrices
A square matrix with the elements of aii 0 and aij 0 for all i j is
called a diagonal matrix.
Identity Matrices
A square matrix of order n n with every element of its principal diagonal
equal to 1 and all the others equal to 0 is called the identity or unit matrix.
It is often denoted by the notation I.
– Triangular Matrices
A square matrix A is called an upper-triangular matrix if aij 0 for every
i j and a lower-triangular matrix if aij 0 for every i j.
Equality of Matrices
Two matrices A and B of the same order is said to be equal if and only if
aij bij for all i and j.
Addition of Matrices
The sum of two equal size matrices A aij and B bij is the matrix
C cij such that c ij a ij b ij for all i and j.
Subtraction of Matrices
The difference of two equal size matrices, A aij and B bij , is
defined as A B A (1) B aij bij for all i and j.
Matrix Multiplication
c
The product of a row vector a b and a column vector is defined as
d
c
a b ac bd .
d
If there are two matrices, A and B, that satisfy AB BA I , then the matrix B
is called the inverse of A and is written as B A 1 . On the other hand, the matrix
A is the inverse of B and is written as A B 1 . The matrix A and its inverse
satisfy the multiplicative commutative law where AA 1 A 1 A I . So does
matrix B where BB 1 B 1 B I .
a b 1 1 d b
If A and ad bc 0 then A .
c d c a
Ratti, J. S., & McWaters, M. (2008). College algebra. Boston, MA: Pearson
Addison-Wesley.