Vector Spaces
The first chapter finished with a fair understanding of how Gauss’s Method solves a linear system. It systematically takes linear combinations of the rows. Here we move to a general study of linear combinations.
We need a setting. At times in the first chapter we’ve combined vectors from , at other times vectors from , and at other times vectors from higher-dimensional spaces. So our first impulse might be to work in , leaving unspecified. This would have the advantage that any of the results would hold for and for and for many other spaces, simultaneously.
But if having the results apply to many spaces at once is advantageous then sticking only to ’s is restrictive. We’d like our results to apply to combinations of row vectors, as in the final section of the first chapter. We’ve even seen some spaces that are not simply a collection of all of the same-sized column vectors or row vectors. For instance, we’ve seen a homogeneous system’s solution set that is a plane inside of . This set is a closed system in that a linear combination of these solutions is also a solution. But it does not contain all of the three-tall column vectors, only some of them.
We want the results about linear combinations to apply anywhere that linear combinations make sense. We shall call any such set a vector space. Our results, instead of being phrased as “Whenever we have a collection in which we can sensibly take linear combinations …”, will be stated “In any vector space …”
Such a statement describes at once what happens in many spaces. To understand the advantages of moving from studying a single space to studying a class of spaces, consider this analogy. Imagine that the government made laws one person at a time: “Leslie Jones can’t jay walk.” That would be bad; statements have the virtue of economy when they apply to many cases at once. Or suppose that they said, “Kim Ke must stop when passing an accident.” Contrast that with, “Any doctor must stop when passing an accident.” More general statements, in some ways, are clearer.
Definition of Vector Space
We shall study structures with two operations, an addition and a scalar multiplication, that are subject to some simple conditions. We will reflect more on the conditions later but on first reading notice how reasonable they are. For instance, surely any operation that can be called an addition (e.g., column vector addition, row vector addition, or real number addition) will satisfy conditions (1) through (5) below.
Definition and Examples
Definition 1.1 A vector space (over ) consists of a set along with two operations ‘+’ and ‘’ subject to the conditions that for all vectors and all scalars :
the set is closed under vector addition, that is,
vector addition is commutative,
vector addition is associative,
there is a zero vector such that for all
each has an additive inverse such that
the set is closed under scalar multiplication, that is,
scalar multiplication distributes over scalar addition,
scalar multiplication distributes over vector addition,
ordinary multiplication of scalars associates with scalar multiplication,
multiplication by the scalar is the identity operation, .
Remark 1.2 The definition involves two kinds of addition and two kinds of multiplication, and so may at first seem confused. For instance, in condition (7) the ‘’ on the left is addition of two real numbers while the ‘’ on the right is addition of two vectors in . These expressions aren’t ambiguous because of context; for example, and are real numbers so ‘’ can only mean real number addition. In the same way, item (9)’s left side ‘’ is ordinary real number multiplication, while its right side ‘’ is the scalar multiplication defined for this vector space.
The best way to understand the definition is to go through the examples below and for each, check all ten conditions. The first example includes that check, written out at length. Use it as a model for the others. Especially important are the closure conditions, (1) and (6). They specify that the addition and scalar multiplication operations are always sensible—they are defined for every pair of vectors and every scalar and vector, and the result of the operation is a member of the set.
Example 1.3 This subset of is a line through the origin.
We shall verify that it is a vector space under the usual meaning of ‘+’ and ‘’.
These operations are just the ordinary ones, reused on its subset . We say that inherits these operations from .
We shall check all ten conditions. The paragraph having to do with addition has five conditions. For condition (1), closure under addition, suppose that we start with two vectors from the line ,
so that they satisfy the restrictions that and . Their sum
is also a member of the line because the fact that its second component is three times its first follows from the restrictions on and . For (2), that addition of vectors commutes, just compare
and note that they are equal since their entries are real numbers and real numbers commute. (That the vectors satisfy the restriction of lying in the line is not relevant for this condition; they commute just because all vectors in the plane commute.) Condition (3), associativity of vector addition, is similar.
For the fourth condition we must produce a vector that acts as the zero element. The vector of zero entries will do.
Note that as its second component is triple its first. For (5), that given any we can produce an additive inverse, we have
and so the vector is the desired inverse. As with the prior condition, observe here that if , so that , then also, since .
The checks for the five conditions having to do with scalar multiplication are similar. For (6), closure under scalar multiplication, suppose that and , that is,
satisfies that . Then
is also a member of : the relation holds because . Next, this checks (7).
For (8) we have this.
The ninth
and tenth conditions are also straightforward.
Example 1.4 The whole plane, the set , is a vector space where the operations ‘’ and ‘’ have their usual meaning.
We shall check just two of the conditions, the closure conditions.
For (1) observe that the result of the vector sum
is a column array with two real entries, and so is a member of the plane . In contrast with the prior example, here there is no restriction on the first and second components of the vectors.
Condition (6) is similar. The vector
has two real entries, and so is a member of .
In a similar way, each is a vector space with the usual operations of vector addition and scalar multiplication. (In , we usually do not write the members as column vectors, i.e., we usually do not write ‘’. Instead we just write ‘’.)
Example 1.5 Example 1.3 gives a subset of that is a vector space. For contrast, consider the set of two-tall columns with entries that are integers, under the same operations of component-wise addition and scalar multiplication. This is a subset of but it is not a vector space: it is not closed under scalar multiplication, that is, it does not satisfy condition (6). For instance, on the left below is a vector with integer entries, and a scalar.
On the right is a column vector that is not a member of the set, since its entries are not all integers.
Example 1.6 The one-element set
is a vector space under the operations
that it inherits from .
A vector space must have at least one element, its zero vector. Thus a one-element vector space is the smallest possible.
Definition 1.7 A one-element vector space is a trivial space.
The examples so far involve sets of column vectors with the usual operations. But vector spaces need not be collections of column vectors, or even of row vectors. Below are some other types of vector spaces. The term ‘vector space’ does not mean ‘collection of columns of reals’. It means something more like ‘collection in which any linear combination is sensible’.
Example 1.8 Consider , the set of polynomials of degree three or less (in this book, we’ll take constant polynomials, including the zero polynomial, to be of degree zero). It is a vector space under the operations
and
(the verification is easy). This vector space is worthy of attention because these are the polynomial operations familiar from high school algebra. For instance, .
Although this space is not a subset of any , there is a sense in which we can think of as “the same” as . If we identify these two space’s elements in this way
then the operations also correspond. Here is an example of corresponding additions.
Things we are thinking of as “the same” add to “the same” sum. Chapter Three makes precise this idea of vector space correspondence. For now we shall just leave it as an intuition.
In general we write for the vector space of polynomials of degree or less , under the operations of the usual polynomial addition and scalar multiplication. We will often use these spaces as examples.
Example 1.9 The set of matrices with real number entries is a vector space under the natural entry-by-entry operations.
As in the prior example, we can think of this space as “the same” as .
We write for the vector space of matrices under the natural operations of matrix addition and scalar multiplication. As with the polynomial spaces, we will often use these as examples.
Example 1.10 The set of all real-valued functions of one natural number variable is a vector space under the operations
so that if, for example, and then .
We can view this space as a generalization of Example 1.4—instead of -tall vectors, these functions are like infinitely-tall vectors.
Addition and scalar multiplication are component-wise, as in Example 1.4. (We can formalize “infinitely-tall” by saying that it means an infinite sequence, or that it means a function from to .)
Example 1.11 The set of polynomials with real coefficients
makes a vector space when given the natural ‘’
and ‘’.
This space differs from the space of Example 1.8. This space contains not just degree three polynomials, but degree thirty polynomials and degree three hundred polynomials, too. Each individual polynomial of course is of a finite degree, but the set has no single bound on the degree of all of its members.
We can think of this example, like the prior one, in terms of infinite-tuples. For instance, we can think of as corresponding to . However, this space differs from the one in Example 1.10. Here, each member of the set has a finite degree, that is, under the correspondence there is no element from this space matching . Vectors in this space correspond to infinite-tuples that end in zeroes.
Example 1.12 The set of all real-valued functions of one real variable is a vector space under these.
The difference between this and Example 1.10 is the domain of the functions.
Example 1.13 The set of real-valued functions of the real variable is a vector space under the operations
and
inherited from the space in the prior example. (We can think of as “the same” as in that corresponds to the vector with components and .)
Example 1.14 The set
is a vector space under the, by now natural, interpretation.
In particular, notice that basic Calculus gives
and
and so the space is closed under addition and scalar multiplication. This turns out to equal the space from the prior example—functions satisfying this differential equation have the form —but this description suggests an extension to solutions sets of other differential equations.
Example 1.15 The set of solutions of a homogeneous linear system in variables is a vector space under the operations inherited from . For example, for closure under addition consider a typical equation in that system and suppose that both these vectors
satisfy the equation. Then their sum also satisfies that equation: . The checks of the other vector space conditions are just as routine.
We often omit the multiplication symbol ‘’ between the scalar and the vector. We distinguish the multiplication in from that in by context, since if both multiplicands are real numbers then it must be real-real multiplication while if one is a vector then it must be scalar-vector multiplication.
Example 1.15 has brought us full circle since it is one of our motivating examples. Now, with some feel for the kinds of structures that satisfy the definition of a vector space, we can reflect on that definition. For example, why specify in the definition the condition that but not a condition that ?
One answer is that this is just a definition—it gives the rules and you need to follow those rules to continue.
Another answer is perhaps more satisfying. People in this area have worked to develop the right balance of power and generality. This definition is shaped so that it contains the conditions needed to prove all of the interesting and important properties of spaces of linear combinations. As we proceed, we shall derive all of the properties natural to collections of linear combinations from the conditions given in the definition.
The next result is an example. We do not need to include these properties in the definition of vector space because they follow from the properties already listed there.
Lemma 1.16 In any vector space , for any and , we have (1) , (2) , and (3) .
Proof For (1) note that . Add to both sides the additive inverse of , the vector such that .
Item (2) is easy: . For (3), will do.
QED
The second item shows that we can write the additive inverse of as ‘’ without worrying about any confusion with .
A recap: our study in Chapter One of Gaussian reduction led us to consider collections of linear combinations. So in this chapter we have defined a vector space to be a structure in which we can form such combinations, subject to simple conditions on the addition and scalar multiplication operations. In a phrase: vector spaces are the right context in which to study linearity.
From the fact that it forms a whole chapter, and especially because that chapter is the first one, a reader could suppose that our purpose in this book is the study of linear systems. The truth is that we will not so much use vector spaces in the study of linear systems as we instead have linear systems start us on the study of vector spaces. The wide variety of examples from this subsection shows that the study of vector spaces is interesting and important in its own right. Linear systems won’t go away. But from now on our primary objects of study will be vector spaces.
Exercises
Exercise 1.17 Worked answer
Name the zero vector for each of these vector spaces.
The space of degree three polynomials under the natural operations.
The space of matrices.
The space .
The space of real-valued functions of one natural number variable.
Exercise 1.18 Worked answer
Recommended. Find the additive inverse, in the vector space, of the vector.
In , the vector .
In the space ,
In , the space of functions of the real variable under the natural operations, the vector .
Exercise 1.19 Worked answer
Recommended. For each, list three elements and then show it is a vector space.
The set of linear polynomials under the usual polynomial addition and scalar multiplication operations.
The set of linear polynomials , under the usual polynomial addition and scalar multiplication operations.
Hint. Use Example 1.3 as a guide. Most of the ten conditions are just verifications.
Answer.
Three elements are: , , and . (Of course, many answers are possible.)
The verification is just like Example 1.4. We first do conditions - from Definition 1.1, having to do with addition. For closure under addition, condition (1), note that where we have that is a linear polynomial with real coefficients and so is an element of . Condition (2) is verified with: where then , while in the other order they are , and both and as these are real numbers. Condition (3) is similar: suppose then while , and the two are equal (that is, real number addition is associative so and ). For condition (4) observe that the linear polynomial has the property that and . For the last condition in this paragraph, condition (5), note that for any the additive inverse is since .
We next also check conditions (6)-(10), involving scalar multiplication. For (6), the condition that the space be closed under scalar multiplication, suppose that is a real number and is an element of , and then is an element of because it is a linear polynomial with real number coefficients. Condition (7) holds because is true from the distributive property for real number multiplication. Condition (8) is similar: . For (9) we have . Finally, condition (10) is .
Call the set . In the prior item in this exercise there was no restriction on the coefficients but here we are restricting attention to those linear polynomials where , that is, where the constant term minus twice the coefficient of the linear term is zero. Thus, three typical elements of are , , and .
For condition (1) we must show that if we add two linear polynomials that satisfy the restriction then we get a linear polynomial also satisfying the restriction: here that argument is that if then is an element of because . We can verify condition (2) with: where then , while in the other order they are , and both and as these are real numbers. (That is, this condition is not affected by the restriction and the verification is the same as the verification in the first item of this exercise). Condition (3) is also not affected by the extra restriction: suppose that then while , and the two are equal. For condition (4) observe that the linear polynomial satisfies the restriction because its constant term minus twice the coefficient of its linear term is zero, and then the verification from the first item of this question applies: has the property that and . To check condition (5), note that for any the additive inverse is since it is an element of (because we know that and multiplying both sides by gives that ), and as in the first item it acts as the additive inverse .
We must also check conditions (6)-(10), those for scalar multiplication. For (6), the condition that the space be closed under scalar multiplication, suppose that is a real number and (so that ), then is an element of because it is a linear polynomial with real number coefficients satisfying that . Condition (7) holds for the same reason that it holds in the first item of this exercise, because is true from the distributive property for real number multiplication. Condition (8) is also unchanged from the first item: . So is (9): . Finally, so is condition (10): .
Exercise 1.20 Worked answer
For each, list three elements and then show it is a vector space.
The set of matrices with real entries under the usual matrix operations.
The set of matrices with real entries where the entry is zero, under the usual matrix operations.
Answer. Use Example 1.4 as a guide. (Comment. Because many of the conditions are quite easy to check, sometimes a person can feel that they must have missed something. Keep in mind that easy to do, or routine, is different from not necessary to do.)
Here are three elements.
For (1), the sum of real matrices is a real matrix. For (2) we consider the sum of two matrices
and apply commutativity of real number addition
to verify that the addition of the matrices is commutative. The verification for condition (3), associativity of matrix addition, is similar to the prior verification:
while
and the two are the same entry-by-entry because real number addition is associative. For (4), the zero element of this space is the matrix of zeroes. Condition (5) holds because for any matrix the additive inverse is the matrix whose entries are the negative of ’s, the matrix .
Condition () holds because a scalar multiple of a matrix is a matrix. For condition (7) we have this.
Condition (8) goes the same way.
For (9) we have this.
Condition (10) is just as easy.
This differs from the prior item in this exercise only in that we are restricting to the set of matrices with a zero in the second row and first column. Here are three elements of .
Some of the verifications for this item are the same as for the first item in this exercise, and below we’ll just do the ones that are different.
For (1), the sum of real matrices with a zero in the entry is also a real matrix with a zero in the entry.
The verification for condition (2) given in the prior item works in this item also. The same holds for condition (3). For (4), note that the matrix of zeroes is an element of . Condition (5) holds because for any matrix the additive inverse is the matrix and so the additive inverse of a matrix with a zero in the entry is also a matrix with a zero in the entry.
Condition holds because a scalar multiple of a matrix with a zero in the entry is a matrix with a zero in the entry. Condition (7)’s verification is the same as in the prior item. So are condition (8)’s, (9)’s, and (10)’s.
Exercise 1.21 Worked answer
Recommended. For each, list three elements and then show it is a vector space.
The set of three-component row vectors with their usual operations.
The set
under the operations inherited from .
Answer.
Three elements are , , and .
We must check conditions (1)-(10) in Definition 1.1. Conditions (1)-(5) concern addition. For condition (1) recall that the sum of two three-component row vectors
is also a three-component row vector (all of the letters represent real numbers). Verification of (2) is routine
(the second equality holds because the three entries are real numbers and real number addition commutes). Condition (3)’s verification is similar.
For (4), observe that the three-component row vector is the additive identity: . To verify condition (5), assume we are given the element of the set and note that is also in the set and has the desired property: .
Conditions (6)-(10) involve scalar multiplication. To verify (6), that the space is closed under the scalar multiplication operation that was given, note that is a three-component row vector with real entries. For (7) we compute.
Condition (8) is very similar.
So is the computation for condition (9).
Condition (10) is just as routine .
Call the set . Closure of addition, condition (1), involves checking that if the summands are members of then the sum
is also a member of , which is true because it satisfies the criteria for membership in : . The verifications for conditions (2), (3), and (5) are similar to the ones in the first part of this exercise. For condition (4) note that the vector of zeroes is a member of because its first component plus its second, minus its third, and plus its fourth, totals to zero.
Condition (6), closure of scalar multiplication, is similar: where the vector is an element of ,
is also an element of because . The verification for conditions (7), (8), (9), and (10) are as in the prior item of this exercise.
Exercise 1.22 Worked answer
Recommended. Show that each of these is not a vector space. (Hint. Check closure by listing two members of each set and trying some operations on them.)
Under the operations inherited from , this set
Under the operations inherited from , this set
Under the usual matrix operations,
Under the usual polynomial operations,
where is the set of reals greater than zero
Under the inherited operations,
Answer. In each item the set is called . For some items, there are other correct ways to show that is not a vector space.
It is not closed under addition; it fails to meet condition (1).
It is not closed under addition.
It is not closed under addition.
It is not closed under scalar multiplication.
It is empty, violating condition (4).
Exercise 1.23 Worked answer
Define addition and scalar multiplication operations to make the complex numbers a vector space over .
Answer. The usual operations and suffice. The check is easy.
Exercise 1.24 Worked answer
Is the set of rational numbers a vector space over under the usual addition and scalar multiplication operations?
Answer. No, it is not closed under scalar multiplication since, e.g., is not a rational number.
Exercise 1.25 Worked answer
Show that the set of linear combinations of the variables is a vector space under the natural addition and scalar multiplication operations.
Answer. The natural operations are and . The check that this is a vector space is easy; use Example 1.4 as a guide.
Exercise 1.26 Worked answer
Prove that this is not a vector space: the set of two-tall column vectors with real entries subject to these operations.
Answer. The ‘’ operation is not commutative (that is, condition (2) is not met); producing two members of the set witnessing this assertion is easy.
Exercise 1.28 Worked answer
Recommended. For each, decide if it is a vector space; the intended operations are the natural ones.
The diagonal matrices
This set of matrices
This set
The set of functions
The set of functions
Answer. For each “yes” answer, you can just check a couple of linear combinations in the space. For each “no” answer, give a specific example of the failure of one of the conditions.
Yes. One linear combination picked out of the air is this.
The key point about the collection being a vector space is that the result is a diagonal matrix.
Yes. Here is a linear combination.
We look for the result to follow the form that the upper left and lower right entries add to make the upper right entry, and also the lower left.
No, this set is not closed under the natural addition operation. The vector of all ’s is a member of this set but when added to itself the result, the vector of all ’s, is a nonmember.
Yes.
No, is in the set but is not (that is, condition (6) fails).
Exercise 1.29 Worked answer
Recommended. Prove or disprove that this is a vector space: the real-valued functions of one real variable such that .
Answer. It is a vector space. Most conditions of the definition of vector space are routine; we here check only closure. For addition, . For scalar multiplication, .
Exercise 1.30 Worked answer
Recommended. Show that the set of positive reals is a vector space when we interpret ‘’ to mean the product of and (so that is ), and we interpret ‘’ as the -th power of .
Answer. We check Definition 1.1.
First, closure under ‘’ holds because the product of two positive reals is a positive real. The second condition is satisfied because real multiplication commutes. Similarly, as real multiplication associates, the third checks. For the fourth condition, observe that multiplying a number by won’t change the number. Fifth, any positive real has a reciprocal that is a positive real.
The sixth, closure under ‘’, holds because any power of a positive real is a positive real. The seventh condition is just the rule that equals the product of and . The eight condition says that . The ninth condition asserts that . The final condition says that .
Exercise 1.31 Worked answer
Is a vector space under these operations?
and
and
Answer.
No: .
No; the same calculation as the prior answer shows a condition in the definition of a vector space that is violated. Another example of a violation of the conditions for a vector space is that .
Exercise 1.32 Worked answer
Prove or disprove that this is a vector space: the set of polynomials of degree greater than or equal to two, along with the zero polynomial.
Answer. It is not a vector space since it is not closed under addition, as is not in the set.
Exercise 1.33 Worked answer
At this point “the same” is only an intuition, but nonetheless for each vector space identify the for which the space is “the same” as .
The matrices under the usual operations
The matrices (under their usual operations)
This set of matrices
This set of matrices
Answer.
To see that the answer is , rewrite it as
so that there are two parameters.
Exercise 1.34 Worked answer
Using to represent vector addition and for scalar multiplication, restate the definition of vector space.
Answer. A vector space (over ) consists of a set along with two operations ‘’ and ‘’ subject to these conditions. Where , (1) their vector sum is an element of . If then (2) and (3) . (4) There is a zero vector such that for all . (5) Each has an additive inverse such that . If are scalars, that is, members of ), and then (6) each scalar multiple is in . If and then (7) , and (8) , and (9) , and (10) .
Exercise 1.35 Worked answer
Prove these.
For any , if is an additive inverse of , then is an additive inverse of . So a vector is an additive inverse of any additive inverse of itself.
Vector addition left-cancels: if then implies that .
Answer.
Let be a vector space, let , and assume that is an additive inverse of so that . Because addition is commutative, , so therefore is also the additive inverse of .
Let be a vector space and suppose . The additive inverse of is so gives that , which says that and so .
Exercise 1.36 Worked answer
The definition of vector spaces does not explicitly say that (it instead says that ). Show that it must nonetheless hold in any vector space.
Answer. Addition is commutative, so in any vector space, for any vector we have that .
Exercise 1.37 Worked answer
Recommended. Prove or disprove that this is a vector space: the set of all matrices, under the usual operations.
Answer. It is not a vector space since addition of two matrices of unequal sizes is not defined, and thus the set fails to satisfy the closure condition.
Exercise 1.38 Worked answer
In a vector space every element has an additive inverse. Can some elements have two or more?
Answer. Each element of a vector space has one and only one additive inverse.
For, let be a vector space and suppose that . If are both additive inverses of then consider . On the one hand, we have that it equals . On the other hand we have that it equals . Therefore, .
Exercise 1.39 Worked answer
Prove that every point, line, or plane through the origin in is a vector space under the inherited operations.
What if it doesn’t contain the origin?
Answer.
Every such set has the form where either or both of may be . With the inherited operations, closure of addition and scalar multiplication are easy. The other conditions are also routine.
No such set can be a vector space under the inherited operations because it does not have a zero element.
Exercise 1.40 Worked answer
Using the idea of a vector space we can easily reprove that the solution set of a homogeneous linear system has either one element or infinitely many elements. Assume that is not .
Prove that if and only if .
Prove that if and only if .
Prove that any nontrivial vector space is infinite.
Use the fact that a nonempty solution set of a homogeneous linear system is a vector space to draw the conclusion.
Answer. Assume that is not .
One direction of the if and only if is clear: if then . For the other way, let be a nonzero scalar. If then shows that , contrary to the assumption.
Where are scalars, holds if and only if . By the prior item, then .
A nontrivial space has a vector . Consider the set . By the prior item this set is infinite.
The solution set is either trivial, or nontrivial. In the second case, it is infinite.
Exercise 1.41 Worked answer
Is this a vector space under the natural operations: the real-valued functions of one real variable that are differentiable?
Answer. Yes. A theorem of first semester calculus says that a sum of differentiable functions is differentiable and that , and that a multiple of a differentiable function is differentiable and that .
Exercise 1.42 Worked answer
A vector space over the complex numbers has the same definition as a vector space over the reals except that scalars are drawn from instead of from . Show that each of these is a vector space over the complex numbers. (Recall how complex numbers add and multiply: and .)
The set of degree two polynomials with complex coefficients
This set
Answer. The check is routine. Note that ‘’ is and the zero elements are these.
Exercise 1.43 Worked answer
Name a property shared by all of the ’s but not listed as a requirement for a vector space.
Answer. Notably absent from the definition of a vector space is a distance measure.
Exercise 1.44 Worked answer
Prove that for any four vectors we can associate their sum in any way without changing the result.
This allows us to write ‘’ without ambiguity.
Prove that any two ways of associating a sum of any number of vectors give the same sum. (Hint. Use induction on the number of vectors.)
Answer.
A small rearrangement does the trick.
Each equality above follows from the associativity of three vectors that is given as a condition in the definition of a vector space. For instance, the second ‘’ applies the rule by taking to be , taking to be , and taking to be .
The base case for induction is the three vector case. This case is one of the conditions in the definition of a vector space.
For the inductive step, assume that any two sums of three vectors, any two sums of four vectors, …, any two sums of vectors are equal no matter how we parenthesize the sums. We will show that any sum of vectors equals this one .
Any parenthesized sum has an outermost ‘’. Assume that it lies between and so the sum looks like this.
The second half involves fewer than additions, so by the inductive hypothesis we can re-parenthesize it so that it reads left to right from the inside out, and in particular, so that its outermost ‘’ occurs right before .
Apply the associativity of the sum of three things
and finish by applying the inductive hypothesis inside these outermost parenthesis.
Exercise 1.45 Worked answer
Example 1.5 gives a subset of that is not a vector space, under the obvious operations, because while it is closed under addition, it is not closed under scalar multiplication. Consider the set of vectors in the plane whose components have the same sign or are . Show that this set is closed under scalar multiplication but not addition.
Answer. Let be a member of with components and . We can abbreviate the condition that both components have the same sign or are by .
To show the set is closed under scalar multiplication, observe that the components of satisfy and so .
To show the set is not closed under addition we need only produce one example. The vector with components and , when added to the vector with components and makes a vector with mixed-sign components of and .
Subspaces and Spanning Sets
In Example 1.3 we saw a vector space that is a subset of , a line through the origin. There, the vector space contains inside it another vector space, the line.
Definition 2.1 For any vector space, a subspace is a subset that is itself a vector space, under the inherited operations.
Example 2.2 This plane through the origin
is a subspace of . As required by the definition the plane’s operations are inherited from the larger space, that is, vectors add in as they add in
and scalar multiplication is also the same as in . To show that is a subspace we need only note that it is a subset and then verify that it is a space. We won’t check all ten conditions, just the two closure ones. For closure under addition, note that if the summands satisfy that and then the sum satisfies that . For closure under scalar multiplication, if then the scalar multiple has .
Example 2.3 The -axis in is a subspace, where the addition and scalar multiplication operations are the inherited ones.
As in the prior example, to verify directly from the definition that this is a subspace we simply note that it is a subset and then check that it satisfies the conditions in definition of a vector space. For instance the two closure conditions are satisfied: adding two vectors with a second component of zero results in a vector with a second component of zero and multiplying a scalar times a vector with a second component of zero results in a vector with a second component of zero.
Example 2.4 Another subspace of is its trivial subspace.
Any vector space has a trivial subspace . At the opposite extreme, any vector space has itself for a subspace. A subspace that is not the entire space is a proper subspace.
Example 2.5 Vector spaces that are not ’s also have subspaces. The space of cubic polynomials has a subspace comprised of all linear polynomials .
Example 2.6 Another example of a subspace that is not a subset of an followed the definition of a vector space. The space in Example 1.12 of all real-valued functions of one real variable has the subspace in Example 1.14 of functions satisfying the restriction .
Example 2.7 The definition requires that the addition and scalar multiplication operations must be the ones inherited from the larger space. The set is a subset of . And, under the operations and the set is a vector space, specifically, a trivial space. However, is not a subspace of because those aren’t the inherited operations, since of course has .
Example 2.8 Being vector spaces themselves, subspaces must satisfy the closure conditions. The set is not a subspace of the vector space because with the inherited operations it is not closed under scalar multiplication: if then .
The next result says that Example 2.8 is prototypical. The only way that a subset can fail to be a subspace, if it is nonempty and uses the inherited operations, is if it isn’t closed.
Lemma 2.9 For a nonempty subset of a vector space, under the inherited operations the following are equivalent statements.1
is a subspace of that vector space
is closed under linear combinations of pairs of vectors: for any vectors and scalars the vector is in
is closed under linear combinations of any number of vectors: for any vectors and scalars the vector is an element of .
Briefly, a subset is a subspace if and only if it is closed under linear combinations.
Proof ‘The following are equivalent’ means that each pair of statements are equivalent.
We will prove the equivalence by establishing that . This strategy is suggested by the observation that the implications and are easy and so we need only argue that .
Assume that is a nonempty subset of a vector space that is closed under combinations of pairs of vectors. We will show that is a vector space by checking the conditions.
The vector space definition has five conditions on addition. First, for closure under addition, if then , as it is a combination of a pair of vectors and we are assuming that is closed under those. Second, for any , because addition is inherited from , the sum in equals the sum in , and that equals the sum in (because is a vector space, its addition is commutative), and that in turn equals the sum in . The argument for the third condition is similar to that for the second. For the fourth, consider the zero vector of and note that closure of under linear combinations of pairs of vectors gives that is an element of (where is any member of the nonempty set ); checking that acts under the inherited operations as the additive identity of is easy. The fifth condition is satisfied because for any , closure under linear combinations of pairs of vectors shows that is an element of , and it is obviously the additive inverse of under the inherited operations. The verifications for the scalar multiplication conditions are similar; see Exercise 2.35.
QED
We will usually verify that a subset is a subspace by checking that it satisfies statement (2).
Remark 2.10 At the start of this chapter we introduced vector spaces as collections in which linear combinations “make sense.” Lemma 2.9’s statements (1)-(3) say that we can always make sense of an expression like in that the vector described is in the set .
As a contrast, consider the set of two-tall vectors whose entries add to a number greater than or equal to zero. Here we cannot just write any linear combination such as and be confident the result is an element of .
Lemma 2.9 suggests that a good way to think of a vector space is as a collection of unrestricted linear combinations. The next two examples take some spaces and recasts their descriptions to be in that form.
Example 2.11 We can show that this plane through the origin subset of
is a subspace under the usual addition and scalar multiplication operations of column vectors by checking that it is nonempty and closed under linear combinations of two vectors. But there is another way. Think of as a one-equation linear system and parametrize it by expressing the leading variable in terms of the free variables .
Now, to show that this is a subspace consider . Each is a linear combination of the two vectors in () so this is a linear combination of linear combinations.
The Linear Combination Lemma, Lemma One.III.2.3, shows that the total is a linear combination of the two vectors and so Lemma 2.9’s statement (2) is satisfied.
Example 2.12 This is a subspace of the matrices .
To parametrize, express the condition as .
As above, we’ve described the subspace as a collection of unrestricted linear combinations. To show it is a subspace, note that a linear combination of vectors from is a linear combination of linear combinations and so statement (2) is true.
Definition 2.13 The span (or linear closure) of a nonempty subset of a vector space is the set of all linear combinations of vectors from .
The span of the empty subset of a vector space is its trivial subspace.
No notation for the span is completely standard. The square brackets used here are common but so are ‘’ and ‘’.
Remark 2.14 In Chapter One, after we showed that we can write the solution set of a homogeneous linear system as , we described that as the set ‘generated’ by the ’s. We now call that the span of .
Recall also from that proof that the span of the empty set is defined to be the set because of the convention that a trivial linear combination, a combination of zero-many vectors, adds to . Besides, defining the empty set’s span to be the trivial subspace is convenient because it keeps results like the next one from needing exceptions for the empty set.
Lemma 2.15 In a vector space, the span of any subset is a subspace.
Proof If the subset is empty then by definition its span is the trivial subspace. If is not empty then by Lemma 2.9 we need only check that the span is closed under linear combinations of pairs of elements. For a pair of vectors from that span, and , a linear combination
is a linear combination of elements of and so is an element of (possibly some of the ’s from equal some of the ’s from but that does not matter).
QED
The converse of the lemma holds: any subspace is the span of some set, because a subspace is obviously the span of itself, the set of all of its members. Thus a subset of a vector space is a subspace if and only if it is a span. This fits the intuition that a good way to think of a vector space is as a collection in which linear combinations are sensible.
Taken together, Lemma 2.9 and Lemma 2.15 show that the span of a subset of a vector space is the smallest subspace containing all of the members of .
Example 2.16 In any vector space , for any vector , the set is a subspace of . For instance, for any vector the line through the origin containing that vector is a subspace of . This is true even if is the zero vector, in which case it is the degenerate line, the trivial subspace.
Example 2.17 The span of this set is all of .
We know that the span is some subspace of . To check that it is all of we must show that any member of is a linear combination of these two vectors. So we ask: for which vectors with real components and are there scalars and such that this holds?
Gauss’s Method
with back substitution gives and . This shows that for any there are appropriate coefficients making () true— we can write any element of as a linear combination of the two given ones. For instance, for and the coefficients and will do.
Since spans are subspaces, and we know that a good way to understand a subspace is to parametrize its description, we can try to understand a set’s span in that way.
Example 2.18 Consider, in the vector space of quadratic polynomials , the span of the set . By the definition of span, it is the set of unrestricted linear combinations of the two . Clearly polynomials in this span must have a constant term of zero. Is that necessary condition also sufficient?
We are asking: for which members of are there and such that ? Polynomials are equal when their coefficients are equal so we want conditions on , , and making that triple a solution of this system.
Gauss’s Method and back-substitution gives , and , and . Thus as long as there is no constant term we can give coefficients and to describe that polynomial as an element of the span. For instance, for the polynomial , the coefficients and will do. So the span of the given set is .
Incidentally, this shows that the set spans the same subspace. A space can have more than one spanning set. Two other sets spanning this subspace are and .
Example 2.19 The picture below shows the subspaces of that we now know of: the trivial subspace, lines through the origin, planes through the origin, and the whole space. (Of course, the picture shows only a few of the infinitely many cases. Line segments connect subsets with their supersets.) In the next section we will prove that has no other kind of subspace, so in fact this lists them all.
This describes each subspace as the span of a set with a minimal number of members. With this, the subspaces fall naturally into levels—planes on one level, lines on another, etc.
So far in this chapter we have seen that to study the properties of linear combinations, the right setting is a collection that is closed under these combinations. In the first subsection we introduced such collections, vector spaces, and we saw a great variety of examples. In this subsection we saw still more spaces, ones that are subspaces of others. In all of the variety there is a commonality. Example 2.19 above brings it out: vector spaces and subspaces are best understood as a span, and especially as a span of a small number of vectors. The next section studies spanning sets that are minimal.
Exercises
Exercise 2.20 Worked answer
Recommended. Which of these subsets of the vector space of matrices are subspaces under the inherited operations? For each one that is a subspace, parametrize its description. For each that is not, give a condition that fails.
Answer. By Lemma 2.9, to see if each subset of is a subspace, we need only check if it is nonempty and closed.
Yes, we can easily check that it is nonempty and closed. This is a parametrization.
By the way, the parametrization also shows that it is a subspace, since it is given as the span of the two-matrix set, and any span is a subspace.
Yes; it is easily checked to be nonempty and closed. Alternatively, as mentioned in the prior answer, the existence of a parametrization shows that it is a subspace. For the parametrization, the condition can be rewritten as . Then we have this.
No. It is not closed under addition. For instance,
is not in the set. (This set is also not closed under scalar multiplication, for instance, it does not contain the zero matrix.)
Yes.
Exercise 2.21 Worked answer
Recommended. Is this a subspace of : ? If it is then parametrize its description.
Answer. No, it is not closed. In particular, it is not closed under scalar multiplication because it does not contain the zero polynomial.
Exercise 2.22 Worked answer
Is the vector in the span of the set?
Answer. The equation
gives rise to a linear system
that has no solution, so the vector is not in the span.
Exercise 2.23 Worked answer
Recommended. Decide if the vector lies in the span of the set, inside of the space.
, , in
, , in
, , in
Answer.
Yes, solving the linear system arising from
gives and .
Yes; the linear system arising from
gives that .
No; any combination of the two given matrices has a zero in the upper right.
Exercise 2.24 Worked answer
A superhero is at the origin of a two dimensional plane. The superhero has two devices, a hoverboard that moves any distance in the direction and a magic carpet that moves any distance in the direction .
An evil villain is hiding out in the plane at the point . How many hoverboard units and magic carpet units does the superhero have to move to get to the villain?
Is there anywhere in the plane that the villain could safely hide and not be reached? If so, give one such location. If not, explain why not.
The superhero and the villain are transported to a three dimensional space where the superhero now has three devices.
Is there anywhere that the villain could safely hide? If so, give one such location and if not, explain why not.
Answer.
This relationship
gives this system of equations.
So . Substituting gives . In the terms of the section, the vector is in the span of the set of the other two.
There is no place to hide. This Gauss’s method reduction
shows that for any there is a pair . In the terms of the section, the span of the two vectors is the entire plane.
No place to hide. Consider this system.
After reduction
it shows that for any the required , , and exist. The superhero’s devices span the plane.
Exercise 2.25 Worked answer
Which of these are members of the span in the vector space of real-valued functions of one real variable?
Answer.
Yes; it is in that span since .
No, since has no scalar solutions that work for all . For instance, setting to be and gives the two equations and , which are not consistent with each other.
No; consider what happens on setting to be and .
Yes, .
Exercise 2.26 Worked answer
Recommended. Which of these sets spans ? That is, which of these sets has the property that any three-tall vector can be expressed as a suitable linear combination of the set’s elements?
Answer.
Yes, for any this equation
has the solution , , and .
Yes, the equation
gives rise to this
so that, given any , , and , we can compute that , , and .
No. In particular, we cannot get the vector
as a linear combination since the two given vectors both have a third component of zero.
Yes. The equation
leads to this reduction.
We have infinitely many solutions. We can, for example, set to be zero and solve for , , and in terms of , , and by the usual methods of back-substitution.
No. The equation
leads to this reduction.
This shows that not every three-tall vector can be so expressed. Only the vectors satisfying the restriction that are in the span. (To see that any such vector is indeed expressible, take and to be zero and solve for and in terms of , , and by back-substitution.)
Exercise 2.27 Worked answer
Recommended. Parametrize each subspace’s description. Then express each subspace as a span.
The subset of the three-wide row vectors
This subset of
This subset of
The subset of
The subset of of quadratic polynomials such that
Answer.
The obvious choice for the set that spans is .
One set that spans this space consists of those three matrices.
The system
gives and . So one description is this.
That shows that a set spanning this subspace consists of those two matrices.
The gives that the set equals the set . So the subspace is the span of the set .
The set can be parametrized as
and so has the spanning set .
Exercise 2.28 Worked answer
Recommended. Find a set to span the given subspace of the given space. (Hint. Parametrize each.)
the -plane in
in
in
in
The set in the space
in
Answer.
We can parametrize in this way
giving this for a spanning set.
Here is a parametrization, and the associated spanning set.
Parametrize the description as to get
Exercise 2.29 Worked answer
Is a subspace of ?
Answer. Technically, no. Subspaces of are sets of three-tall vectors, while is a set of two-tall vectors. Clearly though, is “just like” this subspace of .
Exercise 2.30 Worked answer
Recommended. Decide if each is a subspace of the vector space of real-valued functions of one real variable.
The even functions . For example, two members of this set are and .
The odd functions . Two members are and .
Answer. Of course, the addition and scalar multiplication operations are the ones inherited from the enclosing space.
This is a subspace. It is not empty as it contains at least the two example functions given. It is closed because if are even and are scalars then we have this.
This is also a subspace; the check is similar to the prior one.
Exercise 2.31 Worked answer
Example 2.16 says that for any vector that is an element of a vector space , the set is a subspace of . (This is simply the span of the singleton set .) Must any such subspace be a proper subspace?
Answer. It can be improper. For instance, if the vector space is and then the subspace is all of .
Exercise 2.32 Worked answer
An example following the definition of a vector space shows that the solution set of a homogeneous linear system is a vector space. In the terminology of this subsection, it is a subspace of where the system has variables. What about a non-homogeneous linear system; do its solutions form a subspace (under the inherited operations)?
Answer. No, such a set is not closed. For one thing, it does not contain the zero vector.
Exercise 2.33 Worked answer
[Cleary] Give an example of each or explain why it would be impossible to do so.
A nonempty subset of that is not a subspace.
A set of two vectors in that does not span the space.
Answer.
This nonempty subset of is not a subspace.
One reason that it is not a subspace of is that it does not contain the zero matrix. (Another reason is that it is not closed under addition, since the sum of the two is not an element of . It is also not closed under scalar multiplication.)
This set of two vectors does not span .
No linear combination of these two can give a vector whose second component is unequal to its first component.
Exercise 2.34 Worked answer
Example 2.19 shows that has infinitely many subspaces. Does every nontrivial space have infinitely many subspaces?
Answer. No. The only subspaces of are the space itself and its trivial subspace. Any subspace of that contains a nonzero member must contain the set of all of its scalar multiples . But this set is all of .
Exercise 2.35 Worked answer
Finish the proof of Lemma 2.9.
Answer. Item (1) is checked in the text.
Item (2) has five conditions. First, for closure, if and then as . Second, because the operations in are inherited from , for and , the scalar product in equals the product in , and that equals in , which equals in .
The check for the third, fourth, and fifth conditions are similar to the second condition’s check just given.
Exercise 2.36 Worked answer
Show that each vector space has only one trivial subspace.
Answer. An exercise in the prior subsection shows that every vector space has only one zero vector (that is, there is only one vector that is the additive identity element of the space). But a trivial space has only one element and that element must be this (unique) zero vector.
Exercise 2.37 Worked answer
Show that for any subset of a vector space, the span of the span equals the span . (Hint. Members of are linear combinations of members of . Members of are linear combinations of linear combinations of members of .)
Answer. As the hint suggests, the basic reason is the Linear Combination Lemma from the first chapter. For the full proof, we will show mutual containment between the two sets.
The first containment is an instance of the more general, and obvious, fact that for any subset of a vector space, .
For the other containment, that , take vectors from , namely , …, , and note that any linear combination of those
is a linear combination of elements of
and so is in . That is, simply recall that a linear combination of linear combinations (of members of ) is a linear combination (again of members of ).
Exercise 2.38 Worked answer
All of the subspaces that we’ve seen in some way use zero in their description. For example, the subspace in Example 2.3 consists of all the vectors from with a second component of zero. In contrast, the collection of vectors from with a second component of one does not form a subspace (it is not closed under scalar multiplication). Another example is Example 2.2, where the condition on the vectors is that the three components add to zero. If the condition there were that the three components add to one then it would not be a subspace (again, it would fail to be closed). However, a reliance on zero is not strictly necessary. Consider the set
under these operations.
Show that it is not a subspace of . (Hint. See Example 2.7).
Show that it is a vector space. Note that by the prior item, Lemma 2.9 can not apply.
Show that any subspace of must pass through the origin, and so any subspace of must involve zero in its description. Does the converse hold? Does any subset of that contains the origin become a subspace when given the inherited operations?
Answer.
It is not a subspace because these are not the inherited operations. For one thing, in this space,
while this does not, of course, hold in .
We can combine the argument showing closure under addition with the argument showing closure under scalar multiplication into one single argument showing closure under linear combinations of two vectors. If are in then
(note that the definition of addition in this space is that the first components combine as , so the first component of the last vector does not say ‘’). Adding the three components of the last vector gives .
Most of the other checks of the conditions are easy (although the oddness of the operations keeps them from being routine). Commutativity of addition goes like this.
Associativity of addition has
while
and they are equal. The identity element with respect to this addition operation works this way
and the additive inverse is similar.
The conditions on scalar multiplication are also easy. For the first condition,
while
and the two are equal. The second condition compares
with
and they are equal. For the third condition,
while
and the two are equal. For scalar multiplication by we have this.
Thus all the conditions on a vector space are met by these two operations.
Remark. A way to understand this vector space is to think of it as the plane in
displaced away from the origin by along the -axis. Then addition becomes: to add two members of this space,
(such that and ) move them back by to place them in and add as usual,
and then move the result back out by along the -axis.
Scalar multiplication is similar.
For the subspace to be closed under the inherited scalar multiplication, where is a member of that subspace,
must also be a member.
The converse does not hold. Here is a subset of that contains the origin
(this subset has only two elements) but is not a subspace.
Exercise 2.39 Worked answer
We can give a justification for the convention that the sum of zero-many vectors equals the zero vector. Consider this sum of three vectors .
What is the difference between this sum of three vectors and the sum of the first two of these three?
What is the difference between the prior sum and the sum of just the first one vector?
What should be the difference between the prior sum of one vector and the sum of no vectors?
So what should be the definition of the sum of no vectors?
Exercise 2.40 Worked answer
Is a space determined by its subspaces? That is, if two vector spaces have the same subspaces, must the two be equal?
Answer. Yes; any space is a subspace of itself, so each space contains the other.
Exercise 2.41 Worked answer
Give a set that is closed under scalar multiplication but not addition.
Give a set closed under addition but not scalar multiplication.
Give a set closed under neither.
Answer.
The union of the -axis and the -axis in is one.
The set of integers, as a subset of , is one.
The subset of is one, where is any nonzero vector.
Exercise 2.42 Worked answer
Show that the span of a set of vectors does not depend on the order in which the vectors are listed in that set.
Answer. Because vector space addition is commutative, a reordering of summands leaves a linear combination unchanged.
Exercise 2.43 Worked answer
Which trivial subspace is the span of the empty set? Is it
or some other subspace?
Answer. We always consider that span in the context of an enclosing space.
Exercise 2.44 Worked answer
Show that if a vector is in the span of a set then adding that vector to the set won’t make the span any bigger. Is that also ‘only if’?
Answer. It is both ‘if’ and ‘only if’.
For ‘if’, let be a subset of a vector space and assume satisfies where are scalars and . We must show that .
Containment one way, is obvious. For the other direction, , note that if a vector is in the set on the left then it has the form where the ’s are scalars and the ’s are in . Rewrite that as and note that the result is a member of the span of .
The ‘only if’ is clearly true—adding enlarges the span to include at least .
Exercise 2.45 Worked answer
Recommended. Subspaces are subsets and so we naturally consider how ‘is a subspace of’ interacts with the usual set operations.
If are subspaces of a vector space, must their intersection be a subspace? Always? Sometimes? Never?
Must the union be a subspace?
If is a subspace of some , must its set complement be a subspace?
(Hint. Try some test subspaces from Example 2.19.)
Answer.
Always.
Assume that are subspaces of . Note that their intersection is not empty as both contain the zero vector. If and are scalars then because each vector is in and so a linear combination is in , and for the same reason. Thus the intersection is closed. Now Lemma 2.9 applies.
Sometimes (more precisely, only if or ).
To see the answer is not ‘always’, take to be , take to be the -axis, and to be the -axis. Note that
as the sum is in neither nor .
The answer is not ‘never’ because if or then clearly is a subspace.
To show that is a subspace only if one subspace contains the other, we assume that and and prove that the union is not a subspace. The assumption that is not a subset of means that there is an with . The other assumption gives a with . Consider . Note that sum is not an element of or else would be in , which it is not. Similarly the sum is not an element of . Hence the sum is not an element of , and so the union is not a subspace.
Never. As is a subspace it contains the zero vector and therefore the set that is ’s complement, , does not. Without the zero vector, the complement cannot be a vector space.
Exercise 2.46 Worked answer
Does the span of a set depend on the enclosing space? That is, if is a subspace of and is a subset of (and so also a subset of ), might the span of in differ from the span of in ?
Answer. The span of a set does not depend on the enclosing space. A linear combination of vectors from gives the same sum whether we regard the operations as those of or as those of , because the operations of are inherited from .
Exercise 2.47 Worked answer
Is the relation ‘is a subspace of’ transitive? That is, if is a subspace of and is a subspace of , must be a subspace of ?
Answer. It is; apply Lemma 2.9. (You must consider the following. Suppose is a subspace of a vector space and suppose is a subspace. From which space does inherit its operations? The answer is that it doesn’t matter— will inherit the same operations in either case.)
Exercise 2.48 Worked answer
Because ‘span of’ is an operation on sets we naturally consider how it interacts with the usual set operations.
If are subsets of a vector space, is ? Always? Sometimes? Never?
If are subsets of a vector space, is ?
If are subsets of a vector space, is ?
Is the span of the complement equal to the complement of the span?
Answer.
Always; if then a linear combination of elements of is also a linear combination of elements of .
Sometimes (more precisely, if and only if or ).
The answer is not ‘always’ as is shown by this example from
because of this.
The answer is not ‘never’ because if either set contains the other then equality is clear. We can characterize equality as happening only when either set contains the other by assuming (implying the existence of a vector with ) and (giving a with ), noting , and showing that .
Sometimes.
Clearly because any linear combination of vectors from is a combination of vectors from and also a combination of vectors from .
Containment the other way does not always hold. For instance, in , take
so that is the -axis but is the trivial subspace.
Characterizing exactly when equality holds is tough. Clearly equality holds if either set contains the other, but that is not ‘only if’ by this example in .
Never, as the span of the complement is a subspace, while the complement of the span is not (it does not contain the zero vector).
Exercise 2.49 Worked answer
Find a structure that is closed under linear combinations, and yet is not a vector space.
Answer. For this to happen, one of the conditions giving the sensibleness of the addition and scalar multiplication operations must be violated. Consider with these operations.
The set is closed under these operations. But it is not a vector space.
References cited in this section
Cleary
R. Cleary, private communication, Nov. 2011.
More information on equivalence of statements is in the appendix.↩︎