MATH-224 - LectureNotes 2
MATH-224 - LectureNotes 2
We welcome you to the second lesson of this course. Please note that
we are still looking at Matrices.
In the previous lesson, you learnt about the definition of a matrix,
matrix notation, order (or size) of a matrix, and types of matrices.
In this lesson, we will continue from where we stopped in lesson 1.
Thus, we will discuss other concepts about Matrices and these are:
addition of matrices, scalar multiplication of a matrix, matrix
multiplication, transpose of a matrix, and determinant of an n × n
matrix.
Please ensure that you have a scientific calculator which will be used
at some point in this course.
Matrices can be added if and only if they are of the same order. Thus, if
A = (aij ) and B = (bij ), then the sum of A and B is a matrix
A + B = (aij + bij )
Remark
Here, you add corresponding elements aij + bij
Example
1 2 5 −2 1 2 3
If A = ,B= and C = . Find (i) A + B (ii)
3 4 1 2 4 5 6
A + C.
Remark
If A and B are matrices of the same order then the difference is found by
subtracting the corresponding elements aij − bij = aij + (−bij ).
Example
1 −3
Let A = . Then
2 8
1 −3 2 × 1 2 × (−3)
2A = 2 =
2 8 2×2 2×8
2 −6
=
4 16
Definition
Let A be an m × n matrix and B be a p × q matrix. Then the matrix AB
is only defined (or A and B are conformable to multiplication) if the
number of columns of A is equal to the number of rows of B. i.e. AB is
only defined if n = p
Solution
(i) Matrix A is of order 2 × 2 and B is 2 × 3. Since the number of
columns in A is equal to the number of rows in B, the matrices can
be multiplied. Thus, the product matrix AB will be of order 2 × 3.
1 2 2 3 1
AB =
3 4 −2 4 5
1 × 2 + 2 × −2 1 × 3 + 2 × 4 1 × 1 + 2 × 5
=
3 × 2 + 4 × −2 3 × 3 + 4 × 4 3 × 1 + 4 × 5
−2 11 11
=
−2 25 23
NOTE: B : 2 × 3, C : 3 × 1 and BC : 2 × 1
Remark
(i) Matrix multiplication is not commutative. If AB is defined, it does
not necessarily mean that BA is also defined. For example, consider
the two matrices A : m × n and B : n × p. AB is defined but BA is
not defined.
(ii) AB and BA are both defined if and only if A is an m × n matrix and
B is an n × m matrix.
(iii) Even if AB and BA are both defined, it does not necessarily mean
that they are equal.
(Maliyoni & Malipa, MUST) MATH-224 Lecture 2 2019/2020 Academic Year 10 / 29
Properties of Multiplication of Matrices
(i) Multiplication is distributive with respect to addition. If A, B and C
are m × n, n × p and n × p matrices respectively, then
A(B + C ) = AB + AC
(AB)C = A(BC )
.
(iii) If A is n × m and O is m × n, then
AO = O = OA
NOTE:
A · A = A2
AAA = A2 A = (AA)A = A(AA) = A3 (by associative law)
In general, A · A · A · · · n times = An
Remark
If I is a unit matrix, then
I = I2 = I3 = ··· = In
Definition
The transpose of a matrix is found by interchanging rows and columns of
a matrix. Thus, if matrix A = (aij ), then the transpose of A is:
A = (aji ) where j is the column number and i is the row number in matrix
A. The transpose of a matrix is denoted by A0 or AT .
NOTE: AT is an n × m matrix.
Example
1 5
1 3
If A = and B = 2 6. Find (i) AT (ii) B T
4 2
−1 7
Solution
Rows become
columns
and vice
versa
1 4 1 2 −1
(i) AT = (ii) B T =
3 2 5 6 7
(Maliyoni & Malipa, MUST) MATH-224 Lecture 2 2019/2020 Academic Year 13 / 29
Properties of Transpose of a Matrix
(i) If A is a matrix of order n × m, then AT will be a matrix of order
m × n.
(ii) The transpose of a row matrix is a column matrix and vice versa.
(iii) (AT )T = A.
Example
1 2 T 1 3 T T 1 2
Let A = . A = and (A ) = =A
3 4 2 4 3 4
(iv) The transpose of the sum of two matrices is the sum of their
individual transposes. That is
(A + B)T = AT + B T
(v) (AB)T = B T AT
Solutions
1 2
(i) |B| = = (1)(3) − (−1)(2) = 3 + 2 = 5
−1 3
6 4
(ii) det(A) = = (6)(2) − (3)(4) = 12 − 12 = 0
3 2
Example
x − 1 −2
Given that A = . Find all values of x for which |A| = 0
1 x −4
You will first need to know a few concepts before being able to evaluate
the determinant of a 3 × 3 matrix (or all other matrices of greater
dimension).
Example
1 3 0
Let A = 2 −2 1 . Find M11 , M23 and M31 .
−4 1 −1
Solution
−2 1
M11 = = (−2)(−1) − (1)(1) = 2 − 1 = 1 - (Delete the row and column
1 −1
.
containing element A11 = 1 in A and compute the determinant of the resulting 2 × 2 matrix)
1 3
M23 = = 1 − (−4)(3) = 1 + 12 = 13
−4 1
3 0
M31 = = (1)(3) − (−2)(0) = 2 − 1 = 3
−2 1
(Maliyoni & Malipa, MUST) MATH-224 Lecture 2 2019/2020 Academic Year 18 / 29
NOTE: Each of the 9 elements in the example above has a minor.
Co-factor of Matrix Entries
We define the co-factor Cij of the entry Aij of A as follows:
.
Thus,
Note that the co-factor and the minor always have the same
numerical value, with the possible exception of the sign, according to
the following pattern which corresponds to the entries.
+ − +
− + −
+ − +
(Maliyoni & Malipa, MUST) MATH-224 Lecture 2 2019/2020 Academic Year 19 / 29
Example
Using the previous example, find C11 , C23 and C31 .
Solution
C11 = M11 = 1
C23 = −M23 = −13
C31 = M31 = 3
There are two methods that can be used to calculate the determinant of a
3 × 3 matrix.
1. Co-factor Expansion Method
Given a square matrix A and its co-factors Cij , the determinant of a 3 × 3
matrix (or for sizes bigger than 3 × 3) is obtained by co-factor expansion
as follows:
(i) Choose a row or column of A (if possible, choose a row or column
containing most zeroes).
(ii) Multiply each of the elements Aij of the row (or column) chosen by
its corresponding co-factor Cij .
(iii) Add the results.
Then, we define
|A| = A11 C11 + A12 C12 + A13 C13 (Expansion along the first row) or
|A| = A13 C13 + A23 C23 + A33 C33 (Expansion along the third column).
Example
2 1 3
Let A = −1 2 1. Find det(A).
−2 2 3
Solution
Choosing the first row, the co-factors of its elements are
C11 = 4, C12 = 1, C13 = 2
det(A) = 15
Solutions
Expanding along the second column, we have
1 3
|B| = −8 = −8(−1 − 12) = −8(−13) = 104
4 −1
OR
det(A) = 0 + 0 + 96 − (0 − 8 + 0) = 96 + 8 = 104
|AB| = |A||B|
THANK YOU!