Row Echelon Form

A matrix is in row echelon form if:
1] All zero rows are at the bottom
2] Each pivot is to the right of the one above it
3] All entries below a pivot are zero

Reduced Row Echelon Form

A matrix in REF is in reduced row echelon form if additionally:
4] Each pivot is 1
5] Each pivot is the only non-zero entry in its column

gaussian elimination transforms a matrix into REF (forward elimination) or RREF (Gauss-Jordan elimination).

The number of pivots equals the rank of the matrix.

Pivot columns vs free columns

When solving Ax = b:
Pivot columns correspond to basic variables, determined by back-substitution (solving from the bottom row upward, each pivot variable in terms of the ones already solved).
Non-pivot columns correspond to free variables (can be set to any value).

In the REF example above, columns 1, 2, 4 have pivots, column 3 doesn’t. So is free — the solution is parameterized by it.

Number of free variables null space.