Module 5
Module 5
LESSON 7
MATRIX ALGEBRA
Learning Outcomes
Special Matrices
0 0 0
Example: 𝑵 = [0 0 0] (Size of Matrix 𝑨: 3 𝑥 3)
0 0 0
4. Square Matrix. A matrix whose number of rows is the same as the number
of columns. The size of a square matrix is written as 𝑛 𝑥 𝑛. Moreover, a
square matrix is also called a matrix of order 𝒏.
1 2 15 6 −1 −2
3 14 7 8 −3 −4
0 5 0 −2 −2 5
Example: 𝑪=
8 −3 8 3 0 15
−7 0 13 −5 −6 8
[ 0 0 11 8 −5 21 ]
(Size of Matrix 𝑪: 6 𝑥 6)
1 0 0 0
Example: 𝑫 = [0 2 0 0] (Size of Matrix 𝑫: 4 𝑥 4)
0 0 3 0
0 0 0 4
6. Scalar Matrix. When the entries 𝑎𝑖𝑖 of a diagonal matrix are all equal.
5 0
Example: 𝑺=[ ] (Size of Matrix 𝑺: 2 𝑥 2)
0 5
5 0 1 0
𝑺=[ ] = 5[ ]
0 5 0 1
7. Identity Matrix. A diagonal matrix whose elements of the principal diagonal
are all 1.
1 0 0
Example: 𝑰 = [0 1 0 ] (Size of Matrix 𝑰: 3 𝑥 3)
0 0 1
1 2
Example: 𝑨 = [3 4] (Size of Matrix 𝑨: 3 𝑥 2)
5 6
1 3 5
𝑨𝑻 = [ ] (Size of Matrix 𝑨𝑻 : 2 𝑥 3)
2 4 6
1 3 4
Example: 𝑴 = [3 8 7] (Size of Matrix 𝑴: 3 𝑥 3)
4 7 5
1 3 4
𝑻
𝑴 = [3 8 7] (Size of Matrix 𝑴𝑻 : 3 𝑥 3)
4 7 5
𝑴 = 𝑴𝑻
0 2 3
Example: 𝑯 = [−2 0 7]
−3 −7 0
(Size of Matrix 𝑯: 3 𝑥 3)
0 −2 −3
𝑯 𝑻 = [2 0 −7]
3 7 0
(Size of Matrix 𝑯𝑻 : 3 𝑥 3)
𝑯 = −𝑯𝑻
11. Triangular Matrix. A square matrix whose non-zero elements are confined
in the upper or lower triangle.
1 4 1 4
Example: 𝑩 = [0 1 4 1] (Size of Matrix 𝑩: 4 𝑥 4)
0 0 2 5
0 0 0 3
1 0 0
Example: 𝑪 = [ 2 4 0] (Size of Matrix 𝑪: 3 𝑥 3)
−3 7 5
Arithmetic of Matrices
1. Equality of Matrices.
Two 𝑚 𝑥 𝑛 matrices 𝑨 and 𝑩 are equal if 𝑎𝑖𝑗 = 𝑏𝑖𝑗 for each 𝑖 and
𝑗.
𝑎 𝑏 𝑒 𝑓
Example: The matrices [ ] and [ ] are equal if and
𝑐 𝑑 𝑔 ℎ
only if
𝑎 = 𝑒, 𝑏 = 𝑓, 𝑐 = 𝑔, 𝑑 = ℎ.
2. Matrix Addition.
If 𝑨 and 𝑩 are 𝑚 𝑥 𝑛 matrices, then their sum is
𝑨 + 𝑩 = (𝑎𝑖𝑗 + 𝑏𝑖𝑗 )𝑚 𝑥 𝑛
1 2 5 6
Example: Let 𝑨 = [ ] and 𝑩 = [ ]. Then,
3 4 7 8
1+5 2+6
𝑨+𝑩=[ ]
3+7 4+8
6 8
=[ ]
10 12
1 2
Example: Let 𝑨 = [ ],
3 4
1 2 3(1) 3(2)
3𝑨 = 3 [ ]=[ ]
3 4 3(3) 3(4)
3 6
=[ ]
9 12
2 3
3 6 1
Example: Let 𝑨 = [ 1 3] and 𝑩 = [ ],
6 −1 8
−1 2
find the product 𝑨𝑩.
Important Properties
1. 𝑨+𝑩= 𝑩+𝑨
2. 𝑨 + (𝑩 + 𝑪) = (𝑨 + 𝑩) + 𝑪
3. (𝑘1 𝑘2 )𝑨 = 𝑘1 (𝑘2 𝑨)
4. 1𝑨 = 𝑨
5. 𝑘1 (𝑨 + 𝑩) = 𝑘1 𝑨 + 𝑘2 𝑩
6. (𝑘1 + 𝑘2 )𝑨 = 𝑘1 𝑨 + 𝑘2 𝑨
1. 𝑨𝑩 ≠ 𝑩𝑨 (in general)
2. 𝑨(𝑩𝑪) = (𝑨𝑩) 𝑪
3. 𝑨(𝑩 + 𝑪) = 𝑨𝑩 + 𝑨𝑪
4. (𝑩 + 𝑪)𝑨 = 𝑩𝑨 + 𝑪𝑨
C. Properties of Transpose
Suppose 𝑨 and 𝑩 are 𝑚 𝑥 𝑛 matrices and 𝑘 is a scalar. Then
1. (𝑨𝑇 )𝑇 = 𝑨
2. (𝑨 + 𝑩)𝑇 = 𝑨𝑇 + 𝑩𝑇
3. (𝑨𝑩)𝑇 = 𝑩𝑇 𝑨𝑇
4. (𝑘𝑨)𝑇 = 𝑘𝑨𝑇
𝑥+𝑦 𝑦 1 2
[ ]=[ ]
𝑧 𝑤+𝑧 3 4
𝑥+𝑦 =1
𝑦=2
𝑧=3
𝑤+𝑧 = 4
To solve 𝑥: 𝑥 + 𝑦 = 1 , 𝑦 = 2
𝑥+2=1
𝑥 = −1
To solve 𝑤: 𝑤 + 𝑧 = 4 , 𝑧 = 3
𝑤+3=4
𝑤=1
2𝑥 + 3𝑦 = 5 (1)
𝑥 + 7𝑦 = −1 (2)
2𝑧 + 3𝑤 = 3 (3)
𝑧 + 7𝑤 = 8 (4)
(2𝑥 + 3𝑦 = 5)
− (2𝑥 + 14𝑦 = −2)
−11𝑦 = 7
7
𝑦 = − 11
(Solve for 𝑥)
𝑥 + 7𝑦 = −1
7
𝑥 + 7 (− 11) = −1
49
𝑥 − 11 = −1
49
𝑥 = −1 + 11
38
𝑥 = 11
(2𝑧 + 3𝑤 = 3)
− (2𝑧 + 14𝑤 = 16)
−11𝑤 = −13
13
𝑤 = 11
(Solve for 𝑧)
𝑧 + 7𝑤 = 8
13
𝑧 + 7 (11) = 8
91
𝑧 + 11 = 8
91
𝑧 = 8 − 11
3
𝑧 = − 11
Example 7.3. Find elements 𝑐11 and 𝑐23 of the matrix 𝑪 =
3𝑨 − 2𝑩 given that
2 3 −1
𝑨=[ ] and
1 6 0
4 0 6
𝑩=[ ].
−1 3 −5
𝑪 = 3𝑨 − 2𝑩
2 3 −1 4 0 6
= 3[ ]− 2[ ]
1 6 0 −1 3 −5
6 9 −3 8 0 12
=[ ]−[ ]
3 18 0 −2 6 −10
6−8 9−0 −3 − 12
=[ ]
3 − (−2) 18 − 6 0 − (−10)
−2 9 −15
=[ ]
5 12 10
Example 7.4. If 𝑨 = [
1 2
] and 𝑩 = [
−2 3
] , find
3 4 5 7
(a) −2𝑨 + 3𝑩𝑇 , (b) 𝑨𝑇 (𝑨 − 𝑩).
1 2 1 3
𝑨=[ ] 𝑨𝑇 = [ ]
3 4 2 4
−2 3 −2 5
𝑩=[ ] 𝑩𝑇 = [ ]
5 7 3 7
(b) 𝑨𝑇 (𝑨 − 𝑩)
= [1 3] ([
1 2] − [−2 3])
2 4 3 4 5 7
1 − (−2) 2 − 3
= [1 3] ([ ])
2 4 3−5 4−7
=[
1 3] [ 3 −1]
2 4 −2 −3
1(3) + 3(−2) 1(−1) + 3(−3)
=[ ]
2(3) + 4(−2) 2(−1) + 4(−3)
=[
3 − 6 −1 − 9 ]
6 − 8 −2 − 12
= [−3 −10]
−2 −14
Where 𝑎𝑖𝑗 pertains to the coefficients of the variables in the 𝑖th row and 𝑗th column
of the linear system and the numbers 𝑏1 , 𝑏2 , … , 𝑏𝑚 are called the constants of the
system.
Note that if all the constants are zero in the linear system, it is said to be
homogeneous; otherwise, it is nonhomogeneous.
1 7 𝑥1 + 𝑥2 = 2
Example: 𝑥1 = − 3 and 𝑥2 = 3 is a solution of { .
2𝑥1 − 𝑥2 = −3
Augmented Matrix. The system of linear equations can be written in matrix form
by entirely dropping the variables forming what we call as an augmented matrix (see
below).
𝑥1 + 𝑥2 = 2 1 1 2
2𝑥1 − 𝑥2 = −3 [ ]
2 −1 −3
3𝑥1 − 2𝑥2 + 𝑥3 = 0 3 −2 1 0
−𝑥1 + 5𝑥3 = 0 [−1 0 5 0]
4𝑥2 − 7𝑥3 = 0 0 4 −7 0
Two matrices are row equivalent if one can be obtained from the other through a
sequence of elementary row operations. The procedure of carrying out elementary
row operations on a matrix to obtain a row-equivalent matrix is called row
reduction.
Example Solve the following systems of linear equations using (a) Gaussian
7.5. elimination and (b) Gauss-Jordan elimination.
1. 𝑥1 + 𝑥2 = 2
2𝑥1 − 𝑥2 = −3
1 1 2
The augmented matrix is [ ] and the goal is a
2 −1 −3
matrix in
1 𝑐12 𝑑1
row-echelon form, [ ].
0 1 𝑑2
1 1 2 1 1 2
[ ] → [ ]
2 −1 −3 0 −3 −7
1
b. To make 𝑎22 = 1, do 𝑅2 ∗ = − 3 𝑅2
1
1 1 2 𝑎21 : 𝑐21 = − 3 (0) = 0
[ ] : 1
0 −3 −7 𝑎22 : 𝑐22 = − (−3) = 1
3
1 7
𝑏2 : 𝑑2 = − 3 (−7) =3
1 1 2 1 1 2
[ ] → [0 1 3]
7
0 −3 −7
Do back substitution:
1 1 2 → 1(𝑥1 ) + 1(𝑥2 ) = 2 (1)
[0 1 3] →
7 7
0(𝑥1 ) + 1(𝑥2 ) = 3 (2)
7
From Eqn. (2): 0(𝑥1 ) + 1(𝑥2 ) = 3
7
𝑥2 = 3
1 1 2
The augmented matrix is [ ] and the goal is a
2 −1 −3
matrix in
1 0 𝑑1
reduced row-echelon form, [ ].
0 1 𝑑2
1 1 2 1 1 2
[ ] → [ ]
2 −1 −3 0 −3 −7
1
b. To make 𝑎22 = 1, do 𝑅2 ∗ = − 3 𝑅2
1
1 1 2 𝑎21 : 𝑐21 = − 3 (0) = 0
[ ] : 1
0 −3 −7 𝑎22 : 𝑐22 = − 3 (−3) = 1
1 7
𝑏2 : 𝑑2 = − 3 (−7) = 3
1 1 2 1 1 2
[ ] → [0 1 3]
7
0 −3 −7
c. To make 𝑎12 = 0, do 𝑅1 ∗ = 𝑅1 − 𝑅2
1 1 2 𝑎11 : 𝑐11 = 1 − 0 = 1
[0 1 3] :
7 𝑎12 : 𝑐12 = 1 − 1 = 0
7 1
𝑏1 : 𝑑1 = 2 − 3 = − 3
1
1 1 2 1 0 −3
[0 7] → [
1 3 7 ]
0 1 3
7
From Eqn. (2): 0(𝑥1 ) + 1(𝑥2 ) = 3
7
𝑥2 = 3
1
From Eqn. (1): 1(𝑥1 ) + 0(𝑥2 ) = − 3
1
𝑥1 = − 3
2. 2𝑥 + 6𝑦 + 𝑧 = 7
𝑥 + 2𝑦 − 𝑧 = −1
5𝑥 + 7𝑦 − 4𝑧 = 9
2 6 1 7 1 2 −1 −1
[1 2 −1 −1] → [2 6 1 7 ]
5 7 −4 9 5 7 −4 9
1 2 −1 −1 1 2 −1 −1
[2 6 1 7 ] → [0 2 3 9 ]
5 7 −4 9 5 7 −4 9
1 2 −1 −1 1 2 −1 −1
[0 2 3 9 ] → [0 2 3 9 ]
5 7 −4 9 0 −3 1 14
1
d. To make 𝑎22 = 1, do 𝑅2 ∗ = 2 𝑅2 .
1
1 2 −1 −1 𝑎21 : 𝑐21 = 2 (0) = 0
[0 2 3 9 ] : 1
𝑎22 : 𝑐22 = 2 (2) = 1
0 −3 1 14 1 3
𝑎23 : 𝑐23 = (3) =
2 2
1 9
𝑏2 : 𝑑2 = (9) =
2 2
1 2 −1 −1 1 2 −1 −1
3 9
[0 2 3 9 ] → [0 1 2 2
]
0 −3 1 14 0 −3 1 14
1 2 −1 −1 1 2 −1 −1
3 9
] → [0 1
3 9
[0 1 2 2
2 2 ]
11 55
0 −3 1 14 0 0 2 2
2
f. To make 𝑎33 = 1, do 𝑅3 ∗ = 11 𝑅3
2
1 2 −1 −1 𝑎31 : 𝑐31 = 11 (0) = 0
3 9 2
[0 1 2 2 ] : 𝑎32 : 𝑐32 = 11 (0) = 0
11 55 2 11
0 0 𝑎33 : 𝑐33 = ( )=1
2 2 11 2
2 55
𝑏3 : 𝑑3 = 11 ( 2 ) = 5
1 2 −1 −1 1 2 −1 −1
3 9
[0 1 2 3 9
2 ] → [0 1 2 ]
2
11 55
0 0 2 2
0 0 1 5
Do back substitution:
1 2 −1 −1 → 1(𝑥) + 2(𝑦) − 1(𝑧) = −1 (1)
3 9 3 9
[0 1 2 ] → 0(𝑥) + 1(𝑦) + (𝑧) = (2)
2 2 2
0 0 1 5 → 0(𝑥) + 0(𝑦) + 1(𝑧) = 5 (3)
2 6 1 7 1 2 −1 −1
[1 2 −1 −1] → [2 6 1 7 ]
5 7 −4 9 5 7 −4 9
1 2 −1 −1 1 2 −1 −1
[2 6 1 7 ] → [0 2 3 9 ]
5 7 −4 9 5 7 −4 9
1 2 −1 −1 1 2 −1 −1
[0 2 3 9 ] → [0 2 3 9 ]
5 7 −4 9 0 −3 1 14
1
d. To make 𝑎22 = 1, do 𝑅2 ∗ = 2 𝑅2 .
1
1 2 −1 −1 𝑎21 : 𝑐21 = (0) = 0
2
[0 2 3 9 ] : 𝑎22 : 𝑐22 =
1
(2) = 1
2
0 −3 1 14 1
(3) =
3
𝑎23 : 𝑐23 = 2 2
1 9
𝑏2 : 𝑑2 = (9) =
2 2
1 2 −1 −1 1 2 −1 −1
3 9
[0 2 3 9 ] → [0 1 2 2
]
0 −3 1 14 0 −3 1 14
e. To make 𝑎32 = 0, do 𝑅3 ∗ = 𝑅3 + 3𝑅2
1 2 −1 −1 1 2 −1 −1
3 9
] → [0 1
3 9
[0 1 2 2
2 2 ]
11 55
0 −3 1 14 0 0 2 2
1 2 −1 −1 1 0 −4 −10
3 9 3 9
[0 1 2 2 ] → [
0 1 2 2 ]
11 55 11 55
0 0 2 2
0 0 2 2
2
g. To make 𝑎33 = 1, do 𝑅3 ∗ = 11 𝑅3
2
1 0 −4 −10 𝑎31 : 𝑐31 = (0) = 0
11
3 9 2
[0 1 2 2 ] : 𝑎32 : 𝑐32 =
11
(0) = 0
11 55 2 11
0 0 𝑎33 : 𝑐33 = ( )=1
11 2
2 2
2 55
𝑏3 : 𝑑3 = ( )=5
11 2
1 0 −4 −10 1 0 −4 −10
3 9
[0 1 3 9
2 2 ] → [0 1 ]
2 2
11 55
0 0 2 2
0 0 1 5
3
h. To make 𝑎23 = 0, do 𝑅2 ∗ = 𝑅2 − 2 𝑅3 .
1 0 −4 −10 3
𝑎21 : 𝑐21 = 0 − (0) = 0
3 9 2
[0 1 2 2
] : 𝑎22 :
3
𝑐22 = 1 − 2 (0) = 1
0 0 1 5 𝑎23 :
3 3
𝑐23 = 2 − 2 (1) = 0
9 3
𝑏2 : 𝑑2 = 2 − 2 (5) = −3
1 0 −4 −10 1 0 −4 −10
3 9
[0 1 2 2
] → [0 1 0 −3 ]
0 0 1 5 0 0 1 5
1 0 −4 −10 1 0 0 10
[0 1 0 −3 ] → [0 1 0 −3]
0 0 1 5 0 0 1 5
3. 4𝑎 + 3𝑏 + 2𝑐 − 5𝑑 = −4
3𝑎 − 2𝑏 − 7𝑐 + 𝑑 = −18
𝑎 + 𝑏 − 3𝑐 + 5𝑑 = 14
5𝑎 − 6𝑏 + 2𝑐 + 8𝑑 = 31
4 3 2 −5 −4 1 1 −3 5 14
[3 −2 −7 1 −18] → [3 −2 −7 1 −18 ]
1 1 −3 5 14 4 3 2 −5 −4
5 −6 2 8 31 5 −6 2 8 31
1 1 −3 5 14 1 1 −3 5 14
[34 −2
3
−7
2
1
−5
−18
−4
] → [04 −5
3
2 −14
2 −5
−60
−4
]
5 −6 2 8 31 5 −6 2 8 31
e. 𝑅2 ↔ 𝑅3
1 1 −3 5 14 1 1 −3 5 14
[ 00 −5
−1
2 −14 −60
] → [ 0 −1 14
2
−25
−14
−60
−60
]
14 −25 −60 0 −5
0 −11 17 −17 −39 0 −11 17 −17 −39
1 1 −3 5 14 1 1 −3 5 14
[ 0 −1 14
2
−25
−14
−60
−60
] → [0 1 −14 25
2 −14
60
−60
]
0 −5 0 −5
0 −11 17 −17 −39 0 −11 17 −17 −39
1 1 −3 5 14 𝑎41 : 𝑐41 = 0 + 0 = 0
[ 00 1 −14 25 60 ] : 𝑎42: : 𝑐42 = −11 + 11(1) = 0
0 −68 111 240 𝑎43 : 𝑐43 = 17 + 11(−14) = −137
0 −11 17 −17 −39 𝑎44 : 𝑐44 = −17 + 11(25) = 258
𝑏4 : 𝑑4 = −39 + 11(60) = 621
1 1 −3 5 14 1 1 −3 5 14
[ 00 1
0
−14 25
−68 111
60 ] → [0
240 0
1
0
−14
−68
25
111
60 ]
240
0 −11 17 −17 −39 0 0 −137 258 621
1
i. To make 𝑎33 = 1, do 𝑅3 ∗ = − 68 𝑅3
1
1 1 −3 5 14 𝑎31 : 𝑐31 = − 68 (0) = 0
[00 1 −14 25 60 ] 1
0 −68 111 240
: 𝑎32 : 𝑐32 = − 68 (0) = 0
1
0 0 −137 258 621 𝑎33 : 𝑐33 = − (−68) = 1
68
1 −111
𝑎34 : 𝑐34 = − 68 (111) = 68
1 60
𝑏3 : 𝑑3 = − 68 (240 ) = − 17
1 1 −3 5 14 1 1 −3 5 14
0 1 −14 25 60
[0
0
1
0
−14
−68
25
111
60 ]
240
→ [0 0
111 60]
1 − −
68 17
0 0 −137 258 621 0 0 −137 258 621
1 1 −3 5 14 1 1 −3 5 14
0 1 0 1 −14 25 60
−14 25 60 111 60
[0 0
111 60] →
0 0 1 − −
1 − − 68 17
68 17 2337 2337
0 0 −137 258 621 0 0 0
[ 68 17 ]
68
k. To make 𝑎44 = 1, do 𝑅4 ∗ = 2337 𝑅4 .
1 1 −3 5 14 68
𝑎41 : 𝑐41 = 2337 (0) = 0
0 1 −14 25 60 68
1 −
111
−
60
: 𝑎42 : 𝑐42 = 2337 (0) = 0
0 0 68 17 68
0 0 2337 2337 𝑎43 : 𝑐43 = (0) = 0
0 2337
[ 68 17 ] 68 2337
𝑎44 : 𝑐44 = ( )= 1
2337 68
68 2337
𝑏4 : 𝑑4 = 2337 ( 17 ) = 4
1 1 −3 5 14 1 1 −3 5 14
0 1 −14 25 60
111 60 0 1 −14 25 60
1 − − → [0 111 60 ]
0 0 68 17 0 1 − −
2337 2337 68 17
0 0 0 0 0 0 1 4
[ 68 17 ]
Do back substitution:
→ 1(𝑎) + 1(𝑏) − 3(𝑐) + 5(𝑑) = 14 (1)
→ 0(𝑎) + 1(𝑏) − 14(𝑐) + 25(𝑑) = 60 (2)
111 60
→ 0(𝑎) + 0(𝑏) + 1(𝑐) − (𝑑) = − (3)
68 17
→ 0(𝑎) + 0(𝑏) + 0(𝑐) + 1(𝑑) = 4 (4)
1 1 −3 5 14
0 1 −14 25 60
[0 0
111 60 ]
1 − −
68 17
0 0 0 1 4
111 60
From Eqn. (3): 0(𝑎) + 0(𝑏) + 1(𝑐) − (𝑑) = −
68 17
111 60
𝑐− 𝑑 = − 17
68
111 60
𝑐− (4) = −
68 17
111 60
𝑐− = − 17
17
60 111
𝑐 = − 17 + 17
𝑐=3
the rows
and columns
are called the row vectors and the column vectors of matrix 𝑨, respectively.
As vectors, the set 𝒖1 , 𝒖2 , … , 𝒖𝑚 is either linearly independent or linearly
dependent.
𝑘1 𝒙1 + 𝑘2 𝒙2 + ⋯ + 𝑘𝑛 𝒙𝑛 = 𝟎
The figure below summarizes the type of solution for 𝑚 linear equations in 𝑛
variables 𝑨𝑿 = 𝑩.
Unique Solution: 𝑿 = 𝟎
𝑟𝑎𝑛𝑘(𝑨) = 𝑛
Always
𝑨𝑿 = 𝟎
consistent
Infinite Solutions:
𝑟𝑎𝑛𝑘(𝑨) < 𝑛, 𝑛 − 𝑟
arbitrary parameters in
solution
Unique Solution:
𝑟𝑎𝑛𝑘(𝑨) = 𝑛
Consistent:
𝑟𝑎𝑛𝑘(𝑨) = 𝑟𝑎𝑛𝑘 ([𝑨|𝑩])
Infinite Solutions:
𝑟𝑎𝑛𝑘(𝑨) < 𝑛, 𝑛 − 𝑟
𝑨𝑿 = 𝑩 arbitrary parameters in
solution
Inconsistent:
Example 7.6. Find the rank of the following matrices.
1 1 −1 3
1. 𝑨 = [2 −2 6 8]
3 5 −7 8
1 1 −1 3 1 1 −1 3
[0 −4 8 2 ] → [0 −4 8 2]
3 5 −7 8 0 2 −4 −1
1
To make 𝑎22 = 1, 𝑅2 ∗ = − 4 𝑅2 .
1
𝑎21 : 𝑐21 = − 4 (0) = 0
1
𝑎22 : 𝑐22 = − 4 (−4) = 1
1
𝑎23 : 𝑐23 = − 4 (8) = −2
1 1
𝑎24 : 𝑐24 = − 4 (2) = − 2
1 1 −1 3
[0 −4 8 2] :
0 2 −4 −1
1 1 −1 3 1 1 −1 3
1
[0 −4 8 2 ] → [0 1 −2 − ]
2
0 2 −4 −1 0 2 −4 −1
1 1 −1 3 1 1 −1 3
1 1
[0 1 −2 − ] → [0 1 −2 − ]
2 2
0 2 −4 −1 0 0 0 0
1 −2
2. 𝑨 = [ 3 −6 ]
7 −1
4 5
1 −2
[0 0 ] : 𝑎31 : 𝑐31 = 7 − 7(1) = 0
7 −1 𝑎32 : 𝑐32 = −1 − 7(−2) = 13
4 5
1 −2 1 −2
[ 0 0 ] → [0 0]
7 −1 0 13
4 5 4 5
1 −2
[0 0 ] : 𝑎41 : 𝑐41 = 4 − 4(1) = 0
0 13 𝑎42 : 𝑐42 = 5 − 4(−2) = 13
4 5
1 −2 1 −2
[ 0 0 ] → [0 0]
7 −1 0 13
4 5 0 13
𝑅4 ↔ 𝑅2
1 −2 1 −2
[ 0 0 ] → [0 13]
0 13 0 13
0 13 0 0
1
To make 𝑎22 = 1, 𝑅2 ∗ = 13 𝑅2 .
1 −2 1
𝑎21 : 𝑐21 = 13 (0) = 0
[0 13] :
1
0 13 𝑎22 : 𝑐22 = 13 (13) = 1
0 0
1 −2 1 −2
[0 13] → [0 1]
0 13 0 13
0 0 0 0
1 −2
𝑎31 : 𝑐31 = 0 − 13(0) = 0
[0 1] :
𝑎32 : 𝑐32 = 13 − 13(1) = 0
0 13
0 0
1 −2 1 −2
[ 0 1 ] → [0 1]
0 13 0 0
0 0 0 0
1. 3𝑥 + 2𝑦 = 4
2𝑥 − 𝑦 = −9
𝑥 + 3𝑦 = 13
𝑅1 ↔ 𝑅3
3 2 4 1 3 13
[2 −1 −9] → [2 −1 −9]
1 3 13 3 2 4
To make 𝑎21 = 0, 𝑅2 ∗ = 𝑅2 − 2𝑅1 .
1 3 13 1 3 13
[2 −1 −9] → [0 −7 −35]
3 2 4 3 2 4
1 3 13 1 3 13
[0 −7 −35] → [0 −7 −35]
3 2 4 0 −7 −35
1
To make 𝑎22 = 1, 𝑅2 ∗ = − 7 𝑅2 .
1
1 3 13 𝑎21 : 𝑐21 = − (0) = 0
7
[0 −7 −35] : 𝑎 : 𝑐 = − 1 (−7) = 1
22 22
0 −7 −35 1
7
𝑏3 : 𝑑2 = − 7 (−35 ) = 5
1 3 13 1 3 13
[0 −7 −35] → [0 1 5 ]
0 −7 −35 0 −7 −35
1 3 13 1 3 13
[0 1 5 ] → [0 1 5 ]
0 −7 −35 0 0 0
1 3 13
The row-equivalent matrix [𝑨|𝑩] = [0 1 5]
0 0 0
1 3
where 𝑨 = [0 1].
0 0
This example falls under Case 2 where
𝑟𝑎𝑛𝑘(𝑨) = 2 and 𝑟𝑎𝑛𝑘([𝑨|𝑩]) = 2.
1 3 13 𝑅1 : 𝑥 + 3𝑦 = 13
[0 1 5] : 𝑅2 : 𝑦=5
0 0 0
Solving for 𝑥: 𝑥 + 3𝑦 = 13
𝑥 + 3(5) = 13
𝑥 + 15 = 13
𝑥 = −2
2. 2𝑎 + 3𝑏 − 𝑐 = 1
3𝑎 − 4𝑏 + 3𝑐 = −1
2𝑎 − 𝑏 + 𝑐 = −3
3𝑎 + 𝑏 − 2𝑐 = 4
3 1 1
1
3
−
1 1 1 −
2 2 2
2 2 2 17 9 5
3 −4 3 −1 → 0 − 2 2
−
2
2 −1 1 −3 2 −1 1 −3
[3 1 −2 4] [3 1 −2 4]
3 1 1 3 1 1
1 − 1 −
2 2 2 2 2 2
17 9 5 17 9 5
0 − − → 0 − −
2 2 2 2 2 2
2 −1 1 −3 0 −4 2 −4
[3 1 −2 4] [3 1 −2 4]
3 1 1 2
1 −2 𝑎21 : 𝑐21 = − 17 (0) = 0
2 2 2 17
17 9 5𝑎22 : 𝑐22 = − (− ) = 1
0 − −2 17 2
2 2 : 2 9 9
0 −4 2 −4 𝑎23 : 𝑐23 = − ( ) = −
17 2 17
7 1 5 2 5 5
[0 −2 −2 2 ] 𝑏2 : 𝑑2 = − 17 (− 2 ) = 17
3 1 1 1 1
1 − 1
3 −
2 2 2 2 2
17 2
9 5 9 5
0 − − 0 1 −
2 2 2 → 17 17
0 −4 2 −4 0 −4 2 −4
7 1 5 7 1 5
[0 −
2
−
2 2 ] [0 − 2
−
2 2 ]
5 48
0 −4 2 −4 𝑏3 : 𝑑3 = −4 + 4 ( ) = −
7 1 5 17 17
[0 − 2 − 2 2 ]
1 1
3 −
1 1
1
3 −
2 2
1 2 2 2 9 5
2
0 1 − 17 17 →
9 5 0 1 −
17 17
2 48
0 −4 2 −4 0 0 − −
7 1 5 7 17 17
[ 0 − − 0 − 1 5
2 2 2 ] [ 2 − ]
2 2
∗ 7
To make 𝑎42 = 0, 𝑅4 = 𝑅4 + 2 𝑅2 .
1 1 7
3 −2 𝑎41 : 𝑐41 = 0 + 2 (0) = 0
1 2
7 7
2
− 17
9 5 𝑎42 : 𝑐42 = − 2 + 2 (1) = 0
0 1 17
2 48 : 𝑎43 : 𝑐43 = − 1 + 7 (− 9 ) = − 40
2 2 17 17
0 0 − 17 − 17 5 7 5 60
7 𝑏4 : 𝑑4 = 2 + 2 (17) = 17
0 − −2
1 5
[ 2
2 ]
1 1 1 1
1
3 − 1
3 −
2 2 2 2
2 9 5 2 9 5
0 1 − 0 1 −
17 17 17 17
2 48 → 2 48
0 0 − 17 −
17 0 0 − 17 −
17
7
0 − −
1 5 0 0 − 40 60
[ 2
2 2 ] [ 17 17]
17
To make 𝑎33 = 1, 𝑅3 ∗ = − 𝑅3 .
2
17
𝑎31 : 𝑐31 = − 2
(0) = 0
17
𝑎32 : 𝑐32 = − 2 (0) = 0
17 2
𝑎33 : 𝑐33 = − 2 (− 17) = 1
17 48
𝑏3 : 𝑑3 = − (− ) = 24
1 1
1 2
3 −2 2
9 5
0 1 − 17 17
2 48 :
0 0 − 17 − 17
0 0 − 40 60
[ 17 17]
1 1
3 − 1 1
1 2 2 3 −
2 9 5 1 2 2
0 1 − 2 9 5
17 17 → 0 1 −
2 48 17 17
− − 1 24
0 0 17 17 0 0 40 60
0 0 40 60 −
− [0 0
17 17]
[ 17 17 ]
40
To make 𝑎43 = 0, 𝑅4 ∗ = 𝑅4 + 17 𝑅3 .
1 1 40
3 −2 𝑎41 : 𝑐31 = 0 + 17 (0) = 0
1 2 2
9 5 40
0 1 − 17 𝑎42 : 𝑐42 = 0 + (0) = 0
17 : 40
17
40
1 24 𝑎43 : 𝑐43 = − 17 + 17 (1) = 0
0 0 40 60 60 40
[0 0 − 17 17 ]
𝑏4 : 𝑑4 = + (24) = 60
17 17
1 1 1 1
1
3 − 3 −2
2 2 1 2
2 9 5 2
0 1 − 17 9 5
17 → 0 1 − 17 17
0 0 1 24 0 0 1 24
40 60
[0 0 − 17 ] [0 0 0 60]
17
To make 𝑎21 = 0, 𝑅2 ∗ = 𝑅2 + 𝑅1 .
1 2 3 0 𝑎21 : 𝑐21 = −1 + 1 = 0
[ −1 3 2 0] : 𝑎22 : 𝑐22 = 3 + 2 = 5
2 1 −1 0 𝑎23 : 𝑐23 = 2 + 3 = 5
𝑏2 : 𝑑2 = 0 + 0 = 0
1 2 3 0 1 2 3 0
[ −1 3 2 0 ] → [ 0 5 5 0]
2 1 −1 0 2 1 −1 0
1 2 3 0 1 2 3 0
[0 5 5 0] → [ 0 5 5 0]
2 1 −1 0 0 −3 −7 0
1
To make 𝑎22 = 1, 𝑅2 ∗ = 5 𝑅2 .
1
1 2 3 0 𝑎21 : 𝑐21 = 5 (0) = 0
[0 5 5 0] : 1
𝑎22 : 𝑐22 = 5 (5) = 1
0 −3 −7 0 1
𝑎23 : 𝑐23 = 5 (5) = 1
1
𝑏2 : 𝑑2 = 5 (0) = 0
1 2 3 0 1 2 3 0
[0 5 5 0] → [ 0 1 1 0]
0 −3 −7 0 0 −3 −7 0
To make 𝑎32 = 0, 𝑅3 ∗ = 𝑅3 + 3𝑅2 .
1 2 3 0 1 2 3 0
[0 1 1 0] → [ 0 1 1 0]
0 −3 −7 0 0 0 −4 0
1
To make 𝑎33 = 1, 𝑅3 ∗ = − 𝑅3 .
4
1
1 2 3 0 𝑎31 : 𝑐31 = − 4 (0) = 0
[0 1 1 0 ] : 𝑎 : 𝑐 = − 1 (0) = 0
42 42 4
0 0 −4 0 1
1 2 3 0 𝑎431: 𝑐432 = −
3 4 (−4)
0 =1
[0 1 1 0 ] → 𝑏[ 0: 𝑑 1= −11 (0)0] = 0
4 4 4
0 0 −4 0 0 0 1 0
1 2 3 0
The row-equivalent matrix [𝑨|𝑩] = [ 0 1 1 0]
0 0 1 0
1 2 3
where 𝑨 = [ 0 1 1].
0 0 1
1 2 3 0 𝑅1 : 𝑥 + 2𝑦 + 3𝑧 = 0
[0 1 1 0] : 𝑅2 : 𝑦+𝑧 =0
0 0 1 0 𝑅3 : 𝑧=0
Solving for 𝑥: 𝑥 + 2𝑦 + 3𝑧 = 0
𝑥 + 2(0) + 3(0) = 0
𝑥+0+0=0
𝑥=0
4. 𝑎 + 4𝑏 + 𝑐 = 0
2𝑎 − 3𝑏 − 9𝑐 = 0
−𝑎 + 2𝑏 + 5𝑐 = 0
1 4 1 0 1 4 1 0
[2 −3 −9 0] → [ 0 −11 −11 0]
−1 2 5 0 −1 2 5 0
To make 𝑎31 = 0, 𝑅3 ∗ = 𝑅3 + 𝑅1 .
1 4 1 0 𝑎31 : 𝑐31 = −1 + 1 = 0
[ 0 −11 −11 0] : 𝑎32 : 𝑐32 = 2 + 4 = 6
−1 2 5 0 𝑎33 : 𝑐33 = 5 + 1 = 6
𝑏3 : 𝑑3 = 0 + 0 = 0
1 4 1 0 1 4 1 0
[ 0 −11 −11 0] → [0 −11 −11 0]
−1 2 5 0 0 6 6 0
1
To make 𝑎22 = 1, 𝑅2 ∗ = − 11 𝑅2 .
1
1 4 1 0 𝑎21 : 𝑐21 = − 11 (0) = 0
[0 −11 −11 0] : 𝑎22 : 𝑐22 = − 1 (−11) = 1
11
0 6 6 0 1
𝑎23 : 𝑐23 = − 11 (−11) = 1
1
𝑏2 : 𝑑2 = − 11 (0) = 0
1 4 1 0 1 4 1 0
[0 −11 −11 0 ] → [0 1 1 0]
0 6 6 0 0 6 6 0
1 4 1 0 1 4 1 0
[0 1 1 0 ] → [0 1 1 0]
0 6 6 0 0 0 0 0
1 4 1 0
The row-equivalent matrix [𝑨|𝑩] = [0 1 1 0]
0 0 0 0
1 4 1
where 𝑨=[0 1 1].
0 0 0
1 4 1 0 𝑅1 : 𝑎 + 4𝑏 + 𝑐 = 0
[0 1 1 0] : 𝑅2 : 𝑏+𝑐 =0
0 0 0 0
Solving for 𝑥: 𝑎 + 4𝑏 + 𝑐 = 0
𝑎 + 4(−𝑐) + 𝑐 = 0
𝑎 − 4𝑐 + 𝑐 = 0
𝑎 − 3𝑐 = 0
𝑎 = 3𝑐
Example 7.8. Find all values of 𝑎 for which the resulting linear
system has (a) a unique solution, (b) an infinite
solution, and (c) no solution.
𝑥 + 𝑦 − 𝑧 = −2
𝑥 + 2𝑦 + 𝑧 = 3
𝑥 + 2𝑦 + (𝑎2 − 5)𝑧 = 𝑎
To make 𝑎21 = 0, 𝑅2 ∗ = 𝑅2 − 𝑅1 .
1 1 −1 −2 𝑎21 : 𝑐21 = 1 − 1 = 0
[1 2 1 3 ] : 𝑎22 : 𝑐22 = 2 − 1 = 1
𝑎23 : 𝑐23 = 1 − (−1) = 2
1 2 𝑎2 − 5 𝑎
𝑏2 : 𝑑2 = 3 − (−2) = 5
1 1 −1 −2 1 1 −1 −2
[1 2 1 3 ] → [0 1 2 5]
1 2 𝑎2 − 5 𝑎 1 2 𝑎2 − 5 𝑎
To make 𝑎31 = 0, 𝑅3 ∗ = 𝑅3 − 𝑅1 .
1 1 −1 −2 𝑎31 : 𝑐31 = 1 − 1 = 0
[0 1 2 5 ] : 𝑎32 : 𝑐32 = 2 − 1 = 1
𝑎33 : 𝑐33 = 𝑎2 − 5 − (−1) = 𝑎2 − 4
1 2 𝑎2 − 5 𝑎 𝑏3 : 𝑑3 = 𝑎 − (−2) = 𝑎 + 2
1 1 −1 −2 1 1 −1 −2
[0 1 2 5 ] → [0 1 2 5 ]
1 2 𝑎2 − 5 𝑎 0 1 𝑎2 − 4 𝑎+2
To make 𝑎32 = 0, 𝑅3 ∗ = 𝑅3 − 𝑅2 .
1 1 −1 −2 𝑎31 : 𝑐31 = 0 − 0 = 0
𝑎32 : 𝑐32 = 1 − 1 = 0
[0 1 2 5 ] :
𝑎33 : 𝑐33 = 𝑎2 − 4 − 2 = 𝑎2 − 6
0 1 𝑎2 − 4 𝑎 + 2 𝑏3 : 𝑑3 = 𝑎 + 2 − 5 = 𝑎 − 3
1 1 −1 −2 1 1 −1 −2
[0 1 2 5 ] → [0 1 2 5 ]
0 1 𝑎2 − 4 𝑎 + 2 0 0 𝑎2 − 6 𝑎 − 3
𝑎2 − 6 ≠ 0
𝑎2 ≠ 6
𝑎 ≠ ±√6
𝑎2 − 6 = 0 and 𝑎−3=0
𝑎2 = 6 𝑎=3
𝑎 = ±√6
𝑎2 − 6 = 0
𝑎2 = 6
𝑎 = ±√6