Finding a Matrix’s Null Space
Null Spaces, Inhomogeneous Systems, and One-to-One Transformations
The null space of a matrix
For a matrix A, the null space (or kernel) is the set of all vectors x that satisfy the homogeneous system
Thus,
To find the null space, the system can be written as an augmented matrix [A∣0] and row-reduced. The same row operations are applied to both sides of the system. Because the right-hand side is the zero vector, it remains zero under these operations.
After row reduction, any free variables describe the possible solutions. The resulting solution set can be expressed as all linear combinations of certain vectors:
The vectors v1,…,vk are obtained by expressing the solution in terms of its free variables. If there are no free variables, the only solution is the zero vector, so the null space is {0}.
The null space is always a subspace and always contains the zero vector, since A0=0.
Solutions to an inhomogeneous system
An inhomogeneous system has the form
where b may be nonzero. Row reduction can be performed on the augmented matrix [A∣b]. The row operations transform both A and b, producing an equivalent system. The transformed right-hand side may be denoted b′, but the system may be inconsistent, so a solution does not necessarily exist.
If the system has a solution, its solutions have a useful general form:
where:
xp is one particular solution to Ax=b.
z is any vector in the null space of A, so Az=0.
Consequently, the full solution set is a particular solution plus the null space:
This set is an affine translate of the null space. The particular solution shifts the null space to the location of the solutions to Ax=b.
Why this form gives solutions
Suppose xp satisfies Axp=b and z belongs to Null(A), so Az=0. Then
Therefore, every vector of the form xp+z is a solution.
Why every solution has this form
Suppose x is any solution to Ax=b, and let xp be a particular solution. Then
Thus, x−xp belongs to Null(A). Calling this null-space vector z gives
So every solution is obtained by adding a null-space vector to a particular solution.
Consequences
If Ax=b has no solution, its solution set is empty.
If it has a solution and Null(A)={0}, it has exactly one solution.
If it has a solution and the null space contains nonzero vectors, it has multiple solutions: adding different null-space vectors to xp produces different solutions.
One-to-one transformations and unique solutions
Consider the linear transformation represented by A:
The transformation is one-to-one if distinct inputs always produce distinct outputs. Equivalently, each vector b in the codomain has at most one preimage x satisfying Ax=b. Some vectors b may have no preimage at all; that does not prevent the transformation from being one-to-one.
The solution-set description shows why the null space determines whether the transformation is one-to-one:
If Null(A) contains a nonzero vector z, then Az=0 and also A0=0. Two distinct inputs, z and 0, map to the same output. The transformation is not one-to-one.
If Null(A)={0}, then any two solutions to Ax=b must be identical. If x1 and x2 are solutions, then
A(x1−x2)=Ax1−Ax2=b−b=0.Therefore, x1−x2 lies in the null space. Since the null space contains only 0, x1=x2.
Hence,
Null space, column independence, and rank
Suppose A has n columns, written as
where each ai is a column vector. If x=(x1,…,xn)T, then matrix multiplication gives
Therefore, the equation Ax=0 is equivalent to
The null space contains only the zero vector precisely when the only scalars satisfying this equation are
That condition is the definition of linear independence of the columns of A. Thus,
The column space of A is the span of its columns:
If the columns are linearly independent, they form a basis for the column space. There are n such columns, so the dimension of the column space—the rank of A—is n:
Conversely, if rank(A)=n, then the n columns are linearly independent. This makes the null space trivial and the transformation one-to-one.
Equivalent conditions for a one-to-one matrix transformation
For a matrix A with n columns, the following conditions are equivalent:
The transformation T(x)=Ax is one-to-one.
The null space of A is trivial: Null(A)={0}.
The columns of A are linearly independent.
The rank of A is n: rank(A)=n.
The condition rank(A)=n means that A has a pivot in every column. Since rank cannot exceed the number of rows, this also requires that the number of rows be at least the number of columns. One-to-one describes uniqueness of inputs for each output that is reached; it does not by itself guarantee that every vector in the codomain is reached.

Ask anything
We've read this whole study set, so questions about it get the best answers.