Systems of Linear Equations
The column after the divider is the right-hand side b.
Step-by-step solution
- 1
Set up the augmented matrix
Write the 3 equations in 3 unknowns as one block matrix [A ∣ b]; the last column is the right-hand side.
11162-11312-12 - 2
Partial pivot: swap R1 ↔ R2
Bring the largest-magnitude entry of column 1 into row 1 to use it as the pivot.
2-113111612-12 - 3
Normalize R1
Divide row 1 by 2 so the pivot becomes 1.
1-1/21/23/2111612-12 - 4
Clear column 1
R2 → R2 − (1)·R1 · R3 → R3 − (1)·R1
1-1/21/23/203/21/29/205/2-3/21/2 - 5
Partial pivot: swap R2 ↔ R3
Bring the largest-magnitude entry of column 2 into row 2 to use it as the pivot.
1-1/21/23/205/2-3/21/203/21/29/2 - 6
Normalize R2
Divide row 2 by 5/2 so the pivot becomes 1.
1-1/21/23/201-3/51/503/21/29/2 - 7
Clear column 2
R1 → R1 − (-1/2)·R2 · R3 → R3 − (3/2)·R2
101/58/501-3/51/5007/521/5 - 8
Normalize R3
Divide row 3 by 7/5 so the pivot becomes 1.
101/58/501-3/51/50013 - 9
Clear column 3
R1 → R1 − (1/5)·R3 · R2 → R2 − (-3/5)·R3
100101020013 - 10
Read off the solution
The left half is the identity matrix, so each row gives one variable directly.
100101020013 - 11
Result
x₁ = 1, x₂ = 2, x₃ = 3