Theory ofIntelligence
Index
Linear AlgebraBook Index: Letter R

Rank of a Matrix and Echelon Forms

The fundamental dimension of information in a matrix, determined by row reduction into echelon and reduced echelon forms.

functionsMathematical Representation
rank⁡(A)=number of non-zero rows in row-echelon form\operatorname{rank}(A) = \text{number of non-zero rows in row-echelon form}

What Does the Rank of a Matrix Really Measure?

When you write down a matrix with mm rows and nn columns:

A=[a11a12…a1na21a22…a2n⋮⋮⋱⋮am1am2…amn]A = \begin{bmatrix} a_{11} & a_{12} & \dots & a_{1n} \\ a_{21} & a_{22} & \dots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \dots & a_{mn} \end{bmatrix}

you might think it contains mm independent equations or pieces of information. But what if one row is simply a linear combination of the other rows?

lightbulb

The rank of a matrix measures the number of truly independent rows (or columns) that the matrix contains.

In geometrical terms:

  • In a 3D system, if rank⁡(A)=3\operatorname{rank}(A) = 3, the vectors span full 3D space (volume).
  • If rank⁡(A)=2\operatorname{rank}(A) = 2, the vectors are compressed into a 2D plane (area).
  • If rank⁡(A)=1\operatorname{rank}(A) = 1, all rows are collinear along a single line (length).
  • If rank⁡(A)=0\operatorname{rank}(A) = 0, it is the zero matrix (a single point at the origin).

Echelon Form vs. Reduced Echelon Form

To uncover the true rank, we use elementary row operations to systematically eliminate dependent variables.

1. Echelon Form (Staircase)

An m×nm \times n matrix AA is in echelon form if:

  1. All non-zero rows precede any row consisting entirely of zeros.
  2. In each non-zero row, the first non-zero entry (the leading entry) is 1.
  3. The leading entry of each row appears strictly to the right of the leading entry of the row above it.

Example:

[12−3400120001]\begin{bmatrix} 1 & 2 & -3 & 4 \\ 0 & 0 & 1 & 2 \\ 0 & 0 & 0 & 1 \end{bmatrix}

2. Reduced Echelon Form

A matrix is in reduced echelon form if it is in echelon form and every column containing a leading 1 has zeros everywhere else in that column.

Example:

[120000100001]\begin{bmatrix} 1 & 2 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}

Criterion for Consistency in Linear Systems

For any linear system Ax=BAx = B, comparing rank⁡(A)\operatorname{rank}(A) to the augmented matrix rank⁡([A:B])\operatorname{rank}([A : B]) dictates the solvability:

Rank ComparisonGeometric MeaningSolution Status
rank⁡(A)=rank⁡([A:B])=n\operatorname{rank}(A) = \operatorname{rank}([A : B]) = nAll planes intersect at a single pointUnique Solution
rank⁡(A)=rank⁡([A:B])<n\operatorname{rank}(A) = \operatorname{rank}([A : B]) < nPlanes intersect along a line or planeInfinitely Many Solutions
rank⁡(A)<rank⁡([A:B])\operatorname{rank}(A) < \operatorname{rank}([A : B])Parallel non-intersecting planesInconsistent (No Solution)