Nullspaces provide an important way of constructing subspaces of .

If is an matrix with entries in , the nullspace of A is the set In other words, is the set of all solutions to the homogeneous matrix equation .

Proof
Note that . So we need to show that satisfies the two closure axioms.

C1 Suppose . Then Hence is closed under addition.

C2 Suppose and . Then Hence is closed under scalar multiplication. This completes the proof.

Nullspaces can be computed using methods that have already been discussed. If is an matrix the equation is consistent. Either the equation only admits the trivial solution , or we have a parametrized family of solutions. In either case we want to find a spanning set for .

Suppose is the matrix Using MATLAB or Octave, compute (hint: do this in rational format by entering the command ”format rat” before executing the rref command). Then use the resulting output to construct a spanning set for . See if you can find a spanning set consisting of vectors with integer entries.
For the same matrix as in Exercise 1, in either MATLAB or Octave use the “null” command applied to and enter “null(A)” on the command line. Compare your answer to that in Exercise 1. Is it the same? Next, enter “help null” in the command line to to read about what that command does, and how to interpret the output.