NoteThe system of 3 equations in 3 unknowns
2x₁ + x₂ − x₃ = 8
−3x₁ − x₂ + 2x₃ = −11
−2x₁ + x₂ + 2x₃ = −3
The last column of the matrix holds the constants: this is the augmented matrix [A | b].
StartStart with the augmented matrix [A | b]
A is 3×4. Work column by column from left to right. The current pivot row is called r (starting at row 1).
Allowed row operations (they never change the rank): swap two rows, multiply a row by a nonzero number, add a multiple of one row to another.
21−18−3−12−11−212−3
PivotPivot selection (column 1)
pivot = a₁₁ = 2
Scan column 1 from row 1 downward: the first nonzero entry is a₁₁ = 2 (row 1). It already sits in the pivot position (1, 1).
21−18−3−12−11−212−3
Row multiplyRow multiplication
R₁ ← (1/2)·R₁
Divide row 1 by the pivot 2 (multiply by 1/2 = 1/2) so the pivot becomes 1.
new R₁ = [2, 1, -1, 8] · (1/2) = [1, 1/2, -1/2, 4]
112−124−3−12−11−212−3
Row additionElimination below the pivot (column 1)
R₂ ← R₂ + 3·R₁
Goal: turn a₂₁ = -3 into 0 using the pivot row R₁. (R₂ ← R₂ - (-3)·R₁)
new R₂ = [-3, -1, 2, -11] - (-3)·[1, 1/2, -1/2, 4] = [0, 1/2, 1/2, 1]
112−124012121−212−3
Row additionElimination below the pivot (column 1)
R₃ ← R₃ + 2·R₁
Goal: turn a₃₁ = -2 into 0 using the pivot row R₁. (R₃ ← R₃ - (-2)·R₁)
new R₃ = [-2, 1, 2, -3] - (-2)·[1, 1/2, -1/2, 4] = [0, 2, 1, 5]
112−1240121210215
PivotPivot selection (column 2)
pivot = a₂₂ = 1/2
Scan column 2 from row 2 downward: the first nonzero entry is a₂₂ = 1/2 (row 2). It already sits in the pivot position (2, 2).
112−1240121210215
Row multiplyRow multiplication
R₂ ← (2)·R₂
Divide row 2 by the pivot 1/2 (multiply by 1/1/2 = 2) so the pivot becomes 1.
new R₂ = [0, 1/2, 1/2, 1] · (2) = [0, 1, 1, 2]
112−12401120215
Row additionElimination below the pivot (column 2)
R₃ ← R₃ - 2·R₂
Goal: turn a₃₂ = 2 into 0 using the pivot row R₂. (R₃ ← R₃ - (2)·R₂)
new R₃ = [0, 2, 1, 5] - (2)·[0, 1, 1, 2] = [0, 0, -1, 1]
112−124011200−11
PivotPivot selection (column 3)
pivot = a₃₃ = -1
Scan column 3 from row 3 downward: the first nonzero entry is a₃₃ = -1 (row 3). It already sits in the pivot position (3, 3).
112−124011200−11
Row multiplyRow multiplication
R₃ ← (-1)·R₃
Divide row 3 by the pivot -1 (multiply by 1/(-1) = -1) so the pivot becomes 1.
new R₃ = [0, 0, -1, 1] · (-1) = [0, 0, 1, -1]
112−1240112001−1
ResultRow echelon form (REF) reached
Each pivot is 1, each pivot lies to the right of the pivot above it, and everything below a pivot is 0.
Number of pivots = 3.
112−1240112001−1
Row additionEliminate above the pivot (column 3)
R₁ ← R₁ + 1/2·R₃
Goal: turn a₁₃ = -1/2 into 0 using the pivot row R₃. (R₁ ← R₁ - (-1/2)·R₃)
new R₁ = [1, 1/2, -1/2, 4] - (-1/2)·[0, 0, 1, -1] = [1, 1/2, 0, 7/2]
1120720112001−1
Row additionEliminate above the pivot (column 3)
R₂ ← R₂ - R₃
Goal: turn a₂₃ = 1 into 0 using the pivot row R₃. (R₂ ← R₂ - (1)·R₃)
new R₂ = [0, 1, 1, 2] - (1)·[0, 0, 1, -1] = [0, 1, 0, 3]
1120720103001−1
Row additionEliminate above the pivot (column 2)
R₁ ← R₁ - 1/2·R₂
Goal: turn a₁₂ = 1/2 into 0 using the pivot row R₂. (R₁ ← R₁ - (1/2)·R₂)
new R₁ = [1, 1/2, 0, 7/2] - (1/2)·[0, 1, 0, 3] = [1, 0, 0, 2]
10020103001−1
ResultReduced row echelon form (RREF) reached
Every pivot is 1 and is the only nonzero entry in its column. The RREF of a matrix is unique.
10020103001−1
NoteCompare the ranks
rank(A) = 3
rank([A | b]) = 3
Number of unknowns n = 3
rank(A) = rank([A | b]) = n: exactly one solution.
ResultRead the unique solution from the RREF
x₁ = 2
x₂ = 3
x₃ = −1
CheckSubstitute into the original equations
Equation 1: 8 = 8 ✓
Equation 2: −11 = −11 ✓
Equation 3: −3 = −3 ✓