The Four Fundamental Subspaces
The Four Fundamental Subspaces are the column space, row space, null space, and left null space of an matrix . Together they decompose the domain and codomain into orthogonal complementary pieces, encoding everything about solvability of and the geometry of the linear map. Applies wherever linear systems, least squares, or rank arguments appear. Crystallized as a teaching framework by Gilbert Strang (MIT, late 20th century).
A matrix is not just a grid of numbers — it is a linear transformation. That transformation tears into two perpendicular halves (row space and null space) and into two perpendicular halves (column space and left null space). The "real action" of is a one-to-one correspondence between the row space and the column space, both of dimension . Everything in the null space is annihilated; everything in the left null space is unreachable. Solvability, uniqueness, and least-squares all follow from where sits relative to these halves.
Formal Statement
Let with rank . Define:
Derivation hint: the column space is the set of all linear combinations of the columns of , equivalently all attainable outputs .
Derivation hint: the null space (kernel) is the solution set of the homogeneous system .
Derivation hint: the row space is the column space of , i.e. all linear combinations of the rows of viewed as vectors in .
Derivation hint: the left null space contains all with , hence the name "left." Here = number of rows (output dimension), = number of columns (input dimension), = rank = number of pivots = dimension of .
For any of rank :
Part I (Dimensions):
Derivation hint: column rank equals row rank (); the rank–nullity theorem gives the null-space dimensions in each space.
Part II (Orthogonality): Inside , the row space and null space are orthogonal complements; inside , the column space and left null space are orthogonal complements:
Derivation hint: means each row of is orthogonal to ; the dimensions force a direct-sum decomposition.
Derivation hint: apply [6] to in place of .
Why It Holds / Derivation
Step 1. Reduce to its reduced row echelon form , where is an invertible product of elementary matrices. Row operations are invertible linear combinations of rows, so they preserve the row space: .
Step 2. The nonzero rows of are linearly independent (each has a leading 1 in a column where all other rows are zero). There are exactly pivots, so .
Step 3. The pivot columns of are the standard basis vectors (truncated), hence independent; the non-pivot columns are combinations of them. Therefore .
Step 4. Since is invertible, multiplication by is a bijection between and , preserving dimension: .
Conclusion. , so row rank equals column rank.
∎Step 1. Let , so . Write in terms of its rows . Then means for every .
Step 2. Thus is orthogonal to every row , hence orthogonal to every linear combination of rows, i.e. to all of . This proves .
Step 3. Count dimensions. By rank–nullity, . By [5], .
Step 4. A subspace contained in another of equal finite dimension must equal it: . Since their only common vector is and their dimensions sum to , we get the direct sum .
∎While the underlying theorems (rank–nullity, the closed range orthogonality relations) are 19th- and early-20th-century results, the unifying "four subspaces" picture — with its now-iconic diagram of two perpendicular planes mapping into two perpendicular planes — is the pedagogical creation of Gilbert Strang of MIT. Through his textbook Introduction to Linear Algebra and his widely viewed MIT OpenCourseWare lectures (18.06), Strang made the simultaneous visualization of all four spaces the organizing principle of an entire course. He coined the phrase "the Fundamental Theorem of Linear Algebra" to package the dimension and orthogonality facts into a single memorable statement.
Building Intuition
Picture the matrix as a machine that takes input vectors from and produces outputs in . Split the input space into two perpendicular pieces. The null space is the "blind spot": vectors there are mapped to zero and lost forever. The row space is everything perpendicular to the blind spot — and the machine treats it perfectly, mapping it one-to-one onto the column space. Now split the output space . The column space is the set of all outputs the machine can actually produce — its "reachable" zone. The left null space is the perpendicular "unreachable" zone: no input ever lands there. So solving asks: Is in the reachable zone? If yes, there is a solution. Is the blind spot trivial? If yes, the solution is unique. The row space and column space are "twins" of dimension , linked by an invertible correspondence; this is why behaves like an invertible matrix when restricted to its own essential parts.
Worked Examples
Given:
Step 1 — Row reduce. Subtract row 1 from row 3: . Then subtract row 2 from the new row 3: . The RREF is
Pivots in columns 1 and 3, so . Here .
Step 2 — Dimensions. ; ; .
Step 3 — Column space. Take the pivot columns of the original :
Step 4 — Row space. The nonzero rows of :
Step 5 — Null space. Free variables . From : , . Special solutions:
Step 6 — Left null space. Solve , i.e. find with , , , . From the recorded elimination, the combination that zeroed row 3 was , giving:
Check: . ✓ And is orthogonal to both columns of : and . ✓
Given: Using the same above, decide whether is solvable for and , and count solutions.
Step 1 — Criterion. is solvable iff , equivalently iff , i.e. .
Step 2 — Test . . So → solvable. Because , there are infinitely many solutions (a 2-parameter family: any particular solution plus ).
Step 3 — Test . . So → no solution.
Interpretation: lies in the reachable column space; has a nonzero projection onto the unreachable left null space, so no input can produce it exactly. (A least-squares "best fit" would still exist via Orthogonal Projection.)
Common Misconceptions
The column space is NOT spanned by the pivot columns of the RREF. Row operations change the column space (they preserve the row space and null space, but not ). To get a basis for , identify which columns are pivot columns, then take those columns from the original matrix , not from . By contrast, the row space is read directly off the nonzero rows of , since row operations preserve it.
Orthogonality is between the right pairs, in the right space. The row space and null space are orthogonal complements in (the input side). The column space and left null space are orthogonal complements in (the output side). The column space and null space generally live in different spaces ( vs ) and need not even have the same dimension — comparing them directly is meaningless unless .
Consider
Both are of rank , so all four corresponding dimensions match. Yet while — different subspaces. Dimension data alone does not determine the subspaces; rank tells you the sizes of the four spaces, not their orientations.
Connections
The four subspaces are the geometric scaffolding for much of linear algebra. The orthogonal decompositions [6] and [7] are exactly what make Orthogonal Projection and Least Squares Approximation work: the least-squares solution projects onto , killing its component. The Singular Value Decomposition makes the entire framework explicit — its right singular vectors split into orthonormal bases for and , and its left singular vectors split into orthonormal bases for and , with the singular values quantifying the row-space-to-column-space isomorphism. The dimension count is the Rank–Nullity Theorem applied twice (to and ), and the abstract version replaces "transpose" with the Adjoint Operator in inner-product spaces. The Pseudoinverse is precisely the inverse of the row-space-to-column-space map, extended by zero on .
Real-World Applications
Historical Development
Subtleties & Limits
The clean orthogonal-complement story relies on the standard inner product and a finite-dimensional real (or complex) space. Several subtleties arise at the edges:
- Other inner products / non-orthonormal bases: "Orthogonal complement" depends on the chosen inner product. Change the inner product (e.g. a weighted least squares with metric ) and the complement of the row space changes, even though the null space does not. Reconciling the algebraic null space with the geometric complement requires care.
- Infinite dimensions: For operators on Hilbert spaces, need not be closed, so holds for the closure of the range, not the range itself. The four-subspace picture survives only with topological hedges (the Fredholm alternative, closed-range theorem).
- Finite fields: Over the dimension counts and rank–nullity carry over verbatim, but "orthogonality" can be degenerate — a nonzero vector can be self-orthogonal — so the orthogonal-complement direct sum [6]/[7] can fail. This is studied in self-dual codes.
- Numerical rank: In floating-point computation, rank is ambiguous: tiny singular values blur the boundary between "in the column space" and "in the left null space." Choosing a threshold is genuinely problem-dependent, and naive Gaussian elimination can report the wrong rank for ill-conditioned matrices.
See Also
Rank–Nullity Theorem · Singular Value Decomposition · Orthogonal Projection · Least Squares Approximation · Gaussian Elimination · Pseudoinverse · Fredholm Alternative · Vector Spaces and Subspaces