Lecture 22 · Week 6· 15:42
Sums and direct sums
Intersections, why unions fail, U + W, direct sums.
Saved in this browser only. No account needed.
TranscriptThe full text of the lecture. Click any sentence to play the video from there.
Today: combining subspaces
Welcome back. In the last lecture we met vector spaces over a field F. Inside a vector space V, a subspace is a subset that contains the zero vector, and is closed under addition and under scalar multiplication. Today we take two subspaces, U and W, of the same space V, and ask what new subspaces we can build from them. Here is the picture to keep in mind. In three dimensional space, let U be the floor, where the third entry is zero, and let W be the wall, where the first entry is zero. The two planes meet in a line.
Here is the plan. First, the vectors that lie in both subspaces: the intersection. Then, why the union usually fails. Then the sum, which collects all vectors u plus w. And finally the direct sum, where every vector splits in exactly one way.
Intersections
The first construction is the intersection. Let U and W be subspaces of a vector space V. Their intersection, U intersect W, is the set of vectors that lie in U and also in W. It is again a subspace of V. Let's check the three conditions. First, the zero vector lies in every subspace, so it lies in both, and so in the intersection. Second, take u and v in the intersection. Both lie in U, and U is closed under addition, so u plus v lies in U. In the same way, u plus v lies in W. So u plus v is in the intersection.
Third, take v in the intersection, and a scalar c in F. Then c v lies in U, because U is closed under scalar multiplication, and c v lies in W for the same reason. So c v is in the intersection. In our picture, a vector in the intersection has third entry zero, because it is in the floor, and first entry zero, because it is in the wall. So the intersection is the set of vectors (zero, t, zero). It is a line through the origin, and a subspace, as promised. In general, intersecting subspaces means solving their conditions together. The more conditions, the smaller the subspace.
Unions fail
What about the union, all vectors that lie in U or in W? In the plane, let U be the horizontal axis and W the vertical axis. Their union is the two axes together. Take u equals the vector (one, zero), in U, and w equals the vector (zero, one), in W. Their sum is the vector (one, one). In the first coordinate, one plus zero is one. In the second, zero plus one is one. But the vector (one, one), lies on neither axis. So the union is not closed under addition, and it is not a subspace.
This is what usually happens. Here is the precise statement. Let U and W be subspaces of V. Then the union of U and W is a subspace of V exactly when one of them contains the other. Here is the proof. Suppose neither contains the other, and suppose the union is a subspace. Then we can pick a vector u in U that is not in W, and a vector w in W that is not in U. The union is closed under addition, so u plus w lies in U or in W. If u plus w is in U, then w, which is u plus w, minus u, is in U too. That is impossible, because w was chosen outside U.
If u plus w is in W, then u, which is u plus w, minus w, is in W. Again impossible. So if neither subspace contains the other, the union is not a subspace. And if one of them contains the other, the union is just the larger one, which is a subspace. So the union is the wrong idea. To build a subspace from U and W, we have to include their sums.
Sums
Here is the definition. Let U and W be subspaces of V. The sum of U and W, written U plus W, is the set of all vectors u plus w, where u is in U, and w is in W. And here is the theorem, for the same subspaces U and W of V. First, U plus W is a subspace of V. Second, it contains U and W. And third, it is the smallest such subspace: every subspace that contains U and W also contains U plus W. For the first part, we check the three conditions. The zero vector is zero plus zero, with the first zero in U and the second in W.
Next, take two vectors of the sum, u one plus w one, and u two plus w two. Adding them and regrouping gives u one plus u two, plus w one plus w two. The first bracket is in U, because U is closed under addition, and the second is in W. And for a scalar c in F, c times u plus w is c u plus c w. Again, the first term is in U, and the second is in W. So U plus W is a subspace. For the second part, every u in U is u plus zero, with zero in W. So U lies inside the sum, and in the same way, so does W.
For the third part, take any subspace that contains U and W. It contains every u and every w, and it is closed under addition, so it contains every u plus w. Back to the two axes. Every vector (a, b) is the vector (a, zero), plus the vector (zero, b): a vector of U plus a vector of W. So the sum of the two axes is the whole plane. The union was too small, and the sum fills exactly the gap. The sum is the smallest subspace containing U and W. Spans have the same property. Let v one up to v k be vectors of V. Then, first, their span is a subspace of V. Second, it contains v one up to v k. And third, every subspace of V that contains v one up to v k also contains their span.
Here is the proof. The zero vector is the combination with every coefficient zero. Next, the sum of a one v one plus up to a k v k, and b one v one plus up to b k v k, is a one plus b one, times v one, plus up to a k plus b k, times v k. And c times a one v one plus up to a k v k is c a one times v one, plus up to c a k times v k. So the span is a subspace. Each v j is the combination with coefficient one on v j, and zero on the other vectors. Finally, a subspace that contains every v j contains each multiple a j v j, and their sum, so it contains every combination. There is a convenient way to compute sums. If U is spanned by vectors u one up to u k of V, and W is spanned by vectors w one up to w m of V, then U plus W is spanned by all of these vectors together.
A vector of the sum is a combination of the u's, plus a combination of the w's, and that is one combination of the whole list. Conversely, any combination of the whole list splits into a combination of the u's, which is in U, and a combination of the w's, which is in W. So to add subspaces, we join their spanning lists.
Direct sums
Now back to the floor and the wall in three dimensional space. Every vector (a, b, c) is the vector (a, b, zero), in the floor, plus the vector (zero, zero, c), which lies in the wall. So the floor plus the wall is all of three dimensional space. But look at the vector (one, one, one). It is the vector (one, one, zero), in the floor, plus the vector (zero, zero, one), in the wall. And it is also the vector (one, zero, zero), in the floor, plus the vector (zero, one, one), in the wall. In each coordinate, both splittings add up to one. So this vector splits in two different ways. The two splittings differ by the vector (zero, one, zero), which lies on the shared line: we can move this piece along the line from one part to the other.
This leads to the main definition of today. Let U and W be subspaces of V. The sum U plus W is called direct if every vector in it can be written as u plus w, with u in U and w in W, in exactly one way. We then write U circle plus W, and call it the direct sum. When is a sum direct? Here is the theorem. Let U and W be subspaces of V. These three statements are equivalent. First, the sum is direct. Second, the only way to write zero as u plus w is zero plus zero. Third, the intersection of U and W is just the zero vector. This proof chains three short steps. Follow each one carefully, and pause if you need to.
From the first statement to the second: zero plus zero is one way to write zero. If the sum is direct, it is the only way. From the second to the third: take v in the intersection. Then zero is v plus minus v. Here v is in U, and minus v is in W, because v is in W, and W is a subspace. By the second statement, v is zero. From the third back to the first: suppose u one plus w one equals u two plus w two, with u one and u two in U, and w one and w two in W. Rearranging, u one minus u two equals w two minus w one.
The left side is in U, and the right side is in W, so both sides lie in the intersection, which is just zero. So u one equals u two, and w one equals w two. The two ways are the same. So to decide whether a sum is direct, we only need to check one thing: that the two subspaces share nothing but the zero vector.
Examples of direct sums
Now some direct sums. Keep the floor as U, but let W be the vertical axis, all vectors (zero, zero, c). Every vector (a, b, c) is the vector (a, b, zero), in the floor, plus the vector (zero, zero, c), on the axis. And a vector in both has third entry zero and first two entries zero, so it is the zero vector. The intersection is just zero, and three dimensional space is the direct sum of the floor and the axis. Now take two different lines through the origin in the plane, spanned by vectors a and b. Neither vector is a multiple of the other, so a and b are independent. Two independent vectors in the plane form a basis, so together they span the plane: U plus W is the whole plane. And if a vector lies on both lines, it is s times a, and also t times b. Then s a minus t b is zero, and independence gives s and t equal to zero. So the lines meet only at zero, and the plane is their direct sum.
Direct sums are not only about arrows. Take the vector space of all functions from R to R. Inside it, let Even be the space of even functions, where f of minus x equals f of x, and let Odd be the space of odd functions, where f of minus x equals minus f of x. Both are subspaces: checking the three conditions is routine, and it is written out in the book. Take f of x equals x cubed, plus two x squared, minus x, plus one. Collect its even powers: two x squared plus one, which is even. And its odd powers: x cubed minus x, which is odd. Their sum is f. For any function f, the same split works with a formula. The even part is f of x plus f of minus x, over two. It is even: at minus x it gives f of minus x plus f of x, over two, which is the same.
The odd part is f of x minus f of minus x, over two. At minus x it gives f of minus x minus f of x, over two, which is minus the odd part, so it is odd. Adding the two parts, the f of minus x terms cancel, and we get f. So the space of functions is Even plus Odd. And a function that is both even and odd satisfies f of x equals f of minus x, which equals minus f of x. So two f of x is zero, and f is the zero function. The intersection is zero, so the space of functions is Even direct sum Odd.
The same trick splits every square matrix over the real numbers into a symmetric part and a skew symmetric part. That example is worked out in the book.
Several subspaces
Sums work for more than two subspaces. Let U one up to U k be subspaces of V. Their sum is the set of all vectors u one plus and so on, up to u k, with each u j in its own U j. It is direct if every vector in it can be written this way in exactly one way. The zero test still works. For subspaces U one up to U k of V, the sum is direct exactly when the only way to write zero as u one plus and so on, up to u k, with each u j in U j, is with every u j equal to zero. The proof is the same as before. If zero has only the trivial expression, take two expressions of the same vector and subtract them. This gives an expression of zero, with the differences u j minus u j prime as its terms. Each difference lies in U j, so each is zero, and the two expressions agree. And if the sum is direct, zero has only one expression, zero plus and so on, up to zero.
But here is a warning. With three or more subspaces, it is not enough to check that each pair meets only at zero. In the plane, take three lines: the horizontal axis, the vertical axis, and the line through the point (one, one). Any two of them meet only at the origin. But the vector (one, zero), plus the vector (zero, one), minus the vector (one, one), is the zero vector. In the first coordinate, one plus zero minus one is zero. In the second, zero plus one minus one is zero.
So zero has an expression with nonzero terms, one from each line, and the sum of the three lines is not direct. For several subspaces, use the zero test, not the pairwise intersections.
Summary
Let's summarise. The intersection of two subspaces is a subspace. The union usually is not: it is a subspace only if one contains the other. The sum U plus W is the smallest subspace that contains both, and we compute it by joining spanning lists. The sum is direct when every vector splits in exactly one way. For two subspaces, that happens exactly when they meet only at zero. For more than two, use the zero test.
In lecture twenty four, we will see that every subspace of a finite dimensional vector space has a partner that completes it to a direct sum, and we will count dimensions of sums. Before the next lecture, read section four point four of the course book, try the problems on sheet six about sums and direct sums, and do the lecture check on this lecture's page at Open Semester dot com. Next time, we build bases and dimension for vector spaces in general. See you there.
In this lecture
Materials
Check yourself
3 questions, from warm-up to stretch
Work each one out on paper, type your answer and press Check. Stuck? Open a hint; the worked solution is there when you need it.
- Question 1 of 3 Warm-up
In let be the floor, the vectors , and . Write as with and : find , and . Is the sum direct?
Hint 1 of 2
The third entry of is , so the third entry of comes from alone: . Then .
Hint 2 of 2
For directness, use Theorem 4.4.13: the sum is direct exactly when . Which multiples have third entry ?
Worked solution
- The third entries give , so and .
- Then , which lies in the floor. So , . Check: .
- A vector in is with third entry , so : . By Theorem 4.4.13 the sum is direct, so this split of is the only one.
- Question 2 of 3 Core
In let and . Find the weights with . Is the sum direct? Is the union of and a subspace?
Hint 1 of 2
Write and compare entries with .
Hint 2 of 2
Once you know , look at for Theorem 4.4.13, and at which subspace contains the other for Proposition 4.4.5.
Worked solution
- . Comparing with : , , and checks the third entry.
- So , and every multiple of it is in : . Then , and by Theorem 4.4.13 the sum is not direct. For example and also , with the first vector in and the second in .
- Since , the union is itself, a subspace (Proposition 4.4.5). Joining spanning lists (Proposition 4.4.10), too.
- Question 3 of 3 Stretch
A function has and . Write with even and odd, as in the lecture. Find , , and .
Hint 1 of 2
The even part is and the odd part is (Example 4.4.15).
Hint 2 of 2
At , and . At the roles swap: and .
Worked solution
- and .
- and . As they must, and .
- Check: and .
- The space of functions is Even Odd, so this is the only way to write as an even function plus an odd one: any such split has these four values.
How did it go?