Gaussian elimination splits cleanly into a small number of stages — preparing the augmented matrix, reducing it forward, classifying columns as pivot or free, and reading the solution by back substitution or Gauss-Jordan. The table below collects each stage alongside what happens in it and what the next step receives as input, providing a single-page workflow card for the procedure.
The stages below are not all of the same kind. The first two happen for every system and in that order; the third is a fork, where two different amounts of work lead to the same solution set. Separating the compulsory part from the choice is what makes the cost comparison meaningful — the elimination is paid either way, and only the reading differs.
Linear systems · the algorithm
Gaussian elimination, stage by stage
Two stages are compulsory and the third is a choice. Forward elimination and classification happen once; after that, back substitution and Gauss–Jordan reach the same solution set by different amounts of work.
5stages
Compulsory — every system, every time2
1swaps and row additions, left to right
[A∣b]→ row echelon form Sweep column by column, using each pivot to zero everything beneath it. This is the expensive stage at roughly 32n3 operations, and it is where partial pivoting belongs — choosing the largest available pivot rather than the first nonzero one. 2and check for [0⋯0∣d=0] pivot columns vs free columns
Everything diagnostic happens here. The pivot count is the rank, the free columns are the parameters, and a contradiction row settles solvability before any solution is attempted. A choice — two ways to read the answer2
3solve upward from the last pivot row
Less arithmetic: roughly n2 operations on top of the elimination, and no further row operations at all. The usual choice by hand and the one every numerical library uses, since the triangular form is already enough to solve from. 4zero above the pivots, scale pivots to 1 continue to reduced row echelon form
Roughly 50% more arithmetic than back substitution for the same solution, so it is not the method of choice for solving. Its value is elsewhere: the RREF is unique, which makes it the right form for reading a null space basis or inverting a matrix. What comes out1
5decided at the classification stage
a point, or xp+Null(A), or empty Never anything else. Unique when every column has a pivot, a translated subspace when some do not, empty when a contradiction row appeared — and which of the three it is was known before the solution was computed.
The classification stage is the one most easily skipped and the one that carries the most. Before any solution is written down, the pivot positions already give the rank, the free columns already give the number of parameters, and a contradiction row already settles that there is no solution at all. Work done after that point is filling in a shape that has already been determined.
Between the two readings, back substitution wins on arithmetic and Gauss–Jordan wins on form. Continuing to the reduced row echelon form costs roughly half again as much for the same answer, which is a poor trade if solving is the goal. It is the right trade when the form is the goal — the RREF is unique where the REF is not, so it is what a null space basis, a matrix inverse, or a comparison between two matrices has to be read from.