The rank-nullity theorem
State and use rank(A) + dim N(A) = n, read as pivots plus free columns, and apply it to solution sets and to systems with more unknowns than equations.
It opens on
A matrix takes n numbers in and gives fewer numbers out. Where do the lost dimensions go, and can you say how many were lost without solving anything?
Why it matters
The theorem counts a linear system's constraints against its freedom, so it tells you in advance whether a model with more parameters than data has one answer or a whole family of them.
Good to know first
- Rank is the number of pivots and dim C(A)
- the null space N(A) is the set of solutions of Ax = 0 with a basis of special solutions, one per free column
- dimension is the number of vectors in a basis
Step by step
Rank plus nullity in the plane
State rank + nullity = n for the 1 × 2 matrix [1, 1], seeing that each output has a whole line of inputs, a copy of the null space.
Take A = [1, 1], a 1 × 2 matrix, so n = 2: the one column [1] gives r = 1, a pivot in the first column.
A common mix-up
Rank and nullity are separate facts about a matrix.
In fact: They trade off: the more dimensions the null space takes, the less the column space keeps, and the total is n.
A solution line in space
Compute the rank and null space of a 2 × 3 matrix, check rank + nullity = 3, and see the solutions of Ax = b as a line parallel to N(A).
A = [[1, 2, 1], [2, 4, 3]] has n = 3 columns; row 2 minus 2·(row 1) is (0, 0, 1), so the pivots are in columns 1 and 3 and the rank is 2.
A common mix-up
A system with fewer equations than unknowns always has infinitely many solutions.
In fact: Only if it is consistent; the null space is nonzero but b might be outside C(A).
More unknowns than equations
Use rank ≤ min(m, n) and the theorem to say when the null space must be nontrivial, and tabulate rank and nullity for wide, square and tall matrices.
A wide matrix has m < n, so r ≤ m < n and nullity = n − r ≥ n − m > 0: with more unknowns than equations, Ax = 0 always has a nonzero solution.
A common mix-up
More unknowns than equations always gives infinitely many solutions.
In fact: Only when the system is consistent; Ax = 0 always has them.
Try it
For A = [1, 2, 3] (1 × 3), give the rank, the nullity and check the theorem.Answer
Rank 1, nullity 2, and 1 + 2 = 3
Hint: One pivot, two free columns
A 3 × 4 matrix has rank 3. What is the dimension of the solution set of Ax = b for any b?Answer
1
Hint: Nullity = 4 − 3
Can a 3 × 5 matrix have N(A) = {0}?Answer
No; the rank is at most 3, so the nullity is at least 5 − 3 = 2
Hint: Nullity = n − r
A sends (1, 1) to 2; name two more inputs that A sends to 2.Answer
(2, 0) and (0, 2), or any (t, 2 − t).
By the theorem, what is the nullity?Answer
3 − 2 = 1: one free column, the second.
