The rank-nullity theorem, explained
7 min read
Short answer
For an matrix , rank + nullity = , the number of columns. Every input dimension either survives into the output (counted by the rank) or is crushed to zero (counted by the nullity). There is no third option, and no dimension is lost without being counted.
The two spaces
The null space is the set of inputs that sends to zero, and its dimension is the nullity. The column space is the set of all outputs , and its dimension is the rank. Both are subspaces: the first lives among the inputs (), the second among the outputs ().
Rank-nullity says the inputs split cleanly: nullity measures what is forgotten, rank measures what is remembered, and together they use up all input dimensions.
Why it is true
Pick a basis of the null space and extend it with to a basis of all of , so .
- The null vectors map to and contribute nothing to the output.
- The images span the column space, since any input is a combination of the basis vectors and the 's vanish.
- They are independent: if , then is in the null space, so it is a combination of the 's, which contradicts the basis being independent unless every .
Hence the column space has dimension exactly , and .
What it buys you
- More unknowns than equations. If then , so the nullity is positive: a homogeneous system has nontrivial solutions.
- One-to-one test. is injective exactly when the nullity is .
- Solutions come in families. If has one solution, the full solution set is that solution plus the null space, so its dimension is the nullity.
- Checking work. Row reduce, count pivots (rank) and free variables (nullity) and confirm they add up to .
Worked example
For find the rank and nullity and check the theorem.
The matrix is already in echelon form with pivots in columns 1 and 3, so the rank is 2.
Solve : and , with free. The solutions are , so the null space has dimension and the nullity is 1.
Check: rank + nullity , the number of columns. ✓
Try it yourself
A matrix has rank 3. What is its nullity, and could have exactly one solution for some ?
Show the answer
Nullity . Because the null space is not just , any solution can be shifted by a null vector, so a solvable system has infinitely many solutions, never exactly one.
Keep going with practice
Vidi's rank and null space lessons let you practice the pivot-counting version of this theorem.