Solve a 3x3 system starting from a given upper-triangular row
echelon form. Work upward from the bottom row: normalize each
pivot to 1, then use that row to eliminate the same column from
all rows above it. Each step isolates one more variable.
Example
Use the upper-triangular system to solve from the bottom row upward.
highlighted = computed this step
Step 1 — Set up
Start with the augmented matrix.
100210−131292
Step 2 — Back-sub row 1
Update row 1 using row 3: r1 <- r1 + r3.
100210031492
Step 3 — Back-sub row 2
Update row 2 using row 3: r2 <- r2 - 3*r3.
100210001432
Step 4 — Back-sub row 1
Update row 1 using row 2: r1 <- r1 - 2*r2.
100010001-232
Step 5 — Result
Read the solution: x1 = -2, x2 = 3, x3 = 2.
100010001−232,solution: x1=−2,x2=3,x3=2
back-substitutionAfter forward elimination produces an upper-triangular matrix, work upward row by row: first normalize the pivot to 1, then subtract multiples of that row from all rows above to zero out the pivot column above.
pivot-normalizationMultiply a row by the reciprocal of its leading (pivot) entry so the pivot becomes exactly 1. This enables clean elimination of that column in subsequent steps.