Row reduction and RREF

The lectures introduced Gaussian elimination and RREF as a procedure, with a brief worked example. This write-up gives the precise definitions, walks through several examples of different character, and carefully proves the dimension statements — in particular, that the number of free variables exactly equals the dimension of the solution space.


1. Two normal forms for matrices

Gaussian elimination ends at one of two normal forms, depending on how far you carry it. Understanding both is useful: echelon form is easier to reach; reduced echelon form makes the solution immediately readable.

Definition — Row echelon form

A matrix is in row echelon form (REF) if:

  1. Every zero row lies below every nonzero row.
  2. In every nonzero row, the leftmost nonzero entry (called a leading entry or pivot) lies strictly to the right of the pivot in the row above it.

The pivots thus form a staircase pattern, stepping right and down.

Definition — Reduced row echelon form

A matrix is in reduced row echelon form (RREF) if it satisfies both REF conditions and: 3. Every pivot equals . 4. Every other entry in a pivot column is — not just entries below the pivot, but entries above it too.

Comparison.

In the RREF on the right, the pivot columns (columns 1, 2, and 4) each have a single and zeros everywhere else.


2. The Gauss-Jordan algorithm

The Gauss-Jordan algorithm transforms any matrix into RREF by systematically applying the three elementary row operations:

  1. Add a scalar multiple of one row to another ()
  2. Swap two rows ()
  3. Scale a row by a nonzero scalar (, )

Each operation is reversible, so the solution set of a linear system does not change when these are applied to its augmented matrix.

Algorithm.

Repeat the following on the submatrix not yet processed:

  1. Find the leftmost column with a nonzero entry. If none exists, the matrix is already in RREF.
  2. Swap (if necessary) to bring a nonzero entry to the top of that column.
  3. Scale the top row so the leading entry becomes . This entry is the pivot.
  4. Eliminate: for every other row (both above and below), subtract the appropriate multiple of the pivot row to make its entry in the pivot column zero.
  5. Move down one row and right to the next unprocessed column. Repeat.

A pivot column is a column in which a pivot was placed. All other columns are free columns.


3. Worked examples

Example 1 — Unique solution ( system)

System:

Augmented matrix and reduction:

RREF reached. Pivot columns: 1 and 2. No free variables.

Solution: , — a unique point in .


Example 2 — One free variable ( system)

This is the system from Lecture 4.

System:

Augmented matrix and reduction:

RREF reached. Pivot columns: 1 () and 3 (). Free column: 2 ().

Reading off the solution: Set (free parameter, ):

  • From row 2:
  • From row 1:

Parametric form:

The solution set is a line in . The null space (homogeneous solution) is , which has dimension — matching the free variable.


Example 3 — Two free variables ( system)

System:

Augmented matrix and reduction:

, :

:

:

RREF reached. Pivot columns: 1 () and 3 (). Free columns: 2 () and 4 ().

Reading off the solution: Set , (free parameters):

  • From row 2:
  • From row 1:

Parametric form:

The solution set is a 2-dimensional flat in (an affine plane passing through ). The null space of the coefficient matrix is , a -dimensional subspace of — matching the free variables.


Example 4 — Inconsistent system

System:

Reduction:

The second row reads , i.e., — a false equation. The system is inconsistent: it has no solution.

The criterion. A system is inconsistent if and only if, after row reduction, the augmented matrix contains a row of the form with . The coefficient matrix has a zero row, but the augmented matrix does not: this is the signature of inconsistency.


Example 5 — Unique solution ( system)

System:

(Observe that is a solution by inspection: , , .)

Augmented matrix and reduction:

Now eliminate upwards:

RREF reached. All three columns are pivot columns. No free variables.

Solution: , , — the unique solution.


4. Pivot columns and free columns — summary

After reducing to RREF, the structure of the solution set is completely determined:

SituationConclusion
Augmented matrix has a row with System is inconsistent (no solution)
No such row, and 0 free variablesSystem has a unique solution (a single point)
No such row, and free variablesSystem has infinitely many solutions (a -dimensional family)

When solutions exist:

  • Pivot variables are determined: each is expressed in terms of the free variables by its row.
  • Free variables are parameters: each can be set to any real number independently.

5. Uniqueness of RREF

Theorem — Uniqueness of RREF

Given a matrix , its RREF is unique: no matter which sequence of valid elementary row operations is applied, the result is always the same matrix.

In particular, the set of pivot column indices is uniquely determined by .

The proof is more involved than it looks — it requires showing that the staircase structure and the pattern above and below each pivot are forced by the matrix itself, not by the reduction path. A careful proof appears in Hefferon, Ch. 1, Theorem II.3.6.

Why it matters. Because RREF is unique, statements like “column 2 is free” or “the rank is 3” are well-defined properties of the original matrix, not of the reduction process. Without uniqueness, one could reach different RREFs by different paths and the pivot/free distinction would be ambiguous.


6. The dimension of the null space

The worked examples all confirmed the same pattern: the dimension of the null space equalled the number of free variables. This is not a coincidence.

Theorem — Dimension of the null space

Let be an matrix. Suppose the RREF of has pivot columns (equivalently, pivots). Then:

where is the null space (solution set of the homogeneous system).

The number is also the number of free variables in the RREF.

Proof.

Let be the free columns of the RREF (i.e., the columns without a pivot), and be the pivot columns. We will exhibit an explicit basis of with exactly vectors.

Constructing solutions. For each free variable (), define a vector by:

  • Set and for all (set the -th free variable to , all others to ).
  • Determine each pivot variable from its row in the RREF: the row corresponding to pivot column reads , so is the negative of those free-variable terms.

The resulting vector satisfies by construction (since it solves the RREF system with all terms equal to ), so .

These vectors span . Let be any solution. Write its free-variable components as . Then : the linear combination assigns to the -th free variable in total, and each pivot variable is then forced to agree with because both and solve the same RREF system with the same free-variable values.

These vectors are linearly independent. Suppose . Look at the coordinate in position (the -th free column). In , this coordinate is ; in for , this coordinate is (by construction). So the -coordinate of the linear combination is . Since the combination equals , . This holds for every , so all coefficients are zero.

Corollary. , where is the number of pivots. This is the rank-nullity theorem in matrix form. It says: pivots free variables total variables.


7. Connecting everything: a worked example

We combine the RREF computation, the parametric solution, and the dimension count for Example 3.

The coefficient matrix was

  • variables, pivot columns (columns 1 and 3), free variables (columns 2 and 4).
  • , confirmed by the explicit basis .
  • : the column space of is 2-dimensional inside .
  • Rank-nullity: .

The direction vectors and are the and from the proof: sets , and reads off , ; sets , and reads off , .


8. Summary

QuantityDefinitionValue from RREF
Number of pivot columns
Number of free columns
Dimension of solution space (when consistent)

The three-way classification of consistent linear systems:

Free variablesSolution setDimension
Single point
Line in
Plane in
-dimensional flat

The full solution set of is a translate of the null space: any particular solution plus all elements of . The null space is what the course calls the homogeneous part; it is always a subspace. The solution set of the non-homogeneous system is a subspace only in the trivial case .