Rank & Nullity
Discover how the dimension of the column space and the dimension of the null space of a matrix are linked by a single elegant theorem.
What Is the Rank of a Matrix?
The rank of a matrix \(A\) is the number of linearly independent columns (or equivalently, rows). It tells you the dimension of the column space \(\text{Col}(A)\).
What Is the Nullity of a Matrix?
The nullity of a matrix \(A\) is the dimension of its null space \(\text{Nul}(A)\): the set of all vectors \(\mathbf{x}\) such that \(A\mathbf{x} = \mathbf{0}\).
Visualizing Rank and Nullity
The Rank-Nullity Theorem
For any \(m \times n\) matrix \(A\):
Here \(n\) is the number of columns of \(A\). Every column is either a pivot column (contributing to rank) or leads to a free variable (contributing to nullity).
Finding Rank via Row Reduction
To find the rank, row-reduce \(A\) to row echelon form (REF). The number of non-zero rows (equivalently, pivot positions) equals the rank.
Rank vs Nullity: Key Distinction
| Rank | Nullity | |
|---|---|---|
| Measures | Dimension of Col(A) | Dimension of Nul(A) |
| Counts | Pivot columns | Free variables |
| Meaning | Independent outputs | Directions mapped to \(\mathbf{0}\) |
| If maximal | If \(\text{rank}(A)=n\), any solution to \(A\mathbf{x}=\mathbf{b}\) is unique. | Every column is free (\(\text{rank}(A) = 0\)) |
| If zero | \(A = \mathbf{0}\) (zero matrix) | Columns are independent |
How to Find Rank and Nullity
Example 1: A 2 × 3 Matrix
Find the rank and nullity of \(A = \begin{bmatrix} 1 & 3 & 5 \\ 2 & 6 & 10 \end{bmatrix}\).
Example 2: A 3 × 4 Matrix
Find the rank and nullity of \(B = \begin{bmatrix} 1 & 0 & 2 & 1 \\ 0 & 1 & -1 & 3 \\ 2 & 1 & 3 & 5 \end{bmatrix}\).
Example 3: Full-Rank Square Matrix
Find the rank and nullity of \(C = \begin{bmatrix} 1 & 2 \\ 3 & 7 \end{bmatrix}\).
What Rank & Nullity Tell Us About Solutions
Consider the system \(A\mathbf{x} = \mathbf{b}\) where \(A\) is \(m \times n\):
Rank, Nullity, and Invertibility
For an \(n \times n\) square matrix \(A\), these are all equivalent:
Rank of \(A\) equals Rank of \(A^T\)
A remarkable fact: the row rank and column rank of any matrix are always equal. This means:
The number of linearly independent rows always equals the number of linearly independent columns. However, nullity can differ:
Common Mistakes
Summary of Key Facts
| Fact | Formula / Rule |
|---|---|
| Rank-Nullity Theorem | \(\text{rank}(A) + \text{nullity}(A) = n\) |
| Rank | Number of pivots in REF |
| Nullity | Number of free variables = \(n - \text{rank}\) |
| Invertible \(n \times n\) | \(\text{rank}(A) = n\), \(\text{nullity}(A) = 0\) |
| Row rank = Column rank | \(\text{rank}(A) = \text{rank}(A^T)\) |
| Unique solution | \(\text{nullity}(A) = 0\) |
| Infinite solutions | \(\text{nullity}(A) > 0\) (and consistent) |
Question 1 of 5
If \(A\) is a \(3 \times 5\) matrix with \(\text{rank}(A) = 3\), what is \(\text{nullity}(A)\)?
Question 2 of 5
A \(4 \times 4\) matrix \(B\) has \(\text{nullity}(B) = 0\). Which statement is true?
Question 3 of 5
After row-reducing a \(5 \times 6\) matrix, you find 3 pivot positions. How many free variables are there?
Question 4 of 5
If \(A\) is a \(2 \times 4\) matrix, what is the maximum possible rank of \(A\)?
Question 5 of 5
The Rank-Nullity Theorem states that \(\text{rank}(A) + \text{nullity}(A)\) equals which quantity?