The four fundamental subspaces
7 min read
Short answer
An matrix of rank carries four subspaces: the column space and left null space in , and the row space and null space in . Their dimensions are , , and , and each pair in the same space is orthogonal and fills it up.
Meet the four
- Column space : all combinations of the columns, i.e. all possible outputs. Dimension .
- Null space : inputs sent to zero. Dimension (rank-nullity).
- Row space : all combinations of the rows. Dimension too, because row rank equals column rank.
- Left null space : vectors with , equivalently . Dimension .
Applying rank-nullity to (which has columns and rank ) gives the last dimension.
Why they pair up orthogonally
says every row of has dot product with . So every null vector is perpendicular to every row, hence to the whole row space. Dimensions finish the job: the row space has dimension , the null space , and they sum to , so they are orthogonal complements and every splits uniquely as a row-space part plus a null-space part.
The same argument applied to shows the column space and left null space are orthogonal complements in .
The picture that explains solving and fitting
The row-space part of an input is the only part that affects the output; the null-space part is invisible to . So is a one-to-one map from the -dimensional row space onto the -dimensional column space.
This explains least squares: if is not in the column space, split into a column-space part and a left-null-space part. The first can be matched exactly; the second is the unavoidable error, and it is perpendicular to the column space.
Worked example
Find bases for the four subspaces of and check the orthogonality relations.
Every row is a multiple of , so the rank is (, ).
- Column space: spanned by (dimension 1).
- Row space: spanned by (dimension 1).
- Null space: , spanned by (dimension ).
- Left null space: , a plane (dimension ) with basis and .
Checks: ✓; ✓ and ✓.
Try it yourself
A matrix has rank 2. What are the dimensions of its four subspaces?
Show the answer
Column space 2, row space 2, null space , left null space .
Keep going with practice
Vidi's linear algebra course revisits these subspaces whenever you solve or fit a system.