Chapter 1
Chapter 1
ALGEBRA
SEMESTER 1 2020/2021
CHAPTER 1
MATRICES
Chapter 1: Matrices
• 1.1 Matrix notation & terminology
• 1.2 Types of matrices
• 1.3 Operations with matrices
• 1.4 Properties of matrix operations
• 1.5 Elementary row operation
• 1.6 Row Echelon Form (REF) and Reduced Row
Echelon Form (RREF)
• 1.7 The determinant
• 1.8 Inverse
• 1.9 Elementary matrices
1.1 Matrix Notation & Terminalogy
Definition (Matrix):
An m x n matrix is an array of numbers with m rows
and n columns.
Note:
The entries – taken from R, C, Z etc
Example:
1.2 Types of Matrices
-Matrices B & C are not equal because they are of different sizes.
-Matrices D & E are equal if and only if x = 5 and y = 1.
1.3 Operations with Matrices
Examples
2 5 0 6 2 3
Let B and K 1 5 .
1 4 1 2
2+6 5 + (−2) 0 + 3 8 3 3
Then, 𝐵 + 𝐾 = =
−1 + (−1) 4+5 1+2 −2 9 3
1.3 Operations with Matrices (cont.)
Examples
Let B
2 5 0
and c = 5 .
1 4 1
2 5 0 6 −2 3
𝐵 − 𝑐𝐾 = 𝐵 + −𝑐 𝐾 = + (−5) =
−1 4 1 −1 5 2
2 + (−5) 6 5 + (−5) −2 0 + (−5) 3 −28 15 −15
= .
−1 + (−5) −1 4 + (−5) 5 1 + (−5) 2 4 −21 −9
1.3 Operations with Matrices (cont.)
1.3.3 Matrix Multiplication
- to find the entry in the ith row and the jth column of AB, multiply
the entries in the ith row of A by the corresponding entries in the jth
column of B and then add the results.
- the product AB is defined if the size of column A = the size of row B.
1.3 Operations with Matrices (cont.)
1.3.3 Matrix Multiplication (cont.)
Example
−1 3
−3 2
Find the product AB where 𝐴 = 4 −2 and 𝐵 = .
−4 1
5 0
Solution
A has size 3 × 2 and B has size 2 × 2, so ABhas size 3 × 2. 𝐴𝐵 =
−1 3 𝑐11 𝑐12
−3 2
4 −2 = 𝑐21 𝑐22
−4 1 𝑐31 𝑐32
5 0
to find 𝑐11, multiply corresponding entries in the 1st row of A
and the 1st column of B, and then add the results. That is
𝑐11 = −1 −3 + 3 −4 = −9
1.3 Operations with Matrices (cont.)
1.3.3 Matrix Multiplication (cont.)
Similarly, to find 𝑐12, multiply corresponding entries in the 1st row of A
the 2nd column of B, and then add the results. That is
𝑐12 = −1 2 + 3 1 = 1
−1 3 −9 1
−3 2
𝐴𝐵 = 4 −2 = −4 6 .
−4 1
5 0 −15 10
* Can we find the product BA?
1.3 Operations with Matrices (cont.)
1.3.4 Matrix Power
Example:
1. 𝐴2 𝐴3 = 𝐴2+3 = 𝐴5
2. 𝐴2 3 = 𝐴2(3) = 𝐴6
1.3 Operations with Matrices (cont.)
1.3.5 The Transpose of a Matrix
The transpose of an m n matrix A is the n m matrix AT obtained
by interchanging the rows and columns of A. That is, the i th column
of AT is the i th row of A for all i.
Example.
Find the transpose of each matrix.
2 5 0 3 1
B C
1 4 1 4 5
Answer:
1.3 Operations with Matrices (cont.)
Note:
A square matrix A is symmetric if and only if 𝐴 = 𝐴𝑇
Examples
1 3 2
1 2
A 3 5 0 B
1 3
2 0 4
𝑇
1 3 2 1 3 2
𝐴𝑇 = 3 5 0 = 3 5 0 =𝐴
2 0 4 2 0 4
𝑇
1 2 1 −1
𝐵𝑇 = = ≠𝐵
−1 3 2 3
Thus, A is symmetric but B is not symmetric.
1.3 Operations with Matrices (cont.)
Exercises:
1 2
1. Let 3 0 4 2 1
A , B , C 3 4
1 5 0 2 3 5 6
0 3 1
D , E
4 2
, F
2 1 2
i.A + 2D
ii.C – D
iii.D + BC
iv.BTCT – (CB)T
1.3 Operations with Matrices (cont.)
2. Let 2 4 2
1 0 3
A & B 1 0 0
2 1 2 1 1 1
Find (i) c21 (ii) c13 , where C = AB.
4 −1 0
3. Let 𝐵 =
2 3 1
(a)Find (i) c11 (ii) c21 , where C = BT B.
(b) Find (i) c11 (ii) c21 , where C = BBT.
1 2
6. Consider 𝐴 = .
3 −2
i. Find 𝐴 + 𝐴𝑇
ii. Determine whether 𝐴 + 𝐴𝑇 is symmetric.
1.3 Operations with Matrices (cont.)
Exercise (Answer):
20 2 2
3 6
B T B 2 10 3
1. i.
3. (a) (i) 20 (ii) 2
2 3 1
5 7 (b) (i) 17 (ii) 5
17 5
BB T
ii. Not possible
5 14
3 3
iii. 4. x = 3 ; y = 2 ; z = 1
19 27 2 4
5 4 3 3
0 0 0 5. (i) X (ii) X
3 5 10 4
iv. 0 0 0 3
0 0 0
2 5
6. i. 𝐴 + 𝐴𝑇 = .
2.(i) c21 = -3 5 −4
(ii)c13 = -1
ii. 𝐴 + 𝐴𝑇 is symmetric.
1.4 Properties of Matrix Operations
1.4.1 Properties of Matrix Addition & scalar Multiplication
Theorem:
Let A, B and C be matrices of the same size and let c and d be scalars. Then,
a. A+B = B+A (Commutative property of addition)
b. (A+B)+C = A+(B+C) (Associative property of addition)
c. c(A+B) = cA + cB (Distributive property)
d. (c+d)A = cA + dA (Distributive property)
e. c(dA) = (cd)A (Associative property of multiplication)
f. 1A = A (Multiplicative identity)
1.4 Properties of Matrix Operations(cont.)
1.4.1 Properties of Matrix Addition & scalar Multiplication
Note:
Generally, if A1, A2, … , Ak are matrices of the same size
and c1, c2, …, ck are scalars,
we may form the linear combination:
c1 A1 c2 A2 ... ck Ak
where
c1, c2, …, ck are called as the coefficients of the linear
combination.
1.4 Properties of Matrix Operations(cont.)
1.4.1 Properties of Matrix Addition & scalar Multiplication
Example :
Let
4 1 1 2 5 1
BA
1 2 2 1 3 1
Solution:
Then, AB BA.
1.4 Properties of Matrix Operations(cont.)
Example :
The additive identity for the set of all 2x3 matrices.
1.4 Properties of Matrix Operations(cont.)
Theorem
a. If A is a square matrix, then A + AT is a symmetric matrix.
b. For any matrix A, AAT and ATA are symmetric matrices.
Proof (a):
(A + AT)T = AT + (AT)T (by property of transpose (no. 2))
= AT + A (by property of transpose (no. 1))
= A + AT. (commutativity of matrix add.)
Then,
A + AT is symmetric .
1.4 Properties of Matrix Operations(cont.)
Proof (b):
(AAT)T = (AT)T AT (by property of transpose (no. 4))
= A AT (by property of transpose (n0. 1))
Then,
A AT is symmetric .
1.5 Elementary Row Operations (ERO)
Note:
ERO – a procedure (an allowable operations) to reduce any matrix to a
matrix in row echelon form (ref) or reduced row echelon form
(rref).
- can be performed on a system of linear equations to transform it
into an equivalent system.
0 2 4 3 5 1
R1 R2
3 5 1
0 2 4
12 4 2 12 4 2
3 5 1 1 3 5 1
0 2 4 R3 0 2 4
2
12 4 2 6 2 1
1.5 Elementary Row Operations (cont.)
c. Add -2 times the first row to the third row to produce a new third row.
3 5 1 3 5 1
0 2 4 R3 ( 2 )R1 0 2 4
6 2 1 0 12 1
1.6 Row Echelon Form (REF) and Reduced Row
Echelon Form (RREF)
Definition. (Row Echelon Form (REF))
A matrix is in row echelon form if it satisfies the following properties:
1. Any rows consisting entirely of zeros are at the bottom.
2. The first nonzero entry (called the leading entry/ pivot ) of a
nonzero row is always to the right of any leading entries of the row
above it.
Example.
The following matrices are in row echelon form.
2 4 1 1 0 1 1 1 2 1 0 2 0 1 1 3
0 1 2 0 1 5 0 0 1 3 0 0 1 1 2 2
0 0 0 0 0 1 0 0 0 0 0 0 0 0 4 0
0 0 0 0 0 5
1.6 Row Echelon Form (REF) and Reduced Row
Echelon Form (RREF)
Strategy:
Remarks:
The row echelon form (ref) of a matrix is not unique.
The leading entry in each row is used to create the zeros
below it.
The pivots are not necessarily the entries that are originally in the
positions eventually occupied by the leading entries.
Once we have pivoted and introduced zeros below the leading entry
in a column, that column does not change. (The row echelon form
emerges from left to right, top to bottom).
1.6 Row Echelon Form (REF) and Reduced Row
Echelon Form (RREF)
Definition (Row Equivalent)
Example
1 1 1 1 1 1
2 3 1 0 1 1
and
1 1 2 0 0 5
1 0 0 0 2 0 1 3
0 1 0 0
(i) 0 1 1 2 (ii) (iii) 0 1 1 4
0 0 0 0 1 0 2 1 0 0 0 1
1 0 2 1 0 0 1 0 0 1 0 0 0
(iv ) 0 1 3 4 (v) 0 0 0 1 0 (vi)0 0 0 1
0 0 1 0 0 0 0 2 0 0 0 0 0
1.6 Row Echelon Form (REF) and Reduced Row
Echelon Form (RREF)
Exercises (ERO , REF and RREF):
2. Reduce the following matrices into REF.
0 2 3 1 1 1 2
1 2 1
(i) (ii) 2 3 1 (iii) 2 2 1 3
2 3 1 1 1 2 1 1 1 0
3. Show that the given matrices are row equivalent by showing these
two matrices can be reduced to the same REF.
2 0 1 3 1 1
A1 1 0 B 3 5 1
1 1 1 2 2 0
1.6 Row Echelon Form (REF) and Reduced Row
Echelon Form (RREF)
Exercises (ERO , REF and RREF):
1. (i) RREF (ii) neither (iii) REF but not RREF (iv) REF but not RREF
(v) neither (vi) REF and RREF
2.
3. Hint: Reduce both matrices until you get the following REF
1
1 0 2
0 1 1
2
0 0 0
1.6 Row Echelon Form (REF) and Reduced Row
Echelon Form (RREF)
Exercises (ERO, REF, RREF) (Answer):
4. 1 0 1 0 −1 1 2 0
(i) 0 1 (ii) 0 1 −1 (iii) 0 0 1
0 0 0 0 0 0 0 0
1.7 The Determinant of a Matrix
Every square matrix can be associated with a real number called
its determinant.
Example
Compute the determinant of
2 −3
𝐴=
1 2
𝐴 = 2 2 − 1 −3 = 4 + 3 = 7
1.7 The Determinant of a Matrix
To define the determinant of a square matrix of order higher than
2, it is convenient to use minors and cofactors.
If A is a square matrix, then the minor Mij of the entry aij , is the
determinant of the matrix obtained by deleting the ith row and jth
column of A. The cofactor Cij of the entry aij is
Cij = (-1)i + j Mij
then the minors and cofactors of 𝑎21 and 𝑎22 are as follows.
1.7 The Determinant of a Matrix
Minor of 𝑎21 : Delete row 2 and column 1
𝑎12 𝑎13
𝑀21 = 𝑎 𝑎33 = 𝑎12 𝑎33 − 𝑎32 𝑎13
32
𝑎11 𝑎13
𝑀22 = 𝑎 𝑎33 = 𝑎11 𝑎33 − 𝑎31 𝑎13
31
0 2 1
3 −1 2 3 −1
𝑀13 = =4
4 0 1 4 0
0 2 1
3 −1 2 0 2
𝑀23 = = −8
4 0 1 4 0
0 2 1
3 −1 2 0 2
𝑀33 = = −6
4 0 1 3 −1
Example
0 2 1
Find the determinant of 𝐴 = 3 −1 2
4 0 1
det 𝐴 = 𝐴 = 0 −1 + 2 5 + 1 4 = 14
det 𝐴 = 𝐴 = 3 −2 + (−1) −4 + 2 8 = 14
1.7 The Determinant of a Matrix
det 𝐴 = 𝐴 = 0 −1 + 3 −2 + 4 5 = 14
*The row (or column) containing the most zeros is usually the
best choice for expansion by cofactors.
1.7 The Determinant of a Matrix
Example
Example
To compute the determinant of
det A = 1(4)(1) = 4
1 1 3
A 0 4 2
0 0 1
1.7 The Determinant of a Matrix (cont.)
Exercises (Triangular Matrix):
7 8 4 3 1
iii. 0 1 5 3 13
4
C
0 0 2 5 4
0 0 0 1 1
0 0 0 0 2
1.7 The Determinant of a Matrix (cont.)
Theorem (Conditions that Yield a Zero Determinant)
Let A is a square matrix and one of the following conditions is true, then
det(A) = 0.
Example.
The first row The first & third The 3rd column is a multiple
has all zeros row are the same of the first column
1.7 The Determinant of a Matrix (cont.)
1.7.1 Properties of Determinant
Theorem (Determinant of matrix product)
If A & B are square matrices of order n, then
det(AB) = det(A). det(B)
Example.
- Non-square matrices
do not have inverses.
- Not all square matrix
does have an inverse.
1.8 The Inverse of a Matrix
Example
2 5 3 5
If A , then A ' is an inverse of A since
1 3 1 2
1 0 1 0
AA’= and A’A=
0 1 0 1
1.8 The Inverse of a Matrix
Theorem (Uniqueness of Inverse Matrix)
If A is invertible matrix, then its inverse is unique. The inverse of A is
denoted by 𝐴−1 .
NOTE:
- Matrix A will have an inverse if
and only if its determinant is
not equal to zero.
- Matrix A will have an inverse if
and only if it is row equivalent
to the identity matrix
1.8 The Inverse of a Matrix
Example
1 2 12 −15
Determine whether 𝐴 = and 𝐵 = are invertible.
3 4 4 −5
Solution
We have det A = 1 4 − 3 2 = −2 ≠ 0, so A is invertible
On the other hand, det 𝐵 = 12 −5 − 4 −15 = 0, so B is not
invertible.
OR
1
𝑅2 −13𝑅1 −22𝑅2 𝑅1 −2𝑅2
1 2 1 2 1 2 1 0
13 4 0 −22 0 1 0 1
Since the RREF of matrix A is the identity matrix, A is invertible .
1.8 The Inverse of a Matrix
1
5
12 −15 12𝑅1 1 −4 𝑅2 −4𝑅1 1 2
4 −5 4 −5 0 0
Since the RREF of matrix B is not the identity matrix, B is not invertible .
1.8 The Inverse of a Matrix (cont.)
Theorem
a b
If A , then A is invertible if ad bc 0 , in which
c d
1 1 d b
A a
case .
ad bc c
1 2
Find the inverses of A .
3 4
2 1
1 4 2 3
A1
2 3 1
1
2 2
1.8 The Inverse of a Matrix (cont.)
Theorem (Adjoint/Adjugate Method)
1 2 1
A 2 2 4
1 3 3
Solution:
From the computation, det A = -2. Now, the nine cofactors will be,
2 4 2 4 2 2
C11 18 C12 10 C13 4
3 3 1 3 1 3
1.8 The Inverse of a Matrix (cont.)
2 1 1 1 C23
1 2
1
C21 3 C22 2
3 3 1 3 1 3
2 1 1 1 C33
1 2
2
C31 10 C32 6 2 2
2 4 2 4
Example
Find the inverse of
1 2 1
A 2 2 4
1 3 3
by using the Gauss Jordan method.
1.8 The Inverse of a Matrix (cont.)
Solution.
1 2 1 1 0 0 1 2 1 1 0 0
R2 – 2R1
[A | I] 2 2 4 0 1 0 0 2 6 2 1 0
1 3 3 0 0 1 R3 – R1 0 1 2 1 0 1
1 2 1 1 0 0 R3 + 2R2 1 0 3 3 0 2
R2 R3 0 1 2 1 0 1 0 1 2 1 0 1
R1 -2R2
0 2 6 2 1 0 0 0 2 4 1 2
R3 /3 1 0 3 3 0 2 1 0 0 9 3 / 2 5
R2 + 2R3
0 1 2 1 0 1 0 1 0 5 1 3
R1 – 3R3
0 0 1 2 1/ 2 1 0 0 1 2 1/ 2 1
9 3 / 2 5
Therefore,
A1 5 1 3
2 1/ 2 1
1.8 The Inverse of a Matrix (cont.)
1. ( A1 )1 A
2.
1 1
3. (cA) 1 A
c
4.
1.8 The Inverse of a Matrix (cont.)
Example.
Given .
Compute A-2 in two different ways and show that the results are equal.
Solution:
1st way – find A2 and then (A2)-1 :
2nd way – find A-1 and then (A-1)2 : Note that each
method
produces the
same result.
1.8 The Inverse of a Matrix (cont.)
Note:
Previous theorem can be generalized to products of finitely many
invertible matrices:
If A1 , A2 ,..., An are invertible matrices of the same size, then
A1 , A2 ,..., An is invertible and
( A1 A2 ... An )1 An1... A21 A11
1.8 The Inverse of a Matrix (cont.)
Example
Suppose that B is an invertible matrix and A is any matrix with AB = BA. Show
that A and B-1 commute.
Solution:
)i
1. ( det A6 0.Invertible.(
ii
) det 3 B 0.Invertible.
( iii) det C0.Not
Invertible.( )det iv 0.DNotInvert
ible.
( v)det E1344 0.Invertible.
vi
( ) det 0.FNotInver
tible.
1 3 3
2 4 4
2 8 5 24 18 5
2. ( )i A 1
1
3 1
( ) ii
B3 11 7 ( )
1
iii 20C 1
15 4
2 2
9 34 21 5 4 1
1 1 1
2 4 4
9 7 13 17
1 3 3 2 6 2
1 1 1 12 2 10 8
( iv) D 2 1 1 ( ) v
1
E 3 3 0 ( ) vi
1
F 1
5 6 22 5 1 17 7
6 13 8 1 3 2
2 4 2 6
7
2 3 2 4
1 3 3 3
( vii) G 1 2
0 1 0 1
1
0 1 1
2
1.8 The Inverse of a Matrix (cont.)
4
3. ( )i k 1
,4 ( ) ii 24k( ) iii , k1
3
1.9 Elementary Matrices
Definition (Elementary Matrix)
Examples
Let 1 0 0 0 0 0 1 0 1 0 0 0
0 0 1 0
3 0 0 0 1 0 0 E3
0
E1 E2 and
0 0 0
0 0 1 0 1 0 0 0 1
0 0 0 1 0 0 0 1 0 2 0 1
3R2 R1 R3 R4 – 2R2
1.9 Elementary Matrices (cont.)
Example.
Which of the following matrices are elementary? For those that are, describe the
corresponding elementary row operation.
a.
b.
Not Elementary since not square matrix
c.
Elementary - ERO R2 + 2R1
Determine whether the matrix is elementary. If it is, state the elementary row
operation (ERO) used to produce it.
a.
a. Elementary – ERO 2R2
b. Not elementary – two ERO
c. Elementary – ERO R3 + 5R1
b.
d. Not elementary – two ERO
c.
d.
1.9 Elementary Matrices (cont.)
Exercises:
Let A, B, C be
Find,