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).Every real matrix of size defines a linear map from to . Associated with this map are exactly four subspaces: the column space and left null space , both living in ; and the row space and null space , both living in . The surprising and beautiful fact — the heart of the Fundamental Theorem of Linear Algebra — is that within each space the two relevant subspaces are orthogonal complements, and their dimensions are rigidly tied together by the single number . This means acts as an invertible map between the row space and the column space, while collapsing the null space to zero. Understanding these four spaces converts every question about linear systems into a clean geometric statement.
The Core Insight
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
The Four Subspaces of an m×n Matrix
Let with rank . Define:
Here = number of rows (output dimension), = number of columns (input dimension), = rank = number of pivots = dimension of .
Fundamental Theorem of Linear Algebra
For any of rank :
Part I (Dimensions):Why It Holds / Derivation
Equality of Row Rank and Column Rank
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.Orthogonality of Row Space and Null Space
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 .Gilbert Strang | b. 1934
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.
The Four Fundamental Subspaces: domain ℝⁿ and codomain ℝᵐ
Worked Examples
A 3×4 Matrix — Find All Four Subspaces
Given:Solvability via the Subspaces
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.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 .Equal Rank ≠ Equal Subspaces
Consider
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
- Least squares / linear regression: Fitting a model when is inconsistent splits into a part (explained) and an part (the residual). Used throughout statistics, econometrics, and machine learning.
- Structural engineering (trusses): The equilibrium matrix's null space gives mechanisms (zero-stress motions) and its left null space gives self-stress states — central to analyzing whether a frame is stable or floppy.
- Electrical circuit analysis: Kirchhoff's current and voltage laws are statements about the null space and column space of the network's incidence matrix; the left null space corresponds to independent loops.
- Computed tomography & image reconstruction: The measurement operator's null space describes information that scanning cannot recover; regularization injects assumptions to pin down the null-space component.
- Control theory: Controllability and observability are decided by ranks and ranges of system matrices — i.e., whether desired states lie in the appropriate column/row spaces.
- Computer graphics & PCA: Dimensionality reduction projects data onto the dominant column space directions, discarding small-singular-value directions (effectively a numerical null space).
- Cryptography & coding theory: Linear codes are defined as null spaces (codewords satisfy ) or row spaces (generator matrices) over finite fields, the same four-subspace structure transplanted to .
Historical Development
- 1750s — Cramer & Euler: Early systematic study of linear systems and the conditions under which solutions exist or fail (foreshadowing rank).
- 1844 — Hermann Grassmann: Ausdehnungslehre introduces abstract linear (vector) spaces, subspaces, and dimension.
- 1850s–1860s — Sylvester & Cayley: The word "matrix" (Sylvester, 1850) and matrix algebra (Cayley, 1858) give the subject its modern symbolic apparatus.
- 1878 — Frobenius: Develops the theory of rank rigorously; the equality of row rank and column rank becomes a standard result.
- 1900s — Hilbert & Schmidt: Orthogonality, projections, and the geometry of solution spaces are extended to infinite dimensions (precursor to closed-range / Fredholm theory).
- 1907–1910 — Erhard Schmidt: Formalizes orthonormalization and orthogonal decomposition of inner-product spaces.
- 1936 — Eckart & Young: The SVD's low-rank approximation theorem ties singular values to the four subspaces' geometry.
- 1955 — Penrose: Defines the generalized (pseudo)inverse, making explicit the row-space-to-column-space isomorphism.
- 1976–present — Gilbert Strang: Packages the dimension and orthogonality results as "the Fundamental Theorem of Linear Algebra" and centers undergraduate teaching on the four-subspaces diagram.
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.