Professional Documents
Culture Documents
LECTURE 12
System of Linear Equations
Objectives
2
1
8/25/2023
Example:
x1 2 x2 x3 x4 1
2 x1 5 x2 8 x3 3 x4 3
If m = n
a11 x1 a12 x2 ... a1n xn b1
a x a x ... a x b
21 1 22 2 2n n 2
......................................
an1 x1 an 2 x2 ... ann xn bn
Example:
𝑥+𝑦+𝑧 =5
ቐ2𝑥 + 3𝑦 − 𝑧 = 3
𝑥−𝑦+𝑧 = 7
2
8/25/2023
Triangle System
8
𝑥 + 2𝑦 + 3𝑧 + 4𝑡 = 5
Example: 2𝑦 + 3𝑧 − 𝑡 = 4
5𝑧 + 2𝑡 = 3
𝑡=5
Backward-Substitution
3
8/25/2023
𝑥 + 2𝑦 + 3𝑧 + 4𝑡 = 5
(a) 2𝑦 + 3𝑧 − 𝑡 = 4 𝐴ҧ =
5𝑧 + 2𝑡 = 3
𝑡=5
𝑥+𝑦+𝑧=5
(b) ቐ2𝑥 + 3𝑦 − 𝑧 = 3 𝐴ҧ =
𝑥−𝑦+𝑧 = 7
Row Operations
12
𝑅𝑖 ↔ 𝑅𝑗
k𝑅𝑖 → 𝑅𝑖 (𝑘 ≠ 0)
𝑅𝑖 + 𝑘𝑅𝑗 𝑅𝑖
4
8/25/2023
Example
13
𝑥+𝑦+𝑧 = 5
ቐ2𝑥 + 3𝑦 − 𝑧 = 3
𝑥−𝑦+𝑧 = 7
Example
14
x yz 5
2 x 3 y z 3
𝑥+𝑦+𝑧 =5
ቐ2𝑥 + 3𝑦 − 𝑧 = 3
𝑥−𝑦+𝑧 = 7
5
8/25/2023
x b
a11 a1n 1 1
x2 b2
an1 ann
xn bn
Ax b
Example
17
x1 2 x2 1
x1 x2 2
Write in matrix form: Ax = b
Solve the system using matrix inverse:
x = A-1 b
Cramer’s Rule
18
6
8/25/2023
Example
19
𝑥+𝑦+𝑧 = 5
ቐ2𝑥 + 3𝑦 − 𝑧 = 3
𝑥−𝑦+𝑧 = 7
Cramer’s Rule
20
Example
21
7
8/25/2023
Solution
22
Conclusion
23