Recitation 8 · Week 8· 33:08

Problem Sheet 8, worked through

The marked problems of Sheet 8, 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 29 to 32.

Play: Recitation 8
Recitation · 33:08 · 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 8

Welcome to recitation eight. This week was about linear maps. Lecture twenty nine defined linear maps between vector spaces, with their kernel and image. Lecture thirty proved the rank-nullity theorem, and used it to decide when a map is one to one or onto. Lecture thirty one studied isomorphisms, inverse maps, composition, and the space of all linear maps from V to W. And lecture thirty two turned a linear map into a matrix, once we choose bases. Problem Sheet eight covers lectures twenty nine to thirty two. We will solve the nine problems marked with the play symbol: problems four to twelve. The other five 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 map T from V to W is linear if it respects sums and scalar multiples. Its kernel is the set of vectors that T sends to zero, a subspace of V. Its image is the set of all outputs, a subspace of W. The rank-nullity theorem: if V is finite dimensional, the dimension of V is the rank of T, the dimension of the image, plus the nullity of T, the dimension of the kernel. And T is one to one exactly when its kernel contains only the zero vector. An isomorphism is a linear map that is one to one and onto. Its inverse is linear too, and two finite dimensional spaces over the same field are isomorphic exactly when they have the same dimension. The linear maps from V to W form a vector space of their own, called Hom of V and W, and a composition of linear maps is linear.

Finally, the matrix of a linear map. Choose a basis B of V, and a basis C of W. The columns of the matrix are the C coordinates of the images of the vectors of B. Multiplying by this matrix turns the B coordinates of v into the C coordinates of T of v. For a map from V to itself, changing the basis from B to B prime changes its matrix to P inverse, times the old matrix, times P, where P is the transition matrix from B prime to B. Matrices related in this way are called similar. One habit carries us through today: choose bases, then compute. A question about a linear map becomes a question about its matrix, and row reduction does the rest.

Problem 4: a matrix in two bases

We start with problem four, a warm-up on the matrix of a linear map. T goes from R three to R two: it sends (x one, x two, x three), to (x one plus x two, x two minus x three). B is a basis of R three, and C is a basis of R two. Part a asks for the standard matrix of T. Its columns are T of e one, T of e two and T of e three, and we can read them straight off the formula. Write each entry of the formula in full, with every variable in it. The first entry is one x one, plus one x two, plus zero x three. The second entry is zero x one, plus one x two, minus one x three.

Each column collects the coefficients of one variable. So the first column is the vector (one, zero), which is T of e one. The second column is the vector (one, one), and the third is the vector (zero, minus one). Part b asks for the matrix of T from B to C. Its columns are the C coordinates of T of b one, T of b two and T of b three. So we need two things: the images, and a quick way to take C coordinates. In the basis C, a times the vector (one, zero), plus b times the vector (one, one), is the vector (a plus b, b). So the second entry is b, and the first entry minus the second is a. So the vector (y one, y two), has C coordinates (y one minus y two, y two).

Now the images. T of b one is T of the vector (one, zero, zero), which is the vector (one, zero), with C coordinates (one, zero). T of b two is T of the vector (one, one, zero), which is the vector (two, one), with C coordinates (one, one). And T of b three is T of the vector (one, one, one), which is the vector (two, zero), with C coordinates (two, zero). These three coordinate vectors are the columns. The matrix has rows (one, one, two), and (zero, one, zero). It is two by three, like the standard matrix, because T still goes from a space of dimension three to a space of dimension two. Part c asks for the B coordinates of v, the vector (two, three, one), and checks the matrix with them. Write c one, c two and c three for the coordinates. Then c one plus c two plus c three equals two, c two plus c three equals three, and c three equals one.

Back substitution: c three is one, so c two is three minus one, which is two, and c one is two minus three, which is minus one. The B coordinates of v are (minus one, two, one). Multiply: the matrix times the vector (minus one, two, one). The first entry is minus one, plus two, plus two, which is three. The second entry is zero, plus two, plus zero, which is two. So the matrix predicts that T of v has C coordinates (three, two). Directly, T of v is the vector (two plus three, three minus one), which is the vector (five, two). Its C coordinates are (five minus two, two), which is (three, two). The two routes agree.

Problem 5: kernel and image of a map on matrices

Problem five. A is the matrix with first row (zero, one), and second row (zero, zero). The map T sends a two by two matrix X to A X minus X A. Part a asks us to prove that T is linear. For two matrices X and Y, T of X plus Y is A times, X plus Y, minus, X plus Y, times A. By the distributive laws of matrix multiplication, this splits into A X minus X A, plus A Y minus Y A. That is T of X, plus T of Y.

And for a scalar c, T of c X is A times c X, minus c X times A, which is c times, A X minus X A. That is c times T of X, so T is linear. Part b asks for a basis of the kernel. We write X with entries a, b, c and d, and multiply out. A X moves the second row of X up to the first row: its rows are (c, d), and (zero, zero). X A moves the first column of X over to the second column: its rows are (zero, a), and (zero, c).

Now subtract, entry by entry. Top left, c minus zero is c. Top right, d minus a. Bottom left, zero minus zero is zero. Bottom right, zero minus c is minus c. So T of X is the zero matrix exactly when c is zero, and d equals a. The kernel consists of the matrices with a on the diagonal, b in the top right corner, and zero in the bottom left corner. Such a matrix splits as a times the identity, plus b times E one two. These two matrices span the kernel, and they are independent, since each has a nonzero entry where the other has zero. So they form a basis of the kernel, and the nullity of T is two.

In fact, T of X is zero exactly when A X equals X A. So the kernel of T is the set of matrices that commute with A. And E one two is A itself: of course A commutes with itself. Part c asks for a basis of the image. Every output splits as c times, E one one minus E two two, plus, d minus a, times E one two. So the image is spanned by these two matrices. Both of them really are outputs: T of E two one is E one one minus E two two, and T of E two two is E one two. They are independent, so they form a basis of the image, and the rank of T is two.

Part d asks us to check rank-nullity, and whether T is one to one or onto. The rank plus the nullity is two plus two, which is four, the dimension of the space of two by two matrices. Rank-nullity checks out. T is not one to one, because its kernel contains more than the zero matrix: for example, T of the identity is zero. And T is not onto, because its image has dimension two, not four. For example, E two one is not an output, because every output has a zero in the bottom left corner.

Problem 6: a parabola through three points

Problem six: a parabola through three points. T sends a polynomial p of degree at most two to the list of its values at minus one, zero and one. The book shows, right after its example with the points zero, one and two, that such a map is linear, one to one and onto. So T is an isomorphism, and we can compute with it. Part a asks for the matrix of T in the standard bases. We apply T to the basis polynomials one, x and x squared, and write the results as columns. The constant one takes the value one at every point: (one, one, one). The polynomial x takes the values (minus one, zero, one). And x squared takes the values (one, zero, one).

Part b asks for the parabola with p of minus one equal to two, p of zero equal to one, and p of one equal to four. Write p as a, plus b x, plus c x squared. Then T of p has entries a minus b plus c, then a, then a plus b plus c, and these must be (two, one, four). The middle equation gives a equals one. Then minus b plus c is one, and b plus c is three. Adding, two c is four, so c is two, and then b is one. So p is one, plus x, plus two x squared. Check: p of minus one is one minus one plus two, which is two. p of zero is one. And p of one is one plus one plus two, which is four. Since T is one to one, no other polynomial of degree at most two works.

Here is its graph. It passes through the point (minus one, two), the point (zero, one), and the point (one, four). Part c asks for the matrix of the inverse map, and uses it to redo part b. The matrix of the inverse map is the inverse of the matrix. We find it by Gauss-Jordan, row reducing the matrix with the identity next to it. First, row two minus row one, and row three minus row one. That clears the first column below the pivot.

Then row three minus two times row two. Now the left half is in echelon form, with two in the bottom corner. Next we halve row three, and add the new row three to row two. Finally, row one plus row two, minus row three. The left half is now the identity, so the right half is the inverse matrix.

Multiplying it by the vector (two, one, four): the first entry is one. The second is minus one, plus two, which is one. The third is one, minus one, plus two, which is two. These are the coordinates of one, plus x, plus two x squared, the same answer as before. This is why the inverse matrix is worth having: for any other three values, we just multiply them by the same matrix, and read off the parabola.

Problem 7: counting with rank-nullity

Problem seven: four questions, each answered with the rank-nullity theorem. A good way to think of rank-nullity is as a budget. Each dimension of V either survives into the image, or is lost in the kernel, and together they use up the whole dimension of V. Part a: V has dimension seven, W has dimension four, and the kernel of T has dimension three. Is T onto? The rank of T is seven minus three, which is four. The image is a subspace of W with the same dimension as W, so it is all of W. Yes, T is onto.

Part b asks for which k there is a linear map from R six onto R k with nullity two. If T is onto, its image is all of R k, so its rank is k. The nullity is two, so rank-nullity says that six equals k plus two. So k must be four. And four does work. The map that keeps the first four entries of a vector in R six is linear and onto, and its kernel is the span of e five and e six, of dimension two. So k equal to four is the only answer. Part c asks for a map from R four to itself whose kernel equals its image. Try the map that sends (x one, x two, x three, x four), to (x three, x four, zero, zero).

T of x is zero exactly when x three and x four are zero, so the kernel is the span of e one and e two. And the outputs are the vectors with any first two entries and zeros after them, so the image is also the span of e one and e two. Part d asks us to prove that no map from R three to itself has its kernel equal to its image. Suppose, only to show that it cannot happen, that some map does. Then the nullity and the rank would be the same number r, and rank-nullity would give three equals r plus r, which is two r. But two r is even, and three is odd. So the assumption is false, and no such map exists. The same argument works in every space of odd dimension.

Notice that none of these answers needed a formula for the map. The dimensions, together with rank-nullity, decided every question.

Problem 8: a better basis

Problem eight. T is the map of the symmetric matrix A with rows (three, one), and (one, three). The basis B has b one equal to (one, one), and b two equal to (minus one, one). Part a asks for T of b one and T of b two, and the matrix of T in the basis B. T of b one is A times the vector (one, one). In the first coordinate, three plus one is four. In the second, one plus three is four. So T of b one is the vector (four, four), which is four times b one. T of b two is A times the vector (minus one, one). In the first coordinate, minus three plus one is minus two. In the second, minus one plus three is two. So T of b two is the vector (minus two, two), which is two times b two.

The columns of the matrix of T in the basis B are the B coordinates of these images. Four b one is four b one plus zero b two, with coordinates (four, zero), and two b two has coordinates (zero, two). So the matrix is diagonal, with four and two on the diagonal. Part b checks this with the change of basis formula. P is the transition matrix from B to the standard basis, so its columns are b one and b two. Here a d minus b c is one plus one, which is two, so P inverse is one half times the matrix with rows (one, one), and (minus one, one). First, A times P. Its columns are A times b one, and A times b two, which we just found: (four, four), and (minus two, two).

Then P inverse times A P, entry by entry. Top left: one half times, four plus four, which is four. Top right: one half times, minus two plus two, which is zero. Bottom left: one half times, minus four plus four, which is zero. Bottom right: one half times, two plus two, which is two. The same diagonal matrix. Part c asks for a picture: the square on b one and b two, and its image under T. Here are b one and b two, and the square with corners zero, b one, b one plus b two, and b two. T sends b one to four b one, and b two to two b two. So the corner b one plus b two goes to four b one plus two b two, which is the point (two, six).

The square becomes a rectangle. T stretches by four along the line of b one, and by two along the line of b two. The standard matrix hides this, but the matrix in the basis B says it at once. In the basis B, T acts on each coordinate separately: it multiplies the first B coordinate by four, and the second by two. Part d asks for T applied three times to the vector (two, zero), and a check with A cubed. In the basis B, the vector (two, zero), is b one minus b two, with coordinates (one, minus one).

The matrix of a composition is the product of the matrices. So the matrix of T cubed in the basis B is the diagonal matrix cubed, with sixty four and eight on the diagonal. Times the coordinates (one, minus one), this gives the coordinates (sixty four, minus eight). So T cubed of the vector (two, zero), is sixty four b one, minus eight b two, which is the vector (seventy two, fifty six). Check with the standard matrix. A squared has rows (ten, six), and (six, ten), and A cubed has rows (thirty six, twenty eight), and (twenty eight, thirty six). Times the vector (two, zero), that is the vector (seventy two, fifty six). The same vector.

Finding a basis in which the matrix is diagonal is the subject of week ten.

Problem 9: the shift on polynomials

Problem nine. S is the shift on polynomials of degree at most two: it sends p of x to p of x plus one. E is the standard basis: one, x, and x squared. The book shows that S is linear, and that it is an isomorphism. Part a asks for the matrix of S in the basis E. For the matrix, we shift each basis polynomial, and write its coefficients as a column. S of one is one. S of x is x plus one, which is one plus x. And S of x squared is, x plus one, squared, which is one, plus two x, plus x squared.

Written in full, these are one plus zero x plus zero x squared, then one plus one x plus zero x squared, then one plus two x plus one x squared. Their coefficients are the columns. The matrix is upper triangular, with ones on the diagonal. Part b asks for the matrix of the inverse, and a check. The inverse of S shifts the other way: it sends p of x to p of x minus one. Shifting forward and then back, or back and then forward, gives p again. Shifting back, one stays one, x becomes minus one plus x, and x squared becomes one, minus two x, plus x squared. Their coefficients give the matrix of the inverse.

Check that the product of the two matrices is the identity. The diagonal entries are all one. In row one, column two: one minus one is zero. In row one, column three: one minus two plus one is zero. And in row two, column three: two minus two is zero. Part c asks for the matrix of S after S, in two ways. As a product, it is the matrix of S, squared: its first row is (one, two, four), its second row is (zero, one, four), and its third row is (zero, zero, one). Directly, shifting twice replaces x by x plus two. So x goes to two plus x, and x squared goes to, x plus two, squared, which is four, plus four x, plus x squared. The same columns. Composition of maps is multiplication of matrices.

Part d is about the difference map delta, which is S minus the identity. It sends p of x to p of x plus one, minus p of x. The matrix of a sum of maps is the sum of their matrices, so the matrix of delta is the matrix of S minus the identity matrix. For p equal to a plus b x plus c x squared, delta of p is, b plus c, plus two c x. So delta of p is zero exactly when b and c are zero: the kernel is the constant polynomials, with the polynomial one as a basis. The image is spanned by delta of x, which is one, and delta of x squared, which is one plus two x. These are independent, so they form a basis, and the image is all polynomials of degree at most one. Check: one plus two is three.

So one choice of basis turned three questions about polynomials, the inverse, the square and the difference, into questions about three by three matrices.

Problem 10: similar matrices

Problem ten is about similar matrices. B is similar to A if B equals P inverse A P, for some invertible matrix P. The book shows that this goes both ways, so we just say that A and B are similar. Part a asks us to prove that B to the k equals P inverse, A to the k, P, for every k from one on, and that B is invertible exactly when A is. We use induction. For k equal to one, the formula is the hypothesis. Suppose it holds for k. Then B to the k plus one is B to the k times B, which is P inverse A to the k P, times P inverse A P. In the middle, P times P inverse is the identity, and we are left with P inverse, A to the k plus one, P.

And if A is invertible, then B, a product of three invertible matrices, is invertible. Conversely, A equals P B P inverse, so if B is invertible, so is A. Part b asks us to prove that A transpose and B transpose are similar, and so are A minus c I and B minus c I. Transposing reverses the order of a product, so B transpose is P transpose, A transpose, times the transpose of P inverse. Call that last matrix Q. It is invertible, and its inverse is P transpose. So B transpose equals Q inverse, A transpose, Q. Now for the shift. P inverse, times A minus c I, times P, is P inverse A P, minus c times P inverse P, which is B minus c I. So A minus c I and B minus c I are similar too, for every number c.

Part c asks us to show that two matrices are similar. Call the first matrix N. Let P swap the two coordinates: its rows are (zero, one), and (one, zero), and P is its own inverse. Then N P has rows (one, one), and (one, zero), and multiplying by P on the left swaps the rows. So P inverse N P has rows (one, zero), and (one, one), the second matrix. In words: listing the basis vectors in the other order changes the matrix, but not the map. We will also chain similarities. If M equals Q inverse B Q, and B equals P inverse A P, then M equals the inverse of P Q, times A, times P Q, since P Q is invertible, with inverse Q inverse P inverse. So similar to similar is similar.

Part d asks which of four matrices are similar to A, the matrix with rows (one, two), and (zero, three). Its trace is four, and its rank is two. First, M one, the diagonal matrix with one and three. A sends the vector (one, zero), to itself, and sends the vector (one, one), to the vector (three, three), which is three times itself. So in the basis of these two vectors, the map of A has the matrix M one. With P having these two vectors as its columns, A P has columns (one, zero), and (three, three). Then P inverse A P has rows (one, zero), and (zero, three). That is M one, so M one is similar to A. M two has rows (two, one), and (zero, two). Its trace is four and its rank is two, just like A. But if M two were similar to A, then by part b, M two minus I would be similar to A minus I. A minus I has rank one, while M two minus I has rank two. Similar matrices have the same rank, so M two is not similar to A: equal traces and equal ranks are not enough.

M three has rows (one, zero), and (five, three). It sends the vector (two, minus five), to itself, and the vector (zero, one), to three times itself. So with Q having these columns, Q inverse M three Q is M one. M three is similar to M one, which is similar to A, so M three is similar to A. Finally, M four, with all four entries equal to two, has rank one, not two. So it is not similar to A, even though its trace is four. In short: to show that two matrices are similar, find a basis that turns one into the other. To show that they are not, find a property that similar matrices share, like the rank, and check that it differs.

Problem 11: true or false

Problem eleven: five statements, true or false. T goes from V to W, and S goes from W to U, and both are linear. Statement a says: a linear map sends independent vectors to independent vectors. False. The zero map, from R two to R two, sends every vector to zero. The list with just e one is independent, but its image, the list with just the zero vector, is not. It does become true when T is one to one. But for a general linear map, independence can be lost.

Statement b says: if the images are independent, then so are the vectors themselves. True. Suppose c one v one, plus and so on, plus c k v k, is zero. Apply T. By linearity, c one T of v one, plus and so on, plus c k T of v k, equals T of zero, which is zero. The images are independent, so every weight is zero. That proves it. Statement c says: if S after T is one to one, then T is one to one. True. Suppose T of u equals T of v. Applying S to both sides gives S after T of u, equal to S after T of v. Since S after T is one to one, u equals v.

Statement d says: if S after T is one to one, then S is one to one. False. Let T send a real number x to the vector (x, zero), and let S send the vector (x, y), to x. Then S after T sends x to x, which is one to one. But S sends the vector (zero, one), to zero, just like the zero vector, so S is not one to one. S is only ever used on the image of T, the horizontal axis, and there it is one to one. Statement e says: if T after T is the zero map on R three, then the rank of T is at most one. True. For every v, T of T of v is zero. So every output of T lies in the kernel of T: the image is inside the kernel.

So the rank is at most the nullity, which by rank-nullity is three minus the rank. That gives two times the rank, at most three. The rank is an integer, so it is at most one. A pattern worth remembering: to prove a statement, start from the definitions and follow them. To show that a statement is false, one counterexample is enough, and small spaces, like R and R two, are the best places to look for one.

Problem 12: kernel plus image

Problem twelve. V has dimension n, and T is a linear map from V to itself. T squared means T after T. Under one condition, V splits as the direct sum of the kernel and the image of T. Part a asks us to prove two inclusions. If T of v is zero, then T squared of v is T of zero, which is zero. So the kernel of T lies inside the kernel of T squared. And every output of T squared, T of T of v, is an output of T, applied to the vector T of v. So the image of T squared lies inside the image of T.

Part b assumes that T squared and T have the same rank, and asks us to prove that their kernels are equal, and that the kernel and the image of T meet only in zero. This part is the heart of the problem, so take it slowly, and pause if you need to. By rank-nullity, the nullity of T squared is n minus its rank, which is n minus the rank of T, which is the nullity of T. So the kernel of T is a subspace of the kernel of T squared, with the same dimension. Then the two kernels are equal. Now take a vector w in both the kernel and the image of T. Being in the image, w is T of v for some v. Being in the kernel, T of w is zero. So T squared of v is zero, and v lies in the kernel of T squared.

But that is the kernel of T. So T of v is zero, and w, which is T of v, is zero. The only vector in both is the zero vector. Part c asks us to deduce that V is the direct sum of the kernel and the image. By the dimension formula, the dimension of the kernel plus the image is the nullity, plus the rank, minus the dimension of the intersection, which is zero. By rank-nullity, that is n. A subspace of V with dimension n is all of V. And the sum is direct, because the intersection contains only the zero vector. So V is the direct sum of the kernel and the image. Projections, the maps with T squared equal to T, always satisfy the condition.

Part d shows that the condition matters. Let T send the vector (x, y), to the vector (y, zero). Its kernel is the vectors with y equal to zero: the horizontal axis. Its image is the vectors (y, zero): the horizontal axis again. So the kernel and the image are the same line, and their sum is only that line, not the whole plane. Here T squared is zero, with rank zero, while T has rank one, so the condition of part b fails.

Wrap-up

That completes the nine recitation problems. Here are the ideas to take away from this week. To find a kernel, solve T of v equals zero. To find an image, apply T to a basis: the images span it. And rank-nullity ties the two dimensions together. A linear map becomes a matrix once we choose bases, and a good choice of basis can make that matrix very simple, as in problem eight.

Before we finish, here are five mistakes that come up again and again with this week's material. First, forgetting that a linear map sends zero to zero. A map that moves the zero vector, like adding one to a coordinate, is never linear. Second, putting the images themselves into the matrix, instead of their coordinates. The columns of the matrix are coordinate vectors in the basis C.

Third, mixing up where the kernel and the image live. The kernel lies in V, the space we start in. The image lies in W, the space we land in. Fourth, thinking that equal traces and equal ranks make two matrices similar. They are necessary, but not enough, as M two in problem ten showed. Fifth, assuming that a one to one map must be onto. That is guaranteed only when the two spaces have the same finite dimension. A one to one map into a bigger space, like T in statement d of problem eleven, is never onto.

The rest of sheet eight is yours to try. Problems one to three are warm ups. Problem thirteen studies the map that multiplies a matrix on the left by A, and problem fourteen uses the difference map to add up the first n squares. Full solutions are in the solutions booklet. Next week, in lectures thirty three to thirty six, we meet the determinant: first as a signed volume, and then as a formula. See you there.

In this recitation

  1. Problem 4: a matrix in two bases
  2. Problem 5: kernel and image of a map on matrices
  3. Problem 6: a parabola through three points
  4. Problem 7: counting with rank–nullity
  5. Problem 8: a better basis
  6. Problem 9: the shift on polynomials
  7. Problem 10: similar matrices
  8. Problem 11: true or false
  9. Problem 12: kernel plus image
  10. 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.