4 8
4 8
2007/2/16
page 301
i i
25. V = M2 (R); B = {E12 , E22 , E21 , E11 }; 33. v = (−1, 2, 0); V , B, and C from Problem 19.
C = {E22 , E11 , E21 , E12 }.
34. p(x) = 6 − 4x; V , B, and C from Problem 20.
For Problems 26–31, find the change-of-basis matrix PB←C
from the given basis C to the given basis B of the vector 35. p(x) = 5 − x + 3x 2 ; V , B, and C from Problem 21.
space V .
−1 −1
36. A = ; V , B, and C from Problem 24.
26. V , B, and C from Problem 16. −4 5
27. V , B, and C from Problem 17. 37. Prove part (b) of Lemma 4.7.5.
28. V , B, and C from Problem 18. 38. Prove that if every vector v in a vector space V can be
29. V , B, and C from Problem 20. written uniquely as a linear combination of the vectors
in {v1 , v2 , . . . , vn }, then {v1 , v2 , . . . , vn } is a basis for
30. V , B, and C from Problem 22. V.
31. V , B, and C from Problem 25. 39. Show that if B is a basis for a finite-dimensional vec-
For Problems 32–36, verify Equation (4.7.6) for the given tor space V , and C is a basis obtained by reordering
vector. the vectors in B, then the matrices PC←B and PB←C
each contain exactly one 1 in each row and column,
32. v = (−5, 3); V , B, and C from Problem 16. and zeros elsewhere.
Row Space
Let A = [aij ] be an m × n real matrix. The row vectors of this matrix are row n-vectors,
and therefore they can be associated with vectors in Rn . The subspace of Rn spanned by
these vectors is called the row space of A and denoted rowspace(A). For example, if
2 −1 3
A= ,
5 9 −7
then
rowspace(A) = span{(2, −1, 3), (5, 9, −7)}.
For a general m × n matrix A, how can we obtain a basis for rowspace(A)? By its
very definition, the row space of A is spanned by the row vectors of A, but these may
not be linearly independent, hence the row vectors of A do not necessarily form a basis
for rowspace(A). We wish to determine a systematic and efficient method for obtaining
a basis for the row space. Perhaps not surprisingly, it involves the use of elementary row
operations.
If we perform elementary row operations on A, then we are merely taking linear
combinations of vectors in rowspace(A), and we therefore might suspect that the row
space of the resulting matrix coincides with the row space of A. This is the content of
the following theorem.
i i
i i
i i “main”
2007/2/16
page 302
i i
Proof We establish that the matrix that results from performing any of the three ele-
mentary row operations on a matrix A has the same row space as the row space of A. If
we interchange two rows of A, then clearly we have not altered the row space, since we
still have the same set of row vectors (listed in a different order).
Now let a1 , a2 , . . . , am denote the row vectors of A. We combine the remaining
two types of elementary row operations by considering the result of replacing ai by the
vector rai + saj , where r (= 0) and s are real numbers. If s = 0, then this corresponds
to scaling ai by a factor of r, whereas if r = 1 and s = 0, this corresponds to adding a
multiple of row j to row i. If B denotes the resulting matrix, then
where di = rci and dj = cj + sci . Note that di and dj can take on arbitrary values,
hence the vectors in rowspace(B) consist precisely of arbitrary linear combinations of
a1 , a2 , . . . , am . That is,
The previous theorem is the key to determining a basis for rowspace(A). The idea
we use is to reduce A to row-echelon form. If d1 , d2 , . . . , dk denote the nonzero row
vectors in this row-echelon form, then from the previous theorem,
rowspace(A) = span{d1 , d2 , . . . , dk }.
c1 d1 + c2 d2 + · · · + ck dk = 0. (4.8.1)
Owing to the positioning of the leading ones in a row-echelon matrix, each of the row
vectors d1 , d2 , . . . , dk−1 will have a leading one in a position where each succeeding
row vector in the row-echelon form has a zero. Hence, Equation (4.8.1) is satisfied only if
c1 = c2 = · · · = ck−1 = 0,
Theorem 4.8.2 The set of nonzero row vectors in any row-echelon form of an m × n matrix A is a basis
for rowspace(A).
As a consequence of the preceding theorem, we can conclude that all row-echelon
forms of A have the same number of nonzero rows. For if this were not the case, then we
could find two bases for rowspace(A) containing a different number of vectors, which
would contradict Corollary 4.6.5. We can therefore consider Theorem 2.4.10 as a direct
consequence of Theorem 4.8.2.
i i
i i
i i “main”
2007/2/16
page 303
i i
Consequently, a basis for rowspace(A) is {(1, −1, 1, 3, 2), (0, 1, −1, −1, −3)}, and
therefore rowspace(A) is a two-dimensional subspace of R5 .
Theorem 4.8.2 also gives an efficient method for determining a basis for the subspace
of Rn spanned by a given set of vectors. If we let A be the matrix whose row vectors are
the given vectors from Rn , then rowspace(A) coincides with the subspace of Rn spanned
by those vectors. Consequently, the nonzero row vectors in any row-echelon form of A
will be a basis for the subspace spanned by the given set of vectors.
Solution: We first let A denote the matrix that has the given vectors as row vectors.
Thus,
1 2 3 4
A = 4 5 6 7 .
7 8 9 10
We now reduce A to row-echelon form:
1 2 3 4 1 2 3 4 1 2 3 4
A ∼ 0 −3 −6 −9 ∼ 0 1 3 ∼ 0 1 2 3.
1 2 3
2
0 −6 −12 −18 0 −6 −12 −18 0 0 0 0
Consequently, a basis for the subspace of R4 spanned by the given vectors is {(1, 2, 3, 4),
(0, 1, 2, 3)}. We see that the given vectors span a two-dimensional subspace of R4 .
Column Space
If A is an m × n matrix, the column vectors of A are column m-vectors and therefore
can be associated with vectors in Rm . The subspace of Rm spanned by these vectors is
called the column space of A and denoted colspace(A).
i i
i i
i i “main”
2007/2/16
page 304
i i
0 0 0 0 0
In this case, we see that the first, third, and fifth column vectors, which are the column
vectors containing the leading ones, coincide with the first three standard basis vectors
in R4 (written as column vectors):
1 0 0
0 1 0
e1 = 0,
e2 = 0,
e3 = 1.
0 0 0
Consequently, these column vectors are linearly independent. Furthermore, the remain-
ing column vectors in E (those that do not contain leading ones) are both linear combina-
tions of e1 and e2 , columns that do contain leading ones. Therefore {e1 , e2 , e3 } is a linearly
independent set of vectors that spans colspace(E), and so a basis for colspace(E) is
Clearly, the same arguments apply to any reduced row-echelon matrix E. Thus, if
E contains k (necessarily ≤ n) leading ones, a basis for colspace(E) is {e1 , e2 , . . . , ek }.
Now consider an arbitrary m×n matrix A, and let E denote the reduced row-echelon
form of A. Recall from Chapter 2 that performing elementary row operations on a linear
system does not alter its solution set. Hence, the two homogeneous systems of equations
Ac = 0 and Ec = 0 (4.8.2)
i i
i i
i i “main”
2007/2/16
page 305
i i
precisely the same linear dependence relation holds between the corresponding column
vectors of A. In particular, since our previous work shows that the column vectors in
E that contain leading ones give a basis for colspace(E), they give a maximal linearly
independent set in colspace(E). Therefore, the corresponding column vectors in A will
also be a maximal linearly independent set in colspace(A). Consequently, this set of
vectors from A will be a basis for colspace(A).
We have therefore shown that the set of column vectors of A corresponding to those
column vectors containing leading ones in the reduced row-echelon form of A is a basis
for colspace(A). But do we have to reduce A to reduced row-echelon form? The answer
is no. We need only reduce A to row-echelon form. The reason is that going further
to reduce a matrix from row-echelon form to reduced row-echelon form does not alter
the position or number of leading ones in a matrix, and therefore the column vectors
containing leading ones in any row-echelon form of A will correspond to the column
vectors containing leading ones in the reduced row-echelon form of A. Consequently,
we have established the following result.
Theorem 4.8.6 Let A be an m × n matrix. The set of column vectors of A corresponding to those column
vectors containing leading ones in any row-echelon form of A is a basis for colspace(A).
1. A12 (−2), A13 (−5), A14 (3) 2. A23 (−7), A24 (4) 3. M3 (− 13 ) 4. A34 (−2)
Since the first, fourth, and fifth column vectors in this row-echelon form of A contain
the leading ones, it follows from Theorem 4.8.6 that the set of corresponding column
vectors in A is a basis for colspace(A). Consequently, a basis for colspace(A) is
{(1, 2, 5, −3), (−2, −3, −3, 2), (−1, −1, −1, 1)}.
i i
i i
i i “main”
2007/2/16
page 306
i i
1. The row vectors containing the leading ones in the row-echelon form
give a basis for rowspace(A) (a subspace of Rn ).
2. The column vectors of A corresponding to the column vectors containing
the leading ones in the row-echelon form give a basis for colspace(A)
(a subspace of Rm ).
Since the number of vectors in a basis for rowspace(A) or in a basis for colspace(A)
is equal to the number of leading ones in any row-echelon form of A, it follows that
dim[rowspace(A)] = dim[colspace(A)] = rank(A).
However, we emphasize that rowspace(A) and colspace(A) are, in general, subspaces
of different vector spaces. In Example 4.8.7, for instance, rowspace(A) is a subspace
of R5 , while colspace(A) is a subspace of R4 . For an m × n matrix, rowspace(A) is a
subspace of Rn , whereas colspace(A) is a subspace of Rm .
Skills Problems
For Problems 1–6, determine a basis for rowspace(A) and a
• Be able to compute a basis for the row space of a basis for colspace(A).
matrix.
• Be able to compute a basis for the column space of a 1 −2
1. A = .
matrix. −3 6
True-False Review 1 1 −3 2
2. A = .
3 4 −11 7
For Questions 1–6, decide if the given statement is true or
false, and give a brief justification for your answer. If true,
1 2 3
you can quote a relevant definition or theorem from the text.
3. A = 5 6 7 .
If false, provide an example, illustration, or brief explanation
9 10 11
of why the statement is false.
1. If A is an m × n matrix such that rowspace(A) = 0 3 1
colspace(A), then m = n. 4. A = 0 −6 −2 .
0 12 4
2. A basis for the row space of a matrix A consists of the
row vectors of any row-echelon form of A.
1 2 −1 3
3. The nonzero column vectors of a row-echelon form of 3 6 −3 5
5. A =
1
.
a matrix A form a basis for colspace(A). 2 −1 −1
5 10 −5 7
4. The sets rowspace(A) and colspace(A) have the same
dimension.
1 −1 2 3
5. If A is an n × n invertible matrix, then rowspace(A) = 6. A = 1 1 −2 6 .
Rn . 3 1 4 2
i i
i i
i i “main”
2007/2/16
page 307
i i
7. {(1, −1, 2), (5, −4, 1), (7, −5, −4)}. (a) Find a basis for rowspace(A) and colspace(A).
8. {(1, 3, 3), (1, 5, −1), (2, 7, 4), (1, 4, 1)}. (b) Show that rowspace(A) corresponds to the plane
with Cartesian equation 2x + y − z = 0, whereas
9. {(1, 1, −1, 2), (2, 1, 3, −4), (1, 2, −6, 10)}. colspace(A) corresponds to the plane with Carte-
sian equation 2x − y + z = 0.
10. {(1, 4, 1, 3), (2, 8, 3, 5), (1, 4, 0, 4), (2, 8, 2, 6)}.
13. Give examples to show how each type of elementary
11. Let row operation applied to a matrix can change the col-
−3 9
A= . umn space of the matrix.
1 −3
Find a basis for rowspace(A) and colspace(A). Make 14. Give an example of a square matrix A whose row space
a sketch to show each subspace in the xy-plane. and column space have no nonzero vectors in common.
nullspace(A) = {x ∈ Rn : Ax = 0}.
Proof If rank(A) = n, then by the Invertible Matrix Theorem, the only solution to
Ax = 0 is the trivial solution x = 0. Hence, in this case, nullspace(A) = {0}, so
nullity(A) = 0 and Equation (4.9.1) holds.
Now suppose rank(A) = r < n. In this case, there are n − r > 0 free variables
in the solution to Ax = 0. Let t1 , t2 , . . . , tn−r denote these free variables (chosen as
those variables not attached to a leading one in any row-echelon form of A), and let
x1 , x2 , . . . , xn−r denote the solutions obtained by sequentially setting each free variable
to 1 and the remaining free variables to zero. Note that {x1 , x2 , . . . , xn−r } is linearly inde-
pendent. Moreover, every solution to Ax = 0 is a linear combination of x1 , x2 , . . . , xn−r :
x = t1 x1 + t2 x2 + · · · + tn−r xn−r ,
which shows that {x1 , x2 , . . . , xn−r } spans nullspace(A). Thus, {x1 , x2 , . . . , xn−r } is a
basis for nullspace(A), and nullity(A) = n − r.
i i
i i