Augmented matrices: the x's and y's are overhead
A system of equations like
carries around the variables , as pure decoration. All the mathematical content is in the coefficients and constants — the and are just labels dressed up as variables. Strip them off and you get the augmented matrix :
Column 1 holds the coefficients of , column 2 holds the coefficients of , and the column after the bar holds the right-hand sides. The variables are implied by position. Everything that follows is pure matrix surgery.
The three legal row operations
The soul of the algorithm is this: each operation rewrites the system into an equivalent one — same solution set, different appearance. There are exactly three legal operations:
- Swap two rows:
- Scale a row by a nonzero constant: (with )
- Add a multiple of one row to another:
Why are these legal? Each corresponds to a valid equation manipulation:
- Swapping equations: the ORDER of equations in a system is irrelevant.
- Scaling an equation: multiplying both sides by the same nonzero constant.
- Row-combining: adding the same thing (a multiple of another equation) to both sides.
Any sequence of these three operations preserves the solution set. This is the formal justification of everything you did informally in the Algebra stratum — you were doing row operations, and now they have names. The operations are sacred. Don't invent a fourth one; I will find out.
Forward elimination: building the staircase
Row Echelon Form (REF) is the target of forward elimination. A matrix is in REF when:
- All zero rows are at the bottom.
- Each nonzero row's pivot (leftmost nonzero entry) is strictly to the right of the pivot in the row above.
The picture is a staircase: each row's leading entry steps to the right compared to the previous one. Here's the forward-elimination procedure:
- Find the leftmost nonzero column. Its first nonzero entry becomes the pivot.
- If needed, swap rows to bring a nonzero entry to the pivot position.
- Use Row Operation 3 to zero out everything BELOW the pivot.
- Move to the submatrix below and to the right of the pivot; repeat.
Example: Solve , , .
: .
: .
: .
This is REF. Three pivots visible.
Back-substitution and RREF
From REF, back-substitution solves the system bottom-up. The bottom row says . Middle row: . Top row: .
Reduced Row Echelon Form (RREF) is the fully digested form: each pivot is , and every entry above AND below each pivot is . RREF requires additionally zeroing out above each pivot (more row operations), but gives you the solution directly without back-substitution.
Reading the verdict: three possible outcomes
After elimination, one of three things happens:
-
Unique solution: The matrix has pivots for unknowns. No free variables. One solution.
-
No solution: A row of the form with appears. This says "," which is false. Inconsistent system.
-
Infinitely many solutions: Pivots are present, but fewer than the number of unknowns. The "free variables" (columns without pivots) can take any value, and the pivot variables are expressed in terms of them. Parametrized solution set.
The pivot count is the first sighting of what the Vector Spaces stratum will call rank. In the next stratum, rank + nullity = is the fundamental conservation law of linear algebra — and pivot counting is exactly how you compute rank from elimination. File that away: it's going to blow the lid off everything.
Finding by row-reducing
Here's a beautiful consequence of the same algorithm. Form the augmented matrix — the matrix side-by-side with the identity matrix. Run elimination on the whole thing until the left side becomes . Whatever the right side becomes is .
Why does this work? Every row operation is multiplication by an elementary matrix on the left. So the sequence of operations that transforms is multiplication by , and means . Since we apply the same operations to , the right side becomes . It's beautiful and it should make you a little furious that nobody explains it this way the first time.
Example: Find the inverse of .
: .
: .
: .
: .
So . Check: , and the formula gives . Agreement. Elimination eats the inverse problem too.