Jump to content

Linear Algebra/Combining Subspaces/Solutions

From Wikibooks, open books for an open world

Solutions

[edit | edit source]
This exercise is recommended for all readers.
Problem 1

Decide if ℝ2 is the direct sum of each W1 and W2.

  1. W1={(x0)|x∈ℝ}, W2={(xx)|x∈ℝ}
  2. W1={(ss)|s∈ℝ}, W2={(s1.1s)|s∈ℝ}
  3. W1=ℝ2, W2={0→}
  4. W1=W2={(tt)|t∈ℝ}
  5. W1={(10)+(x0)|x∈ℝ}, W2={(−10)+(0y)|y∈ℝ}
Answer

With each of these we can apply Lemma 4.15.

  1. Yes. The plane is the sum of this W1 and W2 because for any scalars a and b
    (ab)=(a−b0)+(bb)
    shows that the general vector is a sum of vectors from the two parts. And, these two subspaces are (different) lines through the origin, and so have a trivial intersection.
  2. Yes. To see that any vector in the plane is a combination of vectors from these parts, consider this relationship.
    (ab)=c1(11)+c2(11.1)
    We could now simply note that the set
    {(11),(11.1)}
    is a basis for the space (because it is clearly linearly independent, and has size two in ℝ2), and thus ther is one and only one solution to the above equation, implying that all decompositions are unique. Alternatively, we can solve
    c1+c2=ac1+1.1c2=b→−ρ1+ρ2c1+c2=a0.1c2=−a+b
    to get that c2=10(−a+b) and c1=11a−10b, and so we have
    (ab)=(11a−10b11a−10b)+(−10a+10b1.1⋅(−10a+10b))
    as required. As with the prior answer, each of the two subspaces is a line through the origin, and their intersection is trivial.
  3. Yes. Each vector in the plane is a sum in this way
    (xy)=(xy)+(00)
    and the intersection of the two subspaces is trivial.
  4. No. The intersection is not trivial.
  5. No. These are not subspaces.
This exercise is recommended for all readers.
Problem 2

Show that ℝ3 is the direct sum of the xy-plane with each of these.

  1. the z-axis
  2. the line
    {(zzz)|z∈ℝ}
Answer

With each of these we can use Lemma 4.15.

  1. Any vector in ℝ3 can be decomposed as this sum.
    (xyz)=(xy0)+(00z)
    And, the intersection of the xy-plane and the z-axis is the trivial subspace.
  2. Any vector in ℝ3 can be decomposed as
    (xyz)=(x−zy−z0)+(zzz)
    and the intersection of the two spaces is trivial.
Problem 3

Is 𝒫2 the direct sum of {a+bx2|a,b∈ℝ} and {cx|c∈ℝ}?

Answer

It is. Showing that these two are subspaces is routine. To see that the space is the direct sum of these two, just note that each member of 𝒫2 has the unique decomposition m+nx+px2=(m+px2)+(nx).

This exercise is recommended for all readers.
Problem 4

In 𝒫n, the even polynomials are the members of this set

ℰ={p∈𝒫n|p(−x)=p(x) for all x}

and the odd polynomials are the members of this set.

𝒪={p∈𝒫n|p(−x)=−p(x) for all x}

Show that these are complementary subspaces.

Answer

To show that they are subspaces is routine. We will argue they are complements with Lemma 4.15. The intersection ℰ∩𝒪 is trivial because the only polynomial satisfying both conditions p(−x)=p(x) and p(−x)=−p(x) is the zero polynomial. To see that the entire space is the sum of the subspaces ℰ+𝒪=𝒫n, note that the polynomials p0(x)=1, p2(x)=x2, p4(x)=x4, etc., are in ℰ and also note that the polynomials p1(x)=x, p3(x)=x3, etc., are in 𝒪. Hence any member of 𝒫n is a combination of members of ℰ and 𝒪.

Problem 5

Which of these subspaces of ℝ3

W1: the x-axis,      W2:the y-axis,      W3:the z-axis,     
W4:the plane x+y+z=0,      W5:the yz-plane

can be combined to

  1. sum to ℝ3?
  2. direct sum to ℝ3?
Answer

Each of these is ℝ3.

  1. These are broken into lines for legibility.

    W1+W2+W3, W1+W2+W3+W4, W1+W2+W3+W5, W1+W2+W3+W4+W5,
        W1+W2+W4, W1+W2+W4+W5, W1+W2+W5,
    W1+W3+W4, W1+W3+W5, W1+W3+W4+W5,
    W1+W4, W1+W4+W5,
    W1+W5,
    W2+W3+W4, W2+W3+W4+W5,
    W2+W4, W2+W4+W5,
    W3+W4, W3+W4+W5,
    W4+W5

  2. W1⊕W2⊕W3, W1⊕W4, W1⊕W5, W2⊕W4, W3⊕W4
This exercise is recommended for all readers.
Problem 6

Show that 𝒫n={a0|a0∈ℝ}⊕…⊕{anxn|an∈ℝ}.

Answer

Clearly each is a subspace. The bases Bi=⟨xi⟩ for the subspaces, when concatenated, form a basis for the whole space.

Problem 7

What is W1+W2 if W1⊆W2?

Answer

It is W2.

Problem 8

Does Example 4.5 generalize? That is, is this true or false:if a vector space V has a basis ⟨β→1,…,β→n⟩ then it is the direct sum of the spans of the one-dimensional subspaces V=[{β→1}]⊕…⊕[{β→n}]?

Answer

True by Lemma 4.8.

Problem 9

Can ℝ4 be decomposed as a direct sum in two different ways? Can ℝ1?

Answer

Two distinct direct sum decompositions of ℝ4 are easy to find. Two such are W1=[{e→1,e→2}] and W2=[{e→3,e→4}], and also U1=[{e→1}] and U2=[{e→2,e→3,e→4}]. (Many more are possible, for example ℝ4 and its trivial subspace.)

In contrast, any partition of ℝ1's single-vector basis will give one basis with no elements and another with a single element. Thus any decomposition involves ℝ1 and its trivial subspace.

Problem 10

This exercise makes the notation of writing "+" between sets more natural. Prove that, where W1,…,Wk are subspaces of a vector space,

W1+…+Wk={w→1+w→2+…+w→k|w→1∈W1,…,w→k∈Wk},

and so the sum of subspaces is the subspace of all sums.

Answer

Set inclusion one way is easy: {w→1+…+w→k|w→i∈Wi} is a subset of [W1∪…∪Wk] because each w→1+…+w→k is a sum of vectors from the union.

For the other inclusion, to any linear combination of vectors from the union apply commutativity of vector addition to put vectors from W1 first, followed by vectors from W2, etc. Add the vectors from W1 to get a w→1∈W1, add the vectors from W2 to get a w→2∈W2, etc. The result has the desired form.

Problem 11

(Refer to Example 4.19. This exercise shows that the requirement that pariwise intersections be trivial is genuinely stronger than the requirement only that the intersection of all of the subspaces be trivial.) Give a vector space and three subspaces W1, W2, and W3 such that the space is the sum of the subspaces, the intersection of all three subspaces W1∩W2∩W3 is trivial, but the pairwise intersections W1∩W2, W1∩W3, and W2∩W3 are nontrivial.

Answer

One example is to take the space to be ℝ3, and to take the subspaces to be the xy-plane, the xz-plane, and the yz-plane.

This exercise is recommended for all readers.
Problem 12

Prove that if V=W1⊕…⊕Wk then Wi∩Wj is trivial whenever i≠j. This shows that the first half of the proof of Lemma 4.15 extends to the case of more than two subspaces. (Example 4.19 shows that this implication does not reverse; the other half does not extend.)

Answer

Of course, the zero vector is in all of the subspaces, so the intersection contains at least that one vector. By the definition of direct sum the set {W1,…,Wk} is independent and so no nonzero vector of Wi is a multiple of a member of Wj, when i≠j. In particular, no nonzero vector from Wi equals a member of Wj.

Problem 13

Recall that no linearly independent set contains the zero vector. Can an independent set of subspaces contain the trivial subspace?

Answer

It can contain a trivial subspace; this set of subspaces of ℝ3 is independent: {{0→},x-axis}. No nonzero vector from the trivial space {0→} is a multiple of a from the x-axis, simply because the trivial space has no nonzero vectors to be candidates for such a multiple (and also no nonzero vector from the x-axis is a multiple of the zero vector from the trivial subspace).

This exercise is recommended for all readers.
Problem 14

Does every subspace have a complement?

Answer

Yes. For any subspace of a vector space we can take any basis ⟨ω→1,…,ω→k⟩ for that subspace and extend it to a basis ⟨ω→1,…,ω→k,β→k+1,…,β→n⟩ for the whole space. Then the complement of the original subspace has this for a basis: ⟨β→k+1,…,β→n⟩.

This exercise is recommended for all readers.
Problem 15

Let W1,W2 be subspaces of a vector space.

  1. Assume that the set S1 spans W1, and that the set S2 spans W2. Can S1∪S2 span W1+W2? Must it?
  2. Assume that S1 is a linearly independent subset of W1 and that S2 is a linearly independent subset of W2. Can S1∪S2 be a linearly independent subset of W1+W2? Must it?
Answer
  1. It must. Any member of W1+W2 can be written w→1+w→2 where w→1∈W1 and w→2∈W2. As S1 spans W1, the vector w→1 is a combination of members of S1. Similarly w→2 is a combination of members of S2.
  2. An easy way to see that it can be linearly independent is to take each to be the empty set. On the other hand, in the space ℝ1, if W1=ℝ1 and W2=ℝ1 and S1={1} and S2={2}, then their union S1∪S2 is not independent.
Problem 16

When a vector space is decomposed as a direct sum, the dimensions of the subspaces add to the dimension of the space. The situation with a space that is given as the sum of its subspaces is not as simple. This exercise considers the two-subspace special case.

  1. For these subspaces of ℳ2×2 find W1∩W2, dim⁡(W1∩W2), W1+W2, and dim⁡(W1+W2).
    W1={(00cd)|c,d∈ℝ}W2={(0bc0)|b,c∈ℝ}
  2. Suppose that U and W are subspaces of a vector space. Suppose that the sequence ⟨β→1,…,β→k⟩ is a basis for U∩W. Finally, suppose that the prior sequence has been expanded to give a sequence ⟨μ→1,…,μ→j,β→1,…,β→k⟩ that is a basis for U, and a sequence ⟨β→1,…,β→k,ω→1,…,ω→p⟩ that is a basis for W. Prove that this sequence
    ⟨μ→1,…,μ→j,β→1,…,β→k,ω→1,…,ω→p⟩
    is a basis for for the sum U+W.
  3. Conclude that dim⁡(U+W)=dim⁡(U)+dim⁡(W)−dim⁡(U∩W).
  4. Let W1 and W2 be eight-dimensional subspaces of a ten-dimensional space. List all values possible for dim⁡(W1∩W2).
Answer
  1. The intersection and sum are
    {(00c0)|c∈ℝ}{(0bcd)|b,c,d∈ℝ}
    which have dimensions one and three.
  2. We write BU∩W for the basis for U∩W, we write BU for the basis for U, we write BW for the basis for W, and we write BU+W for the basis under consideration. To see that that BU+W spans U+W, observe that any vector cu→+dw→ from U+W can be written as a linear combination of the vectors in BU+W, simply by expressing u→ in terms of BU and expressing w→ in terms of BW. We finish by showing that BU+W is linearly independent. Consider
    c1μ→1+…+cj+1β→1+…+cj+k+pω→p=0→
    can be rewritten in this way.
    c1μ→1+…+cjμ→j=−cj+1β→1−…−cj+k+pω→p
    Note that the left side sums to a vector in U while right side sums to a vector in W, and thus both sides sum to a member of U∩W. Since the left side is a member of U∩W, it is expressible in terms of the members of BU∩W, which gives the combination of μ→'s from the left side above as equal to a combination of β→'s. But, the fact that the basis BU is linearly independent shows that any such combination is trivial, and in particular, the coefficients c1, ..., cj from the left side above are all zero. Similarly, the coefficients of the ω→'s are all zero. This leaves the above equation as a linear relationship among the β→'s, but BU∩W is linearly independent, and therefore all of the coefficients of the β→'s are also zero.
  3. Just count the basis vectors in the prior item:dim⁡(U+W)=j+k+p, and dim⁡(U)=j+k, and dim⁡(W)=k+p, and dim⁡(U∩W)=k.
  4. We know that dim⁡(W1+W2)=dim⁡(W1)+dim⁡(W2)−dim⁡(W1∩W2). Because W1⊆W1+W2, we know that W1+W2 must have dimension greater than that of W1, that is, must have dimension eight, nine, or ten. Substituting gives us three possibilities 8=8+8−dim⁡(W1∩W2) or 9=8+8−dim⁡(W1∩W2) or 10=8+8−dim⁡(W1∩W2). Thus dim⁡(W1∩W2) must be either eight, seven, or six. (Giving examples to show that each of these three cases is possible is easy, for instance in ℝ10.)
Problem 17

Let V=W1⊕…⊕Wk and for each index i suppose that Si is a linearly independent subset of Wi. Prove that the union of the Si's is linearly independent.

Answer

Expand each Si to a basis Bi for Wi. The concatenation of those bases B1⌢⋯⌢Bk is a basis for V and thus its members form a linearly independent set. But the union S1∪⋯∪Sk is a subset of that linearly independent set, and thus is itself linearly independent.

Problem 18

A matrix is symmetric if for each pair of indices i and j, the i,j entry equals the j,i entry. A matrix is antisymmetric if each i,j entry is the negative of the j,i entry.

  1. Give a symmetric 2×2 matrix and an antisymmetric 2×2 matrix. (Remark. For the second one, be careful about the entries on the diagional.)
  2. What is the relationship between a square symmetric matrix and its transpose? Between a square antisymmetric matrix and its transpose?
  3. Show that ℳn×n is the direct sum of the space of symmetric matrices and the space of antisymmetric matrices.
Answer
  1. Two such are these.
    (1223)(01−10)
    For the antisymmetric one, entries on the diagonal must be zero.
  2. A square symmetric matrix equals its transpose. A square antisymmetric matrix equals the negative of its transpose.
  3. Showing that the two sets are subspaces is easy. Suppose that A∈ℳn×n.To express A as a sum of a symmetric and an antisymmetric matrix, we observe that
    A=(1/2)(A+Atrans)+(1/2)(A−Atrans)
    and note the first summand is symmetric while the second is antisymmetric. Thus ℳn×n is the sum of the two subspaces. To show that the sum is direct, assume a matrix A is both symmetric A=Atrans and antisymmetric A=−Atrans. Then A=−A and so all of A's entries are zeroes.
Problem 19

Let W1,W2,W3 be subspaces of a vector space. Prove that (W1∩W2)+(W1∩W3)⊆W1∩(W2+W3). Does the inclusion reverse?

Answer

Assume that v→∈(W1∩W2)+(W1∩W3). Then v→=w→2+w→3 where w→2∈W1∩W2 and w→3∈W1∩W3. Note that w→2,w→3∈W1 and, as a subspace is closed under addition, w→2+w→3∈W1. Thus v→=w→2+w→3∈W1∩(W2+W3).

This example proves that the inclusion may be strict: in ℝ2 take W1 to be the x-axis, take W2 to be the y-axis, and take W3 to be the line y=x. Then W1∩W2 and W1∩W3 are trivial and so their sum is trivial. But W2+W3 is all of ℝ2 so W1∩(W2+W3) is the x-axis.

Problem 20

The example of the x-axis and the y-axis in ℝ2 shows that W1⊕W2=V does not imply that W1∪W2=V. Can W1⊕W2=V and W1∪W2=V happen?

Answer

It happens when at least one of W1,W2 is trivial. But that is the only way it can happen.

To prove this, assume that both are non-trivial, select nonzero vectors w→1,w→2 from each, and consider w→1+w→2. This sum is not in W1 because w→1+w→2=v→∈W1 would imply that w→2=v→−w→1 is in W1, which violates the assumption of the independence of the subspaces. Similarly, w→1+w→2 is not in W2. Thus there is an element of V that is not in W1∪W2.

This exercise is recommended for all readers.
Problem 21

Our model for complementary subspaces, the x-axis and the y-axis in ℝ2, has one property not used here. Where U is a subspace of ℝn we define the orthogonal complement of U to be

U⊥={v→∈ℝn|v→⋅u→=0 for all u→∈U}

(read "U perp").

  1. Find the orthocomplement of the x-axis in ℝ2.
  2. Find the orthocomplement of the x-axis in ℝ3.
  3. Find the orthocomplement of the xy-plane in ℝ3.
  4. Show that the orthocomplement of a subspace is a subspace.
  5. Show that if W is the orthocomplement of U then U is the orthocomplement of W.
  6. Prove that a subspace and its orthocomplement have a trivial intersection.
  7. Conclude that for any n and subspace U⊆ℝn we have that ℝn=U⊕U⊥.
  8. Show that dim⁡(U)+dim⁡(U⊥) equals the dimension of the enclosing space.
Answer
  1. The set
    {(v1v2)|(v1v2)⋅(x0)=0 for all x∈ℝ}
    is easily seen to be the y-axis.
  2. The yz-plane.
  3. The z-axis.
  4. Assume that U is a subspace of some ℝn. Because U⊥ contains the zero vector, since that vector is perpendicular to everything, we need only show that the orthocomplement is closed under linear combinations of two elements. If w→1,w→2∈U⊥ then w→1⋅u→=0 and w→2⋅u→=0 for all u→∈U. Thus (c1w→1+c2w→2)⋅u→=c1(w→1⋅u→)+c2(w→2⋅u→)=0 for all u→∈U and so U⊥ is closed under linear combinations.
  5. The only vector orthogonal to itself is the zero vector.
  6. This is immediate.
  7. To prove that the dimensions add, it suffices by Corollary 4.13 and Lemma 4.15 to show that U∩U⊥ is the trivial subspace {0→}. But this is one of the prior items in this problem.
This exercise is recommended for all readers.
Problem 22

Consider Corollary 4.13. Does it work both ways— that is, supposing that V=W1+…+Wk, is V=W1⊕…⊕Wk if and only if dim⁡(V)=dim⁡(W1)+…+dim⁡(Wk)?

Answer

Yes. The left-to-right implication is Corollary 4.13. For the other direction, assume that dim⁡(V)=dim⁡(W1)+…+dim⁡(Wk). Let B1,…,Bk be bases for W1,…,Wk. As V is the sum of the subspaces, any v→∈V can be written v→=w→1+⋯+w→k and expressing each w→i as a combination of vectors from the associated basis Bi shows that the concatenation B1⌢⋯⌢Bk spans V. Now, that concatenation has dim⁡(W1)+…+dim⁡(Wk) members, and so it is a spanning set of size dim⁡(V). The concatenation is therefore a basis for V. Thus V is the direct sum.

Problem 23

We know that if V=W1⊕W2 then there is a basis for V that splits into a basis for W1 and a basis for W2. Can we make the stronger statement that every basis for V splits into a basis for W1 and a basis for W2?

Answer

No. The standard basis for ℝ2 does not split into bases for the complementary subspaces the line x=y and the line x=−y.

Problem 24

We can ask about the algebra of the "+" operation.

  1. Is it commutative; is W1+W2=W2+W1?
  2. Is it associative; is (W1+W2)+W3=W1+(W2+W3)?
  3. Let W be a subspace of some vector space. Show that W+W=W.
  4. Must there be an identity element, a subspace I such that I+W=W+I=W for all subspaces W?
  5. Does left-cancelation hold:if W1+W2=W1+W3 then W2=W3? Right cancelation?
Answer
  1. Yes, W1+W2=W2+W1 for all subspaces W1,W2 because each side is the span of W1∪W2=W2∪W1.
  2. This one is similar to the prior one— each side of that equation is the span of (W1∪W2)∪W3=W1∪(W2∪W3).
  3. Because this is an equality between sets, we can show that it holds by mutual inclusion. Clearly W⊆W+W. For W+W⊆W just recall that every subset is closed under addition so any sum of the form w→1+w→2 is in W.
  4. In each vector space, the identity element with respect to subspace addition is the trivial subspace.
  5. Neither of left or right cancelation needs to hold. For an example, in ℝ3 take W1 to be the xy-plane, take W2 to be the x-axis, and take W3 to be the y-axis.
Problem 25

Consider the algebraic properties of the direct sum operation.

  1. Does direct sum commute: does V=W1⊕W2 imply that V=W2⊕W1?
  2. Prove that direct sum is associative:(W1⊕W2)⊕W3=W1⊕(W2⊕W3).
  3. Show that ℝ3 is the direct sum of the three axes (the relevance here is that by the previous item, we needn't specify which two of the three axes are combined first).
  4. Does the direct sum operation left-cancel:does W1⊕W2=W1⊕W3 imply W2=W3? Does it right-cancel?
  5. There is an identity element with respect to this operation. Find it.
  6. Do some, or all, subspaces have inverses with respect to this operation:is there a subspace W of some vector space such that there is a subspace U with the property that U⊕W equals the identity element from the prior item?
Answer
  1. They are equal because for each, V is the direct sum if and only if each v→∈V can be written in a unique way as a sum v→=w→1+w→2 and v→=w→2+w→1.
  2. They are equal because for each, V is the direct sum if and only if each v→∈V can be written in a unique way as a sum of a vector from each v→=(w→1+w→2)+w→3 and v→=w→1+(w→2+w→3).
  3. Any vector in ℝ3 can be decomposed uniquely into the sum of a vector from each axis.
  4. No. For an example, in ℝ2 take W1 to be the x-axis, take W2 to be the y-axis, and take W3 to be the line y=x.
  5. In any vector space the trivial subspace acts as the identity element with respect to direct sum.
  6. In any vector space, only the trivial subspace has a direct-sum inverse (namely, itself). One way to see this is that dimensions add, and so increase.