You are about to erase your work on this activity. Are you sure you want to do this?
Updated Version Available
There is an updated version of this activity. If you update to the most recent version of this activity, then your current progress on this activity will be erased. Regardless, your record of completion will remain. How would you like to proceed?
Mathematical Expression Editor
Subspaces of \(\RR ^n\) Associated with Matrices
Row Space of a Matrix
Recall that in Gaussian Elimination and Rank, we claimed that every row-echelon
form of a given matrix has the same number of nonzero rows. This result suggests
that there are certain characteristics associated with the rows of a matrix that are
not affected by elementary row operations. We are now in the position to examine
this question and to supply the proof we omitted earlier.
Let \(A\) be an \(m\times n\) matrix.
The row space of \(A\), denoted by \(\mbox {row}(A)\), is the subspace of \(\RR ^n\) spanned by the rows of \(A\).
Consider the matrix
\[A=\begin{bmatrix}-2&2&1\\4&-2&1\end{bmatrix}\]
Let \(\vec {r}_1\) and \(\vec {r}_2\) be the rows of \(A\):
What do you think \(\mbox {span}(\vec {\rho }_1, \vec {\rho }_2)\) looks like?
The following video will help us visualize \(\mbox {span}(\vec {\rho }_1, \vec {\rho }_2)\) and compare it to \(\mbox {span}(\vec {r}_1, \vec {r}_2)\).
Based on what we observed in the video, we may conjecture that
But why does this make sense? Vectors \(\vec {\rho }_1\) and \(\vec {\rho }_2\) were obtained from \(\vec {r}_1\) and \(\vec {r}_2\) by repeated
applications of elementary row operations. At every stage of the row reduction
process, the rows of the matrix are linear combinations of \(\vec {r}_1\) and \(\vec {r}_2\). Thus, at every stage
of the row reduction process, the rows of the matrix lie in the span of \(\vec {r}_1\) and \(\vec {r}_2\). Our next
video shows a step-by-step row reduction process accompanied by sketches of
vectors.
Exploration makes a convincing case for the following theorem.
If matrix \(B\) was obtained from matrix \(A\) by applying an elementary row operation to \(A\)
then
\[\mbox {row}(B)=\mbox {row}(A)\]
Let \(\vec {r}_1,\ldots ,\vec {r}_m\) be the rows of \(A\).
There are three elementary row operations. Clearly, switching the order of vectors in \(\mbox {span}(\vec {r}_1,\ldots ,\vec {r}_m)\)
will not affect the span.
Suppose that \(B\) was obtained from \(A\) by multiplying the \(i^{th}\) row of \(A\) by a non-zero constant \(k\).
We need to show that
To do this we will assume that some vector \(\vec {v}\) is in \(\mbox {span}(\vec {r}_1,\ldots ,k\vec {r}_i,\ldots ,\vec {r}_m)\), and show that \(\vec {v}\) is in \(\mbox {span}(\vec {r}_1,\ldots ,\vec {r}_i,\ldots ,\vec {r}_m)\).
We will then assume that some vector \(\vec {w}\) is in \(\mbox {span}(\vec {r}_1,\ldots ,\vec {r}_i,\ldots ,\vec {r}_m)\) and show that \(\vec {w}\) must be in
\(\mbox {span}(\vec {r}_1,\ldots ,k\vec {r}_i,\ldots ,\vec {r}_m)\).
Suppose that \(\vec {v}\) is in \(\mbox {span}(\vec {r}_1,\ldots ,k\vec {r}_i,\ldots ,\vec {r}_m)\). Then
Since the zero row contributes nothing to the span, we conclude that the nonzero
rows of \(\mbox {rref}(A)\) span \(\mbox {row}(\mbox {rref}(A))\). Therefore
By Problem , the nonzero rows of \(\mbox {rref}(A)\) are linearly independent. It follows that the
nonzero rows of \(\mbox {rref}(A)\) form a basis for \(\mbox {row}(A)\).
To find a second basis for \(\mbox {row}(A)\), observe that by Corollary 4 the row space of any
row-echelon form of \(A\) will be equal to \(\mbox {row}(A)\). Matrix \(A\) has many row-echelon forms. Here is
one of them:
The nonzero rows of \(B\) span \(\mbox {row}(A)\). By Theorem ??, the nonzero rows of \(B\) are linearly
independent. Thus the nonzero rows of \(B\) form a basis for \(\mbox {row}(A)\).
Our observations in Example 7 can be generalized to all matrices. Given any matrix
\(A\),
(a)
The nonzero rows of \(\mbox {rref}(A)\) are linearly independent (Why?) and span \(\mbox {row}(A)\) (Corollary
6).
(b)
The nonzero rows of any row-echelon form of \(A\) are linearly independent
(Why?) and span \(\mbox {row}(A)\) (Corollary 4).
Therefore nonzero rows of \(\mbox {rref}(A)\) or the nonzero rows of any row-echelon form of \(A\) constitute
a basis of \(\mbox {row}(A)\). Since all bases for \(\mbox {row}(A)\) must have the same number of elements (Theorem ??),
we have just proved the following theorem.
All row-echelon forms of a given matrix have the same number of nonzero rows.
This result was first introduced without proof in Gaussian Elimination and Rank
where we used it to define the rank of a matrix as the number of nonzero
rows in its row-echelon forms. We can now update the definition of rank as
follows.
Let \(A\) be an \(m\times n\) matrix. The column space of \(A\), denoted by \(\mbox {col}(A)\), is the subspace of \(\RR ^m\) spanned
by the columns of \(A\).
Our goal is to find a basis for \(\mbox {col}(B)\). To do this we need to find a linearly independent
subset of the columns of \(B\) that spans \(\mbox {col}(B)\).
We see that (1) has infinitely many solutions. This means that the columns of \(B\) are
linearly dependent, and contain a redundant vector. Which vector can we remove
from the set without changing the span?
Choosing a non-zero value for the free variable \(a_3\), we can express the third column as a
linear combination of the other columns. We conclude that
The approach we took to find a basis for \(\mbox {col}(B)\) in Exploration uses the reduced
row-echelon form of \(B\). It is true, however, that any row-echelon form of \(B\) could have
been used in place of \(\mbox {rref}(B)\). (Why?). We generalize the steps as follows:
Given a matrix \(B\), a basis for \(\mbox {col}(B)\) can be found as follows:
(a)
Find \(\mbox {rref}(B)\) (or any row-echelon form \(B'\) of \(B\).)
(b)
Identify the pivot columns of \(\mbox {rref}(B)\) (or \(B'\)).
(c)
The columns of \(B\) corresponding to the pivot columns of \(\mbox {rref}(B)\) (or \(B'\)) form a basis
for \(\mbox {col}(B)\).
Let \(\vec {b}_1,\ldots ,\vec {b}_n\) be the columns of \(B\), and let \(\vec {b}'_1,\ldots ,\vec {b}'_n\) be the columns of \(\mbox {rref}(B)\) (or \(B'\)). Observe that the equations
have the same solution set. This means that any non-trivial relation among the
columns of \(\mbox {rref}(B)\) (or \(B'\)) translates into a non-trivial relation among the columns of \(B\).
Likewise, any collection of linearly independent columns of \(\mbox {rref}(B)\) (or \(B'\)) corresponds to
linearly independent columns of \(B\).
By Problem , the pivot columns of \(\mbox {rref}(B)\) (or \(B'\)) are linearly independent. Therefore the
corresponding columns of \(B\) are linearly independent. Non-pivot columns can be
expressed as linear combinations of the pivot columns, therefore they contribute
nothing to the span and can be removed from the spanning set. (See Problem )
The proof of Procedure 12 shows that the number of basis elements for the column
space of a matrix is equal to the number of pivot columns. But the number of pivot
columns is the same as the number of pivots in a row-echelon form, which is equal to
the number of nonzero rows and the rank of the matrix. This gives us the following
important result.
Columns \(1\), \(2\) and \(4\) of \(\mbox {rref}(A)\) contain leading \(1's\). Therefore columns \(1\), \(2\) and \(4\) of \(A\) form a basis for \(\mbox {col}(A)\).
The Null Space
Let \(A\) be an \(m\times n\) matrix. The null space of \(A\), denoted by \(\mbox {null}(A)\), is the set of all vectors \(\vec {x}\) in \(\RR ^n\) such
that \(A\vec {x}=\vec {0}\).
Find \(\mbox {null}(A)\) if
\[A=\begin{bmatrix}3&-1\\-6&2\end{bmatrix}\]
We need to solve the equation \(A\vec {x}=\vec {0}\). Row reduction gives us
We conclude that \(\vec {x}=\begin{bmatrix}1/3\\1\end{bmatrix}t\). Thus \(\mbox {null}(A)\) consists of all vectors of the form \(\begin{bmatrix}1/3\\1\end{bmatrix}t\). We might
write
Example 18 allows us to make an important observation. Note that every scalar
multiple of \(\begin{bmatrix}1/3\\1\end{bmatrix}\) is contained in \(\mbox {null}(A)\). This means that \(\mbox {null}(A)\) is closed under vector addition and
scalar multiplication. Recall that this property makes \(\mbox {null}(A)\) a subspace of \(\RR ^n\). This
result was first presented as Practice Problem ??. We now formalize it as a
theorem.
Let \(A\) be an \(m\times n\) matrix. Then \(\mbox {null}(A)\) is a subspace of \(\RR ^n\).
To show that \(\mbox {null}(A)\) is closed under vector addition and scalar multiplication we
will show that a linear combination of any two elements of \(\mbox {null}(A)\) is contained in
\(\mbox {null}(A)\).
Suppose \(\vec {x}_1\) and \(\vec {x}_2\) are in \(\mbox {null}(A)\). Then \(A\vec {x}_1=\vec {0}\) and \(A\vec {x}_2=\vec {0}\). But then
Because of the locations of \(1's\) and \(0's\), it is clear that one vector is not a scalar multiple of
the other. Therefore the two vectors are linearly independent. We conclude
that
is a basis of \(\mbox {null}(A)\), and \(\mbox {dim}\Big (\mbox {null}(A)\Big )=2\).
It is not a coincidence that the steps we used in Example
22 produced linearly independent vectors, and it is worth while to try to
understand why this procedure will always produce linearly independent
vectors.
Take a closer look at the elements of the null space:
The parameter \(s\) in the third component of \(\vec {x}\) produces a \(1\) in the third component of
the first vector and a \(0\) in the third component of the second vector, while parameter \(t\)
in the fifth component of \(\vec {x}\) produces a \(1\) in the fifth component of the second vector
and a \(0\) in the fifth component of the first vector. This makes it clear that the two
vectors are linearly independent.
This pattern will hold for any number of parameters, each parameter producing a \(1\)
in exactly one vector and \(0's\) in the corresponding components of the other
vectors.
We know that the dimension of the row space and the dimension of the column space
of a matrix are the same and are equal to the rank of the matrix (or the number of
nonzero rows in any row-echelon form of the matrix).
As we observed in Example 22, the dimension of the null space of a matrix is equal to
the number of free variables in the solution vector of the homogeneous system
associated with the matrix. Since the number of pivots and the number of free
variables add up to the number of columns in a matrix (Theorem ??) we have the
following significant result.
Let \(A\) be an \(m\times n\) matrix. Then
\[\mbox {rank}(A)+\mbox {nullity}(A)=n\]
We will see the geometric implications of this theorem when we study linear
transformations.
Practice Problems
Let \(A\) be a matrix. Prove that non-zero rows of \(\text {rref}(A)\) are linearly independent.
Let \(A\) be a matrix. Prove that the pivot columns of \(\text {rref}(A)\) are linearly independent.
Let \(A\) be a matrix. Show that the non-pivot columns of \(\text {rref}(A)\) can be expressed as linear
combinations of the pivot columns.
Follow the process used in Example 22 to find a basis for \(\mbox {null}(M)\). Explain why the basis
elements obtained in this way are linearly independent.
Let \(\vec {v}_1,\ldots ,\vec {v}_6\) denote the columns of \(M\). Express \(\vec {v}_3\) as a linear combination of \(\vec {v}_1\) and
\(\vec {v}_2\).