Rank

The dimension of a matrix's column space — measuring how many linearly independent directions its transformation covers.

Rank counts how many independent directions the columns span
Rank 1: columns point along one linec1 = (2,1)c2 = 2c1Rank 2: columns span the planec1c2
Rank 1 matrix

Matrix A has c2 = 2c1, so it has one independent direction.

Rank 2 matrix

Matrix B has two independent columns, so its column space fills the plane.

Definition

The rank of a matrix AA is the dimension of its column space — the number of linearly independent columns.

Equivalently, the rank equals:

  • The number of linearly independent rows (column rank = row rank)
  • The number of pivot positions in the row echelon form
  • The number of nonzero singular values

For an m×nm \times n matrix: rank(A)â‰Īmin⁥(m,n)\text{rank}(A) \leq \min(m, n).

  • Full column rank: rank(A)=n\text{rank}(A) = n (all columns independent; Ax=0A\mathbf{x}=\mathbf{0} has only trivial solution)
  • Full row rank: rank(A)=m\text{rank}(A) = m (all rows independent; Ax=bA\mathbf{x}=\mathbf{b} always has a solution)
  • Full rank: rank(A)=min⁥(m,n)\text{rank}(A) = \min(m,n)
Key properties
  • Row rank always equals column rank, even though rows and columns live in different spaces
  • rank(A)â‰Īmin⁥(m,n)\text{rank}(A) \leq \min(m,n) — rank can never exceed either dimension
  • rank(AT)=rank(A)\text{rank}(A^T) = \text{rank}(A) — transposing doesn't change the rank
  • Rank is invariant under row reduction (elementary row operations preserve rank)
Common mistakes
  • Assuming a "big" matrix has high rank: a matrix can be enormous in size yet have very low rank if its rows/columns are mostly redundant combinations of a few directions
  • Forgetting rank can drop under multiplication: rank(AB)â‰Īmin⁥(rank(A),rank(B))\text{rank}(AB) \leq \min(\text{rank}(A), \text{rank}(B)) — multiplying by a low-rank matrix can only shrink rank, never grow it
Finding rank by row reduction

A=(123246011)A = \begin{pmatrix}1&2&3\\2&4&6\\0&1&1\end{pmatrix}

Row 2 = 2×2\times Row 1: subtract to get zeros. After reduction:

(123000011)→(123011000)\begin{pmatrix}1&2&3\\0&0&0\\0&1&1\end{pmatrix} \to \begin{pmatrix}1&2&3\\0&1&1\\0&0&0\end{pmatrix}

Two pivot positions → rank(A)=2\text{rank}(A) = 2.

Try it

A 4×54\times 5 matrix AA has rank(A)=3\text{rank}(A) = 3. What are the dimensions of the null space and column space of AA?

Solution
  • Column space (image): dim⁥=rank(A)=3\dim = \text{rank}(A) = 3
  • Null space (kernel): by the rank-nullity theorem, rank(A)+nullity(A)=n=5\text{rank}(A) + \text{nullity}(A) = n = 5, so nullity(A)=5−3=2\text{nullity}(A) = 5 - 3 = 2. There are 2 free variables; the null space is 2-dimensional.

The null space is a subspace of R5\mathbb{R}^5 (domain); the column space is a subspace of R4\mathbb{R}^4 (codomain).

Related concepts