Definition. The null space (or kernel) of a matrix A is the set of vectors x such that . The dimension of the null space of A is called the nullity of A, and is denoted .
The null space is the same as the solution space of the system of equations . I showed earlier that if A is an matrix, then the solution space is a subspace of . Thus, the null space of a matrix is a subspace of .
Example. Consider the real matrix
(a) Is in the null space of A?
(b) Is in the null space of A?
(a)
Hence the vector is in the null space of A.
(b)
Hence, the vector is not in the null space of A.
Algorithm. Let A be an matrix. Find a basis for the null space of A.
Let . Solve the following system by row reducing A to row-reduced echelon form:
In the row reduced echelon form, suppose that are the variables corresponding to the leading entries, and suppose that are the free variables. Note that .
Put the solution in parametric form, writing the leading entry variables in terms of the free variables (parameters) :
Plug these expressions into the general solution vector for the components: So for , then , for , and so on. Leave the components (those with just ) alone. Schematically, the result looks like this:
The 's represent the stuff that's left after factoring , , ... out of the f-terms.
In the last expression, the vectors which are being multiplied by , , ..., form a basis for the null space.
First, the vectors span the null space, because the equation above has expressed an arbitrary vector in the null space as a linear combination of the vectors.
Second, the vectors are independent. Suppose the linear combination above is equal to the zero vector :
Then
We see that .
This description is probably hard to understand with all the subscripts flying around, but I think the examples which follow will make it clear.
Before giving an example, here's an important result that comes out of the algorithm.
Theorem. Let A be an matrix. Then
Proof. In the algorithm above, p, the number of leading entry variables, is the rank of A. And q, the number of free variables, is the same as the number of vectors in the basis for the null space. That is, . Finally, I observed earlier that . Thus, .
This theorem is a special case of the First Isomorphism Theorem, which you'd see in a course in abstract algebra.
Example. Find the nullity and a basis for the null space of the real matrix
I'll use w, x, y, and z as my solution variables. Thinking of the last matrix as representing equations for a homogeneous system, I have
I've expressed the leading entry variables in terms of the free variables. Now I substitute for w and y in the general solution vector :
After substituting, I broke the resulting vector up into pieces corresponding to each of the free variables x and z.
The equation above shows that every vector in the null space can be written as a linear combination of and . Thus, these two vectors span the null space. They're also independent: Suppose
Then
Looking at the second and fourth components, you can see that and .
Hence, is a basis for the null space. The nullity is 2.
Notice also that the rank is 2, the number of columns is 4, and , which confirms the preceding theorem.
Example. Consider the following matrix over :
Find bases for the row space, column space, and null space.
Row reduce the matrix:
is a basis for the row space.
The leading entries occur in columns 1 and 3. Taking the first and third columns of the original matrix, I find that is a basis for the column space.
Using a, b, c, and d as variables, I find that the row reduced matrix gives the equations
Thus,
Therefore, is a basis for the null space.
Copyright 2023 by Bruce Ikenaga