Basis and Dimension
The prior section ends with the observation that a spanning set is minimal when it is linearly independent and a linearly independent set is maximal when it spans the space. So the notions of minimal spanning set and maximal independent set coincide. In this section we will name this idea and study its properties.
Basis
Definition 1.1 A basis for a vector space is a sequence of vectors that is linearly independent and that spans the space.
Because a basis is a sequence, meaning that bases are different if they contain the same elements but in different orders, we denote it with angle brackets .1 (A sequence is linearly independent if the multiset consisting of the elements of the sequence is independent. Similarly, a sequence spans the space if the set of elements of the sequence spans the space.)
Example 1.2 This is a basis for .
It is linearly independent
and it spans .
Example 1.3 This basis for differs from the prior one
because it is in a different order. The verification that it is a basis is just as in the prior example.
Example 1.4 The space has many bases. Another one is this.
The verification is easy.
Definition 1.5 For any
is the standard (or natural) basis. We denote these vectors .
Calculus books denote ’s standard basis vectors as and instead of and and they denote to ’s standard basis vectors as , , and instead of , , and . Note that means something different in a discussion of than it means in a discussion of .
Example 1.6 Consider the space of functions of the real variable . This is a natural basis . A more generic basis for this space is . Verification that these two are bases is Exercise 1.29.
Example 1.7 A natural basis for the vector space of cubic polynomials is . Two other bases for this space are and . Checking that each is linearly independent and spans the space is easy.
Example 1.8 The trivial space has only one basis, the empty one .
Example 1.9 The space of finite-degree polynomials has a basis with infinitely many elements .
Example 1.10 We have seen bases before. In the first chapter we described the solution set of homogeneous systems such as this one
by parametrizing.
Thus the vector space of solutions is the span of a two-element set. This two-vector set is also linearly independent, which is easy to check. Therefore the solution set is a subspace of with a basis comprised of these two vectors.
Example 1.11 Parametrization finds bases for other vector spaces, not just for solution sets of homogeneous systems. To find a basis for this subspace of
we rewrite the condition as .
Thus, this is a natural candidate for a basis.
The above work shows that it spans the space. Linear independence is also easy.
Consider again Example 1.2. To verify that the set spans the space we looked at linear combinations that total to a member of the space . We only noted in that example that such a combination exists, that for each there exists a , but in fact the calculation also shows that the combination is unique: must be and must be .
Theorem 1.12 In any vector space, a subset is a basis if and only if each vector in the space can be expressed as a linear combination of elements of the subset in one and only one way.
We consider linear combinations to be the same if they have the same summands but in a different order, or if they differ only in the addition or deletion of terms of the form ‘’.
Proof A sequence is a basis if and only if its vectors form a set that spans and that is linearly independent. A subset is a spanning set if and only if each vector in the space is a linear combination of elements of that subset in at least one way. Thus we need only show that a spanning subset is linearly independent if and only if every vector in the space is a linear combination of elements from the subset in at most one way.
Consider two expressions of a vector as a linear combination of the members of the subset. Rearrange the two sums, and if necessary add some terms, so that the two sums combine the same ’s in the same order: and . Now
holds if and only if
holds. So, asserting that each coefficient in the lower equation is zero is the same thing as asserting that for each , that is, that every vector is expressible as a linear combination of the ’s in a unique way.
QED
Definition 1.13 In a vector space with basis the representation of with respect to is the column vector of the coefficients used to express as a linear combination of the basis vectors:
where and . The ’s are the coordinates of with respect to .
Example 1.14 In , with respect to the basis , the representation of is
because . With respect to a different basis , the representation is different.
Remark 1.15 Definition 1.1 requires that a basis be a sequence so that we can write these coordinates in an order.
When there is only one basis around, we often omit the subscript naming that basis.
Example 1.16 In , to find the coordinates of the vector with respect to the basis
solve
and get that and .
Writing the representation as a column generalizes the familiar case: in and with respect to the standard basis , the vector starting at the origin and ending at has this representation.
This is an example.
Remark 1.17 The notation is not standard. The most common notation is but one advantage that has is that it is harder to misinterpret or overlook.
The column represents the vector in the sense that a linear relationship holds among a set of vectors if and only if that relationship holds among the set of representations.
Lemma 1.18 Where is a basis with elements, for any set of vectors, if and only if .
Proof Fix a basis and suppose
so that , etc. Then is equivalent to these.
Obviously the bottom equation is true if the coefficients are zero. But, because is a basis, Theorem 1.12 says that the bottom equation is true if and only if the coefficients are zero. So the relation is equivalent to this.
This is the equivalent recast into column vectors.
Note that not only does a relationship hold for one set if and only if it holds for the other, but it is the same relationship—the are the same.
QED
Example 1.19 Example 1.14 finds the representation of with respect to .
This relationship
is represented by this one.
Our main use of representations will come later but the definition appears here because the fact that every vector is a linear combination of basis vectors in a unique way is a crucial property of bases, and also to help make a point. For calculation of coordinates among other things, we shall restrict our attention to spaces with bases having only finitely many elements. That will start in the next subsection.
Exercises
Exercise 1.20 Worked answer
Recommended. Decide if each is a basis for .
Answer.
This is a basis for . To show that it spans the space we consider a generic and look for scalars such that . The resulting linear system is this.
Thus, given any triple of ’s, we can compute the ’s as , , and . Therefore each element of is a combination of the given , , and .
To prove that the set of the given three is linearly independent we can set up the equation and solve, and it will give that , , and . Or, we can instead observe that the solution in the prior paragraph is unique, and cite Theorem 1.12.
This is not a basis. It does not span the space since no combination of the two will sum to the polynomial .
Exercise 1.21 Worked answer
Recommended. Decide if each is a basis for .
Answer. By Theorem 1.12, each is a basis if and only if we can express each vector in the space in a unique way as a linear combination of the given vectors.
Yes this is a basis. The relation
gives
which has the unique solution , , and .
This is not a basis. Setting it up as in the prior item
gives a linear system whose solution
is possible if and only if the three-tall vector’s components , , and satisfy . For instance, we can find the coefficients and that work when , , and . However, there are no ’s that work for , , and . Thus this is not a basis; it does not span the space.
Yes, this is a basis. Setting up the relationship leads to this reduction
which has a unique solution for each triple of components , , and .
No, this is not a basis. The reduction
which does not have a solution for each triple , , and . Instead, the span of the given set includes only those three-tall vectors where .
Exercise 1.22 Worked answer
Recommended. Represent the vector with respect to the basis.
,
,
,
Answer.
We solve
with
and conclude that and so . Thus, the representation is this.
The relationship is easily solved by eye to give that , , , and .
Exercise 1.24 Worked answer
Find a basis for , the space of all quadratic polynomials. Must any such basis contain a polynomial of each degree: degree zero, degree one, and degree two?
Answer. A natural basis is . There are bases for that do not contain any polynomials of degree one or degree zero. One is . (Every basis has at least one polynomial of degree two, though.)
Exercise 1.25 Worked answer
Find a basis for the solution set of this system.
Answer. The reduction
gives that the only condition is that . The solution set is
and so the obvious candidate for the basis is this.
We’ve shown that this spans the space, and showing it is also linearly independent is routine.
Exercise 1.27 Worked answer
Recommended. Find a basis for each.
The subspace of
The space of three-wide row vectors whose first and second components add to zero
This subspace of the matrices
Answer. For each item, many answers are possible.
One way to proceed is to parametrize by expressing the as a combination of the other two . Then is and
suggests . This only shows that it spans, but checking that it is linearly independent is routine.
Parametrize to get , which suggests using the sequence . We’ve shown that it spans, and checking that it is linearly independent is easy.
Rewriting
suggests this for the basis.
Exercise 1.28 Worked answer
Find a basis for each space, and verify that it is a basis.
The subspace of .
This subspace of .
Answer.
Parametrize as , , , and to get this description of as the span of a set of three vectors.
To show that this three-vector set is a basis, what remains is to verify that it is linearly independent.
From the terms we see that . From the terms we see that . The terms give that .
First parametrize the description (note that the fact that and are not mentioned in the description of does not mean they are zero or absent, it means that they are unrestricted).
That gives as the span of a three element set. We will be done if we show that the set is linearly independent.
Using the upper right entries we see that . The upper left entries give that , and the lower left entries show that .
Exercise 1.29 Worked answer
Check Example 1.6.
Answer. We will show that the second is a basis; the first is similar. We will show this straight from the definition of a basis, because this example appears before Theorem 1.12.
To see that it is linearly independent, we set up . Taking and gives this system
which shows that and .
The calculation for span is also easy; for any , we have that gives that and that , and so the span is the entire space.
Exercise 1.30 Worked answer
Recommended. Find the span of each set and then find a basis for that span.
in
in
Answer.
Asking which can be expressed as gives rise to three linear equations, describing the coefficients of , , and the constants.
Gauss’s Method with back-substitution shows, provided that , that and . Thus, with , we can compute appropriate and for any and . So the span is the entire set of linear polynomials . Parametrizing that set suggests a basis (we’ve shown that it spans; checking linear independence is easy).
With
we get this system.
Thus, the only quadratic polynomials with associated ’s are the ones such that . Hence the span is this.
Parametrizing gives , which suggests (checking that it is linearly independent is routine).
Exercise 1.31 Worked answer
Recommended. Find a basis for each of these subspaces of the space of cubic polynomials.
The subspace of cubic polynomials such that
The subspace of polynomials such that and
The subspace of polynomials such that , , and
The space of polynomials such that , , , and
Answer.
The subspace is this.
Rewriting gives this.
On breaking out the parameters, this suggests for the basis (it is easily verified).
The given subspace is the collection of cubics such that and . Gauss’s Method
gives that and that . Rewriting as suggests this for a basis . The above shows that it spans the space. Checking it is linearly independent is routine. (Comment. A worthwhile check is to verify that both polynomials in the basis have both seven and five as roots.)
Here there are three conditions on the cubics, that , that , and that . Gauss’s Method
yields the single free variable , with , , and . The parametrization is this.
Therefore, a natural candidate for the basis is . It spans the space by the work above. It is clearly linearly independent because it is a one-element set (with that single element not the zero object of the space). Thus, any cubic through the three points , , and is a multiple of this one. (Comment. As in the prior question, a worthwhile check is to verify that plugging seven, five, and three into this polynomial yields zero each time.)
This is the trivial subspace of . Thus, the basis is empty .
Remark. Alternatively, we could have derived the polynomial in the third item by multiplying out .
Exercise 1.32 Worked answer
We’ve seen that the result of reordering a basis can be another basis. Must it be?
Answer. Yes. Linear independence and span are unchanged by reordering.
Exercise 1.33 Worked answer
Can a basis contain a zero vector?
Answer. No linearly independent set contains a zero vector.
Exercise 1.34 Worked answer
Recommended. Let be a basis for a vector space.
Show that is a basis when . What happens when at least one is ?
Prove that is a basis where .
Answer.
To show that it is linearly independent, note that if then , which in turn implies that each is zero. But with that means that each is zero. Showing that it spans the space is much the same; because is a basis, and so spans the space, we can for any write , and then .
If any of the scalars are zero then the result is not a basis, because it is not linearly independent.
Showing that is linearly independent is easy. To show that it spans the space, assume that . Then, we can represent the same with respect to in this way .
Exercise 1.35 Worked answer
Find one vector that will make each into a basis for the space.
in
in
in
Answer. Each forms a linearly independent set if we omit . To preserve linear independence, we must expand the span of each. That is, we must determine the span of each (leaving out), and then pick a lying outside of that span. Then to finish, we must check that the result spans the entire given space. Those checks are routine.
Any vector that is not a multiple of the given one, that is, any vector that is not on the line will do here. One is .
By inspection, we notice that the vector is not in the span of the set of the two given vectors. The check that the resulting set is a basis for is routine.
For any member of the span , the coefficient of equals the constant term. So we expand the span if we add a quadratic without this property, say, . The check that the result is a basis for is easy.
Exercise 1.36 Worked answer
Recommended. Consider .
Find a linear relationship among the three.
Represent them with respect to .
Check that the same linear relationship holds among the representations, as in Lemma 1.18.
Exercise 1.37 Worked answer
Recommended. Where is a basis, show that in this equation
each of the ’s is zero. Generalize.
Answer. To show that each scalar is zero, simply subtract . The obvious generalization is that in any equation involving only the ’s, and in which each appears only once, each scalar is zero. For instance, an equation with a combination of the even-indexed basis vectors (i.e., , , etc.) on the right and the odd-indexed basis vectors on the left also gives the conclusion that all of the coefficients are zero.
Exercise 1.38 Worked answer
A basis contains some of the vectors from a vector space; can it contain them all?
Answer. No; no linearly independent set contains the zero vector.
Exercise 1.39 Worked answer
Theorem 1.12 shows that, with respect to a basis, every linear combination is unique. If a subset is not a basis, can linear combinations be not unique? If so, must they be?
Answer. Here is a subset of that is not a basis, and two different linear combinations of its elements that sum to the same vector.
Thus, when a subset is not a basis, it can be the case that its linear combinations are not unique.
But just because a subset is not a basis does not imply that its combinations must be not unique. For instance, this set
does have the property that
implies that . The idea here is that this subset fails to be a basis because it fails to span the space; the proof of the theorem establishes that linear combinations are unique if and only if the subset is linearly independent.
Exercise 1.40 Worked answer
A square matrix is symmetric if for all indices and , entry equals entry .
Find a basis for the vector space of symmetric matrices.
Find a basis for the space of symmetric matrices.
Find a basis for the space of symmetric matrices.
Answer.
Describing the vector space as
suggests this for a basis.
Verification is easy.
This is one possible basis.
As in the prior two questions, we can form a basis from two kinds of matrices. First are the matrices with a single one on the diagonal and all other entries zero (there are of those matrices). Second are the matrices with two opposed off-diagonal entries are ones and all other entries are zeros. (That is, all entries in are zero except that and are one.)
Exercise 1.41 Worked answer
We can show that every basis for contains the same number of vectors.
Show that no linearly independent subset of contains more than three vectors.
Show that no spanning subset of contains fewer than three vectors. Hint: recall how to calculate the span of a set and show that this method cannot yield all of when we apply it to fewer than three vectors.
Answer.
Any four vectors from are linearly related because the vector equation
gives rise to a linear system
that is homogeneous (and so has a solution) and has four unknowns but only three equations, and therefore has nontrivial solutions. (Of course, this argument applies to any subset of with four or more vectors.)
We shall do just the two-vector case. Given , …, ,
to decide which vectors
are in the span of , set up
and row reduce the resulting system.
There are two variables and but three equations, so when Gauss’s Method finishes, on the bottom row there will be some relationship of the form . Hence, vectors in the span of the two-element set must satisfy some restriction. Hence the span is not all of .
Exercise 1.42 Worked answer
One of the exercises in the Subspaces subsection shows that the set
is a vector space under these operations.
Find a basis.
Answer. We have (using these oddball operations with care)
and so a natural candidate for a basis is this.
To check linear independence we set up
(the vector on the right is the zero object in this space). That yields the linear system
with only the solution and . Checking the span is similar.
Dimension
The previous subsection defines a basis of a vector space and shows that a space can have many different bases. So we cannot talk about “the” basis for a vector space. True, some vector spaces have bases that strike us as more natural than others, for instance, ’s basis or ’s basis . But for the vector space , no particular basis leaps out at us as the natural one. We cannot, in general, associate with a space any single basis that best describes it.
We can however find something about the bases that is uniquely associated with the space. This subsection shows that any two bases for a space have the same number of elements. So with each space we can associate a number, the number of vectors in any of its bases.
Before we start, we first limit our attention to spaces where at least one basis has only finitely many members.
Definition 2.1 A vector space is finite-dimensional if it has a basis with only finitely many vectors.
One space that is not finite-dimensional is the set of polynomials with real coefficients, Example 1.11. This is not spanned by any finite subset since that would contain a polynomial of largest degree but this space has polynomials of all degrees. Such spaces are interesting and important but we will focus in a different direction. From now on we will study only finite-dimensional vector spaces. In the rest of this book we shall take ‘vector space’ to mean ‘finite-dimensional vector space’.
To prove the main theorem we shall use a technical result, the Exchange Lemma. We first illustrate it with an example.
Example 2.2 Here is a basis for and a vector given as a linear combination of members of that basis.
Two of the basis vectors have non-zero coefficients. Pick one, for instance the first. Replace it with the vector that we’ve expressed as the combination
and the result is another basis for .
Lemma 2.3 (Exchange Lemma) Assume that is a basis for a vector space, and that for the vector the relationship has . Then exchanging for yields another basis for the space.
Proof Call the outcome of the exchange .
We first show that is linearly independent. Any relationship among the members of , after substitution for ,
gives a linear relationship among the members of . The basis is linearly independent so the coefficient of is zero. Because we assumed that is nonzero, . Using this in equation gives that all of the other ’s are also zero. Therefore is linearly independent.
We finish by showing that has the same span as . Half of this argument, that , is easy; we can write any member of as , which is a linear combination of linear combinations of members of , and hence is in . For the half of the argument, recall that if with then we can rearrange the equation to . Now, consider any member of , substitute for its expression as a linear combination of the members of , and recognize, as in the first half of this argument, that the result is a linear combination of linear combinations of members of , and hence is in .
QED
Theorem 2.4 In any finite-dimensional vector space, all bases have the same number of elements.
Proof Fix a vector space with at least one finite basis. Choose, from among all of this space’s bases, one of minimal size. We will show that any other basis also has the same number of members, . Because has minimal size, has no fewer than vectors. We will argue that it cannot have more than vectors.
The basis spans the space and is in the space, so is a nontrivial linear combination of elements of . By the Exchange Lemma, we can swap for a vector from , resulting in a basis , where one element is and all of the other elements are ’s.
The prior paragraph forms the basis step for an induction argument. The inductive step starts with a basis (for ) containing members of and members of . We know that has at least members so there is a . Represent it as a linear combination of elements of . The key point: in that representation, at least one of the nonzero scalars must be associated with a or else that representation would be a nontrivial linear relationship among elements of the linearly independent set . Exchange for to get a new basis with one more and one fewer than the previous basis .
Repeat that until no ’s remain, so that contains . Now, cannot have more than these vectors because any that remains would be in the span of (since it is a basis) and hence would be a linear combination of the other ’s, contradicting that is linearly independent.
QED
Definition 2.5 The dimension of a vector space is the number of vectors in any of its bases.
Example 2.6 Any basis for has vectors since the standard basis has vectors. Thus, this definition of ‘dimension’ generalizes the most familiar use of term, that is -dimensional.
Example 2.7 The space of polynomials of degree at most has dimension . We can show this by exhibiting any basis— comes to mind—and counting its members.
Example 2.8 The space of functions of the real variable has dimension since this space has the basis .
Example 2.9 A trivial space is zero-dimensional since its basis is empty.
Again, although we sometimes say ‘finite-dimensional’ for emphasis, from now on we take all vector spaces to be finite-dimensional. So in the next result the word ‘space’ means ‘finite-dimensional vector space’.
Corollary 2.10 No linearly independent set can have a size greater than the dimension of the enclosing space.
Proof The proof of Theorem 2.4 never uses that spans the space, only that it is linearly independent.
QED
Example 2.11 Recall the diagram from Example I.2.19 showing the subspaces of . Each subspace is described with a minimal spanning set, a basis. The whole space has a basis with three members, the plane subspaces have bases with two members, the line subspaces have bases with one member, and the trivial subspace has a basis with zero members.
In that section we could not show that these are ’s only subspaces. We can show it now. The prior corollary proves that There are no, say, five-dimensional subspaces of three-space. Further, by Definition 2.5 the dimension of every space is a whole number so there are no subspaces of that are somehow -dimensional, between lines and planes. Thus the list of subspaces that we gave is exhaustive; the only subspaces of are either three-, two-, one-, or zero-dimensional.
Corollary 2.12 Any linearly independent set can be expanded to make a basis.
Proof If a linearly independent set is not already a basis then it must not span the space. Adding to the set a vector that is not in the span will preserve linear independence by Lemma II.1.15. Keep adding until the resulting set does span the space, which the prior corollary shows will happen after only a finite number of steps.
QED
Corollary 2.13 Any spanning set can be shrunk to a basis.
Proof Call the spanning set . If is empty then it is already a basis (the space must be a trivial space). If then it can be shrunk to the empty basis, thereby making it linearly independent, without changing its span.
Otherwise, contains a vector with and we can form a basis . If then we are done. If not then there is a such that . Let ; by Lemma II.1.15 this is linearly independent so if then we are done.
We can repeat this process until the spans are equal, which must happen in at most finitely many steps.
QED
Corollary 2.14 In an -dimensional space, a set composed of vectors is linearly independent if and only if it spans the space.
Proof First we will show that a subset with vectors is linearly independent if and only if it is a basis. The ‘if’ is trivially true—bases are linearly independent. ‘Only if’ holds because a linearly independent set can be expanded to a basis, but a basis has elements, so this expansion is actually the set that we began with.
To finish, we will show that any subset with vectors spans the space if and only if it is a basis. Again, ‘if’ is trivial. ‘Only if’ holds because any spanning set can be shrunk to a basis, but a basis has elements and so this shrunken set is just the one we started with.
QED
The main result of this subsection, that all of the bases in a finite-dimensional vector space have the same number of elements, is the single most important result in this book. As Example 2.11 shows, it describes what vector spaces and subspaces there can be.
One immediate consequence brings us back to when we considered the two things that could be meant by the term ‘minimal spanning set’. At that point we defined ‘minimal’ as linearly independent but we noted that another reasonable interpretation of the term is that a spanning set is ‘minimal’ when it has the fewest number of elements of any set with the same span. Now that we have shown that all bases have the same number of elements, we know that the two senses of ‘minimal’ are equivalent.
Exercises
Assume that all spaces are finite-dimensional unless otherwise stated.
Exercise 2.15 Worked answer
Recommended. Find a basis for, and the dimension of, .
Answer. One basis is , and so the dimension is three.
Exercise 2.16 Worked answer
Find a basis for, and the dimension of, the solution set of this system.
Answer. The solution set is
so a natural basis is this
(checking linear independence is easy). Thus the dimension is three.
Exercise 2.17 Worked answer
Recommended. Find a basis for, and the dimension of, each space.
the set of matrices whose only nonzero entries are on the diagonal (e.g., in entry and , etc.)
Answer.
Parametrize to get this description of the space.
That gives the space as the span of the three-vector set. To show the three vector set makes a basis we check that it is linearly independent.
The second components give that , and the third and fourth components give that and . So one basis is this.
The dimension is the number of vectors in a basis: .
The natural parametrization is this.
Checking that the five-element set is linearly independent is trivial. So this is a basis; the dimension is .
The restrictions form a two-equations, four-unknowns linear system. Parametrizing that system to express the leading variables in terms of those that are free gives , , , and .
That description shows that the space is the span of the two-element set . We will be done if we show the set is linearly independent. This relationship
gives that from the constant terms, and from the cubic terms. One basis for the space is . This is a two-dimensional space.
Exercise 2.19 Worked answer
Find the dimension of the vector space of matrices
subject to each condition.
and
, , and
Answer.
As in the prior exercise, the space of matrices without restriction has this basis
and so the dimension is four.
For this space
this is a natural basis.
The dimension is three.
Gauss’s Method applied to the two-equation linear system gives that and that . Thus, we have this description
and so this is a natural basis.
The dimension is two.
Exercise 2.20 Worked answer
Recommended. Find the dimension of this subspace of .
Answer. We cannot simply count the parameters. That is, the answer is not . Instead, observe that we can express every member in the form
with the choice of , , and (other choices are possible). So is the set . It has dimension .
Exercise 2.21 Worked answer
Recommended. Find the dimension of each.
The space of cubic polynomials such that
The space of cubic polynomials such that and
The space of cubic polynomials such that , , and
The space of cubic polynomials such that , , , and
Answer. The bases for these spaces are developed in the answer set of the prior subsection.
One basis is . The dimension is three.
One basis is so the dimension is two.
A basis is . The dimension is one.
This is the trivial subspace of and so the basis is empty. The dimension is zero.
Exercise 2.22 Worked answer
What is the dimension of the span of the set ? This span is a subspace of the space of all real-valued functions of one real variable.
Answer. First recall that , and so deletion of from this set leaves the span unchanged. What’s left, the set , is linearly independent (consider the relationship where is the zero function, and then take , , and to conclude that each is zero). It is therefore a basis for its span. That shows that the span is a dimension three vector space.
Exercise 2.25 Worked answer
Recommended. Show that this is a basis for .
(We can use the results of this subsection to simplify this job.)
Answer. In a four-dimensional space a set of four vectors is linearly independent if and only if it spans the space. The form of these vectors makes linear independence easy to show (look at the equation of fourth components, then at the equation of third components, etc.).
Exercise 2.26 Worked answer
Decide if each is a basis for .
Answer. By the results of this section, because has dimension , to show that a linearly independent set is a basis we need only observe that it has three members. To show a set is not a basis we need only observe that it does not have three members (in this case we don’t have to worry about linear independence).
This is a basis; it is linearly independent by inspection (the first element has no quadratic or linear term, the second has a quadratic but no linear term, and the third has a linear term) and it has three elements.
This is not a basis as it has only two elements.
This three-element set is a basis.
This is not a basis as it has four elements.
Exercise 2.27 Worked answer
Refer to Example 2.11.
Sketch a similar subspace diagram for .
Sketch one for .
Answer.
The diagram for has four levels. The top level has the only three-dimensional subspace, itself. The next level contains the two-dimensional subspaces (not just the linear polynomials; any two-dimensional subspace, like those polynomials of the form ). Below that are the one-dimensional subspaces. Finally, of course, is the only zero-dimensional subspace, the trivial subspace.
For , the diagram has five levels, including subspaces of dimension four through zero.
Exercise 2.28 Worked answer
Recommended. Where is a set, the functions form a vector space under the natural operations: the sum is the function given by and the scalar product is . What is the dimension of the space resulting for each domain?
Exercise 2.29 Worked answer
(See Exercise 2.28.) Prove that this is an infinite-dimensional space: the set of all functions under the natural operations.
Answer. We need only produce an infinite linearly independent set. One is such sequence is where is
the function that has value only at .
Exercise 2.30 Worked answer
(See Exercise 2.28.) What is the dimension of the vector space of functions , under the natural operations, where the domain is the empty set?
Answer. A function is a set of ordered pairs . So there is only one function with an empty domain, namely the empty set. A vector space with only one element a trivial vector space and has dimension zero.
Exercise 2.31 Worked answer
Show that any set of four vectors in is linearly dependent.
Answer. Apply Corollary 2.10.
Exercise 2.32 Worked answer
Show that is a basis if and only if there is no plane through the origin containing all three vectors.
Answer. A plane has the form . (The first chapter also calls this a ‘-flat’, and contains a discussion of why this is equivalent to the description often taken in Calculus as the set of points subject to a condition of the form ). When the plane passes through the origin we can take the particular vector to be . Thus, in the language we have developed in this chapter, a plane through the origin is the span of a set of two vectors.
Now for the statement. Asserting that the three are not coplanar is the same as asserting that no vector lies in the span of the other two—no vector is a linear combination of the other two. That’s simply an assertion that the three-element set is linearly independent. By Corollary 2.14, that’s equivalent to an assertion that the set is a basis for (more precisely, any sequence made from the set’s elements is a basis).
Exercise 2.33 Worked answer
Prove that any subspace of a finite dimensional space is finite dimensional.
Answer. Let the space be finite dimensional and let be a subspace of .
If is not finite dimensional then it has a linearly independent set that is infinite (start with the empty set and iterate adding vectors that are not linearly dependent on the set; this process can continue for infinitely many steps or else would be finite dimensional). But any linearly independent subset of is a linearly independent subset of , contradicting Corollary 2.10
Exercise 2.34 Worked answer
Where is the finiteness of used in Theorem 2.4?
Answer. It ensures that we exhaust the ’s. That is, it justifies the first sentence of the last paragraph.
Exercise 2.35 Worked answer
Prove that if and are both three-dimensional subspaces of then is non-trivial. Generalize.
Answer. Let be a basis for and let be a basis for . Consider the concatenation of the two basis sequences. If there is a repeated element then the intersection is nontrivial. Otherwise, the set is linearly dependent as it is a six member subset of the five-dimensional space . In either case some member of is in the span of , and thus is more than just the trivial space .
Generalization: if are subspaces of a vector space of dimension and if then they have a nontrivial intersection.
Exercise 2.36 Worked answer
A basis for a space consists of elements of that space. So we are naturally led to how the property ‘is a basis’ interacts with operations and and . (Of course, a basis is actually a sequence that it is ordered, but there is a natural extension of these operations.)
Consider first how bases might be related by . Assume that are subspaces of some vector space and that . Can there exist bases for and for such that ? Must such bases exist?
For any basis for , must there be a basis for such that ?
For any basis for , must there be a basis for such that ?
For any bases for and , must be a subset of ?
Is the of bases a basis? For what space?
Is the of bases a basis? For what space?
What about the complement operation?
(Hint. Test any conjectures against some subspaces of .)
Answer. First, note that a set is a basis for some space if and only if it is linearly independent, because in that case it is a basis for its own span.
The answer to the question in the second paragraph is “yes” (implying “yes” answers for both questions in the first paragraph). If is a basis for then is a linearly independent subset of . Apply Corollary 2.12 to expand it to a basis for . That is the desired .
The answer to the question in the third paragraph is “no”, which implies a “no” answer to the question of the fourth paragraph. Here is an example of a basis for a superspace with no sub-basis forming a basis for a subspace: in , consider the standard basis . No sub-basis of forms a basis for the subspace of that is the line .
It is a basis (for its span) because the intersection of linearly independent sets is linearly independent (the intersection is a subset of each of the linearly independent sets).
It is not, however, a basis for the intersection of the spaces. For instance, these are bases for :
and , but is empty. All we can say is that the of the bases is a basis for a subset of the intersection of the spaces.
The of bases need not be a basis: in
is not linearly independent. A necessary and sufficient condition for a of two bases to be a basis
it is easy enough to prove (but perhaps hard to apply).
The complement of a basis cannot be a basis because it contains the zero vector.
Exercise 2.37 Worked answer
Recommended. Consider how ‘dimension’ interacts with ‘subset’. Assume and are both subspaces of some vector space, and that .
Prove that .
Prove that equality of dimension holds if and only if .
Show that the prior item does not hold if they are infinite-dimensional.
Answer.
A basis for is a linearly independent set in and so can be expanded via Corollary 2.12 to a basis for . The second basis has at least as many members as the first.
One direction is clear: if then they have the same dimension. For the converse, let be a basis for . It is a linearly independent subset of and so can be expanded to a basis for . If then this basis for has no more members than does and so equals . Since and have the same bases, they are equal.
Let be the space of finite-degree polynomials and let be the subspace of polynomials that have only even-powered terms.
Both spaces have infinite dimension but is a proper subspace.
Exercise 2.38 Worked answer
Here is an alternative proof of this section’s main result, Theorem 2.4. First is an example, then a lemma, then the theorem.
Express this vector from a as a linear combination of members of the basis.
In that combination pick a basis vector with a non-zero coefficient. Alter by exchanging for that basis vector, to get a new sequence . Check that is also a basis for .
(Exchange Lemma) Assume that is a basis for a vector space, and that for the vector the relationship has . Prove that exchanging for yields another basis for the space.
Use that, with induction, to prove Theorem 2.4.
Answer.
Two of the basis vectors are associated with non-zero coefficients. We can for instance pick the first.
Checking that it is another basis for is routine.
Call the outcome of the exchange . We first show that is linearly independent. Any relationship among the members of , after substitution for ,
gives a linear relationship among the members of . The basis is linearly independent so the coefficient of is zero. Because we assumed that is nonzero, . Using this in equation gives that all of the other ’s are also zero. Therefore is linearly independent.
We finish by showing that has the same span as . Half of this argument, that , is easy; we can write any member of as , which is a linear combination of linear combinations of members of , and hence is in . For the half of the argument, recall that if with then we can rearrange the equation to . Now, consider any member of , substitute for its expression as a linear combination of the members of , and recognize, as in the first half of this argument, that the result is a linear combination of linear combinations of members of , and hence is in .
Fix a vector space with at least one finite basis. Choose, from among all of this space’s bases, one of minimal size. We will show that any other basis also has the same number of members, . Because has minimal size, has no fewer than vectors. We will argue that it cannot have more than vectors.
The basis spans the space and is in the space, so is a nontrivial linear combination of elements of . By the Exchange Lemma, we can swap for a vector from , resulting in a basis , where one element is and all of the other elements are ’s.
The prior paragraph forms the basis step for an induction argument. The inductive step starts with a basis (for ) containing members of and members of . We know that has at least members so there is a . Represent it as a linear combination of elements of . The key point: in that representation, at least one of the nonzero scalars must be associated with a or else that representation would be a nontrivial linear relationship among elements of the linearly independent set . Exchange for to get a new basis with one more and one fewer than the previous basis .
Repeat that until no ’s remain, so that contains . Now, cannot have more than these vectors because any that remains would be in the span of (since it is a basis) and hence would be a linear combination of the other ’s, contradicting that is linearly independent.
Exercise 2.39 Worked answer
Puzzle. [Sheffer] A library has books and subscribers. Each subscriber read at least one book from the library. Prove that there must exist two disjoint sets of subscribers who read exactly the same books (that is, the union of the books read by the subscribers in each set is the same).
Answer. (This answer is from a site comment by Yuzhou Gu.) For each person assign a vector , where an entry is if the person reads the book, and otherwise. Because the vectors are linear dependent, we will have a equation of the form . Then the set of such that and the set of such that are two disjoint sets with same union of read books.
Exercise 2.40 Worked answer
Puzzle. [Wohascum no. 47] For any vector in and any permutation of the numbers , , …, (that is, is a rearrangement of those numbers into a new order), define to be the vector whose components are , , …, and (where is the first number in the rearrangement, etc.). Now fix and let be the span of . What are the possibilities for the dimension of ?
Answer. The possibilities for the dimension of are , , , and .
To see this, first consider the case when all the coordinates of are equal.
Then for every permutation , so is just the span of , which has dimension or according to whether is or not.
Now suppose not all the coordinates of are equal; let and with be among the coordinates of . Then we can find permutations and such that
for some . Therefore,
is in . That is, , where , , …, is the standard basis for . Similarly, , …, are all in . It is easy to see that the vectors , , …, are linearly independent (that is, form a linearly independent set), so .
Finally, we can write
This shows that if then is in the span of , …, (that is, is in the span of the set of those vectors); similarly, each will be in this span, so will equal this span and . On the other hand, if then the above equation shows that and thus , so and .
Vector Spaces and Linear Systems
We will now reconsider linear systems and Gauss’s Method, aided by the tools and terms of this chapter. We will make three points.
For the first, recall the insight from the Chapter One that Gauss’s Method works by taking linear combinations of rows— if two matrices are related by row operations then each row of is a linear combination of the rows of . Therefore, the right setting in which to study row operations in general, and Gauss’s Method in particular, is the following vector space.
Definition 3.1 The row space of a matrix is the span of the set of its rows. The row rank is the dimension of this space, the number of linearly independent rows.
Example 3.2 If
then is this subspace of the space of two-component row vectors.
The second row vector is linearly dependent on the first and so we can simplify the above description to .
Lemma 3.3 If two matrices and are related by a row operation
(for and ) then their row spaces are equal. Hence, row-equivalent matrices have the same row space and therefore the same row rank.
Proof Corollary One.III.2.4 shows that when then each row of is a linear combination of the rows of . That is, in the above terminology, each row of is an element of the row space of . Then follows because a member of the set is a linear combination of the rows of , so it is a combination of combinations of the rows of , and by the Linear Combination Lemma is also a member of .
For the other set containment, recall Lemma One.III.1.5, that row operations are reversible so if and only if . Then follows as in the previous paragraph.
QED
Of course, Gauss’s Method performs the row operations systematically, with the goal of echelon form.
Lemma 3.4 The nonzero rows of an echelon form matrix make up a linearly independent set.
Proof Lemma One.III.2.5 says that no nonzero row of an echelon form matrix is a linear combination of the other rows. This result restates that using this chapter’s terminology.
QED
Thus, in the language of this chapter, Gaussian reduction works by eliminating linear dependences among rows, leaving the span unchanged, until no nontrivial linear relationships remain among the nonzero rows. In short, Gauss’s Method produces a basis for the row space.
Example 3.5 From any matrix, we can produce a basis for the row space by performing Gauss’s Method and taking the nonzero rows of the resulting echelon form matrix. For instance,
produces the basis for the row space. This is a basis for the row space of both the starting and ending matrices, since the two row spaces are equal.
Using this technique, we can also find bases for spans not directly involving row vectors.
Definition 3.6 The column space of a matrix is the span of the set of its columns. The column rank is the dimension of the column space, the number of linearly independent columns.
Our interest in column spaces stems from our study of linear systems. An example is that this system
has a solution if and only if the vector of ’s is a linear combination of the other column vectors,
meaning that the vector of ’s is in the column space of the matrix of coefficients.
Example 3.7 Given this matrix,
to get a basis for the column space, temporarily turn the columns into rows and reduce.
Now turn the rows back to columns.
The result is a basis for the column space of the given matrix.
Definition 3.8 The transpose of a matrix is the result of interchanging its rows and columns, so that column of the matrix is row of and vice versa.
So we can summarize the prior example as “transpose, reduce, and transpose back.”
We can even, at the price of tolerating the as-yet-vague idea of vector spaces being “the same,” use Gauss’s Method to find bases for spans in other types of vector spaces.
Example 3.9 To get a basis for the span of in the space , think of these three polynomials as “the same” as the row vectors , , and , apply Gauss’s Method
and translate back to get the basis . (As mentioned earlier, we will make the phrase “the same” precise at the start of the next chapter.)
Thus, the first point for this subsection is that the tools of this chapter give us a more conceptual understanding of Gaussian reduction.
For the second point observe that row operations on a matrix can change its column space.
The column space of the left-hand matrix contains vectors with a second component that is nonzero but the column space of the right-hand matrix contains only vectors whose second component is zero, so the two spaces are different. This observation makes next result surprising.
Lemma 3.10 Row operations do not change the column rank.
Proof Restated, if reduces to then the column rank of equals the column rank of .
This proof will be finished if we show that row operations do not affect linear relationships among columns, because the column rank is the size of the largest set of unrelated columns. That is, we will show that a relationship exists among columns (such as that the fifth column is twice the second plus the fourth) if and only if that relationship exists after the row operation. But this is exactly the first theorem of this book, Theorem One.I.1.5: in a relationship among columns,
row operations leave unchanged the set of solutions .
QED
Another way to make the point that Gauss’s Method has something to say about the column space as well as about the row space is with Gauss-Jordan reduction. It ends with the reduced echelon form of a matrix, as here.
Consider the row space and the column space of this result.
The first point made earlier in this subsection says that to get a basis for the row space we can just collect the rows with leading entries. However, because this is in reduced echelon form, a basis for the column space is just as easy: collect the columns containing the leading entries, . Thus, for a reduced echelon form matrix we can find bases for the row and column spaces in essentially the same way, by taking the parts of the matrix, the rows or columns, containing the leading entries.
Theorem 3.11 For any matrix, the row rank and column rank are equal.
Proof Bring the matrix to reduced echelon form. Then the row rank equals the number of leading entries since that equals the number of nonzero rows. Then also, the number of leading entries equals the column rank because the set of columns containing leading entries consists of some of the ’s from a standard basis, and that set is linearly independent and spans the set of columns. Hence, in the reduced echelon form matrix, the row rank equals the column rank, because each equals the number of leading entries.
But Lemma 3.3 and Lemma 3.10 show that the row rank and column rank are not changed by using row operations to get to reduced echelon form. Thus the row rank and the column rank of the original matrix are also equal.
QED
Definition 3.12 The rank of a matrix is its row rank or column rank.
So the second point that we have made in this subsection is that the column space and row space of a matrix have the same dimension.
Our final point is that the concepts that we’ve seen arising naturally in the study of vector spaces are exactly the ones that we have studied with linear systems.
Theorem 3.13 For linear systems with unknowns and with matrix of coefficients , the statements
the rank of is
the vector space of solutions of the associated homogeneous system has dimension
are equivalent.
So if the system has at least one particular solution then for the set of solutions, the number of parameters equals , the number of variables minus the rank of the matrix of coefficients.
Proof The rank of is if and only if Gaussian reduction on ends with nonzero rows. That’s true if and only if echelon form matrices row equivalent to have -many leading variables. That in turn holds if and only if there are free variables.
QED
Corollary 3.14 Where the matrix is , these statements
the rank of is
is nonsingular
the rows of form a linearly independent set
the columns of form a linearly independent set
any linear system whose matrix of coefficients is has one and only one solution
are equivalent.
Proof Clearly . The last, , holds because a set of column vectors is linearly independent if and only if it is a basis for , but the system
has a unique solution for all choices of if and only if the vectors of ’s on the left form a basis.
QED
Remark 3.15 [Munkres] Sometimes the results of this subsection are mistakenly remembered to say that the general solution of an equations, unknowns system uses parameters. The number of equations is not the relevant number; rather, what matters is the number of independent equations, the number of equations in a maximal independent set. Where there are independent equations, the general solution involves parameters.
Exercises
Exercise 3.17 Worked answer
Recommended. Decide if the vector is in the row space of the matrix.
,
,
Answer.
Yes. To see if there are and such that , we solve
and get and . Thus the vector is in the row space.
No. The equation has no solution.
Thus, the vector is not in the row space.
Exercise 3.18 Worked answer
Recommended. Decide if the vector is in the column space.
,
,
Answer.
No. To see if there are such that
we can use Gauss’s Method on the resulting linear system.
There is no solution and so the vector is not in the column space.
Yes. From this relationship
we get a linear system that, when we apply Gauss’s Method,
yields a solution. Thus, the vector is in the column space.
Exercise 3.19 Worked answer
Recommended. Decide if the vector is in the column space of the matrix.
,
,
,
Answer.
Yes; we are asking if there are scalars and such that
which gives rise to a linear system
and Gauss’s Method produces and . That is, there is indeed such a pair of scalars and so the vector is indeed in the column space of the matrix.
No; we are asking if there are scalars and such that
and one way to proceed is to consider the resulting linear system
that is easily seen to have no solution. Another way to proceed is to note that any linear combination of the columns on the left has a second component half as big as its first component, but the vector on the right does not meet that criterion.
Yes; we can simply observe that the vector is the first column minus the second. Or, failing that, setting up the relationship among the columns
and considering the resulting linear system
gives the additional information (beyond that there is at least one solution) that there are infinitely many solutions. Parametrizing gives and , and so taking to be zero gives a particular solution of , , and (which is, of course, the observation made at the start).
Exercise 3.20 Worked answer
Recommended. Find a basis for the row space of this matrix.
Answer. A routine Gaussian reduction
suggests this basis .
Another procedure, perhaps more convenient, is to swap rows first,
leading to the basis .
Exercise 3.21 Worked answer
Recommended. Find the rank of each matrix.
Answer.
This reduction
shows that the row rank, and hence the rank, is three.
Inspection of the columns shows that the others are multiples of the first (inspection of the rows shows the same thing). Thus the rank is one.
Alternatively, the reduction
shows the same thing.
This calculation
shows that the rank is two.
The rank is zero.
Exercise 3.22 Worked answer
Give a basis for the column space of this matrix. Give the matrix’s rank.
Answer. We want a basis for this span.
The most straightforward approach is to transpose those columns to rows, use Gauss’s Method to find a basis for the span of the rows, and then transpose them back to columns.
Discard the zero vector as showing that there was a redundancy among the starting vectors, to get this basis for the column space.
The matrix’s rank is the dimension of its column space, so it is three. (It is also equal to the dimension of its row space.)
Exercise 3.23 Worked answer
Recommended. Find a basis for the span of each set.
Answer.
This reduction
gives .
Transposing and reducing
and then transposing back gives this basis.
Notice first that the surrounding space is as , not . Then, taking the first polynomial to be “the same” as the row vector , etc., leads to
which yields the basis .
Here “the same” gives
leading to this basis.
Exercise 3.24 Worked answer
Give a basis for the span of each set, in the natural vector space.
Answer.
Transpose the columns to rows, bring to echelon form (and then lose any zero rows), and transpose back to columns.
One basis for the span is this.
As in the prior part we think of those as rows, to take advantage of the work we’ve done with Gauss’s Method.
One basis for the span of that set is .
Exercise 3.25 Worked answer
Which matrices have rank zero? Rank one?
Answer. Only the zero matrices have rank of zero. The only matrices of rank one have the form
where is some nonzero row vector, and not all of the ’s are zero. (Remark. We can’t simply say that all of the rows are multiples of the first because the first row might be the zero row. Another Remark. The above also applies with ‘column’ replacing ‘row’.)
Exercise 3.26 Worked answer
Recommended. Given , what choice of will cause this matrix to have the rank of one?
Answer. If then a choice of will make the second row be a multiple of the first, specifically, times the first. If and then any non- choice for will ensure that the second row is nonzero. If and and then any choice for will do, since the matrix will automatically have rank one (even with the choice of ). Finally, if and and then no choice for will suffice because the matrix is sure to have rank two.
Exercise 3.27 Worked answer
Find the column rank of this matrix.
Answer. The column rank is two. One way to see this is by inspection—the column space consists of two-tall columns and so can have a dimension of at least two, and we can easily find two columns that together form a linearly independent set (the fourth and fifth columns, for instance). Another way to see this is to recall that the column rank equals the row rank, and to perform Gauss’s Method, which leaves two nonzero rows.
Exercise 3.28 Worked answer
Show that a linear system with at least one solution has at most one solution if and only if the matrix of coefficients has rank equal to the number of its columns.
Answer. We apply Theorem 3.13. The number of columns of a matrix of coefficients of a linear system equals the number of unknowns. A linear system with at least one solution has at most one solution if and only if the space of solutions of the associated homogeneous system has dimension zero (recall: in the ‘’ equation , provided that such a exists, the solution is unique if and only if the vector is unique, namely ). But that means, by the theorem, that .
Exercise 3.29 Worked answer
Recommended. If a matrix is , which set must be dependent, its set of rows or its set of columns?
Answer. The set of columns must be dependent because the rank of the matrix is at most five while there are nine columns.
Exercise 3.30 Worked answer
Give an example to show that, despite that they have the same dimension, the row space and column space of a matrix need not be equal. Are they ever equal?
Answer. There is little danger of their being equal since the row space is a set of row vectors while the column space is a set of columns (unless the matrix is , in which case the two spaces must be equal).
Remark. Consider
and note that the row space is the set of all multiples of while the column space consists of multiples of
so we also cannot argue that the two spaces must be simply transposes of each other.
Exercise 3.31 Worked answer
Show that the set does not have the same span as . What, by the way, is the vector space?
Answer. First, the vector space is the set of four-tuples of real numbers, under the natural operations. Although this is not the set of four-wide row vectors, the difference is slight—it is “the same” as that set. So we will treat the four-tuples like four-wide vectors.
With that, one way to see that is not in the span of the first set is to note that this reduction
and this one
yield matrices differing in rank. This means that addition of to the set of the first three four-tuples increases the rank, and hence the span, of that set. Therefore is not already in the span.
Exercise 3.32 Worked answer
Recommended. Show that this set of column vectors
is a subspace of . Find a basis.
Answer. It is a subspace because it is the column space of the matrix
of coefficients. To find a basis for the column space,
we eliminate linear relationships among the three column vectors from the spanning set by transposing, reducing,
omitting the zero row, and transposing back.
Exercise 3.34 Worked answer
Recommended. In this subsection we have shown that Gaussian reduction finds a basis for the row space.
Show that this basis is not unique—different reductions may yield different bases.
Produce matrices with equal row spaces but unequal numbers of rows.
Prove that two matrices have equal row spaces if and only if after Gauss-Jordan reduction they have the same nonzero rows.
Answer.
These reductions give different bases.
An easy example is this.
This is a less simplistic example.
Because the row spaces of and are equal, the two are row equivalent. Because each row equivalence class contains a unique reduced echelon form (Theorem One.III.2.6), the reduced echelon form of must equal the reduced echelon form of .
Exercise 3.35 Worked answer
Why is there not a problem with Remark 3.15 in the case that is bigger than ?
Answer. It cannot be bigger.
Exercise 3.36 Worked answer
Show that the row rank of an matrix is at most . Is there a better bound?
Answer. The number of rows in a maximal linearly independent set cannot exceed the number of rows. A better bound (the bound that is, in general, the best possible) is the minimum of and , because the row rank equals the column rank.
Exercise 3.37 Worked answer
Show that the rank of a matrix equals the rank of its transpose.
Answer. Because the rows of a matrix are the columns of the dimension of the row space of equals the dimension of the column space of . But the dimension of the row space of is the rank of and the dimension of the column space of is the rank of . Thus the two ranks are equal.
Exercise 3.38 Worked answer
True or false: the column space of a matrix equals the row space of its transpose.
Answer. False. The first is a set of columns while the second is a set of rows.
This example, however,
indicates that as soon as we have a formal meaning for “the same”, we can apply it here:
while
are “the same” as each other.
Exercise 3.39 Worked answer
Recommended. We have seen that a row operation may change the column space. Must it?
Exercise 3.40 Worked answer
Prove that a linear system has a solution if and only if that system’s matrix of coefficients has the same rank as its augmented matrix.
Answer. A linear system
has a solution if and only if is in the span of the set . That’s true if and only if the column rank of the augmented matrix equals the column rank of the matrix of coefficients. Since rank equals the column rank, the system has a solution if and only if the rank of its augmented matrix equals the rank of its matrix of coefficients.
Exercise 3.41 Worked answer
An matrix has full row rank if its row rank is , and it has full column rank if its column rank is .
Show that a matrix can have both full row rank and full column rank only if it is square.
Prove that the linear system with matrix of coefficients has a solution for any , …, ’s on the right side if and only if has full row rank.
Prove that a homogeneous system has a unique solution if and only if its matrix of coefficients has full column rank.
Prove that the statement “if a system with matrix of coefficients has any solution then it has a unique solution” holds if and only if has full column rank.
Answer.
Row rank equals column rank so each is at most the minimum of the number of rows and columns. Hence both can be full only if the number of rows equals the number of columns. (Of course, the converse does not hold: a square matrix need not have full row rank or full column rank.)
If has full row rank then, no matter what the right-hand side, Gauss’s Method on the augmented matrix ends with a leading one in each row and none of those leading ones in the furthest right column (the “augmenting” column). Back substitution then gives a solution.
On the other hand, if the linear system lacks a solution for some right-hand side it can only be because Gauss’s Method leaves some row so that it has all zeroes on the left of the “augmenting” bar and has a nonzero entry on the right. Thus, if does not have a solution for some right-hand sides, then does not have full row rank because some of its rows have been eliminated.
The matrix has full column rank if and only if its columns form a linearly independent set. That’s equivalent to the existence of only the trivial linear relationship among the columns, so the only solution of the system is where each variable is .
The matrix has full column rank if and only if the set of its columns is linearly independent, and so forms a basis for its span. That’s equivalent to the existence of a unique linear representation of all vectors in that span. That proves it, since any linear representation of a vector in the span is a solution of the linear system.
Exercise 3.42 Worked answer
How would the conclusion of Lemma 3.3 change if Gauss’s Method were changed to allow multiplying a row by zero?
Answer. Instead of the row spaces being the same, the row space of would be a subspace (possibly equal to) the row space of .
Exercise 3.43 Worked answer
What is the relationship between and ? Between and ? What, if any, is the relationship between , , and ?
Answer. Clearly as Gauss’s Method allows us to multiply all rows of a matrix by . In the same way, when we have .
Addition is more interesting. The rank of a sum can be smaller than the rank of the summands.
The rank of a sum can be bigger than the rank of the summands.
But there is an upper bound (other than the size of the matrices). In general, .
To prove this, note that we can perform Gaussian elimination on in either of two ways: we can first add to and then apply the appropriate sequence of reduction steps
or we can get the same results by performing through separately on and , and then adding. The largest rank that we can end with in the second case is clearly the sum of the ranks. (The matrices above give examples of both possibilities, and , happening.)
Combining Subspaces
This subsection is optional. It is required only for the last sections of Chapter Three and Chapter Five and for occasional exercises. You can pass it over without loss of continuity.
One way to understand something is to see how to build it from component parts. For instance, we sometimes think of put together from the -axis, the -axis, and -axis. In this subsection we will describe how to decompose a vector space into a combination of some of its subspaces. In developing this idea of subspace combination, we will keep the example in mind as a prototype.
Subspaces are subsets and sets combine via union. But taking the combination operation for subspaces to be the simple set union operation isn’t what we want. For instance, the union of the -axis, the -axis, and -axis is not all of . In fact this union is not a subspace because it is not closed under addition: this vector
is in none of the three axes and hence is not in the union. Therefore to combine subspaces, in addition to the members of those subspaces, we must at least also include all of their linear combinations.
Definition 4.1 Where are subspaces of a vector space, their sum is the span of their union .
Writing ‘’ fits with the conventional practice of using this symbol for a natural accumulation operation.
Example 4.2 Our prototype works with this. Any vector is a linear combination where is a member of the -axis, etc., in this way
and so .
Example 4.3 A sum of subspaces can be less than the entire space. Inside of , let be the subspace of linear polynomials and let be the subspace of purely-cubic polynomials . Then is not all of . Instead, .
Example 4.4 A space can be described as a combination of subspaces in more than one way. Besides the decomposition , we can also write . To check this, note that any can be written as a linear combination of a member of the -plane and a member of the -plane; here are two such combinations.
The above definition gives one way in which we can think of a space as a combination of some of its parts. However, the prior example shows that there is at least one interesting property of our benchmark model that is not captured by the definition of the sum of subspaces. In the familiar decomposition of , we often speak of a vector’s ‘ part’ or ‘ part’ or ‘ part’. That is, in our prototype each vector has a unique decomposition into pieces from the parts making up the whole space. But in the decomposition used in Example 4.4, we cannot refer to the “ part” of a vector—these three sums
all describe the vector as comprised of something from the first plane plus something from the second plane, but the “ part” is different in each.
That is, when we consider how is put together from the three axes we might mean “in such a way that every vector has at least one decomposition,” which gives the definition above. But if we take it to mean “in such a way that every vector has one and only one decomposition” then we need another condition on combinations. To see what this condition is, recall that vectors are uniquely represented in terms of a basis. We can use this to break a space into a sum of subspaces such that any vector in the space breaks uniquely into a sum of members of those subspaces.
Example 4.5 Consider with its standard basis . The subspace with the basis is the -axis, the subspace with the basis is the -axis, and the subspace with the basis is the -axis. The fact that any member of is expressible as a sum of vectors from these subspaces
reflects the fact that spans the space—this equation
has a solution for any . And the fact that each such expression is unique reflects that fact that is linearly independent, so any equation like the one above has a unique solution.
Example 4.6 We don’t have to take the basis vectors one at a time, we can conglomerate them into larger sequences. Consider again the space and the vectors from the standard basis . The subspace with the basis is the -plane. The subspace with the basis is the -axis. As in the prior example, the fact that any member of the space is a sum of members of the two subspaces in one and only one way
is a reflection of the fact that these vectors form a basis—this equation
has one and only one solution for any .
Definition 4.7 The concatenation of the sequences , …, adjoins them into a single sequence.
Lemma 4.8 Let be a vector space that is the sum of some of its subspaces . Let , …, be bases for these subspaces. The following are equivalent.
The expression of any as a combination with is unique.
The concatenation is a basis for .
Among nonzero vectors from different ’s every linear relationship is trivial.
Proof We will show that , that , and finally that . For these arguments, observe that we can pass from a combination of ’s to a combination of ’s
and vice versa (we can move from the bottom to the top by taking each to be ).
For , assume that all decompositions are unique. We will show that spans the space and is linearly independent. It spans the space because the assumption that means that every can be expressed as , which translates by equation () to an expression of as a linear combination of the ’s from the concatenation. For linear independence, consider this linear relationship.
Regroup as in () (that is, move from bottom to top) to get the decomposition . Because the zero vector obviously has the decomposition , the assumption that decompositions are unique shows that each is the zero vector. This means that , and since each is a basis we have the desired conclusion that all of the ’s are zero.
For assume that the concatenation of the bases is a basis for the entire space. Consider a linear relationship among nonzero vectors from different ’s. This might or might not involve a vector from , or one from , etc., so we write it . As in equation () expand the vector.
The linear independence of gives that each coefficient is zero. Since is nonzero vector, at least one of the ’s is not zero, and thus is zero. This holds for each , and therefore the linear relationship is trivial.
Finally, for , assume that among nonzero vectors from different ’s any linear relationship is trivial. Consider two decompositions of a vector and where and . Subtract one from the other to get a linear relationship, something like this (if there is no or then leave those out).
The case assumption that statement (3) holds implies that the terms each equal the zero vector . Hence decompositions are unique.
QED
Definition 4.9 A collection of subspaces is independent if no nonzero vector from any is a linear combination of vectors from the other subspaces .
Definition 4.10 A vector space is the direct sum (or internal direct sum) of its subspaces if and the collection is independent. We write .
Example 4.11 Our prototype works: .
Example 4.12 The space of matrices is this direct sum.
It is the direct sum of subspaces in many other ways as well; direct sum decompositions are not unique.
Corollary 4.13 The dimension of a direct sum is the sum of the dimensions of its summands.
Proof In Lemma 4.8, the number of basis vectors in the concatenation equals the sum of the number of vectors in the sub-bases.
QED
The special case of two subspaces is worth its own mention.
Definition 4.14 When a vector space is the direct sum of two of its subspaces then they are complements.
Lemma 4.15 A vector space is the direct sum of two of its subspaces and if and only if it is the sum of the two and their intersection is trivial .
Proof Suppose first that . By definition, is the sum of the two . To show that their intersection is trivial let be a vector from and consider the equation . On that equation’s left side is a member of and on the right is a member of , which we can think of as a linear combination of members of . But the two spaces are independent so the only way that a member of can be a linear combination of vectors from is if that member is the zero vector .
For the other direction, suppose that is the sum of two spaces with a trivial intersection. To show that is a direct sum of the two we need only show that the spaces are independent—that no nonzero member of the first is expressible as a linear combination of members of the second, and vice versa. This holds because any relationship (with and for all ) shows that the vector on the left is also in , since the right side is a combination of members of . The intersection of these two spaces is trivial, so . The same argument works for any .
QED
Example 4.16 In the -axis and the -axis are complements, that is, . This points out that subspace complement is slightly different than set complement; the and axes are not set complements because their intersection is not the empty set.
A space can have more than one pair of complementary subspaces; another pair for are the subspaces consisting of the lines and .
Example 4.17 In the space , the subspaces and are complements. The prior example noted that a space can be decomposed into more than one pair of complements. In addition note that can has more than one pair of complementary subspaces where the first in the pair is —another complement of is .
Example 4.18 In , the -plane and the -planes are not complements, which is the point of the discussion following Example 4.4. One complement of the -plane is the -axis.
Here is a natural question that arises from Lemma 4.15: for is the simple sum also a direct sum if and only if the intersection of the subspaces is trivial?
Example 4.19 If there are more than two subspaces then having a trivial intersection is not enough to guarantee unique decomposition (i.e., is not enough to ensure that the spaces are independent). In , let be the -axis, let be the -axis, and let be this.
The check that is easy. The intersection is trivial, but decompositions aren’t unique.
(This example also shows that this requirement is also not enough: that all pairwise intersections of the subspaces be trivial. See Exercise 4.30.)
In this subsection we have seen two ways to regard a space as built up from component parts. Both are useful; in particular we will use the direct sum definition at the end of the Chapter Five.
Exercises
Exercise 4.20 Worked answer
Recommended. Decide if is the direct sum of each and .
,
,
,
,
Answer. With each of these we can apply Lemma 4.15.
Yes. The plane is the sum of this and because for any scalars and
shows that the general vector is a sum of vectors from the two parts. And, these two subspaces are (different) lines through the origin, and so have a trivial intersection.
Yes. To see that any vector in the plane is a combination of vectors from these parts, consider this relationship.
We could now simply note that the set
is a basis for the space (because it is clearly linearly independent, and has size two in ), and thus there is one and only one solution to the above equation, implying that all decompositions are unique. Alternatively, we can solve
to get that and , and so we have
as required. As with the prior answer, each of the two subspaces is a line through the origin, and their intersection is trivial.
Yes. Each vector in the plane is a sum in this way
and the intersection of the two subspaces is trivial.
No. The intersection is not trivial.
No. These are not subspaces.
Exercise 4.21 Worked answer
Recommended. Show that is the direct sum of the -plane with each of these.
the -axis
the line
Answer. With each of these we can use Lemma 4.15.
Any vector in can be decomposed as this sum.
And, the intersection of the -plane and the -axis is the trivial subspace.
Any vector in can be decomposed as
and the intersection of the two spaces is trivial.
Exercise 4.22 Worked answer
Is the direct sum of and ?
Answer. It is. Showing that these two are subspaces is routine. To see that the space is the direct sum of these two, just note that each member of has the unique decomposition .
Exercise 4.23 Worked answer
Recommended. In , the even polynomials are the members of this set
and the odd polynomials are the members of this set.
Show that these are complementary subspaces.
Answer. To show that they are subspaces is routine. We will argue they are complements with Lemma 4.15. The intersection is trivial because the only polynomial satisfying both conditions and is the zero polynomial. To see that the entire space is the sum of the subspaces , note that the polynomials , , , etc., are in and also note that the polynomials , , etc., are in . Hence any member of is a combination of members of and .
Exercise 4.24 Worked answer
Which of these subspaces of
: the -axis, : the -axis, : the -axis, : the plane , : the -plane can be combined to
sum to ?
direct sum to ?
Answer. Each of these is .
These are broken into some separate lines for readability.
, , , , , , , , , , , , ,
, , , , , , , , , ,
Exercise 4.25 Worked answer
Recommended. Show that .
Answer. Clearly each is a subspace. The bases for the subspaces, when concatenated, form a basis for the whole space.
Exercise 4.27 Worked answer
Does Example 4.5 generalize? That is, is this true or false: if a vector space has a basis then it is the direct sum of the spans of the one-dimensional subspaces ?
Answer. True by Lemma 4.8.
Exercise 4.28 Worked answer
Can be decomposed as a direct sum in two different ways? Can ?
Answer. Two distinct direct sum decompositions of are easy to find. Two such are and , and also and . (Many more are possible, for example and its trivial subspace.)
In contrast, any partition of ’s single-vector basis will give one basis with no elements and another with a single element. Thus any decomposition involves and its trivial subspace.
Exercise 4.29 Worked answer
This exercise makes the notation of writing ‘’ between sets more natural. Prove that, where are subspaces of a vector space,
and so the sum of subspaces is the subspace of all sums.
Answer. Set inclusion one way is easy: is a subset of because each is a sum of vectors from the union.
For the other inclusion, to any linear combination of vectors from the union apply commutativity of vector addition to put vectors from first, followed by vectors from , etc. Add the vectors from to get a , add the vectors from to get a , etc. The result has the desired form.
Exercise 4.30 Worked answer
(Refer to Example 4.19. This exercise shows that the requirement that pairwise intersections be trivial is genuinely stronger than the requirement only that the intersection of all of the subspaces be trivial.) Give a vector space and three subspaces , , and such that the space is the sum of the subspaces, the intersection of all three subspaces is trivial, but the pairwise intersections , , and are nontrivial.
Answer. One example is to take the space to be , and to take the subspaces to be the -plane, the -plane, and the -plane.
Exercise 4.31 Worked answer
Prove that if then is trivial whenever . This shows that the first half of the proof of Lemma 4.15 extends to the case of more than two subspaces. (Example 4.19 shows that this implication does not reverse; the other half does not extend.)
Answer. Of course, the zero vector is in all of the subspaces, so the intersection contains at least that one vector.. By the definition of direct sum the set is independent and so no nonzero vector of is a multiple of a member of , when . In particular, no nonzero vector from equals a member of .
Exercise 4.32 Worked answer
Recall that no linearly independent set contains the zero vector. Can an independent set of subspaces contain the trivial subspace?
Answer. It can contain a trivial subspace; this set of subspaces of is independent: . No nonzero vector from the trivial space is a multiple of a vector from the -axis, simply because the trivial space has no nonzero vectors to be candidates for such a multiple (and also no nonzero vector from the -axis is a multiple of the zero vector from the trivial subspace).
Exercise 4.33 Worked answer
Recommended. Does every subspace have a complement?
Answer. Yes. For any subspace of a vector space we can take any basis for that subspace and extend it to a basis for the whole space. Then the complement of the original subspace has this basis .
Exercise 4.34 Worked answer
Recommended. Let be subspaces of a vector space.
Assume that the set spans , and that the set spans . Can span ? Must it?
Assume that is a linearly independent subset of and that is a linearly independent subset of . Can be a linearly independent subset of ? Must it?
Answer.
It must. We can write any member of as where and . As spans , the vector is a combination of members of . Similarly is a combination of members of .
An easy way to see that it can be linearly independent is to take each to be the empty set. On the other hand, in the space , if and and and , then their union is not independent.
Exercise 4.35 Worked answer
When we decompose a vector space as a direct sum, the dimensions of the subspaces add to the dimension of the space. The situation with a space that is given as the sum of its subspaces is not as simple. This exercise considers the two-subspace special case.
For these subspaces of find , , , and .
Suppose that and are subspaces of a vector space. Suppose that the sequence is a basis for . Finally, suppose that the prior sequence has been expanded to give a sequence that is a basis for , and a sequence that is a basis for . Prove that this sequence
is a basis for the sum .
Conclude that .
Let and be eight-dimensional subspaces of a ten-dimensional space. List all values possible for .
Answer.
The intersection and sum are
which have dimensions one and three.
We write for the basis for , we write for the basis for , we write for the basis for , and we write for the basis under consideration.
To see that spans , observe that we can write any vector from as a linear combination of the vectors in , simply by expressing in terms of and expressing in terms of .
We finish by showing that is linearly independent. Consider
which can be rewritten in this way.
Note that the left side sums to a vector in while right side sums to a vector in , and thus both sides sum to a member of . Since the left side is a member of , it is expressible in terms of the members of , which gives the combination of ’s from the left side above as equal to a combination of ’s. But, the fact that the basis is linearly independent shows that any such combination is trivial, and in particular, the coefficients , …, from the left side above are all zero. Similarly, the coefficients of the ’s are all zero. This leaves the above equation as a linear relationship among the ’s, but is linearly independent, and therefore all of the coefficients of the ’s are also zero.
Just count the basis vectors in the prior item: , and , and , and .
We know that . Because , we know that must have dimension greater than that of , that is, must have dimension eight, nine, or ten. Substituting gives us three possibilities or or . Thus must be either eight, seven, or six. (Giving examples to show that each of these three cases is possible is easy, for instance in .)
Exercise 4.36 Worked answer
Let and for each index suppose that is a linearly independent subset of . Prove that the union of the ’s is linearly independent.
Answer. Expand each to a basis for . The concatenation of those bases is a basis for and thus its members form a linearly independent set. But the union is a subset of that linearly independent set, and thus is itself linearly independent.
Exercise 4.37 Worked answer
A matrix is symmetric if for each pair of indices and , the entry equals the entry. A matrix is antisymmetric if each entry is the negative of the entry.
Give a symmetric matrix and an antisymmetric matrix. (Remark. For the second one, be careful about the entries on the diagonal.)
What is the relationship between a square symmetric matrix and its transpose? Between a square antisymmetric matrix and its transpose?
Show that is the direct sum of the space of symmetric matrices and the space of antisymmetric matrices.
Answer.
Two such are these.
For the antisymmetric one, entries on the diagonal must be zero.
A square symmetric matrix equals its transpose. A square antisymmetric matrix equals the negative of its transpose.
Showing that the two sets are subspaces is easy. Suppose that . To express as a sum of a symmetric and an antisymmetric matrix, we observe that
and note the first summand is symmetric while the second is antisymmetric. Thus is the sum of the two subspaces. To show that the sum is direct, assume a matrix is both symmetric and antisymmetric . Then and so all of ’s entries are zeroes.
Exercise 4.38 Worked answer
Let be subspaces of a vector space. Prove that . Does the inclusion reverse?
Answer. Assume that . Then where and . Note that and, as a subspace is closed under addition, . Thus .
This example proves that the inclusion may be strict: in take to be the -axis, take to be the -axis, and take to be the line . Then and are trivial and so their sum is trivial. But is all of so is the -axis.
Exercise 4.39 Worked answer
The example of the -axis and the -axis in shows that does not imply that . Can and happen?
Answer. It happens when at least one of is trivial. But that is the only way it can happen.
To prove this, assume that both are non-trivial, select nonzero vectors from each, and consider . This sum is not in because would imply that is in , which violates the assumption of the independence of the subspaces. Similarly, is not in . Thus there is an element of that is not in .
Exercise 4.40 Worked answer
Consider Corollary 4.13. Does it work both ways—that is, supposing that , is if and only if ?
Answer. Yes. The left-to-right implication is Corollary 4.13. For the other direction, assume that . Let be bases for . As is the sum of the subspaces, we can write any as and expressing each as a combination of vectors from the associated basis shows that the concatenation spans . Now, that concatenation has members, and so it is a spanning set of size . The concatenation is therefore a basis for . Thus is the direct sum.
Exercise 4.41 Worked answer
We know that if then there is a basis for that splits into a basis for and a basis for . Can we make the stronger statement that every basis for splits into a basis for and a basis for ?
Answer. No. The standard basis for does not split into bases for the complementary subspaces the line and the line .
Exercise 4.42 Worked answer
We can ask about the algebra of the ‘’ operation.
Is it commutative; is ?
Is it associative; is ?
Let be a subspace of some vector space. Show that .
Must there be an identity element, a subspace such that for all subspaces ?
Does left-cancellation hold: if then ? Right cancellation?
Answer.
Yes, for all subspaces because each side is the span of .
This one is similar to the prior one—each side of that equation is the span of .
Because this is an equality between sets, we can show that it holds by mutual inclusion. Clearly . For just recall that every subset is closed under addition so any sum of the form is in .
In each vector space, the identity element with respect to subspace addition is the trivial subspace.
Neither of left or right cancellation needs to hold. For an example, in take to be the -plane, take to be the -axis, and take to be the -axis.
References cited in this section
Sheffer
Adam Sheffer (attributed to Bob Krueger), A Linear Algebra Riddle, blog post, https://adamsheffer.wordpress.com/2018/07/21/linear-algebra-riddle/ July 21, 2018.
Wohascum no. 47
The Wohascum County Problem Book problem number 47.
Munkres
James R. Munkres, Elementary Linear Algebra, Addison-Wesley, 1964.
More information on sequences is in the appendix.↩︎