Eigenvalues and Eigenvectors


Eigenvalues and Eigenvectors

Corey
Today we’re looking at eigenvalues and eigenvectors. The basic relationship is A times x equals lambda times x: A is a square matrix, x is a nonzero vector, and lambda is a number. It says that when the matrix acts on x, the result points in the same direction as x, though its length may change.

Hope
So the matrix doesn’t have to leave the vector unchanged. It can stretch it, shrink it, or even reverse its direction, as long as the result is a scalar multiple of that vector.

Corey
Exactly. For the matrix with every entry equal to 5, take x to be the vector (1, 1). Multiplying gives (10, 10), which is ten times the original vector. So (1, 1) is an eigenvector and 10 is its eigenvalue.

Hope
And the key is that the output stays on the same line as the input. That’s the geometric picture behind the equation A x equals lambda x.

Corey
To find the eigenvalues, rearrange the equation as A x minus lambda x equals zero. Since lambda is a scalar, we write lambda x as lambda times the identity matrix times x, and factor out x: (A minus lambda I)x equals zero.

Hope
Why do we need the identity matrix there? We can’t subtract a scalar directly from a matrix, because they’re different sizes. Multiplying lambda by the identity matrix of the same order as A makes lambda I a matrix, so the subtraction is valid.

Corey
Right. For a two-by-two A, use I₂; for a three-by-three A, use I₃. To get an eigenvector, we want a nonzero solution x to (A minus lambda I)x equals zero. A zero solution always works, but it’s called the trivial solution and it doesn’t give an eigenvector.

Hope
So how do we make sure a nonzero solution exists?

Corey
A square matrix has a nonzero solution to that homogeneous system when its determinant is zero. That gives the characteristic equation: det(A minus lambda I) equals zero. Solve that equation for lambda, and its roots are the eigenvalues.

Hope
And the degree of the resulting characteristic polynomial matches the order of the matrix: degree two for a two-by-two matrix, degree three for a three-by-three, and so on.

Corey
For a two-by-two matrix, the characteristic equation can be written lambda squared minus the trace of A times lambda plus the determinant of A equals zero. The trace is the sum of the main-diagonal entries.

Hope
For a three-by-three matrix, it starts with lambda cubed, then minus the trace times lambda squared. The coefficient of lambda is the sum of the principal two-by-two minors, and the constant term is minus the determinant of A.

Corey
Let’s work through the first two-by-two example: A has rows (5, 5) and (5, 5). The characteristic equation is det(A minus lambda I₂) equals zero, or det of the matrix with diagonal entries 5 minus lambda and off-diagonal entries 5.

Hope
Expanding that determinant gives (5 minus lambda) squared minus 25 equals zero. Using the trace-and-determinant form gives the same polynomial: lambda squared minus 10 lambda equals zero. So the eigenvalues are 0 and 10.

Corey
Now find the eigenvectors by substituting each eigenvalue into (A minus lambda I)x equals zero. For lambda equal to zero, both rows give the same equation: 5x₁ plus 5x₂ equals zero. One variable is free, so let x₂ equal alpha; then x₁ equals minus alpha.

Hope
That gives vectors that are nonzero multiples of (1, minus 1). We can choose (1, minus 1) as an eigenvector. The repeated equations are why one variable is free; row reduction makes that dependence clear.

Corey
For lambda equal to 10, the equations reduce to x₁ equals x₂. Choosing both entries to be 1 gives the eigenvector (1, 1), which matches our earlier picture: the matrix sends it to (10, 10).

Hope
The zero eigenvalue has a useful interpretation here, too. The vector (1, minus 1) is sent to the zero vector, because the positive and negative contributions cancel. That vector is still an eigenvector, since the input vector itself is nonzero.

Corey
Here’s the second example: B has rows (2, 3) and (3, 2). Its trace is 4 and its determinant is 4 minus 9, or minus 5. So its characteristic equation is lambda squared minus 4 lambda minus 5 equals zero.

Hope
Factoring gives (lambda minus 5)(lambda plus 1) equals zero, so the eigenvalues are 5 and minus 1. For lambda equal to minus 1, substituting into B minus lambda I gives two matching equations, 3x₁ plus 3x₂ equals zero.

Corey
That means x₁ equals minus x₂, so (1, minus 1) is an eigenvector for minus 1. For lambda equal to 5, the equations give x₁ equals x₂, so (1, 1) is an eigenvector for 5.

Hope
And the scaling checks out: B times (1, 1) is (5, 5), while B times (1, minus 1) is (minus 1, 1), which is minus one times the original vector.

Corey
The same two-step method works for a three-by-three matrix: first solve the characteristic equation for eigenvalues, then substitute each eigenvalue into (A minus lambda I)x equals zero and solve the resulting system.

Hope
In the displayed lower-triangular example, the diagonal entries are 1, 4, and 2. Its characteristic determinant factors as (1 minus lambda)(4 minus lambda)(2 minus lambda), so the eigenvalues are 1, 2, and 4.

Corey
That diagonal shortcut works for a triangular matrix: its determinant is the product of its diagonal entries, so the roots come from the diagonal entries of A minus lambda I. For each eigenvalue, though, we still need to solve the homogeneous system to get its eigenvectors.

Hope
For instance, using the displayed matrix with rows (1, 0, 0), (3, 4, 0), and (8, 7, 2), lambda equal to 1 gives equations 3x₁ plus 3x₂ equals zero and 8x₁ plus 7x₂ plus x₃ equals zero. Solving gives an eigenvector such as (1, minus 1, minus 1).

Corey
For lambda equal to 2, the equations force x₁ and x₂ to be zero, leaving x₃ free, so (0, 0, 1) is an eigenvector. For lambda equal to 4, they give x₁ equals zero and 7x₂ equals 2x₃, so one integer-valued choice is (0, 2, 7).

Hope
Those examples show why row operations are useful: they expose dependent equations and free variables, letting us describe all the solutions. The vector can be multiplied by any nonzero scalar and still represents the same eigenvector direction; we choose a convenient representative.

Corey
So the full routine is: form A minus lambda I using an identity matrix of the right size, set its determinant equal to zero to find eigenvalues, and then solve (A minus lambda I)x equals zero for each one.

Hope
And throughout that last step, keep the eigenvector nonzero. That’s what distinguishes the eigenvectors we’re looking for from the trivial zero solution.

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