Nullity of a linear map 2026-10-14
The nullity of a linear map is , the dimension of its kernel. It counts independent input directions that can change without changing the output. For a finite-dimensional vector space , the rank-nullity theorem gives
For an matrix of matrix rank , this is , using the number of columns, not the number of rows. This dimension identity is [ref].
The nullity answers a practical question about a linear system: once one input is known to produce the requested output, how much freedom remains? If , its fiber of a function over is
Indeed, exactly when . Thus every nonempty fiber is an affine subspace of dimension , with the same direction space as the kernel. The kernel itself is the fiber over zero. Outputs outside the image of a linear map have empty fibers; the nullity does not guarantee existence, and we assign no solution-space dimension to an empty fiber here.
Figure 1.
Nullity one gives parallel solution lines for
. Each colored input straight line is the fiber over the corresponding output . The blue line through the origin is the kernel. The orange inputs and give the same output; their difference belongs to the kernel. The output lies outside the image of a linear map and has no input. Exact toy geometry, not measured data. Details.
In the diagram, has matrix , matrix rank one and nullity one. Its kernel has basis , and the full solution of is . One free scalar moves the solution along a straight line; the output is impossible.
The existing three-input example instead has rank two and nullity one. Its image of a linear map is all of , and
Every output has a solution straight line. In contrast, has rank one and nullity two, with kernel basis . Its reachable output has the solution affine subspace
a plane, while with has no solution. These two linear maps have the same input and output dimensions but different freedom and reachability. Computing the kernel separates what an output determines from what an extra constraint would have to fix. For either example, a basis of the kernel gives one independent free scalar per basis vector, which is why nullity measures freedom rather than the number of solutions.
For a linear map , its kernel of a linear map and image of a linear map are
Its nullity of a linear map is , and its rank of a linear map is .
Choose a basis of and extend it to a basis of . The vectors span , because applying to an arbitrary linear combination of the full basis eliminates the terms. They are also linearly independent: if , then , so for some coefficients. Independence of the extended basis forces all to vanish.
Consequently , and . This proves the rank-nullity theorem:
The rank of a linear map and nullity of a linear map are
The rank-nullity theorem states that
To prove it, choose a basis of the kernel of a linear map and use basis extension to obtain a basis
of . The vectors span the image of a linear map: applying to an arbitrary linear combination of the displayed basis removes all the terms. They are also linearly independent. Indeed,
so for some scalars . The linear independence of the extended basis forces every and to vanish. Consequently and , proving the identity. The same argument covers an empty basis when one of these dimensions is zero.