Section S Subspaces
Subsection S Subspaces
Here is the principal definition for this section.Definition S. Subspace.
Suppose that V and W are two vector spaces that have identical definitions of vector addition and scalar multiplication, and suppose that W is a subset of V, WβV. Then W is a subspace of V.
Example SC3. A subspace of C3.
We know that \(\complex{3}\) is a vector space (Example VSCV). Consider the subset,
It is clear that \(W\subseteq\complex{3}\text{,}\) since the objects in \(W\) are column vectors of size 3. But is \(W\) a vector space? Does it satisfy the ten properties of Definition VS when we use the same operations? That is the main question.
Suppose we have two vectors from \(W\text{,}\)
Then we know that these vectors cannot be totally arbitrary, they must have gained membership in \(W\) by virtue of meeting the membership test. For example, we know that \(\vect{x}\) must satisfy \(2x_1-5x_2+7x_3=0\) while \(\vect{y}\) must satisfy \(2y_1-5y_2+7y_3=0\text{.}\) Our first property (Property AC) asks the question, is \(\vect{x}+\vect{y}\in W\text{?}\) When our set of vectors was \(\complex{3}\text{,}\) this was an easy question to answer. Now it is not so obvious. Notice first that
and we can test this vector for membership in \(W\) as follows. Because \(\vect{x}\in W\) we know \(2x_1-5x_2+7x_3=0\) and because \(\vect{y}\in W\) we know \(2y_1-5y_2+7y_3=0\text{.}\) Therefore,
and by this computation we see that \(\vect{x}+\vect{y}\in W\text{.}\) One property down, nine to go.
If \(\alpha\) is a scalar and \(\vect{x}\in W\text{,}\) is it always true that \(\alpha\vect{x}\in W\text{?}\) This is what we need to establish Property SC. Again, the answer is not as obvious as it was when our set of vectors was all of \(\complex{3}\text{.}\) Let us see. First, note that because \(\vect{x}\in W\) we know \(2x_1-5x_2+7x_3=0\text{.}\) Therefore,
and we can test this vector for membership in \(W\text{.}\) First, note that because \(\vect{x}\in W\) we know \(2x_1-5x_2+7x_3=0\text{.}\) Therefore,
and we see that indeed \(\alpha\vect{x}\in W\text{.}\) Always.
If \(W\) has a zero vector, it will be unique (Theorem ZVU). The zero vector for \(\complex{3}\) should also perform the required duties when added to elements of \(W\text{.}\) So the likely candidate for a zero vector in \(W\) is the same zero vector that we know \(\complex{3}\) has. You can check that \(\zerovector=\colvector{0\\0\\0}\) is a zero vector in \(W\) too (Property Z).
With a zero vector, we can now ask about additive inverses (Property AI). As you might suspect, the natural candidate for an additive inverse in \(W\) is the same as the additive inverse from \(\complex{3}\text{.}\) However, we must insure that these additive inverses actually are elements of \(W\text{.}\) Given \(\vect{x}\in W\text{,}\) is \(\vect{-x}\in W\text{?}\)
and we can test this vector for membership in \(W\text{.}\) As before, because \(\vect{x}\in W\) we know \(2x_1-5x_2+7x_3=0\text{.}\)
and we now believe that \(\vect{-x}\in W\text{.}\)
Is the vector addition in \(W\) commutative (Property C)? Is \(\vect{x}+\vect{y}=\vect{y}+\vect{x}\text{?}\) Of course! Nothing about restricting the scope of our set of vectors will prevent the operation from still being commutative. Indeed, the remaining five properties are unaffected by the transition to a smaller set of vectors, and so remain true. That was convenient.
So \(W\) satisfies all ten properties, is therefore a vector space, and thus earns the title of being a subspace of \(\complex{3}\text{.}\)
Subsection TS Testing Subspaces
In Example SC3 we proceeded through all ten of the vector space properties before believing that a subset was a subspace. But six of the properties were easy to prove, and we can lean on some of the properties of the vector space (the superset) to make the other four easier. Here is a theorem that will make it easier to test if a subset is a vector space. A shortcut if there ever was one.Theorem TSS. Testing Subsets for Subspaces.
Suppose that V is a vector space and W is a subset of V, WβV. Endow W with the same operations as V. Then W is a subspace if and only if three conditions are met,
- W is nonempty, Wβ β .
- If xβW and yβW, then x+yβW.
- If Ξ±βC and xβW, then Ξ±xβW.
Proof.
(β)
We have the hypothesis that \(W\) is a subspace, so by Property Z we know that \(W\) contains a zero vector. This is enough to show that \(W\neq\emptyset\text{.}\) Also, since \(W\) is a vector space it satisfies the additive and scalar multiplication closure properties (Property AC, Property SC), and so exactly meets the second and third conditions. If that was easy, the other direction might require a bit more work.
(β)
We have three properties for our hypothesis, and from this we should conclude that \(W\) has the ten defining properties of a vector space. The second and third conditions of our hypothesis are exactly Property AC and Property SC. Our hypothesis that \(V\) is a vector space implies that Property C, Property AA, Property SMA, Property DVA, Property DSA and Property O all hold. They continue to be true for vectors from \(W\) since passing to a subset, and keeping the operation the same, leaves their statements unchanged. Eight down, two to go.
Suppose \(\vect{x}\in W\text{.}\) Then by the third part of our hypothesis (scalar closure), we know that \((-1)\vect{x}\in W\text{.}\) By Theorem AISM \((-1)\vect{x}=\vect{-x}\text{,}\) so together these statements show us that \(\vect{-x}\in W\text{.}\) \(\vect{-x}\) is the additive inverse of \(\vect{x}\) in \(V\text{,}\) but will continue in this role when viewed as an element of the subset \(W\text{.}\) So every element of \(W\) has an additive inverse that is an element of \(W\) and Property AI is completed. Just one property left.
While we have implicitly discussed the zero vector in the previous paragraph, we need to be certain that the zero vector (of \(V\)) really lives in \(W\text{.}\) Since \(W\) is nonempty, we can choose some vector \(\vect{z}\in W\text{.}\) Then by the argument in the previous paragraph, we know \(\vect{-z}\in W\text{.}\) Now by Property AI for \(V\) and then by the second part of our hypothesis (additive closure) we see that
So \(W\) contains the zero vector from \(V\text{.}\) Since this vector performs the required duties of a zero vector in \(V\text{,}\) it will continue in that role as an element of \(W\text{.}\) This gives us, Property Z, the final property of the ten required. (Sarah Fellez contributed to this proof.)
Example SP4. A subspace of P4.
\(P_4\) is the vector space of polynomials with degree at most \(4\) (Example VSP). Define a subset \(W\) as
so \(W\) is the collection of those polynomials (with degree 4 or less) whose graphs cross the \(x\)-axis at \(x=2\text{.}\) Whenever we encounter a new set it is a good idea to gain a better understanding of the set by finding a few elements in the set, and a few outside it. For example \(x^2-x-2\in W\text{,}\) while \(x^4+x^3-7\not\in W\text{.}\)
Is \(W\) nonempty? Yes, \(x-2\in W\text{.}\)
Additive closure? Suppose \(p\in W\) and \(q\in W\text{.}\) Is \(p+q\in W\text{?}\) \(p\) and \(q\) are not totally arbitrary, we know that \(p(2)=0\) and \(q(2)=0\text{.}\) Then we can check \(p+q\) for membership in \(W\text{,}\)
so we see that \(p+q\) qualifies for membership in \(W\text{.}\)
Scalar multiplication closure? Suppose that \(\alpha\in\complexes\) and \(p\in W\text{.}\) Then we know that \(p(2)=0\text{.}\) Testing \(\alpha p\) for membership,
so \(\alpha p\in W\text{.}\)
We have shown that \(W\) meets the three conditions of Theorem TSS and so qualifies as a subspace of \(P_4\text{.}\) Notice that by Definition S we now know that \(W\) is also a vector space. So all the properties of a vector space (Definition VS) and the theorems of Section VS apply in full.
Example NSC2Z. A non-subspace in C2, zero vector.
Consider the subset \(W\) below as a candidate for being a subspace of \(\complex{2}\)
The zero vector of \(\complex{2}\text{,}\) \(\zerovector=\colvector{0\\0}\) will need to be the zero vector in \(W\) also. However, \(\zerovector\not\in W\) since \(3(0)-5(0)=0\neq 12\text{.}\) So \(W\) has no zero vector and fails Property Z of Definition VS. This subspace also fails to be closed under addition and scalar multiplication. Can you find examples of this?
Example NSC2A. A non-subspace in C2, additive closure.
Consider the subset \(X\) below as a candidate for being a subspace of \(\complex{2}\)
You can check that \(\zerovector\in X\text{,}\) so the approach of the last example will not get us anywhere. However, notice that \(\vect{x}=\colvector{1\\0}\in X\) and \(\vect{y}=\colvector{0\\1}\in X\text{.}\) Yet
So \(X\) fails the additive closure requirement of either Property AC or Theorem TSS, and is therefore not a subspace.
Example NSC2S. A non-subspace in C2, scalar multiplication closure.
Consider the subset \(Y\) below as a candidate for being a subspace of \(\complex{2}\)
\({\mathbb Z}\) is the set of integers, so we are only allowing βwhole numbersβ as the constituents of our vectors. Now, \(\zerovector\in Y\text{,}\) and additive closure also holds (can you prove these claims?). So we will have to try something different. Note that \(\alpha = \frac{1}{2}\in\complexes\) and \(\colvector{2\\3}\in Y\text{,}\) but
So \(Y\) fails the scalar multiplication closure requirement of either Property SC or Theorem TSS, and is therefore not a subspace.
Definition TS. Trivial Subspaces.
Given the vector space V, the subspaces V and {0} are each called a trivial subspace.
Theorem NSMS. Null Space of a Matrix is a Subspace.
Suppose that A is an mΓn matrix. Then the null space of A, N(A), is a subspace of Cn.
Proof.
We will examine the three requirements of Theorem TSS. Recall that Definition NSM can be formulated as \(\nsp{A}=\setparts{\vect{x}\in\complex{n}}{A\vect{x}=\zerovector}\text{.}\)
First, \(\zerovector\in\nsp{A}\text{,}\) which can be inferred as a consequence of Theorem HSC. So \(\nsp{A}\neq\emptyset\text{.}\)
Second, check additive closure by supposing that \(\vect{x}\in\nsp{A}\) and \(\vect{y}\in\nsp{A}\text{.}\) So we know a little something about \(\vect{x}\) and \(\vect{y}\text{:}\) \(A\vect{x}=\zerovector\) and \(A\vect{y}=\zerovector\text{,}\) and that is all we know. Question: Is \(\vect{x}+\vect{y}\in\nsp{A}\text{?}\) Let us check.
So, yes, \(\vect{x}+\vect{y}\) qualifies for membership in \(\nsp{A}\text{.}\)
Third, check scalar multiplication closure by supposing that \(\alpha\in\complexes\) and \(\vect{x}\in\nsp{A}\text{.}\) So we know a little something about \(\vect{x}\text{:}\) \(A\vect{x}=\zerovector\text{,}\) and that is all we know. Question: Is \(\alpha\vect{x}\in\nsp{A}\text{?}\) Let us check.
So, yes, \(\alpha\vect{x}\) qualifies for membership in \(\nsp{A}\text{.}\)
Having met the three conditions in Theorem TSS we can now say that the null space of a matrix is a subspace (and hence a vector space in its own right!).
Example RSNS. Recasting a subspace as a null space.
Consider the subset of \(\complex{5}\) defined as
It is possible to show that \(W\) is a subspace of \(\complex{5}\) by checking the three conditions of Theorem TSS directly, but it will get tedious rather quickly. Instead, give \(W\) a fresh look and notice that it is a set of solutions to a homogeneous system of equations. Define the matrix
and then recognize that \(W=\nsp{A}\text{.}\) By Theorem NSMS we can immediately see that \(W\) is a subspace. Boom!
Subsection TSS The Span of a Set
The span of a set of column vectors got a heavy workout in Chapter V and Chapter M. The definition of the span depended only on being able to formulate linear combinations. In any of our more general vector spaces we always have a definition of vector addition and of scalar multiplication. So we can build linear combinations and manufacture spans. This subsection contains two definitions that are just mild variants of definitions we have seen earlier for column vectors. If you have not already, compare them with Definition LCCV and Definition SSCV.Definition LC. Linear Combination.
Suppose that V is a vector space. Given n vectors u1,u2,u3,β¦,un and n scalars Ξ±1,Ξ±2,Ξ±3,β¦,Ξ±n, their linear combination is the vector
Example LCM. A linear combination of matrices.
In the vector space \(M_{23}\) of \(2\times 3\) matrices, we have the vectors
and we can form linear combinations such as
or,
\begin{align*} 4\vect{x}-2\vect{y}+3\vect{z}&= 4 \begin{bmatrix} 1&3&-2\\ 2&0&7 \end{bmatrix} -2 \begin{bmatrix} 3&-1&2\\ 5&5&1 \end{bmatrix} +3 \begin{bmatrix} 4&2&-4\\ 1&1&1 \end{bmatrix}\\ &= \begin{bmatrix} 4&12&-8\\ 8&0&28 \end{bmatrix} + \begin{bmatrix} -6&2&-4\\ -10&-10&-2 \end{bmatrix} + \begin{bmatrix} 12&6&-12\\ 3&3&3 \end{bmatrix} = \begin{bmatrix} 10&20&-24\\ 1&-7&29 \end{bmatrix}\text{.} \end{align*}Definition SS. Span of a Set.
Suppose that V is a vector space. Given a set of vectors S={u1,u2,u3,β¦,ut}, their span, β¨Sβ©, is the set of all possible linear combinations of u1,u2,u3,β¦,ut. Symbolically,
Theorem SSS. Span of a Set is a Subspace.
Suppose V is a vector space. Given a set of vectors S={u1,u2,u3,β¦,ut}βV, their span, β¨Sβ©, is a subspace.
Proof.
By Definition SS, the span contains linear combinations of vectors from the vector space \(V\text{,}\) so by repeated use of the closure properties, Property AC and Property SC, \(\spn{S}\) can be seen to be a subset of \(V\text{.}\)
We will then verify the three conditions of Theorem TSS. First,
So we have written \(\zerovector\) as a linear combination of the vectors in \(S\) and by Definition SS\(, \zerovector\in\spn{S}\) and therefore \(\spn{S}\neq\emptyset\text{.}\)
Second, suppose \(\vect{x}\in\spn{S}\) and \(\vect{y}\in\spn{S}\text{.}\) Can we conclude that \(\vect{x}+\vect{y}\in\spn{S}\text{?}\) What do we know about \(\vect{x}\) and \(\vect{y}\) by virtue of their membership in \(\spn{S}\text{?}\) There must be scalars from \(\complexes\text{,}\) \(\alpha_1,\,\alpha_2,\,\alpha_3,\,\ldots,\,\alpha_t\) and \(\beta_1,\,\beta_2,\,\beta_3,\,\ldots,\,\beta_t\) so that
Then
Since each \(\alpha_i+\beta_i\) is again a scalar from \(\complexes\) we have expressed the vector sum \(\vect{x}+\vect{y}\) as a linear combination of the vectors from \(S\text{,}\) and therefore by Definition SS we can say that \(\vect{x}+\vect{y}\in\spn{S}\text{.}\)
Third, suppose \(\alpha\in\complexes\) and \(\vect{x}\in\spn{S}\text{.}\) Can we conclude that \(\alpha\vect{x}\in\spn{S}\text{?}\) What do we know about \(\vect{x}\) by virtue of its membership in \(\spn{S}\text{?}\) There must be scalars from \(\complexes\text{,}\) \(\alpha_1,\,\alpha_2,\,\alpha_3,\,\ldots,\,\alpha_t\) so that
Then
Since each \(\alpha\alpha_i\) is again a scalar from \(\complexes\) we have expressed the scalar multiple \(\alpha\vect{x}\) as a linear combination of the vectors from \(S\text{,}\) and therefore by Definition SS we can say that \(\alpha\vect{x}\in\spn{S}\text{.}\)
With the three conditions of Theorem TSS met, we can say that \(\spn{S}\) is a subspace (and so is also a vector space, Definition VS). (See Exercise SS.T20, Exercise SS.T21, Exercise SS.T22.)
Example SSP. Span of a set of polynomials.
In Example SP4 we proved that
is a subspace of \(P_4\text{,}\) the vector space of polynomials of degree at most 4. Since \(W\) is a vector space itself, let us construct a span within \(W\text{.}\) First let
and verify that \(S\) is a subset of \(W\) by checking that each of these two polynomials has \(x=2\) as a root. Now, if we define \(U=\spn{S}\text{,}\) then Theorem SSS tells us that \(U\) is a subspace of \(W\text{.}\) So quite quickly we have built a chain of subspaces, \(U\) inside \(W\text{,}\) and \(W\) inside \(P_4\text{.}\)
Rather than dwell on how quickly we can build subspaces, let us try to gain a better understanding of just how the span construction creates subspaces, in the context of this example. We can quickly build representative elements of \(U\text{,}\)
and
and each of these polynomials must be in \(W\) since it is closed under addition and scalar multiplication. But you might check for yourself that both of these polynomials have \(x=2\) as a root.
I can tell you that \(\vect{y}=3x^4-7x^3-x^2+7x-2\) is not in \(U\text{,}\) but would you believe me? A first check shows that \(\vect{y}\) does have \(x=2\) as a root, but that only shows that \(\vect{y}\in W\text{.}\) What does \(\vect{y}\) have to do to gain membership in \(U=\spn{S}\text{?}\) It must be a linear combination of the vectors in \(S\text{,}\) \(x^4-4x^3+5x^2-x-2\) and \(2x^4-3x^3-6x^2+6x+4\text{.}\) So let us suppose that \(\vect{y}\) is such a linear combination,
Notice that operations above are done in accordance with the definition of the vector space of polynomials (Example VSP). Now, if we equate coefficients, which is the definition of equality for polynomials, then we obtain the system of five linear equations in two variables
Build an augmented matrix from the system and row-reduce,
Since the final column of the row-reduced augmented matrix is a pivot column, Theorem RCLS tells us the system of equations is inconsistent. Therefore, there are no scalars, \(\alpha_1\) and \(\alpha_2\text{,}\) to establish \(\vect{y}\) as a linear combination of the elements in \(U\text{.}\) So \(\vect{y}\not\in U\text{.}\)
Example SM32. A subspace of M32.
The set of all \(3\times 2\) matrices forms a vector space when we use the operations of matrix addition (Definition MA) and scalar matrix multiplication (Definition MSM), as was shown in Example VSM. Consider the subset
and define a new subset of vectors \(W\) in \(M_{32}\) using the span (Definition SS), \(W=\spn{S}\text{.}\) So by Theorem SSS we know that \(W\) is a subspace of \(M_{32}\text{.}\) While \(W\) is an infinite set, and this is a precise description, it would still be worthwhile to investigate whether or not \(W\) contains certain elements.
First, is
in \(W\text{?}\) To answer this, we want to determine if \(\vect{y}\) can be written as a linear combination of the five matrices in \(S\text{.}\) Can we find scalars, \(\alpha_1,\,\alpha_2,\,\alpha_3,\,\alpha_4,\,\alpha_5\) so that
Using our definition of matrix equality (Definition ME) we can translate this statement into six equations in the five unknowns,
This is a linear system of equations, which we can represent with an augmented matrix and row-reduce in search of solutions. The matrix that is row-equivalent to the augmented matrix is
So we recognize that the system is consistent since the final column is not a pivot column (Theorem RCLS), and compute \(n-r=5-4=1\) free variables (Theorem FVCS). While there are infinitely many solutions, we are only in pursuit of a single solution, so let us choose the free variable \(\alpha_5=0\) for simplicity's sake. Then we easily see that \(\alpha_1=2\text{,}\) \(\alpha_2=-1\text{,}\) \(\alpha_3=0\text{,}\) \(\alpha_4=1\text{.}\) So the scalars \(\alpha_1=2\text{,}\) \(\alpha_2=-1\text{,}\) \(\alpha_3=0\text{,}\) \(\alpha_4=1\text{,}\) \(\alpha_5=0\) will provide a linear combination of the elements of \(S\) that equals \(\vect{y}\text{,}\) as we can verify by checking,
So with one particular linear combination in hand, we are convinced that \(\vect{y}\) deserves to be a member of \(W=\spn{S}\text{.}\)
Second, is
in \(W\text{?}\) To answer this, we want to determine if \(\vect{x}\) can be written as a linear combination of the five matrices in \(S\text{.}\) Can we find scalars, \(\alpha_1,\,\alpha_2,\,\alpha_3,\,\alpha_4,\,\alpha_5\) so that
Using our definition of matrix equality (Definition ME) we can translate this statement into six equations in the five unknowns,
This is a linear system of equations, which we can represent with an augmented matrix and row-reduce in search of solutions. The matrix that is row-equivalent to the augmented matrix is
Since the last column is a pivot column, Theorem RCLS tells us that the system is inconsistent. Therefore, there are no values for the scalars that will place \(\vect{x}\) in \(W\text{,}\) and so we conclude that \(\vect{x}\not\in W\text{.}\)
Subsection SC Subspace Constructions
Several of the subsets of vectors spaces that we worked with in Chapter M are also subspaces β they are closed under vector addition and scalar multiplication in Cm.Theorem CSMS. Column Space of a Matrix is a Subspace.
Suppose that A is an mΓn matrix. Then C(A) is a subspace of Cm.
Proof.
Definition CSM shows us that \(\csp{A}\) is a subset of \(\complex{m}\text{,}\) and that it is defined as the span of a set of vectors from \(\complex{m}\) (the columns of the matrix). Since \(\csp{A}\) is a span, Theorem SSS says it is a subspace.
Theorem RSMS. Row Space of a Matrix is a Subspace.
Suppose that A is an mΓn matrix. Then R(A) is a subspace of Cn.
Proof.
Definition RSM says \(\rsp{A}=\csp{\transpose{A}}\text{,}\) so the row space of a matrix is a column space, and every column space is a subspace by Theorem CSMS. That's enough.
Theorem LNSMS. Left Null Space of a Matrix is a Subspace.
Suppose that A is an mΓn matrix. Then L(A) is a subspace of Cm.
Proof.
Definition LNS says \(\lns{A}=\nsp{\transpose{A}}\text{,}\) so the left null space is a null space, and every null space is a subspace by Theorem NSMS. Done.
Theorem SIIS. Subspace Intersection is a Subspace.
Suppose that U and V are subspaces of the vector space W. Then their intersection, Uβ©V, is a subspace of W.
Proof.
We appeal to the three-part tests of Theorem TSS. First, since \(U\) and \(V\) are subspaces of \(W\text{,}\) they each contain the zero vector of \(W\text{,}\) and so by Definition SI, \(U\cap V\) also contains the zero vector of \(W\text{.}\)
Second, choose \(\vect{x},\,\vect{y}\in U\cap V\text{.}\) Since \(\vect{x},\,\vect{y}\in U\text{,}\) Property AC says that \(\vect{x}+\vect{y}\in U\text{.}\) Similarly, since \(\vect{x},\,\vect{y}\in V\text{,}\) Property AC says that \(\vect{x}+\vect{y}\in V\text{.}\) And therefore, by Definition SI, \(\vect{x}+\vect{y}\in U\cap V\text{,}\) providing additive closure.
Third, choose \(\alpha\in\complexes\text{,}\) \(\vect{x}\in U\cap V\text{.}\) Since \(\vect{x}\in U\text{,}\) Property SC says that \(\alpha\vect{x}\in U\text{.}\) Similarly, since \(\vect{x}\in V\text{,}\) Property SC says that \(\alpha\vect{x}\in V\text{.}\) And therefore, by Definition SI, \(\alpha\vect{x}\in U\cap V\text{,}\) providing scalar closure.
Definition SOS. Sum of Subspaces.
Suppose that U and V are subspaces of the vector space W. Then
is the sum of U and V.
Theorem SSIS. Subspace Sum is a Subspace.
Suppose that U and V are subspaces of the vector space W. Then their sum, U+V, is a subspace of W.
Proof.
We appeal to the three-part tests of Theorem TSS. First, since \(U\) and \(V\) are subspaces of \(W\text{,}\) they each contain the zero vector of \(W\text{,}\) and so
Second, choose \(\vect{x},\,\vect{y}\in U+V\text{.}\) By Definition SOS, there are vectors \(\vect{u}_1,\,\vect{u}_2\in U\) and \(\vect{v}_1,\,\vect{v}_2\in V\) so that \(\vect{x} = \vect{u}_1 + \vect{v}_1\) and \(\vect{y} = \vect{u}_2 + \vect{v}_2\text{.}\) Then, applying Property AA we have
Since \(U\) and \(V\) are both closed under vector addition (Property AC) this final expression is an element of \(U+V\) according to Definition SOS, and so \(\vect{x}+\vect{y}\in U+V\text{.}\)
Third, choose \(\alpha\in\complexes\text{,}\) \(\vect{x}\in U+V\text{.}\) By Definition SOS, there are vectors \(\vect{u}\in U\) and \(\vect{v}\in V\) so that \(\vect{x} = \vect{u} + \vect{v}\text{.}\) Then
Since \(U\) and \(V\) are both closed under scalar multiplication (Property SC) this final expression is an element of \(U+V\) according to Definition SOS, and so \(\alpha\vect{x}\in U+V\text{.}\)
Sage VS. Vector Spaces.
Our conception of a vector space has become much broader with the introduction of abstract vector spaces β those whose elements (βvectorsβ) are not just column vectors, but polynomials, matrices, sequences, functions, etc. Sage is able to perform computations using many different abstract and advanced ideas (such as derivatives of functions), but in the case of linear algebra, Sage will primarily stay with vector spaces of column vectors. Chapter R, and specifically, Section VR and Sage SUTH2 will show us that this is not as much of a limitation as it might first appear.
While limited to vector spaces of column vectors, Sage has an impressive range of capabilities for vector spaces, which we will detail throughout this chapter. You may have already noticed that many questions about abstract vector spaces can be translated into questions about column vectors. This theme will continue, and Sage commands we already know will often be helpful in answering these questions.
Theorem SSS, Theorem NSMS, Theorem CSMS, Theorem RSMS and Theorem LNSMS each tells us that a certain set is a subspace. The first is the abstract version of creating a subspace via the span of a set of vectors, but still applies to column vectors as a special case. The remaining four all begin with a matrix and create a subspace of column vectors. We have created these spaces many times already, but notice now that the description Sage outputs explicitly says they are vector spaces, and that there are still some parts of the output that we need to explain. Here are two reminders, first a span, and then a vector space created from a matrix.
Reading Questions S Reading Questions
1.
Summarize the three conditions that allow us to quickly test if a set is a subspace.
2.
Consider the set of vectors
Is the set W a subspace of C3? Explain your answer.
3.
Name five general constructions of sets of column vectors (subsets of Cm) that we now know as subspaces.
Exercises S Exercises
C15.
Working within the vector space C3, determine if b=[431] is in the subspace W,
For \(\vect{b}\) to be an element of \(W=\spn{S}\) there must be a linear combination of the vectors in \(S\) that equals \(\vect{b}\) (Definition SSCV). The existence of such scalars is equivalent to the linear system \(\linearsystem{A}{\vect{b}}\) being consistent, where \(A\) is the matrix whose columns are the vectors from \(S\) (Theorem SLSLC).
So by Theorem RCLS the system is inconsistent, which indicates that \(\vect{b}\) is not an element of the subspace \(W\text{.}\)
C16.
Working within the vector space C4, determine if b=[1101] is in the subspace W,
For \(\vect{b}\) to be an element of \(W=\spn{S}\) there must be a linear combination of the vectors in \(S\) that equals \(\vect{b}\) (Definition SSCV). The existence of such scalars is equivalent to the linear system \(\linearsystem{A}{\vect{b}}\) being consistent, where \(A\) is the matrix whose columns are the vectors from \(S\) (Theorem SLSLC).
So by Theorem RCLS the system is consistent, which indicates that \(\vect{b}\) is in the subspace \(W\text{.}\)
C17.
Working within the vector space C4, determine if b=[2121] is in the subspace W,
For \(\vect{b}\) to be an element of \(W=\spn{S}\) there must be a linear combination of the vectors in \(S\) that equals \(\vect{b}\) (Definition SSCV). The existence of such scalars is equivalent to the linear system \(\linearsystem{A}{\vect{b}}\) being consistent, where \(A\) is the matrix whose columns are the vectors from \(S\) (Theorem SLSLC).
So by Theorem RCLS the system is consistent, which indicates that \(\vect{b}\) is in the subspace \(W\text{.}\)
C20.
Working within the vector space P3 of polynomials of degree 3 or less, determine if p(x)=x3+6x+4 is in the subspace W below.
The question is if \(p\) can be written as a linear combination of the vectors in \(W\text{.}\) To check this, we set \(p\) equal to a linear combination and massage with the definitions of vector addition and scalar multiplication that we get with \(P_3\) (Example VSP).
Equating coefficients of equal powers of \(x\text{,}\) we get the system of equations,
The augmented matrix of this system of equations row-reduces to
Since the last column is a pivot column, Theorem RCLS implies that the system is inconsistent. So there is no way for \(p\) to gain membership in \(W\text{,}\) so \(p\not\in W\text{.}\)
C21.
Consider the subspace
of the vector space of 2Γ2 matrices, M22. Is
an element of W?
In order to belong to \(W\text{,}\) we must be able to express \(C\) as a linear combination of the elements in the spanning set of \(W\text{.}\) So we begin with such an expression, using the unknowns \(a,\,b,\,c\) for the scalars in the linear combination.
Massaging the right-hand side, according to the definition of the vector space operations in \(M_{22}\) (Example VSM), we find the matrix equality,
Matrix equality allows us to form a system of four equations in three variables, whose augmented matrix row-reduces as follows,
Since this system of equations is consistent (Theorem RCLS), a solution will provide values for \(a,\,b\) and \(c\) that allow us to recognize \(C\) as an element of \(W\text{.}\)
C25.
Show that the set W={[x1x2]|3x1β5x2=12} from Example NSC2Z fails Property AC and Property SC.
C26.
Show that the set Y={[x1x2]|x1βZ,x2βZ} from Example NSC2S has Property AC.
M20.
In C3, the vector space of column vectors of size 3, prove that the set Z is a subspace.
The membership criteria for \(Z\) is a single linear equation, which comprises a homogeneous system of equations. As such, we can recognize \(Z\) as the solutions to this system, and therefore \(Z\) is a null space. Specifically, \(Z=\nsp{\begin{bmatrix}4&-1&5\end{bmatrix}}\text{.}\) Every null space is a subspace by Theorem NSMS.
A less direct solution appeals to Theorem TSS.
First, we want to be certain \(Z\) is nonempty. The zero vector of \(\complex{3}\text{,}\) \(\zerovector=\colvector{0\\0\\0}\text{,}\) is a good candidate, since if it fails to be in \(Z\text{,}\) we will know that \(Z\) is not a vector space. Check that
so that \(\zerovector\in Z\text{.}\)
Suppose \(\vect{x}=\colvector{x_1\\x_2\\x_3}\) and \(\vect{y}=\colvector{y_1\\y_2\\y_3}\) are vectors from \(Z\text{.}\) Then we know that these vectors cannot be totally arbitrary, they must have gained membership in \(Z\) by virtue of meeting the membership test. For example, we know that \(\vect{x}\) must satisfy \(4x_1-x_2+5x_3=0\) while \(\vect{y}\) must satisfy \(4y_1-y_2+5y_3=0\text{.}\) Our second criteria asks the question, is \(\vect{x}+\vect{y}\in Z\text{?}\) Notice first that
and we can test this vector for membership in \(Z\) as follows,
and by this computation we see that \(\vect{x}+\vect{y}\in Z\text{.}\)
If \(\alpha\in\complexes\) is a scalar and \(\vect{x}\in Z\text{,}\) is it always true that \(\alpha\vect{x}\in Z\text{?}\) To check our third criteria, we examine
and we can test this vector for membership in \(Z\) with
and we see that indeed \(\alpha\vect{x}\in Z\text{.}\) With the three conditions of Theorem TSS fulfilled, we can conclude that \(Z\) is a subspace of \(\complex{3}\text{.}\)
M40.
This section claims that the union of two subspaces is not always a subspace. Construct an example of two subspaces where you can prove that the set union is not a subspace. Once you have such an example, see if you can create another that is as βsmallβ and as βsimpleβ as possible
.Create two subspaces of \(\complex{2}\text{,}\) each as the span of a single nonzero vector. Simply ensure that the two vectors chosen are not scalar multiples of each other. Then the sum of these two vectors is not contained in the union of the two subspaces (this needs an argument), and so the set union fails Property AC and is not a subspace.
T20.
A square matrix A of size n is upper triangular if [A]ij=0 whenever i>j (see Definition UTM). Let UTn be the set of all upper triangular matrices of size n. Prove that UTn is a subspace of the vector space of all square matrices of size n, Mnn.
Apply Theorem TSS.
First, the zero vector of \(M_{nn}\) is the zero matrix, \(\zeromatrix\text{,}\) whose entries are all zero (Definition ZM). This matrix then meets the condition that \(\matrixentry{\zeromatrix}{ij}=0\) for \(i\gt j\) and so is an element of \(UT_n\text{.}\)
Suppose \(A,B\in UT_n\text{.}\) Is \(A+B\in UT_n\text{?}\) We examine the entries of \(A+B\) βbelowβ the diagonal. That is, in the following, assume that \(i\gt j\text{.}\)
which qualifies \(A+B\) for membership in \(UT_n\text{.}\)
Suppose \(\alpha\in\complex{}\) and \(A\in UT_n\text{.}\) Is \(\alpha A\in UT_n\text{?}\) We examine the entries of \(\alpha A\) βbelowβ the diagonal. That is, in the following, assume that \(i\gt j\text{.}\)
which qualifies \(\alpha A\) for membership in \(UT_n\text{.}\)
Having fulfilled the three conditions of Theorem TSS we see that \(UT_n\) is a subspace of \(M_{nn}\text{.}\)
T30.
Let P be the set of all polynomials, of any degree. The set P is a vector space. Let E be the subset of P consisting of all polynomials with only terms of even degree. Prove or disprove: the set E is a subspace of P.
Proof: Let \(E\) be the subset of \(P\) comprised of all polynomials with all terms of even degree. Clearly the set \(E\) is nonempty, as \(z(x) = 0\) is a polynomial of even degree. Let \(p(x)\) and \(q(x)\) be arbitrary elements of \(E\text{.}\) Then there exist nonnegative integers \(m\) and \(n\) so that
for some constants \(a_0, a_2, \ldots, a_{2n}\) and \(b_0, b_2, \ldots, b_{2m}\text{.}\) Without loss of generality, we can assume that \(m \le n\text{.}\) Thus, we have
so \(p(x) + q(x)\) has all even terms, and thus \(p(x) + q(x) \in E\text{.}\) Similarly, let \(\alpha\) be a scalar. Then
so that \(\alpha p(x)\) also has only terms of even degree, and \(\alpha p(x) \in E\text{.}\) Thus, \(E\) is a subspace of \(P\text{.}\)
T31.
Let P be the set of all polynomials, of any degree. The set P is a vector space. Let F be the subset of P consisting of all polynomials with only terms of odd degree. Prove or disprove: the set F is a subspace of P.
This conjecture is false. The polynomials \(p(x) = x^3 + x^2\) and \(q(x) = -x^3 + x^2\) provide a counterexample to Property AC.
There is another very technical reason. Constant polynomials have degree zero, with one exception. The zero polynomial either does not have a degree, or is defined to have degree \(-\infty\text{.}\) The latter definition will work best with our definition of \(P\text{,}\) the vector space of polynomials of any degree (or for \(P_n\)). One justification of this definition is that we want various properties of arithmetic with polynomials to hold when the zero polynomial is involved. For example, the degree of the sum of two polynomials should be less than, or equal to, the sum of the degrees of the polynomials. So the zero polynomial does not have odd degree, and hence is not an element of \(P\text{.}\)