A matrix is in row echelon form if:
Example (REF):
\[ \begin{pmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 0 & 0 & 0 \end{pmatrix} \]The rank is the number of non-zero rows in its row echelon form (or number of pivots).
Rank tells us:
Example: rank 2 matrix in 3D → spans a plane (dimension 2).
For system Ax = b (m equations, n variables):