We can now calculate a basis for the nullspace of a matrix by putting it into RREF and reading off the fundamental solutions to . In this section we consider the problem of finding a basis of the column space , which we defined in Definition 3.6.2 to be the span of the columns of .
By Proposition 3.2.1, the set of vectors is exactly the set of linear combinations of the columns of . Therefore the column space is equal to the image of given by .
It would be nice to be able to solve this problem using RREF, because it is very easy to find a basis for the column space of a RREF matrix like
The columns containing a leading entry, in this example columns 2 and 4, are easily seen to be a basis for the column space of . Unfortunately doing row operations can change the column space of a matrix, so knowing the column space of does not immediately give you the column space of .
One solution for this would be to introduce column operations and column reduced echelon form, and re-prove all the things about row operations and row reduced echelon form. Instead we are going to stick with the row operations we already know and use the transpose to convert columns into rows.
We defined the column space of a matrix as the span of its columns. The row space is defined similarly.
Let be a matrix. The row space of is defined to be the span of the rows of .
Let be , let be a invertible matrix, and let be a invertible matrix. Then the row space of equals the row space of and the column space of equals the column space of .
We will do the second part only as the first one can be proved similarly. By Corollary 3.2.4, the columns of are linear combinations of the columns of , that is, elements of the subspace . The span of the columns of is therefore also contained in .
Applying the same argument again with in place of and in place of , the column space , that is, the column space of , is contained in . ∎
Since doing a row operation to a matrix is the same as left multiplication by an elementary matrix (Theorem 3.8.1), this shows that doing row operations to a matrix doesn’t change its row space.
Let be a RREF matrix. Then the nonzero rows of are a basis for the row space of .
Certainly the nonzero rows span the row space, so we only need show they are linearly independent. Let the nonzero rows be , and let the leading entry in row occur in column . Suppose . Pick any and consider the entry in column of this sum. On the right we have 0. On the left has a in column , and all the other s have zeros in column because is in RREF. Thus we have for , so the rows are linearly independent. ∎
The columns of are the transposes of the rows of , so we can get a basis for the column space of by forming the matrix , doing row operations until we reach a RREF matrix, then taking the transposes of the nonzero rows of this RREF matrix.
Let . To find a basis of we take the transpose of to get
Doing row operations, we reach the RREF matrix
The nonzero rows and are a basis for the row space of , which equals the row space of , so their transposes
are a basis for the column space of .