1. Home
  2. Explore
  3. Mathematics
  4. Eigenvalues and Eigenvectors

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Eigenvalues and Eigenvectors

Transcript

A matrix turns almost every vector it acts on. But a few special directions, it only stretches. How do we find those directions? That is what eigenvectors are, and by the end of this video you will find them yourself. Eigenvalues and eigenvectors, with a complete example. First, why do we care? When a matrix acts on a vector, it usually mixes the components. But some special directions are only stretched, not turned. Those are the eigenvectors, and the stretch factors are the eigenvalues.

In physics these are the natural directions. They are the normal modes of a vibrating molecule, in part four. They are the states of definite energy in quantum mechanics, in part five. They are also the principal axes of a rotating body. So how do we find these special directions? Start from a linear system, M times r equals b, and let the right-hand side be lambda times r, where lambda is a number. Then M times r equals lambda times I times r, where I is the identity matrix.

We need the identity so that both sides are matrices acting on r. Bring everything to one side: M minus lambda I, times r, equals zero. That is a homogeneous equation, from the last lecture. An eigenvector must be nonzero; the zero vector never counts. And by the last lecture, a nonzero solution exists exactly when the determinant is zero. So the determinant of M minus lambda I, must be zero. This is the characteristic equation. So the method has two steps.

Solving the characteristic equation gives the eigenvalues. Then putting each eigenvalue back into the homogeneous equation gives its eigenvectors. Now let's do a complete example. Example: find the eigenvalues and eigenvectors of M, with rows five, minus two, and minus two, two. Step one: build M minus lambda I. Lambda times the identity has lambda on the diagonal and zeros elsewhere. So lambda is subtracted from the diagonal entries only. A common mistake is to subtract lambda from every entry.

Don't: lambda I is zero off the diagonal, so the minus twos stay as they are. Before we go on: pause the video and try to find the eigenvalues yourself. Then compare with the next steps. Step two: set the determinant of M minus lambda I to zero. For a two by two matrix, the determinant is a times d, minus b times c. Here a times d is the product of the two diagonal entries, and b times c is the product of the other two. Multiply out the brackets and collect the powers of lambda. Collect the terms: lambda squared minus seven lambda plus six equals zero. Factor it: we need two numbers with product six and sum minus seven, which are minus one and minus six.

So lambda minus one, times lambda minus six, equals zero. So the eigenvalues are lambda one equals one and lambda two equals six. A quick check that catches most mistakes: the eigenvalues add up to the sum of the diagonal of M, five plus two is seven. And they multiply to the determinant of M, which is six. We have the eigenvalues. Next come the eigenvectors, starting with lambda equals one. Put lambda equals one back into the homogeneous equation.

On the diagonal, five minus one is four and two minus one is one. Row times column gives two equations, and both say y equals two x. They agree because the determinant is zero: there is really only one equation. So any multiple works. Write x equals c and y equals two c. Then r one equals c times one, two. To pick one, we normalize: ask that r one dot r one equals one. That fixes c at one over root five. So the first eigenvector is r one equals one over root five, times one, two, with eigenvalue one.

Always check: multiply M by the vector, row against column. Row one: five, take away four. One. Row two the same way: two. The same vector back, so the eigenvalue is indeed one. Now the second eigenvalue, lambda equals six. This one follows exactly the same steps. Pause and try it first.

Same steps. Subtract six from each diagonal entry. The second row is just twice the first. Both say y equals minus x over two. Write x equals minus c; then y equals c over two. So r two is minus c, c over two. Normalize, as before: this time c equals two over root five. So r two is the unit vector on the board, with eigenvalue six. Check it: M times the vector, row against column. Row one: minus ten, and minus two more. Minus twelve.

Row two: four and two, six. That is six times the vector: eigenvalue six. Look at the two eigenvectors together: they are perpendicular. Take the dot product of r one and r two: the two factors of one over root five make one fifth in front, then the row against the column. Minus two, plus two: the products cancel exactly. Zero.

So the dot product is zero. A zero dot product means perpendicular. You can see it: r one lies on the line y equals two x, r two on y equals minus x over two, and these lines meet at a right angle. This is not a coincidence. M is symmetric: it equals its transpose. And for a real symmetric matrix, eigenvectors belonging to different eigenvalues are always orthogonal. That is why symmetric matrices are so useful in physics. Let's sum up. The characteristic equation gives the eigenvalues.

Putting each one back into the homogeneous equation gives its eigenvector, and we fix the constant by r dot r equals one. And always check that M times r equals lambda times r. Next, in part two, we use these eigenvectors to make the matrix diagonal. A matrix usually mixes x and y together, which makes it hard to work with. But if we choose the right axes, it stops mixing them completely. Which axes? Let's find out. Matrix diagonalization. First, why do we want this? A diagonal matrix is the simplest matrix there is. It does not mix x and y: it just multiplies x by lambda one and y by lambda two. So our goal: find the coordinates in which our matrix M looks like that. The answer will be the eigenvector directions.

So how do we find those axes? Start from M times r equals lambda times r, and suppose the n by n matrix M has n linearly independent eigenvectors. Not every matrix does, but symmetric matrices always do. Put them side by side as the columns of a matrix C. Because the columns are independent, C has an inverse. Multiply both sides by C inverse. On the left, insert C times C inverse, which is the identity, between M and r. Then call C inverse times M times C the matrix D,

and call C inverse times r the vector r prime. So D times r prime equals lambda times r prime. In the new coordinates r prime, the matrix is D, and D is diagonal, with the eigenvalues on its diagonal. Now let's see why D comes out diagonal, one column at a time. Multiply M by C. Each column of C is an eigenvector, so M just stretches it: the columns become lambda one times r one, and lambda two times r two. And stretching each column by its own number is the same as multiplying C on the

right by the diagonal matrix of eigenvalues. So M times C equals C times D. Multiply by C inverse on the left, and we get C inverse times M times C equals D again. This also shows a common mistake. The order matters: the first column of C goes with the first entry of D. If you swap two columns of C, the entries of D swap too. Now let's diagonalize our matrix from part one. Take M from part one, with eigenvalues one and six.

Put r one and r two as the columns of C, and take out their common factor, one over root five. Because r one and r two are orthonormal, the inverse of C is just its transpose: swap rows and columns. No need to compute an inverse. Pause the video and try the multiplication yourself, then check it against mine. Now compute D equals C inverse times M times C. The two factors of one over root five give one fifth.

Multiply the last two matrices first: M times the matrix of the eigenvectors. Row one of M against the first column: five, take away four. One. The other three entries the same way. Notice this matrix: its columns are the eigenvectors, each times its own eigenvalue. One times the first, six times the second. That is M times C equals C times D, exactly as we just showed. Then multiply by the first matrix, row against column. Row one against column one: one and four, five.

The rest the same way: everything off the diagonal cancels. Take one fifth of it, and D is diagonal: the two eigenvalues, one and six, in the same order as the eigenvectors in C. Now, what does this mean geometrically? C transpose times C is the identity, and the determinant of C is one fifth times one plus four, which is one. A matrix like that is a rotation. So r prime equals C inverse times r just means: measure the vector along the eigenvector directions instead of along x and y. We rotate our axes onto the eigenvectors.

In those rotated axes, M no longer mixes the components. It simply stretches by one along r one and by six along r two. That is all a symmetric matrix ever does. Let's sum up. Put the eigenvectors as the columns of C. Then C inverse times M times C is a diagonal matrix D, with the eigenvalues on the diagonal, in the same order. Next, in part three: what happens when two eigenvalues are equal.

In the hydrogen atom, the two s and two p orbitals look completely different, yet they have the same energy. Why? The answer is a property of eigenvalues called degeneracy. Degeneracy. Let's start with the definition. An eigenvalue is called degenerate when it appears more than once as a root of the characteristic equation, and it has more than one independent eigenvector. So instead of a single direction, that eigenvalue owns a whole plane of eigenvectors.

Let's see this happen in a three by three example. Example: find the eigenvalues and eigenvectors of this three by three matrix. Step one is the same as before: subtract lambda from the diagonal, and set the determinant to zero. Expanding the three by three determinant gives minus lambda cubed plus twenty-seven lambda plus fifty-four. It factors as minus the product of lambda minus six and the square of lambda plus three. So lambda equals six, and lambda equals minus three, twice.

Minus three is a double root. Check with our quick test: the eigenvalues add up to zero, the sum of the diagonal, and they multiply to fifty-four, the determinant of M. Next, the eigenvectors, starting with lambda equals six. Subtract six from each diagonal entry. Take the first two rows. Adding them cancels z: minus nine x minus nine y equals zero, so y equals minus x. Put y equals minus x back into row one, and it gives z equals x over two. Take x equals two to avoid fractions.

The vector has length three, so divide by three: that is r one. Check: multiply M by the vector, row against column. Row one: two, eight, and two more. Twelve. The other two rows the same way: minus twelve, and six. Six times the vector: eigenvalue six. Now the interesting one: the repeated eigenvalue, minus three. Here is a challenge: pause the video and try to find two different eigenvectors with eigenvalue minus three.

Add three to the diagonal. Look at the rows: every row is a multiple of two, minus two, one. So all three rows give the same single equation: two x minus two y plus z equals zero. One equation in three unknowns leaves two free choices. That is why this eigenvalue has two independent eigenvectors. For example, choose x and y, and the plane fixes z: two simple choices give the two vectors on the board. Normalized, these are r two and r three.

And any nonzero combination of r two and r three is also an eigenvector with eigenvalue minus three. The eigenvectors fill the whole plane two x minus two y plus z equals zero. That is degeneracy. The choice of pair is not unique. Our two are not perpendicular, but we can pick a perpendicular pair if we want, for example one, one, zero and minus one, one, four. Where does degeneracy show up in nature? In quantum mechanics, the time-independent Schrodinger equation,

H times psi equals E times psi, has exactly the form M times r equals lambda times r. The energies E are the eigenvalues. Take hydrogen. The lowest energy level, E one, has a single state, the one s orbital. Each surface encloses ninety percent of the probability of finding the electron. The next level, E two, has four different states with the same energy: two s, two p x, two p y and two p z. So E two is a fourfold degenerate eigenvalue.

Look at the three p states: they are the same shape, pointing along x, along y and along z. The atom looks the same in every direction, and that rotational symmetry is what forces them to share one energy. That two s also shares this energy is special to hydrogen. In atoms with more electrons, two s and two p separate. Let's sum up. A repeated eigenvalue can have several independent eigenvectors. They span a plane, or a larger space, and every nonzero vector in it is an eigenvector.

Next, in part four: how a molecule vibrates. A carbon dioxide molecule can vibrate in different ways. Which patterns are possible, and how fast is each one? We can answer both with eigenvalues and eigenvectors. Vibrations in molecules: normal modes. First, why do we care? The atoms in a molecule are connected by bonds, so when one moves, it pushes and pulls the others. Their motions are mixed. But there are special patterns, called normal modes, in which every atom oscillates with the same frequency.

Those frequencies are exactly what infrared spectroscopy measures. And finding them is an eigenvalue problem. Our model is carbon dioxide, O, C, O, on a line. The two oxygens have mass small m, the carbon has mass capital M, and each bond is a spring with constant k. Let x, y and z be the displacements of the left oxygen, the carbon and the right oxygen from equilibrium, all measured to the right. Let's write the equations of motion. The potential energy is stored in the two springs.

The left spring is stretched by x minus y, the right one by z minus y. So V is one half k, times the square of x minus y, plus one half k, times the square of z minus y. Newton's second law: mass times acceleration equals the force, and the force is minus the derivative of V. For the left oxygen, minus k times the quantity x minus y. For the carbon, both springs pull: minus k times the quantity two y minus x minus z. For the right oxygen, minus k times the quantity z minus y.

Notice that the equations are coupled: each atom's acceleration depends on where its neighbours are. That is what makes the problem interesting. Here is the key idea: a normal-mode trial solution. Look for motions in which all three atoms oscillate with the same frequency omega: x equals capital X times e to the i omega t, and the same for y and z. Differentiating twice brings down the square of i omega, which is minus omega squared. Put it into Newton's equations and cancel the common factor minus e to the i omega t. Then divide by k, and call m omega squared over k by the name lambda. In the middle equation we also multiply by small m over capital M, so all three have the same lambda. In matrix form this is A times r equals lambda times r: an eigenvalue problem. We call the matrix A, because the letter M is already the mass of the carbon atom. The eigenvalues give the frequencies, so let's find them. Step one,

as always: subtract lambda from the diagonal and set the determinant to zero. To keep it short, call small m over capital M by the Greek letter mu. Expand along the first row. The first entry, one minus lambda, multiplies its two by two minor. The second entry, minus one, comes with a minus sign and its own minor. The third entry is zero. Factor out one minus lambda. Inside the bracket the constant terms cancel, and we are left with lambda squared, minus the quantity one plus two mu, times lambda. So the determinant is one minus lambda, times lambda, times lambda minus one minus two mu.

Here are the three eigenvalues. Since lambda is m omega squared over k, each one gives a frequency: zero for the first, the square root of k over small m for the second, and for the third, a little higher, by the factor on the board. The eigenvectors give the shapes of the motion. Pause and try: which vector, multiplied by the matrix A, gives zero? Think about all three atoms moving together.

For lambda equals zero, the eigenvector is one, one, one: all three atoms move the same way by the same amount. That is a translation of the whole molecule. No bond stretches, so there is no restoring force, and the frequency is zero. It is not really a vibration. For lambda equals one, the eigenvector is one, zero, minus one: the carbon stays still, and the oxygens move in opposite directions. Both bonds stretch and shrink together, mirror images of each other: the symmetric stretch.

For the third eigenvalue, the eigenvector is one, minus two small m over capital M, one: both oxygens move the same way, and the carbon recoils the other way. So one bond stretches while the other shrinks: the antisymmetric stretch. A quick check: multiplying the matrix A by each vector gives back the vector times its eigenvalue. Now let's watch the three modes move. Here are the three modes, drawn for carbon dioxide. The dashed lines mark the rest positions. The top row is the translation: the whole molecule slides along together, and no spring changes length. The middle row is the symmetric stretch. The carbon never moves; the two oxygens move out and back in together. The bottom row is the antisymmetric stretch.

The oxygens move the same way, the carbon goes the other way, and it vibrates about one point nine times faster, because each bond is compressed while the other is stretched. Any motion of the molecule along this line is a combination of these three modes. Finally, does this simple model work for real carbon dioxide? For carbon dioxide, oxygen has mass sixteen and carbon twelve. The ratio of the two stretching frequencies is the square root of one plus two small m over capital M, which is about one point nine two. The measured frequencies are two thousand three hundred forty-nine and one thousand three hundred thirty-three inverse centimeters, a ratio of about one point seven six. That is close, for a model with three masses on two ideal springs.

Real bonds are not perfect springs, and that explains the rest of the difference. Let's sum up. Newton's second law with a trial solution e to the i omega t turns coupled oscillators into an eigenvalue problem. The eigenvalues give the frequencies, and the eigenvectors give the normal modes. That completes lecture eleven. Next, in lecture twelve: linear algebra at work, in circuits, coupled pendulums and spinning bodies.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent