Processing math: 100%
Skip to main content

Section 17.4 Examples

Subsection 17.4.1 The Subspace Test

First, let's practise applying the Subspace Test.

Remark 17.4.1.

Since every vector space must have a zero vector (Axiom A 4), so too must a subspace. But since the vector operations of a subspace are the same as the operations of the larger space, it will turn out that the zero vector in a subspace must always be the same as the zero vector in the larger space (see Proposition 17.5.2). So often the best way to check the Nonempty clause of the Subspace Test is to verify that it contains the zero vector.

Here are some examples from Discovery guide 17.1.

Example 17.4.2. A plane through the origin in R3.

In Discovery 17.2.a, we considered the subcollection of vectors in R3 consisting of all vectors from the origin with terminal point in the xy-plane. Note that any such vector must have a 0 as its z-component.

Let's apply the Subspace Test.

Nonempty.

We know that the xy-plane is nonempty; in particular, it contains the zero vector since it contains the origin.

Closed under vector addition.

If vectors u1 and u2 are both in the xy-plane, then their z-components are both zero. So we can write these vectors as

u1=(x1,y1,0),u2=(x2,y2,0).

Then,

u1+u2=(x1+x2,y1+y2,0).

Since this sum vector also has zero z-component, it is again in the xy-plane, as required.

Closed under scalar multiplication.

If vector u is in the xy-plane, then its z-component is zero, so we can write it as

u=(x,y,0).

Then for every scalar k, we have

ku=(kx,ky,0).

Since this scaled vector also has zero z-component, it is again in the xy-plane, as required.

Conclusion.

Since all parts of the Subspace Test pass, the xy-plane is a subspace of R3.

Example 17.4.3. A subspace of matrices.

In Discovery 17.2.d, we considered the subcollection of M12(R) consisting of all those 12ร—12 matrices that have a 7 in the (1,1) entry.

Let's apply the Subspace Test.

Nonempty.

This collection is clearly not empty, since the 12ร—12 matrix with 7 in every entry is in the collection.

Closed under vector addition.

If matrices A1 and A2 are both in the subcollection, then they each have a 7 in the (1,1) entry. But then A1+A2 has 14 in the (1,1) entry, not 7. So the sum vector is not in the subcollection.

Conclusion.

There is no need to check the third clause of the Subspace Test, since the second has already failed to pass. But it shouldn't be too difficult to see that scalar multiples of such a matrix will also fail to remain in the subcollection (except when the scalar is 1).

Example 17.4.4. Restricting degree creates a subspace of polynomials.

In Discovery 17.2.f, we considered the subcollection of P(R) consisting of those polynomials that have degree 2 or less.

Let's apply the Subspace Test.

Nonempty.

Clearly this subcollection is nonempty, as any constant polynomial has degree 0, which is less than 2. In particular, the zero polynomial 0(x)=0 (which is the zero vector in this space) also has degree less than 2.

Closed under vector addition.

Suppose p1 and p2 are two polynomials in this subcollection. Then the degree of each of these polynomials is 2 or less, so we can write

p1(x)=a1x2+b1x+c1,p2(x)=a2x2+b2x+c2.

Then,

p1(x)+p2(x)=(a1x2+b1x+c1)+(a2x2+b2x+c2)=(a1+a2)x2+(b1+b2)x+(c1+c2).

Since this sum polynomial also has degree 2 (or less, since a1 and a2 could cancel or could both be zero), it is again in the subcollection, as required.

Closed under scalar multiplication.

Suppose p is a polynomial in this subcollection. Then the degree of this polynomial is 2 or less, so we can write

p(x)=ax2+bx+c.

Then for every scalar k, we have

kp(x)=kax2+kbx+kc.

Since this scaled polynomial also has degree 2 (or less, since either k or a could be zero), it is again in the subcollection, as required.

Conclusion.

Since all parts of the Subspace Test pass, the collection of all polynomials of degree 2 or less is a subspace of P(R).

Remark 17.4.5.

Similar to this last example, the Subspace Test can be used to verify that Pn(R), the subcollection of P(R) consisting of all polynomials with degree n or less, is a subspace for every fixed value of positive integer n.

Subsection 17.4.2 Important subspace examples

Here are a few more important examples of subspaces.

Example 17.4.6. The trivial subspace.

Consider the subcollection in a vector space consisting of just the zero vector. Since we already know that the zero vector space is, indeed, a vector space, there is no need for the Subspace Test. In every vector space, the zero space {0} is always a subspace.

Example 17.4.7. The full subspace.

Consider the subcollection in a vector space consisting of every vector. (This may not seem like a subcollection, but every vector in this subcollection is in the original vector space.) Since it is obviously true that the collection of all vectors in a vector space forms a vector space, we have that every vector space is a subspace of itself.

Example 17.4.8. The solution space of a homogeneous system.

Suppose A is a fixed mร—n matrix. Solutions to the homogeneous system Ax=0 can be considered as (column) vectors in Rn, so the solution set to this system is a subcollection of a vector space. Is it a subspace? Let's apply the Subspace Test, similarly to Discovery 17.2.i.

Nonempty.

Since a homogeneous system is always consistent, the solution set is nonempty. In particular, the solution set contains the zero vector, since this is the vector corresponding to the trivial solution.

Closed under vector addition.

Suppose x1 and x2 are two solutions to this system. Then both

Ax1=0andAx2=0.

To check if the sum vector is also in the solution set, we need to check whether x=x1+x2 satisfies the matrix equation Ax=0:

A(x1+x2)=Ax1+Ax2=0+0=0.

So the sum vector is indeed in the solution set.

Closed under scalar multiplication.

Suppose x0 is a solution to this system. Then Ax0=0. For a scalar k, to check whether the scaled vector kx0 is also in the solution set, we need to check whether x=kx0 satisfies the matrix equation Ax=0:

A(kx0)=kAx0=k0=0.

So the scaled vector is indeed in the solution set.

Conclusion.

Since all parts of the Subspace Test pass, the solution set of the homogeneous system Ax=0 is a subspace of Rn.

Remark 17.4.9.

Every subspace is somehow defined by a homogeneous condition or a set of homogeneous conditions. In the solution space example above, this was explicit โ€” the subcollection was directly defined as the solution set of a homogeneous matrix equation Ax=0. On the other hand, it's easy to see that the solution set of a nonhomogeneous system Ax=b would not be a subspace of Rn, since it would not contain the zero vector.

Let's reconsider some of the examples of Discovery 17.2 from this perspective.

  • In Discovery 17.2.a, the xy-plane is a subspace of R3, and it corresponds to the homogeneous condition z=0. However, in Discovery 17.2.b, the plane parallel to the xy-plane in R3 but shifted one unit upward is not a subspace, and it corresponds to the nonhomogeneous condition z=1.
  • In Discovery 17.2.c, the collection of 10ร—10 diagonal matrices is a subspace of M10(R), and it corresponds to the homogeneous conditions that the off-diagonal entries be zero. However, in Discovery 17.2.d, the collection of those 12ร—12 matrices with a 7 in the (1,1) entry is not a subspace of M12(R), and this collection corresponds to the nonhomogeneous condition of requiring the top-left entry be 7.
  • In Discovery 17.2.f, the collection P2(R) of polynomials of degree 2 or less is a subspace of P(R), and it corresponds to the homogeneous conditions of requiring the coefficient on every power xn, nโ‰ฅ3, be zero. However, in Discovery 17.2.g, the collection of polynomials of degree exactly 2 is not a subspace. While this subcollection requires the same homogeneous conditions as those defining P2, it also requires the nonhomogeneous condition that the coefficient on x2 be nonzero.

Subsection 17.4.3 Determining if a vector is in a span

In Discovery 17.3, we explored the question of determining whether a given vector was in the subspace generated by a specified spanning set. For this to be true, that vector must be a linear combination of vectors in the spanning set.

Example 17.4.10. A span of R3-vectors.

This example corresponds to Discovery 17.3.a. Working in R3, we would like to determine if v=(1,โˆ’1,4) is in SpanS for S={(1,0,1),(2,1,โˆ’1)}. Let's try to express v as a linear combination of vectors in the spanning set, and see if it works out. Set

(1,โˆ’1,4)=s(1,0,1)+t(2,1,โˆ’1),

for unknown scalars s,t. Combining the linear combination on the right into a single vector and comparing components on each side, we get (surprise!) a linear system of equations:

{1=s+2t,โˆ’1=t,4=sโˆ’t.

Now, we don't actually care about the solution to this system โ€” we only care if the system is consistent or not, because if it's consistent then there is a way to express v as a linear combination of the spanning vectors, so that v is in SpanS. And, as you can check for yourself, this system is consistent.

There is an interesting pattern to note if we actually convert the system above into an augmented matrix:

[12101โˆ’11โˆ’14].

Notice that the columns in the coefficient matrix are precisely the vectors in the spanning set, and the column of constants is precisely the vector that we are testing as being in SpanS or not.

Example 17.4.11. A span of matrices.

This example corresponds to Discovery 17.3.b. Working in M2ร—3(R), we would like to determine if v=[0223โˆ’3โˆ’3] is in SpanS, for

S={[011000],[000110],[000001]}.

Here, we can see more directly that v is not in SpanS. Notice that the nonzero entries of the matrices in S do not overlap. From this, we can see that every linear combination of these spanning matrices will have the first two entries in the second row equal to each other. But the entries of v do not have this property.

If we didn't notice this, we could carry out a similar procedure as in the previous example, beginning with the vector equation

[0223โˆ’3โˆ’3]=r[011000]+s[000110]+t[000001]

in the unknown scalars r,s,t. Combining the linear combination on the right into one matrix, and then comparing entries on each side, we get a linear system with augmented matrix

[0000100210020103010โˆ’3001โˆ’3].

In this matrix, the inconsistency is obvious in the fourth and fifth rows.

Example 17.4.12. A span of polynomials.

This example corresponds to Discovery 17.3.c. Working in P(R), we would like to determine if the vector v=2โˆ’x+3x2 is in SpanS for S={1,1+x,1+x2}. Again, we set up a vector equation expressing v as a linear combination in the vectors of S with unknown scalars:

2โˆ’x+3x2=rโ‹…1+s(1+x)+t(1+x2).

Two polynomials are only equal if they have the same degree and all the same coefficients. From this, we get the following linear system:

constant term:2=r+s+t,x term:โˆ’1=s,x2 term:3=t,

which can be converted into augmented matrix

[1112010โˆ’10013].

This system is consistent, so v is indeed in SpanS.

Subsection 17.4.4 Determining if a spanning set generates the whole vector space

In Discovery 17.4, we attempted to determine whether a given spanning set generated the entire vector space. In other words, we attempted to answer: is every vector in the vector space somehow a linear combination of spanning set vectors? In the three examples of that discovery activity, the answer was very clearly yes.

Example 17.4.13. A spanning set for R5.

In Discovery 17.4.a, clearly every vector in R5 can be decomposed as a linear combination of the standard basis vectors:

(a,b,c,d,e)=ae1+be2+ce3+de4+ee5.
Example 17.4.14. A spanning set for M2(R).

In Discovery 17.4.b, every vector in M2(R) can be decomposed as a linear combination of the provided spanning set vectors:

[abcd]=a[1000]+b[0100]+c[0010]+d[0001].
Example 17.4.15. A spanning set for P3(R).

In Discovery 17.4.c, every vector a+bx+cx2+dx3 in P3(R) is naturally expressed as a linear combination of 1 and the powers of x up to x3, where the scalars in the linear combination are just the coefficients of the polynomial.

Remark 17.4.16.

In each of the spaces in the examples above, there are analogues for other โ€œdimensionsโ€ of vectors.

  1. In Rn, the standard basis vectors e1,e2,โ€ฆ,en always form a spanning set for the entire vector space.
  2. In Mmร—n(R), the set of โ€œstandard basis vectors,โ€ consisting of those matrices that have all zero entries except for a single 1 in one specific entry, is always a spanning set for the entire vector space.
  3. When we write a polynomial, we naturally write it as a linear combination of the constant polynomial 1 and powers of x. So in Pn(R), the โ€œstandard basis vectorsโ€ 1,x,x2,โ€ฆ,xn form a spanning set for the entire vector space.

In more complicated examples, the question โ€œIs SpanS equal to the whole space?โ€ may be more difficult to answer with the concepts we have accumulated so far. We will make this question more manageable through a deeper study of the relationships of vectors to one another with respect to linear combinations, and by attaching a notion of โ€œsizeโ€ to subspaces. In the meantime, see Example 17.6.2 in Section 17.6 for a preliminary method of answering this question.