The Null Space and Injectivity
When does a linear map fail to lose information? Concretely, suppose sends two different vectors to the same output. Some distinguishing information about the input is then destroyed. This article studies the precise algebraic object that measures this loss. That object is the null space of a linear map. We prove the clean criterion that tells us exactly when no information is lost. This happens precisely when the map is injective. The null space collects every vector that crushes down to zero. At first this looks like a modest bookkeeping device. But it turns out to be a subspace in its own right. Its size (in a sense made precise later) controls the entire injectivity behavior of . This is one of the first places in linear algebra where a subtle global property collapses into something simpler. Injectivity is a statement about all pairs of vectors. Yet it reduces to a statement about a single vector: the zero vector. The big picture is this: linear maps are remarkably rigid. Naively, checking injectivity requires comparing and for every pair . Instead, we can check injectivity by looking only at which vectors map to . This rigidity comes entirely from linearity. It is a recurring theme in the subject. Later results like the Rank-Nullity Theorem and criteria for Invertibility of Linear Maps build directly on the null space computed here. This article gives the formal definition of the null space. It proves the null space is always a subspace of the domain. It then proves the central theorem: a linear map is injective if and only if its null space is . We include full proofs and worked numerical examples with genuinely asymmetric data. We also include a counterexample showing why linearity cannot be dropped. Finally, we discuss where this idea resurfaces throughout mathematics.
- The null space collects all vectors a linear map sends to zero.
- The null space is always a subspace of the domain , never just an arbitrary subset.
- A linear map is injective exactly when its null space is the trivial subspace .
- Injectivity, a statement about all pairs of vectors, reduces to a single-vector check because of linearity.
- The null space's size foreshadows the Rank-Nullity Theorem and criteria for Invertibility of Linear Maps.
- Key idea: for linear maps, "no two distinct vectors collide" is equivalent to "only maps to ."
Where this lives today
The null space is one of the load-bearing concepts of linear algebra, and its consequences appear throughout mathematics and applied fields. In differential equations, the solution set of a homogeneous linear ODE (or system) is exactly the null space of a linear differential operator, and understanding its dimension tells you how many independent solutions exist. In statistics, the null space of a design matrix in linear regression governs identifiability: if the null space is nontrivial, distinct parameter vectors give identical predictions, and coefficients cannot be uniquely estimated. In coding theory and cryptography, the null space of a parity-check matrix defines a linear code, and the injectivity of the associated encoding map is precisely what guarantees error detection is meaningful. In computer graphics and robotics, the null space of a Jacobian matrix describes redundant degrees of freedom — motions that produce no change in the observed output, critical for controlling robotic arms with more joints than needed. In quantum mechanics, null spaces of linear operators identify degenerate or "silent" states invisible to a given measurement. Across all these settings, the same rigid fact from this article recurs: for a linear map, checking whether information is lost reduces to checking a single equation, .
Ask the tutor: How does the dimension of the null space precisely determine how far a linear map is from being injective and from being invertible?
Let and be vector spaces over a field , and let be a linear map, meaning
for all and all scalars . The null space of (also called the kernel of , often written ) is the set
where denotes the zero vector of . This is a subset of , the domain of . Recall a subspace of is a subset that contains , is closed under vector addition, and is closed under scalar multiplication. Recall a linear map is injective (one-to-one) if implies for all ; equivalently, distinct inputs always produce distinct outputs.
Intuition
Think of a linear map as a machine that takes vectors in and produces vectors in . The null space asks a single, sharply focused question: which inputs get flattened to the origin? Because is linear, the set of such inputs cannot be some scattered, irregular collection of points — it is forced to be a flat, linear piece of itself: a subspace. This rigidity is the first hint that linear maps behave far more predictably than arbitrary functions. The connection to injectivity is best understood through translation. If , linearity lets us rewrite this as , so lies in the null space. If the null space contains only the zero vector, then must be , forcing . Conversely, if some nonzero vector lies in the null space, then and are distinct vectors mapping to the same output , so injectivity fails immediately. The entire global comparison "do any two vectors collide?" reduces to the question "does anything besides collapse to ?" The picture below shows a concrete linear map given by a matrix with a nontrivial null space — a whole line of vectors gets sent to the origin, and correspondingly the map fails to be injective, visibly collapsing parallel planes onto single points.
The mathematician behind it
Origins · 1 minHermann Grassmann and how this was discovered
Grassmann, a schoolteacher in Stettin with almost no formal advanced mathematical training, developed in his 1844 Ausdehnungslehre ("Theory of Extension") an abstract algebra of linear combinations and dependence that anticipated the modern vector space concept by decades. His work was so far ahead of contemporary notation and so idiosyncratically written that it was largely ignored during his lifetime; he later turned his attention to Sanskrit philology, where he received more immediate recognition. Only after his death did mathematicians such as Giuseppe Peano recognize that Grassmann had essentially discovered the axiomatic structure now used to define vector spaces, linear maps, and the very notion of a subspace on which the null space is built.
Let be vector spaces over a field , and let be a linear map. Then is a subspace of .
We use the subspace criterion: to show is a subspace, it suffices to show it contains , and is closed under addition and scalar multiplication.
Step 1: . Since is linear, . (Here we used linearity's scalar-multiplication property with , applied to the vector , which is valid since in any vector space.) Hence , so the null space is nonempty.
Step 2: Closure under addition. Let , so and . By linearity of ,
Hence .
Step 3: Closure under scalar multiplication. Let and . By linearity,
Hence . All three subspace conditions hold, so is a subspace of .
∎Let be vector spaces over a field , and let be a linear map. Then is injective if and only if
We prove both directions. The proof technique is a direct biconditional argument, using linearity to translate "" into a statement about the null space.
() Suppose is injective. We already showed in Null Space is a Subspace that , so always holds, regardless of injectivity. We must show the reverse inclusion . Let , so . We also know from Step 1 of the previous proof. Thus
Since is injective, forces . As was arbitrary, every element of equals , so . Combining both inclusions, .
() Suppose . We must show is injective, i.e. for all , . Let with . By linearity,
where we used , a consequence of the scalar-multiplication property of linearity applied with . Thus . Since by hypothesis, we conclude , i.e. . Since with were arbitrary, is injective.
∎Let be an matrix over , and let be the linear map . Then is injective if and only if the only solution to is , i.e. if and only if the columns of are linearly independent.
The linear map satisfies and by the distributive and scalar properties of matrix multiplication, so is indeed linear. By the theorem above, is injective iff , i.e. iff the only with is . Writing in terms of its columns , the equation for expands as
This equation having only the trivial solution is precisely the definition of the columns being linearly independent. Hence injective columns of linearly independent.
∎Worked examples
Example 1: A map with a genuinely nontrivial null space. Let be given by the matrix
We check linearity is automatic since is matrix multiplication. To find , solve for :
Row-reduce the augmented matrix . Start with rows as above. Replace : . Replace : . Now , so becomes the zero row, confirming the third equation is redundant. We are left with:
From the second equation, . Substituting into the first,
Let for a free parameter (chosen to clear denominators). Then , , so
This is a one-dimensional subspace (a line through the origin), spanned by . We verify: . Correct. Since — for instance lies in it — the theorem tells us is not injective. Concretely, , exhibiting two distinct vectors with equal image, exactly as guaranteed by the failure of .
Example 2: A map that is injective, checked via the null space. Define by
First confirm linearity directly from the formula: writing with
is matrix multiplication, hence linear by the same argument as in the corollary above. Compute by solving :
From the first equation, . Substitute into the second: , forcing , hence . Check against the third equation: , consistent. So the only solution is , meaning
By the theorem, is injective. We can sanity-check this concretely: suppose . Then by linearity (exactly as in the proof), forcing and , i.e. . So indeed no two distinct input pairs can produce the same output triple, confirming injectivity directly, not just via the abstract criterion.
The theorem crucially uses that is linear. If is merely a function between vector spaces (or sets with a distinguished zero) but not linear, the equivalence between "injective" and "only maps to " completely breaks down. Consider defined by . Define the "null set" , exactly the trivial set the theorem's conclusion would require. Yet is not injective: for instance , with . So we have but fails to be injective — the forward-to-backward implication of the theorem's proof (specifically, the step ) relied entirely on linearity via , an identity that has no counterpart for , since in general (e.g. ). This shows the algebraic mechanism in the proof — turning a two-variable condition into a one-variable condition — is not a general fact about functions. It is a special consequence of additivity and homogeneity, and it is exactly what fails for , which is additive-free and non-linear.
Scope, edge cases & common traps
| Situation | What to check | Common error |
|---|---|---|
| infinite-dimensional | Theorem still holds verbatim; no finite-dimensionality needed | Assuming the theorem requires |
| is the zero map for all | ; injective only if | Forgetting the zero map is linear and has huge null space |
| Checking injectivity of for square | Equivalent to columns of independent, equivalent to | Confusing "injective" with "surjective" — these coincide only when finite |
| can never be injective (foreshadows Rank-Nullity Theorem) | Trying to construct an injective example and failing to see why it's impossible | |
| Non-linear map with trivial zero set | Theorem does not apply | Assuming the criterion works for any function, not just linear maps |
Is the null space the same as the kernel?
Yes. "Null space" and "kernel" refer to the exact same set: all vectors in the domain that a linear map sends to the zero vector of the codomain. "Kernel," written , is more common in abstract algebra and in texts influenced by that tradition, while "null space" is more common in linear algebra texts focused on matrices, following the terminology of Halmos and subsequent American textbooks. Both notations, and , appear side by side in the literature, and you should be comfortable with either. There is no mathematical distinction whatsoever between the two terms; the choice is purely a matter of dialect and context.
Does the null space theorem work for maps between infinite-dimensional spaces?
Yes, entirely without modification. The proof given here never invokes a basis, a dimension count, or any finiteness assumption; it uses only the additivity and homogeneity properties of linear maps. This is important because many operators in analysis, such as differentiation operators on spaces of smooth functions, act on infinite-dimensional vector spaces, and the same injectivity criterion applies there. For example, the differentiation operator on polynomials has a nontrivial null space (the constant functions), correctly signaling that is not injective.
If the null space is trivial, is the map automatically surjective too?
Not necessarily. Injectivity (trivial null space) and surjectivity are logically independent properties in general. For instance, the map , , has trivial null space and is injective, but it is not surjective since no input reaches . Only when the domain and codomain are finite-dimensional and have equal dimension do injectivity and surjectivity for linear maps coincide; this equivalence is a consequence of the Rank-Nullity Theorem, not of the null space criterion alone.
How do I actually compute the null space of a matrix?
Set up the homogeneous system and row-reduce the coefficient matrix to reduced row echelon form. The free variables in the resulting system parametrize the null space: express each free variable as a parameter, solve for the pivot variables in terms of those parameters, and the resulting parametrized vector, as the parameters range over the field, sweeps out exactly . If the only solution is the trivial one (no free variables), the null space is and the map is injective by the theorem in this article.
Why does the theorem's proof need to subtract rather than compare and directly?
Direct comparison of and as elements of doesn't obviously connect to the null space, which lives in and is defined by the condition . The trick of forming converts the two-variable equality into a single-variable membership question, , using additivity and the fact that . This translation is exactly what lets us invoke the hypothesis , which is stated purely in terms of a single vector mapping to zero.
Can the null space be all of ?
Yes, precisely when is the zero map, sending every vector to . In that case , and fails to be injective unless itself is the trivial vector space . This is the extreme opposite case from a trivial null space, and it illustrates that the "size" of the null space, made precise later via dimension in the Rank-Nullity Theorem, measures exactly how far a linear map is from being injective.
Does every subspace of arise as the null space of some linear map?
Yes, at least when working with finite-dimensional spaces (or more generally whenever quotient spaces or complements exist). Given any subspace , one can construct the quotient map sending each vector to its coset, and this linear map has exactly. This shows the null space construction is not merely one possible subspace among many special ones; it can realize every subspace of as the kernel of some linear map, reinforcing that "null space" and "subspace" are two sides of the same coin.