Rank, Nullity, and the Fundamental Theorem of Linear Maps
A linear map does only two things to the space it acts on: it crushes some directions to nothing, and it carries the rest through faithfully. The crushed directions form the kernel ; the directions that survive fill out the image . Both are honest subspaces — the kernel inside the domain , the image inside the codomain — and that alone is a consequence of linearity. The dimension of the kernel is the nullity, the dimension of the image is the rank, and the whole subject of this article is a single, exact accounting identity between them. The Fundamental Theorem of Linear Maps — the rank-nullity theorem — says these two numbers are not free to roam: their sum is pinned at . The domain has a fixed budget of dimensions, and every one is spent exactly once, either annihilated into the kernel or transmitted into the image. The statement is a conservation law, and like the conservation laws of physics it converts a hard structural question into simple bookkeeping. It needs only that be finite-dimensional; may be as large as you like, even infinite-dimensional. That one identity does an astonishing amount of work. It decides when a linear system has solutions and how many; it proves that a square operator is injective exactly when it is surjective exactly when it is invertible; it measures the degeneracy of an energy level as the nullity of . It is the first structural theorem of linear algebra that a working physicist uses every day, almost always without naming it.
- A linear map splits the domain into a part it kills (the kernel, dimension = nullity) and a part it transmits (the image, dimension = rank).
- The Fundamental Theorem of Linear Maps is the conservation law — every domain dimension is spent exactly once.
- The proof extends a basis of the kernel to a basis of and shows the images of the added vectors form a basis of ; only is needed.
- In matrix form for , and remarkably column rank always equals row rank.
- Immediate physics payoffs: a square operator is injective iff surjective iff invertible; a system is solvable iff ; the geometric multiplicity of an eigenvalue is .
- Worked cleanly: a matrix of rank has nullity (so ), and the defective matrix with eigenvalue of algebraic multiplicity has geometric multiplicity only .
- Key idea: Every dimension of the domain is accounted for exactly once: . The map either kills a direction (kernel) or transmits it to the image — never both, never neither.
Where this lives today
Rank and nullity have quietly become the load-bearing numbers of computational science. Every time an engineer runs a singular value decomposition, the count of singular values above the noise floor is a numerical rank, and the near-null space it exposes is what principal component analysis, image compression, and recommender systems all exploit — a data matrix of nominal rank that is "really" rank is the premise of low-rank approximation and compressed sensing. In control engineering, Kalman's controllability and observability tests are literally rank conditions: a system is controllable exactly when a certain matrix has full rank, i.e. nullity zero. In first-principles materials physics, phonon calculations enforce the acoustic sum rule precisely so the dynamical matrix has the correct three-dimensional null space of rigid translations. And in inverse problems — X-ray tomography, seismic imaging, gravitational-wave parameter estimation — a rank-deficient forward operator is the signature of information you did not measure, its nullity naming exactly the parameter combinations the data can never constrain. The theorem that began as bookkeeping for Victorian determinants is now the diagnostic that tells a scientist which questions the data can answer.
The physical picture
Think of as a pipeline that swallows an -dimensional input and delivers whatever comes out the far end. Some input directions are squeezed flat and emerge as zero — that information is gone, and those directions make up the kernel. Every direction that is not flattened has to appear at the output as a genuinely new, independent direction of the image. There is no third fate, so the input dimension is conserved: flattened plus transmitted equals the total. The first figure draws this ledger with real numbers — a map from a -dimensional domain whose kernel is -dimensional must have a -dimensional image, because and there is nowhere else for the dimensions to go.
The cleanest concrete instance is a projection. Drop every vector of straight down onto the horizontal plane: the shadow is its image, and the vertical direction you project along is squashed to zero. The image is the whole plane, so the rank is ; the kernel is the single vertical line, so the nullity is ; and , the domain dimension. The second figure makes the trade-off vivid: you cannot enlarge the image without shrinking the kernel, because they are two halves of one fixed budget.
Choosing a basis adapted to makes the theorem visible at a glance: take basis vectors inside the kernel, then add just enough more to fill out . The kernel vectors map to zero and the added ones map to an independent set spanning the image, so the added vectors number minus the nullity and their images number the rank. This is also why solving a square system is all-or-nothing: if no direction is crushed, none is missing from the image either, so existence and uniqueness arrive together.
The core equations
Everything begins with two sets attached to the map: the vectors it sends to zero, and the vectors it can produce. Linearity guarantees both are subspaces, so it makes sense to speak of their dimensions.
where: — a linear map obeying ; — the kernel or null space, a subspace of the domain ; — the image or range, a subspace of the codomain . Reading: the kernel collects what is destroyed, the image what is reachable. Both are subspaces by linearity — if then , and images are closed the same way. The two numbers that matter are the dimensions of these subspaces. They are intrinsic to the map, unchanged by any choice of basis or by any similarity transform, which is exactly why they carry physical meaning.
where: — the number of independent output directions the map produces; — the number of independent input directions it destroys. Reading: rank measures how much gets through, nullity how much is lost. The theorem itself ties them together. It is a single equation, and it is exact for any finite-dimensional domain regardless of how large the codomain is.
where: — the dimension of the finite-dimensional domain. Reading: domain dimension = transmitted + annihilated. This is the conservation law; the derivation below turns "spend each dimension once" into a rigorous basis count. Fixing bases turns into a matrix , and the theorem becomes a statement about columns. The number of columns is the domain dimension; the pivots count the rank; the leftover free columns count the nullity.
where: — the matrix of ; — number of columns, equal to ; — number of pivot columns, equal to . Reading: pivots + free columns = total columns, so — each non-pivot column is one free parameter of . A companion fact makes the word "rank" unambiguous: the number of independent columns equals the number of independent rows. Row reduction produces the same pivot count whether you read it down the columns or across the rows.
where: — the transpose, whose column space is the row space of . Reading: the pivots of the echelon form count both independent rows and independent columns, so the two ranks coincide — a nontrivial theorem, not a definition. Finally, rank decides solvability. Appending the right-hand side as an extra column must not create a new independent direction, or there is no solution at all.
where: — the augmented matrix. Reading: consistency is a rank condition, and when it holds the solution set is an affine copy of of dimension — one point when the nullity is zero, a whole flat when it is positive.
The goal is to prove from scratch, using nothing but the definition of a basis and the linearity of . The strategy is the standard and beautiful one: start with a basis of the kernel, extend it to a basis of the whole domain, and then show that the images of exactly the added vectors form a basis of the image. Counting the vectors in each basis then delivers the identity with no arithmetic to spare. Throughout, let with finite and .
Step 1. Choose a basis of the kernel, so that by definition ; if the kernel is trivial we take and start from the empty set. Why: the kernel is where the map does its destroying, and pinning down a basis for it lets us separate the destroyed directions cleanly from everything else.
Step 2. Extend that independent set to a basis of ; the basis-extension theorem guarantees this is always possible, and the number of added vectors is forced to be because a basis of an -dimensional space has exactly elements. Why: the added are the candidate carriers of the image — they are precisely the directions the map does not kill.
Step 3. Show the images span . Any output is for some , and since the kernel part drops out, leaving . Why: the kernel basis vectors contribute nothing to any output, so whatever the image contains is already built from the images of the added vectors alone.
Step 4. Show those images are linearly independent. Suppose ; then , so and can be written . Rearranged, , a linear relation among the basis of , which forces every coefficient — in particular every — to vanish. Why: independence is what upgrades "spanning set" to "basis", and it rests entirely on the together being a basis of .
Step 5. Conclude. The form a basis of the image, so , and adding back the nullity gives . Why: this is the whole theorem, and it used only — the codomain was never assumed finite-dimensional, which is why it survives into the operator theory of quantum mechanics.
Go deeper · Derivation B · 1 minInjective equals surjective equals invertible for a square operator
The goal is to prove one of the most-used facts in applied mathematics: when a linear operator maps a finite-dimensional space to itself, being injective, being surjective, and being invertible are three names for the same condition, each equivalent to the nullity being zero. This equivalence fails badly in infinite dimensions, so the proof leans entirely on the rank-nullity theorem, which is what makes finiteness decisive. Let be linear with .
Step 1. Suppose is injective, i.e. . Rank-nullity gives , so is an -dimensional subspace of the -dimensional space , hence all of : is surjective. Why: a subspace whose dimension equals that of the whole space cannot be a proper subspace, so full rank forces the image to fill the codomain.
Step 2. Conversely suppose is surjective, i.e. . Rank-nullity gives , so the kernel is trivial and is injective. Why: the same conservation law run backwards — filling the image completely leaves no dimensions over to be destroyed.
Step 3. Each property implies the other, so together they make a bijection, and a bijective linear map has a linear inverse . In matrix terms this is exactly the condition . Why: existence and uniqueness of solutions to are governed by surjectivity and injectivity respectively, and here they stand or fall together.
Step 4. Note where finiteness is essential: the right-shift operator on is injective but not surjective, and the left shift is surjective but not injective. Why: with infinitely many dimensions the "budget" is inexhaustible, so a map can gain or lose room without contradiction — the equivalence is a purely finite-dimensional gift of rank-nullity.
Go deeper · Derivation C · 1 minCounting the solutions of a linear system
The goal is to extract, from rank-nullity alone, the complete decision tree for the equation : when a solution exists, when it is unique, and when it is not, how large the family of solutions is. The answer is entirely dimensional — existence is a rank condition on the augmented matrix, and the size of the solution set is the nullity — so a physicist can read off the structure of a linear problem without ever computing a solution. Let and write .
Step 1. Existence. A solution exists if and only if lies in the image of , equivalently ; if appending raises the rank, the system is inconsistent and has no solution. Why: is by definition a combination of the columns of , so it can equal only when adds no new column direction.
Step 2. Structure. When consistent, the general solution is , one particular solution with plus any homogeneous solution with . Why: the difference of any two solutions lies in the kernel, so the solution set is a single translate of — an affine flat, not a subspace unless .
Step 3. Size. By rank-nullity the homogeneous solutions fill , of dimension , so the solution set is an affine space of dimension . Why: the nullity directly counts the free parameters, so it is literally the number of independent knobs left after the equation is imposed.
Step 4. Special cases. If (full column rank) the kernel is trivial and there is at most one solution; if in addition the matrix is square and invertible, and there is exactly one solution for every . Why: these are the invertible and overdetermined-consistent limits, and they are exactly the cases the square-operator equivalence above singles out.
Limiting cases
The single identity specializes into sharply different regimes depending on the shape of the map and how much of its domain survives:
| Case | Result | Meaning |
|---|---|---|
| Injective map | Injectivity is exactly a trivial kernel; the rank then equals the full domain dimension, which requires . | |
| Surjective map | Onto means the image fills the codomain; combined with rank-nullity this forces , so . | |
| Square operator | When , injective, surjective, and bijective coincide — the workhorse behind invertibility tests and nonzero determinants. | |
| Rank deficiency / degeneracy | A nontrivial kernel means non-unique solutions and, for , a degenerate (multi-dimensional) eigenspace. | |
| Zero map | The entire domain is crushed to ; the kernel is everything — the extreme opposite of an isomorphism. |
Worked examples
1 · Rank, nullity, and the null space of a matrix (fully worked)
Find the rank, the nullity, and an explicit basis of the null space of
Step 1. Row reduce. The second row is exactly twice the first, so vanishes. Swapping the zero row to the bottom leaves two nonzero rows, with a pivot in column 1 and with a pivot in column 2. There are two pivots, so .
Step 2. Apply the theorem. The domain is , so and rank-nullity gives . Columns 3 and 4 are the non-pivot (free) columns, matching the two free parameters we are about to find.
Step 3. Solve . With free variables and , the pivot row gives , and the pivot row gives . Hence
Substituting back confirms and , so these two vectors are a basis of the null space, of dimension .
Step 4. Cross-check. Column rank (columns 1 and 2 are independent), row rank (rows 1 and 3 are independent, row 2 dependent); they agree, illustrating equation (5). The ledger closes: . Rank 2, nullity 2, and 2 + 2 = 4.
2 · Geometric multiplicity and a defective matrix (fully worked)
For find the geometric multiplicity of the eigenvalue and decide whether is diagonalizable.
Step 1. The characteristic polynomial is , so has algebraic multiplicity 2 and has algebraic multiplicity 1.
Step 2. Form . Its nonzero rows and are independent, so .
Step 3. The geometric multiplicity is the nullity of , and rank-nullity on the operator gives . Solving gives free, so the single eigenvector is .
Step 4. Compare. The geometric multiplicity is strictly less than the algebraic multiplicity , so has too few eigenvectors to form a basis: it is defective and not diagonalizable, and its structure is captured instead by the Jordan canonical form. The whole diagnosis was a nullity computation. Geometric multiplicity 1 < algebraic multiplicity 2, so B is defective.
3 · Counting molecular vibrational modes
How many independent vibrational modes does a nonlinear water molecule (H₂O, atoms) have, and how many for linear carbon dioxide (CO₂, )?
Step 1. A molecule of atoms has Cartesian coordinates, so its configuration space is -dimensional. For both molecules .
Step 2. The zero-frequency modes — rigid translations and rotations of the whole molecule — form the kernel of the mass-weighted dynamical (Hessian) matrix, since a rigid displacement costs no restoring energy. A nonlinear molecule has translations and rotations, nullity ; a linear molecule has translations and only rotations, nullity .
Step 3. By rank-nullity the vibrational modes are the rank of the dynamical matrix, minus the nullity: water gives vibrational modes, and CO₂ gives . H₂O: 3 modes; CO₂: 4 modes — the standard 3N − 6 and 3N − 5 counts.
Physics of the portrait
The rank-nullity theorem carries no single discoverer's name because it grew up alongside the language of matrices themselves. Its vocabulary, though, is almost entirely the invention of one flamboyant Victorian.
Origins · 1 minJames Joseph Sylvester and how this was discovered
Sylvester was one of the great word-coiners of mathematics, and much of the language of this article is his. Barred for decades from a professorship in England because he was Jewish, he worked as an actuary and a lawyer before holding chairs at Virginia, Johns Hopkins — where he founded the American Journal of Mathematics in 1878 — and finally Oxford. In an 1850 paper he introduced the term "matrix" for a rectangular array from which determinants (his "minors") could be cut, and in his 1884 lectures he introduced "nullity" for the dimension of what we now call the kernel, along with his "law of nullity" bounding the nullity of a product. His collaborator Arthur Cayley built the abstract algebra of matrices around these ideas, while Georg Frobenius gave the rank its rigorous modern theory in 1878, establishing the equality of row and column rank. The clean statement in terms of abstract linear maps — — belongs to the twentieth-century vector-space viewpoint of Peano, Noether, and van der Waerden, but the two nouns in its name are Sylvester's gift.
Going further
Texts. Axler, Linear Algebra Done Right, 3rd ed., Ch. 3 (the Fundamental Theorem of Linear Maps) · Stone & Goldbart, Mathematics for Physics, Ch. 1 (Vector Spaces and Linear Operators) · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 2–3 · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, 3rd ed., Ch. 8 · Strang, Introduction to Linear Algebra, Ch. 3–4 (the four fundamental subspaces) · Hassani, Mathematical Physics, Ch. 2 · Nakahara, Geometry, Topology and Physics, §2 (linear maps and their invariants). Key results to keep in mind: the basis-extension proof yields using only ; the worked matrix has rank , nullity , and the stated null-space basis; the defective matrix has geometric multiplicity versus algebraic multiplicity ; geometric multiplicity ; and the molecular mode counts are (nonlinear) and (linear). No nonstandard numerical values are used anywhere in the article.
Builds on. Vector Spaces and Subspaces · Linear Independence, Basis, and Dimension · Linear Operators and Matrix Representations. Leads to. Eigenvalues, Eigenvectors, and the Characteristic Equation · Diagonalization and the Spectral Decomposition · Jordan Canonical Form and Defective Matrices · Adjoint and Hermitian Operators.
Ask the tutor: Ask me to row-reduce any matrix you like and read off its rank, nullity, null-space basis, and exactly how many solutions has.
Why does the theorem need the domain to be finite-dimensional but not the codomain?
The proof counts basis vectors of , splitting them into a kernel basis and the added vectors whose images span the range. That count only makes sense if has finitely many basis vectors to distribute — the whole argument is a finite partition of the domain's dimensions. The codomain never gets counted; it only has to be large enough to contain the image. This is why the theorem survives into quantum mechanics, where operators act on finite-dimensional spin spaces mapping into infinite-dimensional function spaces. In genuinely infinite-dimensional domains the identity fails, and one needs the Fredholm index instead.
What is the difference between geometric and algebraic multiplicity?
The algebraic multiplicity of an eigenvalue is how many times divides the characteristic polynomial; the geometric multiplicity is , the number of independent eigenvectors, computed by rank-nullity as . Geometric multiplicity is always at least and never exceeds the algebraic multiplicity. When they are equal for every eigenvalue the matrix is diagonalizable; when the geometric falls short — as in Worked Example 2, where a double eigenvalue supplies only one eigenvector — the matrix is defective and requires the Jordan canonical form. In physics the geometric multiplicity is the degeneracy of an energy level, so this gap is precisely where the tidy spectral picture breaks down.
Is the rank of a matrix the same as the number of its nonzero rows?
Only after you row-reduce it. In a general matrix the rows may be linearly dependent even though none is literally zero — the second row of Worked Example 1, , is nonzero yet contributes nothing to the rank because it is twice the first. The rank is the number of pivots in the row echelon form, equivalently the number of independent rows, equivalently the number of independent columns. Counting visibly nonzero rows in the original matrix overcounts whenever there is hidden dependence. The safe recipe is always the same: reduce to echelon form and count the pivots, which simultaneously gives you the rank and, by subtraction from the number of columns, the nullity.
How does rank-nullity relate to solving A x = b?
It supplies the complete answer to both existence and uniqueness. Existence is the rank condition of equation (6): a solution exists iff appending leaves the rank unchanged, i.e. is in the column space. Uniqueness is the nullity: the solution set, when nonempty, is a translate of the null space, so it has dimension . Zero nullity means at most one solution; positive nullity means an infinite affine family. This is why full column rank guarantees uniqueness and full row rank guarantees existence for every , and why a square matrix with both — nonzero determinant — gives exactly one solution always. The theorem turns "how many solutions?" into two dimension counts.
Why is column rank always equal to row rank?
It is a genuine theorem, not a definition, and it can feel surprising because rows and columns look so different. One clean argument: row-reduce to echelon form. Row operations never change the row space, so the number of nonzero rows (the pivots) is the row rank; but those same pivots sit in specific columns, and the corresponding columns of the original are independent and span its column space, making the pivot count the column rank too. So a single integer, the number of pivots, is both ranks at once — equivalently . The consequence is that "rank" is unambiguous, which is quietly essential to the whole theory.
Do the kernel and image ever have any overlap?
They live in different spaces — the kernel in the domain , the image in the codomain — so in general asking whether they overlap is a category error. The confusion arises for an operator mapping a space to itself, where both are subspaces of the same and can genuinely intersect. A pure projection has and complementary, meeting only at ; but a nilpotent shift has vectors that are both in the image and in the kernel. So for self-maps, rank plus nullity still equals , yet the two subspaces need not be complementary — that holds only for special operators such as projections and, with an inner product, normal operators.