{"version":1,"lectureId":"01M14TZ6Q60YP3M8AZETVE0GDY","attempt":1,"publication":{"slug":"eigenvectors-and-eigenvalues","title":"Eigenvectors and Eigenvalues: The Directions a Matrix Can't Turn","subject":"mathematics","summary":"Most vectors get turned when a matrix acts on them. A few do not. This lecture builds eigenvectors and eigenvalues out of that one observation: we watch a grid stretch and shear, follow the arrows that swing and the arrows that hold their direction, and then turn the picture into the equation A v = lambda v. From there we derive the characteristic equation, solve it for a two by two matrix, recover both eigenvectors by hand, and finish in three dimensions, where the axis of a rotation turns out to be an eigenvector with eigenvalue one. Written for someone who has had one linear algebra course.","metaDescription":"Watch a grid stretch and shear, find the arrows that never turn, and compute eigenvalues and eigenvectors of a 2x2 matrix.","transcript":"Multiply a vector by a matrix and, in general, two things happen to it. Its length changes, and its direction changes. Today I want to ask about the second of those, because for almost every matrix there are a few directions that simply refuse to be turned. So here is a piece of the plane, ruled into squares. And here is the matrix we will apply to it: two, one, one, two. And let me say what applying it means. It means multiplication. Take a point on the grid, write it as a column, put A in front, and out comes a different point: two x plus y, and x plus two y. A matrix is a map that carries one point to another. Take one point and try it. This one, at one, zero. Multiply it by A: two times one plus zero is two, and one plus two times zero is one. So A sends that point over to two, one. Now watch every point do that same sum at once. The whole thing stretches out along one diagonal, and our point lands exactly where the arithmetic said it would. Let me put it back, and follow one single arrow through the same motion. This one points straight up, at zero, one and a half. Put it through the same sum and the answer is one and a half, three. Now apply the matrix. The arrow gets longer, certainly. But look where it ends up. It has swung over to the right. The matrix turned it. Not every arrow does that. Let me put the plane back and try two others, one along this diagonal and one along the other. And this time let us do the multiplication first, before anything moves. Read those two answers. The first one is three times the vector we put in. The second one is the vector we put in, unchanged, which is one times it. Now apply the matrix and watch the arrows do exactly that. The red one triples and stays on the line it was already on. The green one does not move at all. Those two directions are the eigenvectors of this matrix. Everything else in the plane swings round toward the stretching direction. These two just sit there and get scaled, by three and by one, and those two numbers are their eigenvalues. So let us write down exactly what that means. Look again at what just happened to that red arrow. Here is the vector one, one. We put it through the matrix, and out came another vector: three, three. And here is the observation the whole subject is built on. That answer is nothing but three times the vector we started with. One vector, one plain number, no matrix. Which tells us something about the picture. Both arrows lie on this one line through the origin. So on this line, applying A is nothing but multiplying by three. The arrow got longer, but it was not turned by so much as a degree. Now try an arrow that is not on that line. Here is w, pointing straight up. A sends it to one, two. And one, two is not a multiple of zero, one. No number times zero is ever one. So w came back pointing somewhere else entirely, like almost every arrow in the plane. The arrows that survive, the ones A puts back on their own line, are the eigenvectors of A. And the number that does the stretching, three in this case, is its eigenvalue. Now say that for any matrix and any vector. Here is a general v, drawn on a general line. A vector v is an eigenvector of A when A times v comes out as a plain multiple of v itself. Written down, that is A v equals lambda v, and that is the whole definition. That lambda is the eigenvalue. And there is one piece of fine print: v is not allowed to be the zero vector. A times zero is zero for every matrix there is, so the zero vector would qualify for everything. Read the equation geometrically now. It says that when A gets hold of v, it puts it back down somewhere on that same line. If lambda is bigger than one, A stretches the arrow out along it. If lambda is between zero and one, it pulls the arrow in toward the origin. Shorter, yes. Turned, no. And now let lambda keep going, down past zero. Watch the arrow shrink as it goes, die away to nothing at the origin, and come back out the other side, pointing backwards. That still counts. Backwards along a line is the same line. Notice what the equation does not say: it does not say A leaves v alone, it says A leaves the line alone. So an eigenvector is a direction the matrix cannot turn, and the eigenvalue says what happens to lengths along it. Which leaves the real question: given a matrix, how do you find them? Right. We have a matrix, and we want the directions it cannot turn. So start from the definition and push the algebra around. A v equals lambda v. Move everything to one side. A v minus lambda v equals the zero vector. I would love to factor the v out, but I cannot subtract a number from a matrix, so I slip in the identity: lambda v is the same thing as lambda times I times v. And now it factors. The matrix A minus lambda I, acting on v, gives the zero vector. Look at what that line actually says. Something times something comes out zero. And one of the two somethings we already know about: v is not the zero vector. That was the fine print in the definition. So the zero on the right cannot have come from the vector. It has to have come from the matrix over here. A minus lambda I has to take a nonzero vector and crush it flat to nothing. And there is exactly one number that measures whether a matrix does that. If you want to say how much of a matrix there is, in a single number, that number is its determinant. A matrix that flattens a nonzero vector onto the origin has determinant zero. Formally, then: lambda is an eigenvalue of A exactly when the determinant of A minus lambda I comes out zero. That is one equation in one unknown, and we can actually solve it. Let us do it with our matrix. Subtract lambda from each entry on the diagonal, take the determinant of what is left, and set that equal to zero. The determinant of a two by two is read straight off the two diagonals. Multiply down this one. Then multiply down the other. And take the second product away from the first. So that is two minus lambda, all squared, take away one times one. Multiply the square out and keep every term. Lambda squared, minus four lambda, plus four, minus one, equals zero. And four minus one is three, so that line tidies itself up where it stands. Lambda squared minus four lambda plus three. This has a name: it is the characteristic polynomial of A, and its degree is always the size of the matrix. This one factors on sight: lambda minus three, times lambda minus one. So the eigenvalues are three and one. And there is our confirmation, because those are exactly the two numbers we watched on the grid. One arrow tripled. The other one stayed put. We have the eigenvalues. Now we want the directions that go with them. Go back to the factored equation, A minus lambda I times v equals zero, and put the first eigenvalue into it. With lambda equal to three, we subtract three from each entry on the diagonal. That gives us minus one, one, one, minus one, multiplying the column x, y, and the answer has to be the zero vector. Both rows say the same thing. Minus x plus y equals zero, or in other words y equals x. So any vector whose two entries are equal will do, and the tidiest one to write down is one, one. There is the line of them, and there is the arrow. And notice that an eigenvector is never alone. Every multiple of one, one is an eigenvector too, with the very same eigenvalue three. What we have really found is a whole line the matrix keeps to itself. Now the second eigenvalue. Lambda equals one, so we subtract one from the diagonal instead, and this time the matrix comes out as four ones. Every row now says x plus y equals zero, so y is minus x, and the tidiest eigenvector to pick is one, minus one. There is the second line, and there is the second arrow. Now hold on to both of those arrows, and let the matrix loose on the whole picture again. Every grid line has been dragged off somewhere new. The red arrow ran out along its own line and stopped three times further from the origin, which is its eigenvalue. The green one did not move at all, because its eigenvalue is one. Those two directions were untouchable. One more thing, and then a warning. Here is a matrix that rotates the plane through a quarter turn: zero, minus one, one, zero. And here are three arrows sitting in it. Every arrow in the plane gets swung round by ninety degrees. Watch these three go. Not one of them finishes on the line it started on. A rotation has no favourite direction. And the algebra says the same thing. Subtract lambda from the diagonal, take the determinant, and cross the two diagonals exactly as before. That comes out as lambda squared plus one, and over the real numbers that has no roots at all. This matrix has no eigenvectors. It is not a defect in the matrix, it is honest geometry. So keep that in your pocket. Eigenvectors are common, but they are not guaranteed. Now let me lift exactly this rotation up into three dimensions, where something rather lovely happens. Here is a rotation of space about the vertical axis, and here are two arrows lying flat in the horizontal plane. Watch them turn. Every one of them changes direction, exactly the way they did down in the plane. But now there is somewhere to stand that the rotation cannot reach. An arrow pointing straight up along the axis. The rotation carries the whole of space around it and leaves that one arrow precisely where it was. So that arrow is an eigenvector, and its eigenvalue is one. And this is a general fact about three dimensional space. Every rotation has an axis, and the axis is the eigenvector with eigenvalue one. Euler proved that, and the proof is essentially this picture. So there is the whole idea, in one line. A times v equals lambda times v. The eigenvectors are the directions the matrix cannot turn. The eigenvalue attached to each one says what happens to lengths along that direction. Find those directions, and you have found the frame in which your matrix is nothing but a list of stretches. Which is why, from vibration to stability to the ranking of the whole internet, this tends to be the first question anybody asks about a matrix.","watch":{"version":1,"scenes":[{"title":"A Matrix Moves the Plane","start":0,"end":149.60595833333332,"objects":{"card":"a Title that says \"Linear Algebra — Eigenvectors and Eigenvalues: The Directions a Matrix Can't Turn\"","heading":"a Heading that says \"A Matrix Moves the Plane\"","matrix_label":"a Math [text] that says \"$A = mat(2, 1; 1, 2)$\"","partner":"a Math [text] that says \"$A vec(1, -1) = vec(1, -1) = 1 dot.op vec(1, -1)$\"","plane":"an Axes (x_range=(-3.8, 3.8), y_range=(-3.8, 3.8), aspect=(1, 1))","rule":"a Math [text] that says \"$A vec(x, y) = vec(2 x + y, x + 2 y)$\"","spot":"a Point [cyan] labelled \"(1.0, 0.0)\" drawn in plane (location=(1.0, 0.0))","spot_x":"a VariableNumber (initial_value=1.0, format_spec='.1f')","spot_y":"a VariableNumber (format_spec='.1f')","squares":"a Gridlines [gray] drawn in plane (x_range=(-1.2, 1.2), y_range=(-1.2, 1.2), step=0.6)","u":"a Vector [yellow] labelled \"arrow(u)\" drawn in plane (end=(0.0, 1.5))","v1":"a Vector [red] labelled \"arrow(v)_1\" drawn in plane (end=(1.0, 1.0))","v2":"a Vector [green] labelled \"arrow(v)_2\" drawn in plane (end=(1.0, -1.0))","work":"a Math [text] that says \"$A vec(1, 0) = vec(2, 1)$\""},"beats":[{"start":0,"say":"Multiply a vector by a matrix and, in general, two things happen to it. Its length changes, and its direction changes. Today I want to ask about the second of those, because for almost every matrix there are a few directions that simply refuse to be turned.","live":[],"does":[[0,"card is shown on the screen, written out."],[1.5,"card: enter:write-left-to-right."],[16.0565,"card is hidden from the screen — left the board."]]},{"start":17.2565,"say":"So here is a piece of the plane, ruled into squares. And here is the matrix we will apply to it: two, one, one, two.","live":null,"does":[[17.2565,"heading is shown on the screen, written out."],[18.267,"plane is shown on the screen, written out."],[19.764,"squares is shown on the screen, written out."],[21.657,"plane moves to a new place on the board."],[21.657,"matrix_label is shown on the screen, written out."]]},{"start":27.051499999999997,"say":"And let me say what applying it means. It means multiplication. Take a point on the grid, write it as a column, put A in front, and out comes a different point: two x plus y, and x plus two y. A matrix is a map that carries one point to another.","live":["matrix_label","plane","heading","squares"],"does":[[30.848,"rule is shown on the screen, written out."],[39.02199999999999,"rule (the \"2 x + y\" part) is emphasized."],[41.041999999999994,"rule (the \"2 x + y\" part) is no longer emphasized."],[41.041999999999994,"rule (the \"x + 2 y\" part) is emphasized."],[44.211,"rule (the \"x + 2 y\" part) is no longer emphasized."]]},{"start":46.5935,"say":"Take one point and try it. This one, at one, zero. Multiply it by A: two times one plus zero is two, and one plus two times zero is one. So A sends that point over to two, one.","live":["matrix_label","rule","plane","heading","squares"],"does":[[47.330999999999996,"spot is shown on the screen, written out."],[51.138999999999996,"work is shown on the screen, written out."],[58.742999999999995,"work (the \"vec(2, 1)\" part) is emphasized."]]},{"start":61.8625,"say":"Now watch every point do that same sum at once. The whole thing stretches out along one diagonal, and our point lands exactly where the arithmetic said it would.","live":["matrix_label","rule","work","plane","heading","squares","spot"],"does":[[61.8625,"work (the \"vec(2, 1)\" part) is no longer emphasized."],[62.443,"spot is redrawn as the numbers it depends on change."],[62.443,"plane: put this frame's data space back where it started (reset_matrix)."],[62.443,"spot_x ticks to 2.0."],[62.443,"spot_y ticks to 1.0."]]},{"start":72.17949999999999,"say":"Let me put it back, and follow one single arrow through the same motion. This one points straight up, at zero, one and a half. Put it through the same sum and the answer is one and a half, three.","live":null,"does":[[72.17949999999999,"spot is hidden from the screen."],[73.073,"plane: put this frame's data space back where it started (reset_matrix)."],[75.03599999999999,"u is shown on the screen, written out."],[82.51199999999999,"work becomes \"$A vec(0, 1.5) = vec(1.5, 3)$\"."]]},{"start":85.39949999999999,"say":"Now apply the matrix. The arrow gets longer, certainly. But look where it ends up. It has swung over to the right. The matrix turned it.","live":["matrix_label","rule","work","plane","heading","squares","u"],"does":[[86.38599999999998,"plane: put this frame's data space back where it started (reset_matrix)."],[88.44099999999999,"work (the \"vec(1.5, 3)\" part) is emphasized."],[94.25799999999998,"work (the \"vec(1.5, 3)\" part) is no longer emphasized."]]},{"start":95.69399999999999,"say":"Not every arrow does that. Let me put the plane back and try two others, one along this diagonal and one along the other. And this time let us do the multiplication first, before anything moves.","live":null,"does":[[96.23999999999998,"u is hidden from the screen."],[99.01399999999998,"plane: put this frame's data space back where it started (reset_matrix)."],[101.35999999999999,"v1 is shown on the screen, written out."],[102.84599999999998,"v2 is shown on the screen, written out."],[104.88899999999998,"work becomes \"$A vec(1, 1) = vec(3, 3) = 3 vec(1, 1)$\"."],[105.48899999999998,"partner is shown on the screen, written out."]]},{"start":108.65899999999999,"say":"Read those two answers. The first one is three times the vector we put in. The second one is the vector we put in, unchanged, which is one times it.","live":["matrix_label","rule","work","partner","plane","heading","squares","v1","v2"],"does":[[111.89799999999998,"work (the \"3 vec(1, 1)\" part) is emphasized."],[116.64699999999999,"partner (the \"1 dot.op vec(1, -1)\" part) is emphasized."]]},{"start":120.11449999999999,"say":"Now apply the matrix and watch the arrows do exactly that. The red one triples and stays on the line it was already on. The green one does not move at all.","live":null,"does":[[120.11449999999999,"partner (the \"1 dot.op vec(1, -1)\" part) is no longer emphasized."],[120.11449999999999,"work (the \"3 vec(1, 1)\" part) is no longer emphasized."],[120.70699999999998,"plane: put this frame's data space back where it started (reset_matrix)."]]},{"start":130.0375,"say":"Those two directions are the eigenvectors of this matrix. Everything else in the plane swings round toward the stretching direction. These two just sit there and get scaled, by three and by one, and those two numbers are their eigenvalues. So let us write down exactly what that means.","live":null,"does":[[139.825,"work (the \"3 vec(1, 1)\" part) is emphasized."],[140.02499999999998,"partner (the \"1 dot.op vec(1, -1)\" part) is emphasized."],[144.167,"work (the \"3 vec(1, 1)\" part) is no longer emphasized."],[144.367,"partner (the \"1 dot.op vec(1, -1)\" part) is no longer emphasized."],[148.56429166666666,"heading is hidden from the screen — left the board."],[148.56429166666666,"matrix_label is hidden from the screen — left the board."],[148.56429166666666,"partner is hidden from the screen — left the board."],[148.56429166666666,"plane is hidden from the screen — left the board."],[148.56429166666666,"squares is hidden from the screen — plane left the board."],[148.56429166666666,"v1 is hidden from the screen — plane left the board."],[148.56429166666666,"v2 is hidden from the screen — plane left the board."],[148.56429166666666,"rule is hidden from the screen — left the board."],[148.56429166666666,"work is hidden from the screen — left the board."]]}]},{"title":"The Defining Equation","start":149.60595833333332,"end":313.5253541666666,"objects":{"av":"a Vector [red] labelled \"lambda arrow(v)\" drawn in fig2 (end=((lam * 1.0), (lam * 0.6)))","bad":"a Math [text] that says \"$A vec(0, 1) = vec(1, 2)$\"","bad_in":"a Vector [blue] labelled \"arrow(w)\" drawn in fig (end=(0, 1))","bad_out":"a Vector [magenta] labelled \"A arrow(w)\" drawn in fig (end=(1, 2))","concl":"a Math [text] that says \"$A arrow(v) = 3 arrow(v)$\"","defn":"a Panel that says \"A nonzero vector $arrow(v)$ that $A$ sends to a multiple of itself. The multiplier $lambda$ is the eigenvalue belonging to it.\"","fig":"an Axes (x_range=(-0.8, 3.6), y_range=(-0.8, 3.6), aspect=(1, 1))","fig2":"a Figure (x_range=(-3.4, 3.4), y_range=(-2.2, 2.2), aspect=(6.8, 4.4))","general":"a Math [text] that says \"$A arrow(v) = lambda arrow(v)$\"","heading1":"a Heading that says \"One Vector, One Multiplication\"","heading2":"a Heading that says \"The Defining Equation\"","lam":"a VariableNumber (initial_value=2.6)","obs":"a Math [text] that says \"$vec(3, 3) = 3 vec(1, 1)$\"","prod":"a Math [text] that says \"$A vec(1, 1) = vec(3, 3)$\"","ray":"a Line [gray] drawn in fig (start=(-0.7, -0.7), end=(3.5, 3.5), dashed=True)","span_line":"a Line [gray] drawn in fig2 (start=(-3.2, -1.92), end=(3.2, 1.92), dashed=True)","v":"a Vector [blue] labelled \"arrow(v)\" drawn in fig2 (end=(1.0, 0.6))","vin":"a Vector [red] labelled \"arrow(v)\" drawn in fig (end=(1, 1))","vout":"a Vector [yellow] labelled \"A arrow(v)\" drawn in fig (end=(3, 3))"},"beats":[{"start":149.60595833333332,"say":"Look again at what just happened to that red arrow. Here is the vector one, one. We put it through the matrix, and out came another vector: three, three.","live":[],"does":[[149.60595833333332,"heading1 is shown on the screen, written out."],[152.15995833333332,"fig is shown on the screen, written out."],[152.58995833333333,"vin is shown on the screen, written out."],[155.2829583333333,"fig moves to a new place on the board."],[155.2829583333333,"prod is shown on the screen, written out."],[155.93295833333332,"vout is shown on the screen, written out."]]},{"start":159.5749583333333,"say":"And here is the observation the whole subject is built on. That answer is nothing but three times the vector we started with. One vector, one plain number, no matrix.","live":["prod","fig","heading1","vin","vout"],"does":[[160.72495833333332,"obs is shown on the screen, written out."],[165.08995833333333,"obs (the \"3 vec(1, 1)\" part) is emphasized."]]},{"start":170.8334583333333,"say":"Which tells us something about the picture. Both arrows lie on this one line through the origin. So on this line, applying A is nothing but multiplying by three. The arrow got longer, but it was not turned by so much as a degree.","live":["prod","obs","fig","heading1","vin","vout"],"does":[[172.26195833333333,"obs (the \"3 vec(1, 1)\" part) is no longer emphasized."],[175.09395833333332,"ray is shown on the screen, written out."],[178.30995833333333,"concl is shown on the screen, written out."],[184.5799583333333,"A box is drawn around concl."]]},{"start":186.00445833333333,"say":"Now try an arrow that is not on that line. Here is w, pointing straight up. A sends it to one, two.","live":["prod","obs","concl","fig","heading1","vin","vout","ray"],"does":[[188.79095833333332,"bad_in is shown on the screen, written out."],[191.4839583333333,"bad is shown on the screen, written out."],[191.9839583333333,"bad_out is shown on the screen, written out."]]},{"start":193.82595833333332,"say":"And one, two is not a multiple of zero, one. No number times zero is ever one. So w came back pointing somewhere else entirely, like almost every arrow in the plane.","live":["prod","obs","concl","bad","fig","heading1","vin","vout","ray","bad_in","bad_out"],"does":[[194.3599583333333,"bad (the \"vec(1, 2)\" part) is emphasized."],[196.4959583333333,"bad (the \"vec(0, 1)\" part) is emphasized."],[196.4959583333333,"bad (the \"vec(1, 2)\" part) is no longer emphasized."],[202.71895833333332,"bad (the \"vec(0, 1)\" part) is no longer emphasized."]]},{"start":206.0824583333333,"say":"The arrows that survive, the ones A puts back on their own line, are the eigenvectors of A. And the number that does the stretching, three in this case, is its eigenvalue.","live":null,"does":[[206.6399583333333,"bad_in is hidden from the screen."],[206.6399583333333,"bad_out is hidden from the screen."],[213.17695833333332,"concl (the \"3\" part) is emphasized."],[216.5089583333333,"concl (the \"3\" part) is no longer emphasized."],[217.68145833333332,"bad is hidden from the screen — left the board."],[217.68145833333332,"concl is hidden from the screen — left the board."],[217.68145833333332,"fig is hidden from the screen — left the board."],[217.68145833333332,"vin is hidden from the screen — fig left the board."],[217.68145833333332,"vout is hidden from the screen — fig left the board."],[217.68145833333332,"ray is hidden from the screen — fig left the board."],[217.68145833333332,"heading1 is hidden from the screen — left the board."],[217.68145833333332,"obs is hidden from the screen — left the board."],[217.68145833333332,"prod is hidden from the screen — left the board."]]},{"start":218.8814583333333,"say":"Now say that for any matrix and any vector. Here is a general v, drawn on a general line. A vector v is an eigenvector of A when A times v comes out as a plain multiple of v itself. Written down, that is A v equals lambda v, and that is the whole definition.","live":[],"does":[[218.8814583333333,"heading2 is shown on the screen, written out."],[222.0619583333333,"fig2 is shown on the screen, written out."],[222.45695833333332,"v is shown on the screen, written out."],[224.39595833333328,"span_line is shown on the screen, written out."],[232.7209583333333,"fig2 moves to a new place on the board."],[232.7209583333333,"general is shown on the screen, written out."],[236.5399583333333,"defn is shown on the screen, written out."]]},{"start":238.1039583333333,"say":"That lambda is the eigenvalue. And there is one piece of fine print: v is not allowed to be the zero vector. A times zero is zero for every matrix there is, so the zero vector would qualify for everything.","live":["defn","general","fig2","heading2","v","span_line"],"does":[[238.6499583333333,"general (the \"lambda\" part) is emphasized."],[242.5389583333333,"general (the \"lambda\" part) is no longer emphasized."],[244.01395833333333,"defn (the \"nonzero\" part) is emphasized."]]},{"start":252.8569583333333,"say":"Read the equation geometrically now. It says that when A gets hold of v, it puts it back down somewhere on that same line. If lambda is bigger than one, A stretches the arrow out along it.","live":null,"does":[[252.8569583333333,"defn (the \"nonzero\" part) is no longer emphasized."],[263.2009583333333,"av is shown on the screen, written out."]]},{"start":265.82145833333334,"say":"If lambda is between zero and one, it pulls the arrow in toward the origin. Shorter, yes. Turned, no.","live":["defn","general","fig2","heading2","v","span_line","av"],"does":[[268.5609583333333,"av is redrawn as the numbers it depends on change."],[268.5609583333333,"lam ticks to 0.5."]]},{"start":274.8499583333333,"say":"And now let lambda keep going, down past zero. Watch the arrow shrink as it goes, die away to nothing at the origin, and come back out the other side, pointing backwards.","live":null,"does":[[279.0529583333333,"av is redrawn as the numbers it depends on change."],[279.0529583333333,"lam ticks to -1.0."]]},{"start":286.6189583333333,"say":"That still counts. Backwards along a line is the same line. Notice what the equation does not say: it does not say A leaves v alone, it says A leaves the line alone.","live":null,"does":[[287.5009583333333,"defn (the \"multiple of itself\" part) is emphasized."],[296.6379583333333,"defn (the \"multiple of itself\" part) is no longer emphasized."]]},{"start":300.5824583333333,"say":"So an eigenvector is a direction the matrix cannot turn, and the eigenvalue says what happens to lengths along it. Which leaves the real question: given a matrix, how do you find them?","live":null,"does":[[304.6809583333333,"A box is drawn around general."],[312.4836875,"defn is hidden from the screen — left the board."],[312.4836875,"fig2 is hidden from the screen — left the board."],[312.4836875,"v is hidden from the screen — fig2 left the board."],[312.4836875,"span_line is hidden from the screen — fig2 left the board."],[312.4836875,"av is hidden from the screen — fig2 left the board."],[312.4836875,"general is hidden from the screen — left the board."],[312.4836875,"heading2 is hidden from the screen — left the board."]]}]},{"title":"Finding the Eigenvalues","start":313.5253541666666,"end":480.6839583333333,"objects":{"answer":"a Math [text] that says \"$lambda_1 = 3, quad lambda_2 = 1$\"","deriv1":"a Derivation [text] that says \"$A arrow(v) &= lambda arrow(v) \\ A arrow(v) - lambda arrow(v) &= arrow(0) \\ (A - lambda I) arrow(v) &= arrow(0) \\ arrow(v) &eq.not arrow(0)$\"","det_eq":"a Math [text] that says \"$op(\"det\")(A - lambda I) = 0$\"","formal":"a Panel that says \"A number $lambda$ is an eigenvalue of $A$ exactly when the matrix $A - lambda I$ has determinant zero. That equation is the characteristic equation of $A$.\"","heading":"a Heading that says \"Finding the Eigenvalues\"","heading2":"a Heading that says \"The Characteristic Equation\"","m0":"a Math [text] that says \"$op(\"det\") mat(2 - lambda, 1; 1, 2 - lambda) = 0$\"","m1":"a Math [text] that says \"$(2 - lambda)^2 - 1 = 0$\"","m2":"a Math [text] that says \"$lambda^2 - 4 lambda + 4 - 1 = 0$\"","m3":"a Math [text] that says \"$(lambda - 3)(lambda - 1) = 0$\""},"beats":[{"start":313.5253541666666,"say":"Right. We have a matrix, and we want the directions it cannot turn. So start from the definition and push the algebra around. A v equals lambda v.","live":[],"does":[[313.5253541666666,"heading is shown on the screen, written out."],[319.8063541666666,"deriv1 is shown on the screen, written out."]]},{"start":325.0038541666666,"say":"Move everything to one side. A v minus lambda v equals the zero vector. I would love to factor the v out, but I cannot subtract a number from a matrix, so I slip in the identity: lambda v is the same thing as lambda times I times v.","live":["heading"],"does":[[326.3623541666666,"deriv1 is shown on the screen, written out."]]},{"start":343.1003541666666,"say":"And now it factors. The matrix A minus lambda I, acting on v, gives the zero vector.","live":null,"does":[[344.18035416666663,"deriv1 is shown on the screen, written out."]]},{"start":351.9318541666666,"say":"Look at what that line actually says. Something times something comes out zero. And one of the two somethings we already know about: v is not the zero vector. That was the fine print in the definition.","live":null,"does":[[359.4433541666666,"deriv1 is shown on the screen, written out."],[364.0413541666666,"deriv1 is emphasized."]]},{"start":366.2088541666666,"say":"So the zero on the right cannot have come from the vector. It has to have come from the matrix over here. A minus lambda I has to take a nonzero vector and crush it flat to nothing.","live":null,"does":[[370.5853541666666,"deriv1 (the \"A - lambda I\" part) is emphasized."],[370.5853541666666,"deriv1 is no longer emphasized."]]},{"start":377.2573541666666,"say":"And there is exactly one number that measures whether a matrix does that. If you want to say how much of a matrix there is, in a single number, that number is its determinant. A matrix that flattens a nonzero vector onto the origin has determinant zero.","live":null,"does":[[386.6033541666666,"deriv1 (the \"A - lambda I\" part) is no longer emphasized."],[388.6473541666666,"det_eq is shown on the screen, written out."]]},{"start":393.60085416666664,"say":"Formally, then: lambda is an eigenvalue of A exactly when the determinant of A minus lambda I comes out zero. That is one equation in one unknown, and we can actually solve it.","live":["det_eq","heading"],"does":[[393.9493541666666,"formal is shown on the screen, written out."],[404.2243541666666,"A box is drawn around det_eq."],[406.8478541666666,"det_eq moves to a new place on the board."],[406.8478541666666,"deriv1 is hidden from the screen — left the board."],[406.8478541666666,"formal is hidden from the screen — left the board."],[406.8478541666666,"heading is hidden from the screen — left the board."],[406.8478541666666,"The box around det_eq is lifted."]]},{"start":408.04785416666664,"say":"Let us do it with our matrix. Subtract lambda from each entry on the diagonal, take the determinant of what is left, and set that equal to zero.","live":["det_eq"],"does":[[408.04785416666664,"heading2 is shown on the screen, written out."],[410.8343541666666,"m0 is shown on the screen, written out."]]},{"start":418.9688541666666,"say":"The determinant of a two by two is read straight off the two diagonals. Multiply down this one. Then multiply down the other. And take the second product away from the first.","live":["det_eq","m0","heading2"],"does":[[424.50735416666663,"m0 (the \"diagonal=main\" part) is struck through — it is ruled out."],[426.6433541666666,"m0 (the \"diagonal=anti\" part) is struck through — it is ruled out."]]},{"start":430.4588541666666,"say":"So that is two minus lambda, all squared, take away one times one.","live":null,"does":[[433.1643541666666,"m1 is shown on the screen, written out."],[434.0463541666666,"The strike through m0 (the \"diagonal=main\" part) is lifted."],[434.2463541666666,"The strike through m0 (the \"diagonal=anti\" part) is lifted."]]},{"start":436.0158541666666,"say":"Multiply the square out and keep every term. Lambda squared, minus four lambda, plus four, minus one, equals zero.","live":["det_eq","m0","m1","heading2"],"does":[[436.2363541666666,"m2 is shown on the screen, written out."]]},{"start":445.17285416666664,"say":"And four minus one is three, so that line tidies itself up where it stands. Lambda squared minus four lambda plus three. This has a name: it is the characteristic polynomial of A, and its degree is always the size of the matrix.","live":["det_eq","m0","m1","m2","heading2"],"does":[[448.0753541666666,"m2 becomes \"$lambda^2 - 4 lambda + 3 = 0$\"."],[456.4693541666666,"m2 (the \"lambda^2 - 4 lambda + 3\" part) is emphasized."],[459.4293541666666,"m2 (the \"lambda^2 - 4 lambda + 3\" part) is no longer emphasized."]]},{"start":461.56235416666664,"say":"This one factors on sight: lambda minus three, times lambda minus one. So the eigenvalues are three and one. And there is our confirmation, because those are exactly the two numbers we watched on the grid. One arrow tripled. The other one stayed put.","live":null,"does":[[462.4913541666666,"m3 is shown on the screen, written out."],[464.98735416666665,"m3 (the \"lambda - 3\" part) is emphasized."],[467.29735416666665,"m3 (the \"lambda - 1\" part) is emphasized."],[467.29735416666665,"m3 (the \"lambda - 3\" part) is no longer emphasized."],[469.06235416666664,"answer is shown on the screen, written out."],[471.8713541666666,"m3 (the \"lambda - 1\" part) is no longer emphasized."],[475.34335416666664,"A box is drawn around answer."],[479.6422916666666,"answer is hidden from the screen — left the board."],[479.6422916666666,"det_eq is hidden from the screen — left the board."],[479.6422916666666,"heading2 is hidden from the screen — left the board."],[479.6422916666666,"m0 is hidden from the screen — left the board."],[479.6422916666666,"m1 is hidden from the screen — left the board."],[479.6422916666666,"m2 is hidden from the screen — left the board."],[479.6422916666666,"m3 is hidden from the screen — left the board."]]}]},{"title":"Finding the Eigenvectors","start":480.6839583333333,"end":589.7241875,"objects":{"ans_a":"a Math [text] that says \"$arrow(v)_1 = chevron.l 1, 1 chevron.r$\"","ans_b":"a Math [text] that says \"$arrow(v)_2 = chevron.l 1, -1 chevron.r$\"","deriv_a":"a Derivation [text] that says \"$mat(2 - 3, 1; 1, 2 - 3) vec(x, y) &= vec(0, 0) \\ mat(-1, 1; 1, -1) vec(x, y) &= vec(0, 0) \\ -x + y &= 0 \\ y &= x$\"","deriv_b":"a Derivation [text] that says \"$mat(2 - 1, 1; 1, 2 - 1) vec(x, y) &= vec(0, 0) \\ mat(1, 1; 1, 1) vec(x, y) &= vec(0, 0) \\ x + y &= 0 \\ y &= -x$\"","line1":"a Line [yellow] drawn in plane (start=(-3.6, -3.6), end=(3.6, 3.6), dashed=True)","line2":"a Line [yellow] drawn in plane (start=(-3.6, 3.6), end=(3.6, -3.6), dashed=True)","plane":"an Axes (x_range=(-3.8, 3.8), y_range=(-3.8, 3.8), aspect=(1, 1))","prob_a":"a Tex [text] that says \"Solve $(A - 3 I) arrow(v) = arrow(0)$\"","prob_b":"a Tex [text] that says \"Solve $(A - I) arrow(v) = arrow(0)$\"","squares":"a Gridlines [gray] drawn in plane (x_range=(-1.2, 1.2), y_range=(-1.2, 1.2), step=0.6)","v1":"a Vector [red] labelled \"arrow(v)_1\" drawn in plane (end=(1.0, 1.0))","v2":"a Vector [green] labelled \"arrow(v)_2\" drawn in plane (end=(1.0, -1.0))"},"beats":[{"start":480.6839583333333,"say":"We have the eigenvalues. Now we want the directions that go with them. Go back to the factored equation, A minus lambda I times v equals zero, and put the first eigenvalue into it.","live":[],"does":[[480.6839583333333,"plane is shown on the screen, written out."],[483.5279583333333,"squares is shown on the screen, written out."],[486.2339583333333,"plane moves to a new place on the board."],[486.2339583333333,"prob_a is shown on the screen, written out."]]},{"start":494.1594583333333,"say":"With lambda equal to three, we subtract three from each entry on the diagonal. That gives us minus one, one, one, minus one, multiplying the column x, y, and the answer has to be the zero vector.","live":["plane","prob_a","squares"],"does":[[496.91095833333327,"deriv_a is shown on the screen, written out."],[500.5099583333333,"deriv_a is shown on the screen, written out."]]},{"start":509.2489583333333,"say":"Both rows say the same thing. Minus x plus y equals zero, or in other words y equals x. So any vector whose two entries are equal will do, and the tidiest one to write down is one, one.","live":null,"does":[[509.8759583333333,"deriv_a is shown on the screen, written out."],[515.1349583333333,"deriv_a is shown on the screen, written out."],[521.0909583333333,"ans_a is shown on the screen, written out."]]},{"start":524.6279583333333,"say":"There is the line of them, and there is the arrow. And notice that an eigenvector is never alone. Every multiple of one, one is an eigenvector too, with the very same eigenvalue three. What we have really found is a whole line the matrix keeps to itself.","live":["ans_a","plane","prob_a","squares"],"does":[[525.5219583333333,"line1 is shown on the screen, written out."],[527.0189583333333,"v1 is shown on the screen, written out."],[541.9154583333333,"ans_a is hidden from the screen — left the board."],[541.9154583333333,"deriv_a is hidden from the screen — left the board."],[541.9154583333333,"prob_a is hidden from the screen — left the board."]]},{"start":543.1154583333333,"say":"Now the second eigenvalue. Lambda equals one, so we subtract one from the diagonal instead, and this time the matrix comes out as four ones.","live":["plane","squares","line1","v1"],"does":[[543.7539583333333,"prob_b is shown on the screen, written out."],[546.8999583333333,"deriv_b is shown on the screen, written out."],[551.6839583333333,"deriv_b is shown on the screen, written out."]]},{"start":553.1199583333333,"say":"Every row now says x plus y equals zero, so y is minus x, and the tidiest eigenvector to pick is one, minus one. There is the second line, and there is the second arrow.","live":["plane","squares","line1","v1","prob_b"],"does":[[553.8159583333334,"deriv_b is shown on the screen, written out."],[557.3569583333333,"deriv_b is shown on the screen, written out."],[558.8549583333333,"ans_b is shown on the screen, written out."],[563.3709583333333,"line2 is shown on the screen, written out."],[564.7649583333333,"v2 is shown on the screen, written out."]]},{"start":566.1774583333333,"say":"Now hold on to both of those arrows, and let the matrix loose on the whole picture again.","live":["plane","squares","line1","v1","ans_b","prob_b","line2","v2"],"does":[[566.7929583333333,"line1 is hidden from the screen."],[566.7929583333333,"line2 is hidden from the screen."],[568.8589583333334,"plane: put this frame's data space back where it started (reset_matrix)."]]},{"start":572.3039583333333,"say":"Every grid line has been dragged off somewhere new. The red arrow ran out along its own line and stopped three times further from the origin, which is its eigenvalue. The green one did not move at all, because its eigenvalue is one. Those two directions were untouchable.","live":["plane","squares","v1","ans_b","prob_b","v2"],"does":[[578.3639583333334,"v1: one name gives way to another over the same drawing (label_becomes)."],[585.2369583333333,"v2: one name gives way to another over the same drawing (label_becomes)."],[588.6825208333333,"ans_b is hidden from the screen — left the board."],[588.6825208333333,"deriv_b is hidden from the screen — left the board."],[588.6825208333333,"plane is hidden from the screen — left the board."],[588.6825208333333,"squares is hidden from the screen — plane left the board."],[588.6825208333333,"v1 is hidden from the screen — plane left the board."],[588.6825208333333,"v2 is hidden from the screen — plane left the board."],[588.6825208333333,"prob_b is hidden from the screen — left the board."]]}]},{"title":"Rotations, and the Axis","start":589.7241875,"end":734.6787083333332,"objects":{"a1":"a Vector [blue] drawn in space (start=(0, 0, 0), end=((cos(th3) * 1.5), (sin(th3) * 1.5), 0))","a2":"a Vector [green] drawn in space (start=(0, 0, 0), end=((cos((th3 + 2.1)) * 1.5), (sin((th3 + 2.1)) * 1.5), 0))","arr1":"a Vector [blue] drawn in fig (end=((cos(th) * 1.5), (sin(th) * 1.5)))","arr2":"a Vector [green] drawn in fig (end=((cos((th + 0.9)) * 1.5), (sin((th + 0.9)) * 1.5)))","arr3":"a Vector [magenta] drawn in fig (end=((cos((th + 1.9)) * 1.5), (sin((th + 1.9)) * 1.5)))","axis":"a Vector [red] labelled \"arrow(v)\" drawn in space (start=(0, 0, 0), end=(0, 0, 1.7))","caption3d":"a Math [text] that says \"$R = mat(cos theta, -sin theta, 0; sin theta, cos theta, 0; 0, 0, 1)$\"","char_eq":"a Math [text] that says \"$lambda^2 + 1 = 0$\"","char_setup":"a Math [text] that says \"$op(\"det\") mat(-lambda, -1; 1, -lambda) = 0$\"","eq_final":"a Math [text] that says \"$A arrow(v) = lambda arrow(v)$\"","fig":"a Figure (x_range=(-2.0, 2.0), y_range=(-2.0, 2.0), aspect=(1, 1))","heading1":"a Heading that says \"A Rotation Turns Everything\"","heading2":"a Heading that says \"Up in Three Dimensions\"","heading3":"a Heading that says \"The Whole Idea\"","note":"a Text [text] that says \"No real roots, so no real eigenvectors, and no direction held fixed.\"","note_final":"a Text [text] that says \"The direction is what the matrix cannot change. The eigenvalue is what it does to lengths along that direction.\"","ring":"a Circle [gray] drawn in fig (radius=1.5)","ring3":"a Circle [gray] drawn in space (center=(0, 0, 0), radius=1.5, normal_vector=(0, 0, 1))","rot_mat":"a Math [text] that says \"$R = mat(0, -1; 1, 0)$\"","space":"an Axes3D (x_range=(-2, 2), y_range=(-2, 2), z_range=(-2, 2))","th":"a VariableNumber","th3":"a VariableNumber"},"beats":[{"start":589.7241875,"say":"One more thing, and then a warning. Here is a matrix that rotates the plane through a quarter turn: zero, minus one, one, zero. And here are three arrows sitting in it.","live":[],"does":[[589.7241875,"heading1 is shown on the screen, written out."],[592.4411875,"fig is shown on the screen, written out."],[592.8941874999999,"rot_mat is shown on the screen, written out."],[594.7161874999999,"ring is shown on the screen, written out."],[600.8351875,"arr1 is shown on the screen, written out."],[600.9851874999999,"arr2 is shown on the screen, written out."],[601.1351875,"arr3 is shown on the screen, written out."]]},{"start":602.8746874999999,"say":"Every arrow in the plane gets swung round by ninety degrees. Watch these three go. Not one of them finishes on the line it started on. A rotation has no favourite direction.","live":["rot_mat","fig","heading1","ring","arr1","arr2","arr3"],"does":[[607.0191874999999,"arr1 is redrawn as the numbers it depends on change."],[607.0191874999999,"arr2 is redrawn as the numbers it depends on change."],[607.0191874999999,"arr3 is redrawn as the numbers it depends on change."],[607.0191874999999,"th ticks to 1.5707963267948966."]]},{"start":614.6086875,"say":"And the algebra says the same thing. Subtract lambda from the diagonal, take the determinant, and cross the two diagonals exactly as before.","live":null,"does":[[617.4761874999999,"char_setup is shown on the screen, written out."],[621.4231874999999,"char_setup (the \"diagonal=main\" part) is struck through — it is ruled out."],[621.7231875,"char_setup (the \"diagonal=anti\" part) is struck through — it is ruled out."]]},{"start":624.9961875,"say":"That comes out as lambda squared plus one, and over the real numbers that has no roots at all. This matrix has no eigenvectors. It is not a defect in the matrix, it is honest geometry.","live":["rot_mat","char_setup","fig","heading1","ring","arr1","arr2","arr3"],"does":[[624.9961875,"The strike through char_setup (the \"diagonal=main\" part) is lifted."],[625.1961875,"The strike through char_setup (the \"diagonal=anti\" part) is lifted."],[625.6581874999999,"char_eq is shown on the screen, written out."],[630.2201875,"note is shown on the screen, written out."]]},{"start":638.6861875,"say":"So keep that in your pocket. Eigenvectors are common, but they are not guaranteed. Now let me lift exactly this rotation up into three dimensions, where something rather lovely happens.","live":["rot_mat","char_setup","char_eq","note","fig","heading1","ring","arr1","arr2","arr3"],"does":[[643.8121874999999,"arr1 is redrawn as the numbers it depends on change."],[643.8121874999999,"arr2 is redrawn as the numbers it depends on change."],[643.8121874999999,"arr3 is redrawn as the numbers it depends on change."],[643.8121874999999,"th ticks to 3.141592653589793."],[651.6601875,"char_eq is hidden from the screen — left the board."],[651.6601875,"char_setup is hidden from the screen — left the board."],[651.6601875,"fig is hidden from the screen — left the board."],[651.6601875,"ring is hidden from the screen — fig left the board."],[651.6601875,"arr1 is hidden from the screen — fig left the board."],[651.6601875,"arr2 is hidden from the screen — fig left the board."],[651.6601875,"arr3 is hidden from the screen — fig left the board."],[651.6601875,"heading1 is hidden from the screen — left the board."],[651.6601875,"note is hidden from the screen — left the board."],[651.6601875,"rot_mat is hidden from the screen — left the board."]]},{"start":652.8601874999999,"say":"Here is a rotation of space about the vertical axis, and here are two arrows lying flat in the horizontal plane.","live":[],"does":[[652.8601874999999,"heading2 is shown on the screen, written out."],[653.2081875,"space is shown on the screen, written out."],[653.6731874999999,"caption3d is shown on the screen, written out."],[657.2601875,"a1 is shown on the screen, written out."],[657.4601875,"a2 is shown on the screen, written out."],[657.9221875,"ring3 is shown on the screen, written out."]]},{"start":660.5306875,"say":"Watch them turn. Every one of them changes direction, exactly the way they did down in the plane.","live":["space","caption3d","heading2","a1","a2","ring3"],"does":[[660.8321874999999,"a1 is redrawn as the numbers it depends on change."],[660.8321874999999,"a2 is redrawn as the numbers it depends on change."],[660.8321874999999,"th3 ticks to 2.1."]]},{"start":667.6556875,"say":"But now there is somewhere to stand that the rotation cannot reach. An arrow pointing straight up along the axis. The rotation carries the whole of space around it and leaves that one arrow precisely where it was.","live":null,"does":[[672.7751875,"axis is shown on the screen, written out."]]},{"start":681.5716874999999,"say":"So that arrow is an eigenvector, and its eigenvalue is one. And this is a general fact about three dimensional space. Every rotation has an axis, and the axis is the eigenvector with eigenvalue one. Euler proved that, and the proof is essentially this picture.","live":["space","caption3d","heading2","a1","a2","ring3","axis"],"does":[[687.4341875,"space turns in its own slot."],[699.9966875,"caption3d is hidden from the screen — left the board."],[699.9966875,"heading2 is hidden from the screen — left the board."],[699.9966875,"space is hidden from the screen — left the board."],[699.9966875,"a1 is hidden from the screen — space left the board."],[699.9966875,"a2 is hidden from the screen — space left the board."],[699.9966875,"ring3 is hidden from the screen — space left the board."],[699.9966875,"axis is hidden from the screen — space left the board."]]},{"start":701.1966874999999,"say":"So there is the whole idea, in one line. A times v equals lambda times v.","live":[],"does":[[701.1966874999999,"heading3 is shown on the screen, written out."],[703.5881875,"eq_final is shown on the screen, written out."]]},{"start":708.1236875,"say":"The eigenvectors are the directions the matrix cannot turn. The eigenvalue attached to each one says what happens to lengths along that direction.","live":["eq_final","heading3"],"does":[[713.4761874999999,"note_final is shown on the screen, written out."]]},{"start":718.6386875,"say":"Find those directions, and you have found the frame in which your matrix is nothing but a list of stretches. Which is why, from vibration to stability to the ranking of the whole internet, this tends to be the first question anybody asks about a matrix.","live":["eq_final","note_final","heading3"],"does":[[723.5261874999999,"A box is drawn around eq_final."],[733.6370416666666,"eq_final is hidden from the screen — left the board."],[733.6370416666666,"heading3 is hidden from the screen — left the board."],[733.6370416666666,"note_final is hidden from the screen — left the board."]]}]}]},"durationSeconds":735,"chapters":[{"title":"A Matrix Moves the Plane","startSeconds":0,"narration":"Multiply a vector by a matrix and, in general, two things happen to it. Its length changes, and its direction changes. Today I want to ask about the second of those, because for almost every matrix there are a few directions that simply refuse to be turned. So here is a piece of the plane, ruled into squares. And here is the matrix we will apply to it: two, one, one, two. And let me say what applying it means. It means multiplication. Take a point on the grid, write it as a column, put A in front, and out comes a different point: two x plus y, and x plus two y. A matrix is a map that carries one point to another. Take one point and try it. This one, at one, zero. Multiply it by A: two times one plus zero is two, and one plus two times zero is one. So A sends that point over to two, one. Now watch every point do that same sum at once. The whole thing stretches out along one diagonal, and our point lands exactly where the arithmetic said it would. Let me put it back, and follow one single arrow through the same motion. This one points straight up, at zero, one and a half. Put it through the same sum and the answer is one and a half, three. Now apply the matrix. The arrow gets longer, certainly. But look where it ends up. It has swung over to the right. The matrix turned it. Not every arrow does that. Let me put the plane back and try two others, one along this diagonal and one along the other. And this time let us do the multiplication first, before anything moves. Read those two answers. The first one is three times the vector we put in. The second one is the vector we put in, unchanged, which is one times it. Now apply the matrix and watch the arrows do exactly that. The red one triples and stays on the line it was already on. The green one does not move at all. Those two directions are the eigenvectors of this matrix. Everything else in the plane swings round toward the stretching direction. These two just sit there and get scaled, by three and by one, and those two numbers are their eigenvalues. So let us write down exactly what that means."},{"title":"The Defining Equation","startSeconds":149.60595833333332,"narration":"Look again at what just happened to that red arrow. Here is the vector one, one. We put it through the matrix, and out came another vector: three, three. And here is the observation the whole subject is built on. That answer is nothing but three times the vector we started with. One vector, one plain number, no matrix. Which tells us something about the picture. Both arrows lie on this one line through the origin. So on this line, applying A is nothing but multiplying by three. The arrow got longer, but it was not turned by so much as a degree. Now try an arrow that is not on that line. Here is w, pointing straight up. A sends it to one, two. And one, two is not a multiple of zero, one. No number times zero is ever one. So w came back pointing somewhere else entirely, like almost every arrow in the plane. The arrows that survive, the ones A puts back on their own line, are the eigenvectors of A. And the number that does the stretching, three in this case, is its eigenvalue. Now say that for any matrix and any vector. Here is a general v, drawn on a general line. A vector v is an eigenvector of A when A times v comes out as a plain multiple of v itself. Written down, that is A v equals lambda v, and that is the whole definition. That lambda is the eigenvalue. And there is one piece of fine print: v is not allowed to be the zero vector. A times zero is zero for every matrix there is, so the zero vector would qualify for everything. Read the equation geometrically now. It says that when A gets hold of v, it puts it back down somewhere on that same line. If lambda is bigger than one, A stretches the arrow out along it. If lambda is between zero and one, it pulls the arrow in toward the origin. Shorter, yes. Turned, no. And now let lambda keep going, down past zero. Watch the arrow shrink as it goes, die away to nothing at the origin, and come back out the other side, pointing backwards. That still counts. Backwards along a line is the same line. Notice what the equation does not say: it does not say A leaves v alone, it says A leaves the line alone. So an eigenvector is a direction the matrix cannot turn, and the eigenvalue says what happens to lengths along it. Which leaves the real question: given a matrix, how do you find them?"},{"title":"Finding the Eigenvalues","startSeconds":313.5253541666666,"narration":"Right. We have a matrix, and we want the directions it cannot turn. So start from the definition and push the algebra around. A v equals lambda v. Move everything to one side. A v minus lambda v equals the zero vector. I would love to factor the v out, but I cannot subtract a number from a matrix, so I slip in the identity: lambda v is the same thing as lambda times I times v. And now it factors. The matrix A minus lambda I, acting on v, gives the zero vector. Look at what that line actually says. Something times something comes out zero. And one of the two somethings we already know about: v is not the zero vector. That was the fine print in the definition. So the zero on the right cannot have come from the vector. It has to have come from the matrix over here. A minus lambda I has to take a nonzero vector and crush it flat to nothing. And there is exactly one number that measures whether a matrix does that. If you want to say how much of a matrix there is, in a single number, that number is its determinant. A matrix that flattens a nonzero vector onto the origin has determinant zero. Formally, then: lambda is an eigenvalue of A exactly when the determinant of A minus lambda I comes out zero. That is one equation in one unknown, and we can actually solve it. Let us do it with our matrix. Subtract lambda from each entry on the diagonal, take the determinant of what is left, and set that equal to zero. The determinant of a two by two is read straight off the two diagonals. Multiply down this one. Then multiply down the other. And take the second product away from the first. So that is two minus lambda, all squared, take away one times one. Multiply the square out and keep every term. Lambda squared, minus four lambda, plus four, minus one, equals zero. And four minus one is three, so that line tidies itself up where it stands. Lambda squared minus four lambda plus three. This has a name: it is the characteristic polynomial of A, and its degree is always the size of the matrix. This one factors on sight: lambda minus three, times lambda minus one. So the eigenvalues are three and one. And there is our confirmation, because those are exactly the two numbers we watched on the grid. One arrow tripled. The other one stayed put."},{"title":"Finding the Eigenvectors","startSeconds":480.6839583333333,"narration":"We have the eigenvalues. Now we want the directions that go with them. Go back to the factored equation, A minus lambda I times v equals zero, and put the first eigenvalue into it. With lambda equal to three, we subtract three from each entry on the diagonal. That gives us minus one, one, one, minus one, multiplying the column x, y, and the answer has to be the zero vector. Both rows say the same thing. Minus x plus y equals zero, or in other words y equals x. So any vector whose two entries are equal will do, and the tidiest one to write down is one, one. There is the line of them, and there is the arrow. And notice that an eigenvector is never alone. Every multiple of one, one is an eigenvector too, with the very same eigenvalue three. What we have really found is a whole line the matrix keeps to itself. Now the second eigenvalue. Lambda equals one, so we subtract one from the diagonal instead, and this time the matrix comes out as four ones. Every row now says x plus y equals zero, so y is minus x, and the tidiest eigenvector to pick is one, minus one. There is the second line, and there is the second arrow. Now hold on to both of those arrows, and let the matrix loose on the whole picture again. Every grid line has been dragged off somewhere new. The red arrow ran out along its own line and stopped three times further from the origin, which is its eigenvalue. The green one did not move at all, because its eigenvalue is one. Those two directions were untouchable."},{"title":"Rotations, and the Axis","startSeconds":589.7241875,"narration":"One more thing, and then a warning. Here is a matrix that rotates the plane through a quarter turn: zero, minus one, one, zero. And here are three arrows sitting in it. Every arrow in the plane gets swung round by ninety degrees. Watch these three go. Not one of them finishes on the line it started on. A rotation has no favourite direction. And the algebra says the same thing. Subtract lambda from the diagonal, take the determinant, and cross the two diagonals exactly as before. That comes out as lambda squared plus one, and over the real numbers that has no roots at all. This matrix has no eigenvectors. It is not a defect in the matrix, it is honest geometry. So keep that in your pocket. Eigenvectors are common, but they are not guaranteed. Now let me lift exactly this rotation up into three dimensions, where something rather lovely happens. Here is a rotation of space about the vertical axis, and here are two arrows lying flat in the horizontal plane. Watch them turn. Every one of them changes direction, exactly the way they did down in the plane. But now there is somewhere to stand that the rotation cannot reach. An arrow pointing straight up along the axis. The rotation carries the whole of space around it and leaves that one arrow precisely where it was. So that arrow is an eigenvector, and its eigenvalue is one. And this is a general fact about three dimensional space. Every rotation has an axis, and the axis is the eigenvector with eigenvalue one. Euler proved that, and the proof is essentially this picture. So there is the whole idea, in one line. A times v equals lambda times v. The eigenvectors are the directions the matrix cannot turn. The eigenvalue attached to each one says what happens to lengths along that direction. Find those directions, and you have found the frame in which your matrix is nothing but a list of stretches. Which is why, from vibration to stability to the ranking of the whole internet, this tends to be the first question anybody asks about a matrix."}]}}
