Recitation 6 · Week 6· 33:49

Problem Sheet 6, worked through

The marked problems of Sheet 6, solved step by step on screen. Try them first; the rest of the sheet is for practice on your own, with full written solutions. Covers Lectures 21 to 24.

Play: Recitation 6
Recitation · 33:49 · Open on YouTube · Report a problem with this video
TranscriptThe full text of the recitation. Click any sentence to play the video from there.

Recitation 6

Welcome to recitation six. This week, lecture twenty one introduced vector spaces over a field, where polynomials, matrices and functions are vectors too. Lecture twenty two built new subspaces from old ones: sums, intersections and direct sums. Lecture twenty three brought bases and dimension to every vector space, and lecture twenty four proved the dimension formula. Problem Sheet six covers lectures twenty one to twenty four. We will solve the eight problems marked with the play symbol: problems five to twelve. The other six are for practice on your own, with full solutions in the solutions booklet. As always, pause the video before each problem, and try it yourself first. Then watch how we do it, and compare.

First, a quick recap. A vector space over a field F is a set with an addition and a scalar multiplication that obey the same rules as F n. So polynomials, matrices and functions can all be added and scaled, just like vectors. A word about language before we start. In these problems, polynomials, matrices and functions will all be called vectors, even though they look nothing like arrows or columns of numbers. What makes an object a vector is not what it is made of, but where it lives. Once a set, with its addition and scalar multiplication, forms a vector space, its elements are called vectors, whatever they are. For two subspaces U and W, the sum U plus W is made of all the vectors u plus w, and the intersection is made of the vectors that lie in both. The sum is direct when every vector of it splits as u plus w in only one way. That happens exactly when the intersection is just zero.

In a finite dimensional space, every independent list can be extended to a basis, and every spanning list can be shrunk to one. All bases have the same length, and that length is the dimension. And the dimension formula: the dimension of U plus W equals the dimension of U, plus the dimension of W, minus the dimension of their intersection. One habit carries us through today: count before you compute. Once we know the dimensions, a count can replace a long calculation. For example, three independent vectors in a space of dimension three form a basis, and we never have to check that they span.

Problem 5: polynomials that vanish at two points

Problem five. W is the set of polynomials in P three of R, the polynomials of degree at most three, that are zero at one and at minus one. Part a asks us to show that W is a subspace. The zero polynomial is zero everywhere, so in particular at one and at minus one. So the zero polynomial is in W. Now let p and r be in W. The sum p plus r, at one, is p of one plus r of one, which is zero plus zero. The same works at minus one. So p plus r is in W.

And c times p, at one, is c times p of one, which is c times zero, which is zero. Again, the same works at minus one. So W is closed under scalar multiples, and W is a subspace. Part b asks for a basis of W, and its dimension. Write p as a zero, plus a one x, plus a two x squared, plus a three x cubed. Then the two conditions are two linear equations for the four coefficients. p of one is the sum of all four coefficients. p of minus one has alternating signs: a zero, minus a one, plus a two, minus a three. Both must be zero.

Adding the two equations gives two a zero plus two a two equals zero. Subtracting them gives two a one plus two a three equals zero. So a zero is minus a two, and a one is minus a three. So a two and a three are free. Call them s and t. Then p is minus s, minus t x, plus s x squared, plus t x cubed. Collect the s terms and the t terms: p is s times, x squared minus one, plus t times, x cubed minus x. So these two polynomials span W. And both really are zero at one and at minus one.

They are also independent. In this combination, the coefficient of x cubed is t, and the coefficient of x squared is s. If the combination is the zero polynomial, both are zero. So x squared minus one and x cubed minus x form a basis of W, and W has dimension two. Part c asks us to extend this basis to a basis of P three, and to justify that it is a basis. P three has dimension four, so we need two more vectors. Let's try one and x. Suppose c one times, x squared minus one, plus c two times, x cubed minus x, plus c three, plus c four x, is zero. The x cubed coefficient gives c two equals zero. The x squared coefficient gives c one equals zero. The x coefficient is c four minus c two, so c four is zero. And the constant term is c three minus c one, so c three is zero.

So the four polynomials are independent. And four independent vectors in a space of dimension four form a basis. Count before you compute: we never had to check that they span. Part d asks why P three is the direct sum of U, the span of one and x, and W, and asks us to split a polynomial q into its two parts. The basis of U, joined to the basis of W, is the basis we just found. So U plus W is all of P three. And the intersection is zero: a polynomial that lies in both is in U, so it has the form a plus b x, and it is also in W, so it is zero at one and at minus one. That gives a plus b equals zero and a minus b equals zero, so a and b are both zero. In a picture: the graph of a plus b x is a straight line, and the only straight line through both of these points is the x axis. So the intersection is just the zero polynomial. The sum is direct: P three is the direct sum of U and W.

So q, which is two, plus three x, minus x squared, plus x cubed, splits in exactly one way. We write q as a combination of the whole basis, and compare coefficients. The x cubed coefficient gives c two equals one. The x squared coefficient gives c one equals minus one. The x coefficient gives c four minus c two equals three, so c four is four. And the constant gives c three minus c one equals two, so c three is one. So the part of q in U is one plus four x. The part in W is minus, x squared minus one, plus, x cubed minus x, which is one, minus x, minus x squared, plus x cubed.

Check: the two parts add up to q. The part in U needs no check: one plus four x has the form a plus b x, so it lies in U automatically. The part in W has a condition to meet: it must be zero at one and at minus one. So that is the part we check. At one: one minus one minus one plus one is zero. At minus one: one plus one minus one minus one is zero.

Problem 6: a sum and an intersection in R^4

Problem six. In R four, U is spanned by three vectors, u one, u two and u three, and W by two vectors, w one and w two. Part a asks for a basis and the dimension of U, and of W. Look at u three, which is the vector (two, minus one, one, five). It is two u one, minus u two. In the first entry, two minus zero is two. In the second, zero minus one is minus one. In the third, two minus one is one. In the fourth, four plus one is five.

So u three adds nothing to the span. And u one and u two are independent: their first two entries are (one, zero), and (zero, one). So u one and u two form a basis of U, and U has dimension two. w one and w two are not multiples of each other, so they are independent too, and W has dimension two. Part b asks for a basis of the intersection. First, we translate membership in U into equations. A vector of U is a u one plus b u two, which is the vector (a, b, a plus b, two a minus b).

So a vector x lies in U exactly when its third entry is the sum of the first two, and its fourth entry is twice the first, minus the second. A vector of W is c w one plus d w two, which is the vector (c, c, three c plus d, two c plus d). When is it in U? The third entry must be c plus c, so three c plus d equals two c, and d equals minus c. The fourth entry must be two c minus c, so two c plus d equals c, and again d equals minus c.

So the intersection is made of the vectors c times, w one minus w two, which is c times the vector (one, one, two, one). This one vector is a basis of the intersection, and its dimension is one. Check: the vector (one, one, two, one), is u one plus u two, so it does lie in U. Part c asks for the dimension of U plus W, a basis of it, and whether the sum is direct. The dimension formula does the rest: the dimension of U plus W is two plus two minus one, which is three.

For a basis, notice that w one is not in U: its first two entries add up to two, but its third entry is three. So adding w one to the basis of U keeps the list independent. So u one, u two and w one are three independent vectors in U plus W, a space of dimension three. By the count, they form a basis. And the sum is not direct, because the intersection is a whole line. For example, u one plus u two equals w one minus w two: the same vector, built once from U, and once from W.

Problem 7: triangular matrices

Problem seven takes place in the space of n by n matrices. T up is the subspace of upper triangular matrices, with zeros below the diagonal. T low is the lower triangular matrices, with zeros above it. D is the diagonal matrices, and N is the strictly lower triangular matrices, with zeros on and above the diagonal. Part a asks for the intersection and the sum of T up and T low, and whether the sum is direct. A matrix that is both upper and lower triangular has zeros below and above the diagonal, so it is diagonal. And a diagonal matrix is both. So the intersection of T up and T low is D. Every matrix is its part on and above the diagonal, plus its part below the diagonal. The first part is upper triangular, and the second is lower triangular. So the sum of T up and T low is the whole space.

But the sum is not direct, because the intersection D is not zero. The diagonal can go into either part. For example, the identity is I plus zero, and also zero plus I. Part b asks for the dimensions of T up, T low and D, and a check of the dimension formula. Write E i j for the matrix with a one in position i j, and zeros elsewhere. A basis of T up is the matrices E i j with i at most j, one for each position on or above the diagonal. Count the positions: n on the diagonal, and half of, n squared minus n, above it. So T up has dimension n times, n plus one, over two. For n equals four, that is four plus six, which is ten. T low has the same dimension, and D has dimension n.

Now check the formula. Twice n times, n plus one, over two, minus n, is n squared plus n, minus n, which is n squared: the dimension of the whole space. It checks. Part c asks us to show that the whole space is the direct sum of T up and N, and to split a matrix A into its two parts. The same splitting puts the whole diagonal into the upper part, so T up plus N is everything. A matrix in both has zeros below the diagonal, and zeros on and above it, so it is zero. The sum is direct. For the matrix A with first row (one, two, three), second row (four, five, six), and third row (seven, eight, nine), the part in T up keeps one, two, three, five, six and nine, and the part in N keeps four, seven and eight.

Part d asks us to show that the symmetric matrices S also form a complement of N, with a dimension count. First, the intersection. A matrix in N has zeros on and above the diagonal. If it is also symmetric, each entry below the diagonal equals its mirror image above it, which is zero. So the intersection is zero. Now count. A symmetric matrix is free on and above the diagonal, so S has dimension n times, n plus one, over two. N has one free entry for each position below the diagonal, so its dimension is n times, n minus one, over two. By the dimension formula, S plus N has dimension n times, n plus one, over two, plus n times, n minus one, over two, minus zero. That is n squared. A subspace with the full dimension is the whole space, so S is a complement of N.

Notice that we never divided by two. So this works over every field, even Z two. And N now has two different complements: T up, and S.

Problem 8: extending and shrinking

Problem eight practises the two ways to reach a basis. An independent list can be extended to a basis, and a spanning list can be shrunk to one. Part a asks us to extend two matrices to a basis of M two by two of R. A one has first row (one, one), and second row (zero, zero). A two has first row (zero, one), and second row (one, zero). They are not multiples of each other, so they are independent. M two by two has dimension four, so we need two more matrices. We try two from the standard basis: E one one, with a one in the top left corner, and E two two, with a one in the bottom right corner.

Suppose a A one, plus b A two, plus c E one one, plus d E two two, is the zero matrix. Entry by entry: the top left entry is a plus c, the top right is a plus b, the bottom left is b, and the bottom right is d. So b is zero, and d is zero. Then the top right entry gives a equals zero, and the top left gives c equals zero. So the four matrices are independent. They are four independent vectors in a space of dimension four, so by the count, they form a basis.

Not every choice works. E one one and E one two would fail, because E one two is A one minus E one one. So always check that the new vectors keep the list independent. Part b gives the list one plus x, two plus two x, x minus x squared, one plus x squared, and x squared, which spans P two of R, and asks us to shrink it to a basis. Go along the list, and keep each vector that is not a combination of the vectors kept before it. Keep one plus x. Two plus two x is two times one plus x, so remove it. x minus x squared is not a multiple of one plus x, so keep it.

One plus x squared is, one plus x, minus, x minus x squared. So remove it. Finally x squared. A combination a times, one plus x, plus b times, x minus x squared, is a, plus, a plus b, x, minus b x squared. For this to be x squared we need a equals zero, and b equals minus one. But then a plus b is minus one, not zero. So x squared is not a combination, and we keep it. The basis is one plus x, x minus x squared, and x squared. It still spans, because each removed vector is a combination of kept ones. And three vectors that span a space of dimension three form a basis, as lecture twenty three showed.

Part c asks why four polynomials in P two are never independent, and why two polynomials never span P two. It needs no calculation at all. P two has dimension three. In a space of dimension three, an independent list has at most three vectors, and a spanning list has at least three.

Problem 9: complements

Problem nine is about complements. A subspace W is a complement of U in V when V is the direct sum of U and W. Part a asks which of three lines in the plane are complements of U, the line through the vector (one, minus one). The three lines are W one through the vector (one, one), W two through the vector (minus three, three), and W three through the vector (one, two). W two is the line U itself: the vector (minus three, three), is minus three times the vector (one, minus one). So W two meets U in a whole line, and it is not a complement.

W one is a different line. If a times the vector (one, minus one), equals b times the vector (one, one), then a equals b, and minus a equals b, so both are zero. The lines meet only in zero, so the sum is direct. Then the dimension of the sum is one plus one, minus zero, which is two. So the sum is the whole plane, and W one is a complement of U. The same argument works for W three. Part b asks us to split the vector v, which is (four, two), along U and each complement, and asks whether the part in U depends on the complement. With W one, we need a times the vector (one, minus one), plus b times the vector (one, one), to equal the vector (four, two).

The first entries give a plus b equals four, and the second entries give minus a plus b equals two. Adding, two b is six, so b is three, and a is one. So v is the vector (one, minus one), in U, plus the vector (three, three), in W one. In the picture, we go along U to the point (one, minus one), and then parallel to W one, up to v. Now split along W three: a times the vector (one, minus one), plus b times the vector (one, two). The first entries give a plus b equals four, and the second entries give minus a plus two b equals two. Adding, three b is six, so b is two, and a is two.

So v is the vector (two, minus two), in U, plus the vector (two, four), in W three. Each splitting is a parallelogram, with v as its diagonal. The part of v in U has changed: it is (one, minus one), with the first complement, but (two, minus two), with the second. So the splitting depends on which complement we choose. Part c moves to three dimensional space. L is the line through the vector (one, one, one). P one is the plane x plus two y minus z equals zero, and P two is the plane two x minus y minus z equals zero. Part c asks which plane is a complement of L, and asks us to split the vector (three, one, one), along it.

The vector (one, one, one), satisfies the equation of P two: two minus one minus one is zero. So the whole line L lies inside P two. Then L and P two share a line, and P two is not a complement. For P one: a vector of L is t times the vector (one, one, one), and it is in P one only if t plus two t minus t is zero, that is, two t is zero, so t is zero. The intersection is zero, and the dimension of the sum is one plus two, which is three. So the sum is all of R three, and P one is a complement of L. To split the vector (three, one, one), take t times the vector (one, one, one), in L. The rest is the vector (three minus t, one minus t, one minus t), and it must lie in P one. Put it into the equation: three minus t, plus two times, one minus t, minus, one minus t, is four minus two t. So t is two.

So the vector (three, one, one), is the vector (two, two, two), in L, plus the vector (one, minus one, minus one), in P one. Check: one, minus two, plus one, is zero.

Problem 10: two spaces of polynomials

Problem ten. In P three of R, U is the set of polynomials that are zero at one, and W is the set of polynomials that are zero at two. The problem tells us to count before we compute. Part a asks us to show that x minus one, x times, x minus one, and x squared times, x minus one, form a basis of U, and that W has dimension three as well. All three polynomials have the factor x minus one. So they are zero at one, and they lie in U. They are independent, because their degrees are one, two and three. In a combination equal to zero, only the last one has an x cubed term, so its weight is zero. Then only the second has an x squared term, so its weight is zero too, and then so is the first.

Now count. The constant polynomial one is not zero at one, so it is not in U. So U is not all of P three. A subspace with the same dimension as P three would be all of it, so the dimension of U is less than four. It contains three independent polynomials, so its dimension is exactly three, and these three form a basis. In the same way, x minus two, x times, x minus two, and x squared times, x minus two, form a basis of W, and W has dimension three too. Part b asks us to show that U plus W is all of P three, without finding a single sum. U plus W contains U, so its dimension is at least three. It also contains x minus two, which is in W but not in U: at one, it is minus one.

So U plus W is bigger than U. A subspace of dimension three that contains U would be U itself. So the dimension of U plus W is four, and U plus W is all of P three. We never wrote down a single sum. Part c asks for the dimension of the intersection, and a basis of it, without solving any equations. The dimension formula gives three plus three minus four, which is two. And we can write down two polynomials in it straight away. x minus one, times x minus two, and x times, x minus one, times x minus two, are zero at one and at two. Their degrees are two and three, so they are independent. Two independent polynomials in a space of dimension two form a basis.

Without counting, we would solve two equations in four coefficients. Counting told us that the answer has dimension two, so two independent polynomials that we could see were enough. Part d asks whether the sum is direct, and asks us to write the constant polynomial one as u plus w. The sum is not direct, because the intersection has dimension two, not zero. To split one, try a times, x minus one, from U, plus b times, x minus two, from W. The x coefficient gives a plus b equals zero, and the constant gives minus a minus two b equals one. So b is minus one, and a is one.

So one equals, x minus one, plus, two minus x. And because the sum is not direct, this is not the only way: add any polynomial of the intersection to the first part, and subtract it from the second.

Problem 11: true or false?

Problem eleven: four statements, true or false. For each one, we prove it, or give a counterexample. Throughout, U and W are subspaces of a vector space V. Statement a: if v one up to v n is a basis of V, and U is a subspace, then some of the v's form a basis of U. This is false. In R two, take the standard basis, e one and e two, and let U be the line through the vector (one, one). A basis of U has one vector, but neither e one nor e two lies on U.

What is true goes the other way: a basis of U can be extended to a basis of V. We can grow a basis of U outward, but we cannot always cut one out of a basis of V. Statement b: two three dimensional subspaces of R five always meet in exactly a line. This is false too. Take W equal to U. Then their intersection is all of U, with dimension three.

What is true: they always meet in at least a line. The dimension of U plus W is at most five, so by the dimension formula, the intersection has dimension at least three plus three minus five, which is one. And all three values happen. With U spanned by e one, e two and e three, take W spanned by e three, e four and e five, or by e two, e three and e four, or U itself. The intersections have dimension one, two and three. Statement c: if every vector of V lies in U or in W, then U is V, or W is V.

This is true. The hypothesis says that V is the union of U and W. So this union is a subspace: it is V itself. By proposition four point four point five, from lecture twenty two, a union of two subspaces is a subspace only when one of them contains the other. If U lies in W, the union is W, so W is V. Otherwise W lies in U, and U is V. In pictures: two lines through the origin never cover the whole plane. Some vector, like the vector (one, one), is always left over.

Statement d: if V is the direct sum of U and W, and v is not in U, then v is in W. False. In R two, let U be the first axis, and W the second axis. Their sum is direct, and it is the whole plane. The vector (one, one), is not in U, but it is not in W either. It splits as e one plus e two, with a nonzero part in each. A complement is a subspace, not the set of all vectors outside U.

Problem 12: complements

Problem twelve. V is the direct sum of U and W. Part a asks us to take a basis u one up to u m of U, and a basis w one up to w p of W, and to prove that the joined list is a basis of V. First, the joined list spans. Every vector v of V is u plus w, with u in U and w in W. Write u as a combination of the u's, and w as a combination of the w's. Adding them writes v as a combination of the joined list. Now independence. Suppose a combination of the joined list is zero: the sum of a i u i, plus the sum of b j w j, is zero.

Call the first sum u, and the second sum w. Then u is in U, w is in W, and u plus w is zero. But zero is also zero plus zero, and the sum is direct, so zero splits in only one way. So u is zero, and w is zero. Now the sum of a i u i is zero, and the u's are independent, so every a i is zero. In the same way, every b j is zero. So the joined list is independent, and it is a basis of V. This is the count we used today: the dimension of a direct sum is the sum of the dimensions.

Part b asks us to take a subspace X of V that contains U, and to prove that X is the direct sum of U and of X intersect W. This part is demanding, so take it slowly, and pause or rewatch it if you need to. First, this sum lies inside X. U lies in X, and X intersect W lies in X, and X is closed under addition. Next, every x in X is a sum. Since V is the direct sum of U and W, x is u plus w, with u in U and w in W. The question is whether w lies in X.

It does: w is x minus u. Both x and u lie in X, because U lies in X. And X is a subspace, so x minus u lies in X. So w lies in X intersect W, and x is in the sum. Finally, the sum is direct. A vector in both U and X intersect W lies in U and in W, so it is zero. So X is the direct sum of U and X intersect W. In words: a complement of U in the big space cuts out a complement of U in every subspace X that contains U.

Part c checks this in R three. U is the line through the vector (one, zero, zero), W is spanned by the vectors (one, one, zero), and (zero, one, one), and X is the floor, where z is zero. A vector of W is a times the vector (one, one, zero), plus b times the vector (zero, one, one), which is the vector (a, a plus b, b). It lies in U only if a plus b and b are zero, so only if it is zero. So U and W meet only in zero, and by the dimension formula their sum has dimension one plus two, which is three: R three is the direct sum of U and W. U lies in the floor, because the third entry of (one, zero, zero), is zero. A vector of W lies in the floor when its third entry, b, is zero. So X intersect W is the line through the vector (one, one, zero). The vectors (one, zero, zero), and (one, one, zero), are two independent vectors in the floor, which has dimension two. So the floor is the direct sum of the two lines, as part b predicts.

Wrap-up

Let's collect what today's problems taught us. To find a basis of a space of polynomials, write the conditions as equations for the coefficients, and read off one vector for each free coefficient. To find an intersection, describe one subspace by equations, and substitute the general vector of the other.

The dimension formula ties four numbers together. Find three of them, and it gives the fourth: often the dimension of the sum, with no row reduction at all. And a sum is direct when the intersection is zero. Then the bases join together, and the dimensions add. And to shrink a spanning list to a basis, go along the list, and keep each vector that is not a combination of the ones kept before it.

Before we finish, here are five mistakes that come up again and again with this week's material. Watch for them in your own work. First, confusing the sum with the union. The union of two subspaces is usually not a subspace. The sum always is. Second, forgetting that P n has dimension n plus one. Its standard basis starts with the constant polynomial one.

Third, testing three or more subspaces only two at a time. For three lines in the plane, every pair meets only in zero, but the sum is not direct. Fourth, thinking that a complement is unique. A line through the origin in the plane has infinitely many complements, and the splitting depends on the choice. Fifth, taking a complement to be the set of all vectors outside U. That set does not even contain zero. A complement is a subspace.

Keep these five in mind, and most of the sheet will go smoothly. The rest of sheet six is yours to try. Problems one to four are warm ups. Problem thirteen meets infinite dimensional spaces, and problem fourteen counts the subspaces of a small space over Z two, and draws them as the Fano plane. Full solutions are in the solutions booklet. Next week, in lectures twenty five to twenty eight, a basis turns every finite dimensional space into a copy of F n, through coordinates. Then come the rank of a matrix, its four fundamental subspaces, and change of basis. See you there.

In this recitation

  1. Problem 5: polynomials that vanish at two points
  2. Problem 6: a sum and an intersection
  3. Problem 7: triangular matrices
  4. Problem 8: extend and shrink to a basis
  5. Problem 9: complements
  6. Problem 10: count before you compute
  7. Problem 11: true or false
  8. Problem 12: a basis of a direct sum
  9. Wrap-up

Materials

Found a mistake, or something not working on this page? Report it and we'll fix it. See what we've corrected.