Lecture 4. Systems of Linear Equations Using Matrices and Determinants
Lecture 4. Systems of Linear Equations Using Matrices and Determinants
E
N
ADVANCED G
MATHEMATICS FOR
IE 7
0
LECTURE 4
SYSTEMS OF LINEAR EQUATIONS USING MATRICES AND DETERMINANTS 4
The rules for performing operations on matrices are called elementary row
operations, and they are given in the following theorem:
4𝑥 − 2𝑦 − 3𝑧 = 8
5𝑥 + 3𝑦 − 4𝑧 = 4
6𝑥 − 4𝑦 − 5𝑧 = 12
4 −2 −3 8
[5 3 −4| 4 ]
6 −4 −5 12
Gauss-Jordan Method
STEPS:
1. Multiply the top row by a scalar so that top row's leading entry (also known
as the pivot, is the first non-zero entry in a row) becomes 1.
2. Add/subtract multiples of the top row to the other rows so that all other
entries in the column containing the top row's leading entry are all zero.
3. Repeat the previous steps until the left hand side of the augmented matrix
(a matrix of numbers in which each row represents the constants from one
equation and each column represents all the coefficients for a single
variable) becomes an identity matrix.
4𝑥 − 2𝑦 − 3𝑧 = 8
5𝑥 + 3𝑦 − 4𝑧 = 4
6𝑥 − 4𝑦 − 5𝑧 = 12
4 −2 −3 8
[5 3 −4| 4 ]
6 −4 −5 12
1 −1/2 −3/4 2
[5 3 −4 | 4 ]
6 −4 −5 12
Add/subtract multiples of the top row to the other rows so that all other
entries in the column containing the top row's leading entry are all zero.
1 −1/2 −3/4 2
[5 3 −4 | 4 ] −5𝑅1 + 𝑅2
6 −4 −5 12 −6𝑅1 + 𝑅3
1 −1/2 −3/4 2
[0 11/2 −1/4| −6]
0 −1 −1/2 0
Repeat the previous steps until the left hand side of the augmented matrix
becomes an identity matrix.
1 −1/2 −3/4 2
2
[0 11/2 −1/4| −6] 11
𝑅2
0 −1 −1/2 0
1
1 −1/2 −3/4 2 2
𝑅2 + 𝑅1
[0 1 −1/22| −12/11]
𝑅2 + 𝑅3
0 −1 −1/2 0
1 0 −17/22 16/11
[0 1 −1/22 | −12/11] 11
− 𝑅3
0 0 −6/11 −12/11 6
17
1 0 −17/22 16/11 22
𝑅3 + 𝑅1
[0 1 −1/22 | −12/11] 1
𝑅3 + 𝑅2
22
0 0 1 2
𝒙 𝒚 𝒛
1 0 0 3
[0 1 0| −1]
0 0 1 2
i. 2 unknowns
𝑎 𝑥 + 𝑏1 𝑦 = 𝑐1
{ 1
𝑎2 𝑥 + 𝑏2 𝑦 = 𝑐2
𝑎1 𝑏1 𝑐 𝑏1 𝑎 𝑐1
𝐷=| | 𝐷𝑥 = | 1 | 𝐷𝑦 = |𝑎1 𝑐2 |
𝑎2 𝑏2 𝑐2 𝑏2 2
𝐷𝑥 𝐷𝑦
𝑥= 𝑦=
𝐷 𝐷
Example: Find the solution set of the system using Cramer’s rule.
2𝑥 − 5𝑦 = 16
1. {
4𝑥 + 3𝑦 = 6
𝑎 𝑏1
𝐷=| 1 |
𝑎2 𝑏2
2 −5
𝐷=| |
4 3
𝐷 = (2)(3) − (4)(−5)
𝐷 = 6 − (−20)
𝐷 = 26
𝑐 𝑏1
𝐷𝑥 = | 1 |
𝑐2 𝑏2
16 −5
𝐷𝑥 = | |
6 3
𝐷𝑥 = (16)(3) − (6)(−5)
𝐷𝑥 = 48 − (−30)
𝐷𝑥 = 78
2 16
𝐷𝑦 = | |
4 6
𝐷𝑦 = (2)(6) − (4)(16)
𝐷𝑦 = 12 − 64
𝐷𝑦 = −52
𝐷𝑥 78
𝑥= = =𝟑
𝐷 26
𝐷𝑦 −52
𝑦= = = −𝟐
𝐷 26
ii. 3 unknows
𝑎1 𝑥 + 𝑏1 𝑦 + 𝑐1 𝑧 = 𝑑1
{𝑎2 𝑥 + 𝑏2 𝑦 + 𝑐2 𝑧 = 𝑑2
𝑎3 𝑥 + 𝑏3 𝑦 + 𝑐3 𝑧 = 𝑑3
𝑎1 𝑏1 𝑐1 𝑑1 𝑏1 𝑐1
Then 𝐷 = |𝑎2 𝑏2 𝑐2 | 𝐷𝑥 = |𝑑2 𝑏2 𝑐2 |
𝑎3 𝑏3 𝑐3 𝑑3 𝑏3 𝑐3
𝑎1 𝑑1 𝑐1 𝑎1 𝑏1 𝑑1
𝐷𝑦 = |𝑎2 𝑑2 𝑐2 | 𝐷𝑧 = |𝑎2 𝑏2 𝑑2 |
𝑎3 𝑑3 𝑐3 𝑎3 𝑏3 𝑑3
If 𝐷 ≠ 0, 𝑡ℎ𝑒𝑛
𝐷𝑥 𝐷𝑦 𝐷𝑧
𝑥= 𝑦= 𝑧=
𝐷 𝐷 𝐷
Example: Find the solution set of the system using Cramer’s rule.
4𝑥 − 2𝑦 − 3𝑧 = 8
1. { 5𝑥 + 3𝑦 − 4𝑧 = 4
6𝑥 − 4𝑦 − 5𝑧 = 12
𝑎1 𝑏1 𝑐1
𝐷 = |𝑎2 𝑏2 𝑐2 |
𝑎3 𝑏3 𝑐3
4 −2 −3 4 −2
𝐷 = |5 3 −4| 5 3 |
6 −4 −5 6 −4
𝑑1 𝑏1 𝑐1
𝐷𝑥 = |𝑑2 𝑏2 𝑐2 |
𝑑3 𝑏3 𝑐3
8 −2 −3 8 −2
𝐷𝑥 = | 4 3 −4| 4 3|
12 −4 −5 12 −4
𝑎1 𝑑1 𝑐1
𝐷𝑦 = |𝑎2 𝑑2 𝑐2 |
𝑎3 𝑑3 𝑐3
4 8 −3 4 8
𝐷𝑦 = |5 4 −4| 5 4 |
6 12 −5 6 12
𝑎1 𝑏1 𝑑1
𝐷𝑧 = |𝑎2 𝑏2 𝑑2 |
𝑎3 𝑏3 𝑑3
4 −2 8 4 −2
𝐷𝑧 = |5 3 4 |5 3 |
6 −4 12 6 −4
𝐷𝑧 −24
𝑧= = =𝟐
𝐷 −12