The null space of a matrix is the set of all vectors that the matrix sends to zero. If is an matrix, then its null space is the solution set of the homogeneous system
Equivalently, the null space is the kernel of the linear transformation . It is always a subspace of the domain .
26.1 Definition
Let be an matrix over a field . The null space of , denoted
is defined by
The vectors in the null space are the solutions of a homogeneous linear system.
Since has columns, the input vector has components. Therefore
The null space lives in the domain of the matrix transformation, not in the codomain.
26.2 Homogeneous Systems
A system is homogeneous when its right-hand side is zero:
Such a system is always consistent because
is always a solution.
This solution is called the trivial solution.
The main question is whether there are nontrivial solutions:
Nontrivial solutions exist exactly when the columns of are linearly dependent.
26.3 Null Space as a Subspace
The null space is a subspace of .
First, it contains the zero vector because
Next, let
Then
and
Therefore
So
For a scalar ,
So
Thus is closed under addition and scalar multiplication.
26.4 Geometric Meaning
The null space contains all directions that are collapsed to zero by the transformation
If
then
Thus is invisible to the transformation: adding to an input does not change the output.
Indeed, if , then for any vector ,
So null-space vectors are directions of ambiguity.
26.5 Example in
Let
Then
means
So
Solving for ,
Let
Then
Thus
Therefore
This null space is a line through the origin in .
26.6 Example in
Let
The equation
becomes
Solve for :
Let
Then
Therefore
The null space is a plane through the origin in .
26.7 Finding the Null Space
To find , solve
The standard procedure is:
| Step | Operation |
|---|---|
| 1 | Row reduce to echelon or reduced echelon form |
| 2 | Identify pivot variables and free variables |
| 3 | Express pivot variables in terms of free variables |
| 4 | Write the solution in parametric vector form |
| 5 | Extract a basis from the parameter vectors |
The parameter vectors form a basis for the null space.
26.8 Row Reduction Example
Let
Solve
Row reduce:
The equations are
The pivot variables are and . The free variables are and .
Let
Then
From the first equation,
so
Thus
Therefore a basis for the null space is
So
26.9 Nullity
The nullity of a matrix is the dimension of its null space:
In the previous example,
Nullity counts the number of independent directions that sends to zero.
It also equals the number of free variables in the homogeneous system .
26.10 Rank-Nullity
If is an matrix, then
The number is the dimension of the domain .
Rank counts the number of pivot variables. Nullity counts the number of free variables. Since each column corresponds to one variable,
This theorem is one of the central counting principles of linear algebra.
26.11 Null Space and Linear Independence
The columns of are linearly independent exactly when
To see this, write
Then
The equation
is exactly the equation
Thus nonzero solutions correspond to nontrivial linear relations among the columns.
Therefore:
| Null space | Columns of |
|---|---|
| Linearly independent | |
| Linearly dependent |
26.12 Null Space and Injectivity
The linear map
is injective exactly when
If is injective, then only can map to .
Conversely, suppose
If
then
Thus
So
and hence
Therefore is injective.
The null space measures the failure of injectivity.
26.13 Null Space and Information Loss
A matrix transformation may lose information.
If
for some nonzero , then the transformation cannot distinguish between and , because
The null space contains exactly the directions along which information is lost.
If the null space is large, many different inputs have the same output. If the null space is trivial, different inputs have different outputs.
26.14 Null Space and Solution Sets
Consider a nonhomogeneous system
If is one particular solution, then every solution has the form
where
Indeed, if
and
then
Conversely, if is any solution, then
Thus
Therefore the complete solution set is
The null space gives the homogeneous part of every linear system.
26.15 Affine Solution Spaces
When , the solution set of
is generally not a subspace. It may fail to contain the zero vector.
Instead, if it is nonempty, it is a translate of the null space:
Such a set is called an affine subspace.
For example, a line not passing through the origin is not a vector subspace, but it can be a translate of a one-dimensional null space.
Thus homogeneous systems give subspaces. Nonhomogeneous systems give affine spaces when they are consistent.
26.16 Null Space of Special Matrices
Some matrices have immediate null spaces.
| Matrix | Null space |
|---|---|
| Zero matrix | All of |
| Identity matrix | |
| Invertible square matrix | |
| Projection matrix | Directions projected away |
| Matrix with repeated columns | Contains nonzero relations among those columns |
For the zero matrix,
for every , so every vector lies in the null space.
For the identity matrix,
so
only when
26.17 Left Null Space
For an matrix , the left null space is
Since is an matrix,
It consists of all vectors such that
Equivalently,
The left null space contains vectors orthogonal to every column of . Later, this will be expressed as
when an inner product is available.
26.18 Null Space and Orthogonality
For real matrices with the standard dot product,
is orthogonal to the row space of .
Indeed, means each row of has dot product zero with . If the rows are
then
for every .
Since is orthogonal to every row, it is orthogonal to every linear combination of the rows.
Thus
This relationship belongs to the four fundamental subspaces.
26.19 Common Mistakes
A common mistake is to place the null space in the wrong ambient space.
If is , then
is defined for
Therefore
The column space, by contrast, lies in .
Another common mistake is to confuse the null space with the set of zero columns. The null space is a set of input vectors , not a set of columns of .
A third mistake is to forget that the null space is always a subspace, while the solution set of with is generally only an affine translate.
26.20 Summary
The null space of a matrix is the set of all input vectors sent to zero. It is the solution space of the homogeneous system , and it is a subspace of the domain.
The key ideas are:
| Concept | Meaning |
|---|---|
| Null space | |
| Kernel | Another name for null space of a linear map |
| Trivial solution | |
| Nontrivial solution | A nonzero vector in the null space |
| Nullity | Dimension of the null space |
| Rank-nullity | |
| Injectivity test | is injective exactly when |
| General solution | |
| Orthogonal relation |
The null space records the directions lost by a linear transformation. It explains free variables, nonunique solutions, column dependence, and the geometry of homogeneous systems.