Eigenvalues and Eigenvectors


Eigenvalues and Eigenvectors

Anna
Welcome. We’re working through six connected ideas about eigenvalues and eigenvectors: what they mean, how to find them, how eigenspaces work, what similar matrices are, how diagonalization works, and what changes when eigenvalues are complex.

Michael
Let’s begin with the picture behind the definitions. A matrix transforms vectors. Most vectors can change both length and direction under that transformation, but some special nonzero vectors keep their direction—or reverse it—and only have their length scaled.

Anna
Those special vectors are eigenvectors. If the matrix is A and the vector is x, the defining equation is A times x equals lambda times x. Here, x must be nonzero, and lambda is a scalar. The vector x is an eigenvector, and lambda is its corresponding eigenvalue.

Michael
A positive lambda can stretch or shrink the vector without changing its direction. A negative lambda reverses its direction as well as scaling its length. And if A times x is not a scalar multiple of x, then x is not an eigenvector of A.

Anna
That last test is the key. In an introductory example, you can multiply the matrix by several vectors and compare each result with the original vector. If the result is a multiple of the original, you’ve found an eigenvector and the multiplier is its eigenvalue. If the result points in a different, non-collinear direction, it isn’t an eigenvector.

Michael
For instance, if multiplying a vector x by A gives three times x, then x is an eigenvector with eigenvalue three. Geometrically, that transformation has stretched x by a factor of three.

Anna
So how do we find eigenvalues without testing possible vectors? Start with A x equals lambda x, then move everything to one side: A x minus lambda x equals zero. Because x is a vector, rewrite that as the matrix A minus lambda I multiplied by x equals zero, where I is the identity matrix.

Michael
And x is required to be nonzero. So this homogeneous system must have a nontrivial solution. A square matrix has a nontrivial null space exactly when its determinant is zero. That gives us the condition determinant of A minus lambda I equals zero.

Anna
That equation is called the characteristic equation. The expression determinant of A minus lambda I, before setting it equal to zero, is the characteristic polynomial. Solving the characteristic equation gives the eigenvalues.

Michael
Let’s use the two-by-two matrix with rows three, zero and eight, negative one. Subtract lambda from each diagonal entry, giving diagonal entries three minus lambda and negative one minus lambda. Its characteristic polynomial is the product of those entries: three minus lambda times negative one minus lambda.

Anna
Expanding gives lambda squared minus two lambda minus three. Set that equal to zero and factor it as lambda minus three times lambda plus one. So the eigenvalues are three and negative one.

Michael
Once we have an eigenvalue, we can find its eigenvectors by solving A x equals lambda x. Equivalently, solve the homogeneous system A minus lambda I times x equals zero. The set of all solutions for a particular eigenvalue is called its eigenspace.

Anna
That’s closely related to the null space: the eigenspace for lambda is the null space of A minus lambda I. In symbols, it consists of all x such that A minus lambda I times x equals zero.

Michael
There’s an important distinction here. An eigenvector itself must be nonzero, but the eigenspace includes the zero vector, just like any null space. The eigenspace contains zero and all the eigenvectors associated with that eigenvalue.

Anna
To find a basis for an eigenspace, row-reduce A minus lambda I, with a zero column appended, and solve for the free variables. The resulting solution vectors describe the whole eigenspace. Any nonzero solution is an eigenvector.

Michael
For example, with the matrix we just used, lambda equals three gives the system with rows zero, zero and eight, negative four. The equation is eight times x two minus four times x one equals zero, so x one equals two times x two.

Anna
Let x two be the free variable. Then x is x two times the vector with entries two and one. That eigenspace is spanned by the vector two, one, and choosing x two to be one gives a convenient eigenvector.

Michael
For lambda equals negative one, the system A plus I times x equals zero gives three times x one equals zero and eight times x one equals zero. So x one is zero and x two is free. The eigenspace is spanned by the vector zero, one.

Anna
This leads naturally to similar matrices. Two n-by-n matrices are similar if one can be written as P inverse times the other matrix times P, where P is invertible. For example, B equals P inverse A P means A and B are similar.

Michael
You can rearrange that equation to write A as P B P inverse. The matrix P is called a similarity matrix, and it can also be viewed as a change-of-basis matrix. Similar matrices describe the same underlying transformation using different coordinate systems.

Anna
Similar matrices share important properties, including the same determinant. But the reverse does not follow: having the same determinant by itself does not prove that two matrices are similar.

Michael
That gives us a quick way to show two matrices are not similar. Calculate their determinants. If the determinants differ, the matrices cannot be similar. If the determinants agree, you haven’t established similarity; you would need more information.

Anna
Now let’s turn to diagonalization. A matrix A is diagonalizable if there is a diagonal matrix D and an invertible matrix P such that A equals P D P inverse. Equivalently, D equals P inverse A P.

Michael
Why do that? A diagonal matrix is especially convenient to work with. Diagonalization can make a transformation easier to analyze, and it makes powers of the matrix much easier to compute: A to the power k becomes P times D to the power k times P inverse.

Anna
The columns of P are eigenvectors of A, and the matching eigenvalues go on the diagonal of D. The order has to match: if the first column of P is an eigenvector for a particular eigenvalue, that eigenvalue must be the first diagonal entry of D.

Michael
Here’s why. Starting with A equals P D P inverse, multiply on the right by P to get A P equals P D. Write the columns of P as v one through v n, and the diagonal entries of D as c one through c n.

Anna
On the left, A P has columns A v one through A v n. On the right, multiplying P by the diagonal matrix scales each column, giving c one v one through c n v n. Matching columns shows A v i equals c i v i.

Michael
So each column of P is an eigenvector, and its corresponding diagonal entry in D is that eigenvector’s eigenvalue. Since P must be invertible, its columns must be linearly independent.

Anna
Therefore, an n-by-n matrix is diagonalizable when it has n linearly independent eigenvectors. Having n distinct eigenvalues is a sufficient way to guarantee that, but with repeated eigenvalues you need to check whether there are still enough linearly independent eigenvectors.

Michael
A practical test is to find a basis for the eigenspace of each eigenvalue and count the independent vectors you get altogether. If there are n, put them into the columns of P and put their corresponding eigenvalues into D in the same order.

Anna
Let’s work through a two-by-two example. Take A with rows three, negative two and one, zero. Its characteristic polynomial is determinant of A minus lambda I, which is three minus lambda times negative lambda, plus two. That simplifies to lambda squared minus three lambda plus two.

Michael
Factoring gives lambda minus two times lambda minus one. The eigenvalues are two and one, so we can start building D as a diagonal matrix with two and one along the diagonal.

Anna
For lambda equals two, A minus two I has rows one, negative two and one, negative two. The equation says x one equals two times x two, so an eigenvector is the vector two, one.

Michael
For lambda equals one, A minus I has rows two, negative two and one, negative one. The equation says x one equals x two, so an eigenvector is the vector one, one.

Anna
Put those eigenvectors in the same order as the eigenvalues. That gives P with columns two, one and one, one, and D with diagonal entries two and one. The columns are independent, so P is invertible, and this gives the diagonalization A equals P D P inverse.

Michael
The last topic is complex eigenvalues and eigenvectors. A complex matrix can have real entries, complex entries, or a mixture. A real matrix is simply one whose entries have zero imaginary part.

Anna
For complex matrices, the conjugate of a matrix means take the complex conjugate of every entry. For example, the conjugate of one plus i is one minus i, and the conjugate of negative i is i.

Michael
You can also split a complex matrix into its real and imaginary parts: A equals the real part of A plus i times the imaginary part of A. For a matrix with entries one plus i, negative i, four, and six minus two i, the real-part matrix has entries one, zero, four, six.

Anna
And the imaginary-part matrix has entries one, negative one, zero, negative two. Those are the coefficients of i in the original entries.

Michael
A useful fact is that if a real matrix has a complex eigenvalue, its complex conjugate is also an eigenvalue. The corresponding eigenvectors occur as conjugates too. So after finding one member of the pair, you can obtain the other by conjugating.

Anna
Consider the real matrix with rows two, negative three and three, two. Its characteristic equation is determinant of A minus lambda I equals zero, or two minus lambda squared plus nine equals zero.

Michael
That gives two minus lambda squared equals negative nine, so the eigenvalues are two plus three i and two minus three i. They form a conjugate pair, as expected for a real matrix.

Anna
For lambda equal to two plus three i, solving A minus lambda I times x equals zero gives an eigenvector with entries one and negative i. You can check it directly: multiplying the matrix by that vector gives two plus three i in the first entry and three minus two i in the second, which is lambda times the vector.

Michael
Then the eigenvector for two minus three i is the complex conjugate: one and i. The key idea is the same as before—solve the homogeneous system—but now the arithmetic includes complex numbers.

Anna
Let’s bring the episode together. Eigenvectors are nonzero vectors that a matrix sends to scalar multiples of themselves. Eigenvalues come from the characteristic equation, and their eigenspaces come from solving A minus lambda I times x equals zero.

Michael
Similarity describes a change of basis and preserves properties such as determinant. Diagonalization uses a full set of independent eigenvectors to express a matrix in a simpler diagonal form. And for real matrices, complex eigenvalues and their eigenvectors appear in conjugate pairs.

Anna
Those ideas connect in a useful sequence: find the eigenvalues, find their eigenspaces, check whether you have enough independent eigenvectors, and then build P and D if the matrix is diagonalizable.

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