Hello! Welcome back.
In our last lesson, we built the geometric intuition for eigenvalues and eigenvectors. We saw that eigenvectors are the special "invariant directions" of a linear transformation—vectors that are only stretched, shrunk, or flipped, but not rotated off their original span. We captured this with the equation and discovered the key condition for finding these special scaling factors : the matrix must be singular, meaning .
Today, we transition from the what to the how. Our goal is to compute the characteristic polynomial to find eigenvalues and their corresponding eigenvectors. We will turn that determinant condition into a concrete, step-by-step method that you can apply to any square matrix. This computational skill is fundamental for nearly all applications of eigenvalues, from solving differential equations to understanding quantum states and performing data analysis.
1. From a Condition to a Calculation: The Characteristic Polynomial
In the last lesson, we established that for an eigenvalue to exist, the matrix must have a non-trivial null space. This is equivalent to saying its determinant must be zero. Let's formalize this.
The expression is not just a number; it's a polynomial in the variable . This is called the characteristic polynomial of matrix . The roots of the characteristic equation, , are the eigenvalues of .
Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra
The 3Blue1Brown video 'Eigenvectors and eigenvalues' provides a superb visual bridge from the geometric idea of 'squishing space' (which we know means a zero determinant) to the algebraic process of finding eigenvalues.
Watch from 5:15 to 10:09. The first part (5:15-6:58) translates Ax = λx into (A - λI)x = 0. The second part (6:58-9:28) explains why this requires the determinant to be zero. The final part (9:28-10:09) shows how this leads to a polynomial in λ whose roots are the eigenvalues.
As the video demonstrated, the process for finding eigenvalues is:
- Construct the matrix by subtracting from each diagonal entry of .
- Compute its determinant, . This will give you the characteristic polynomial in .
- Solve the equation for . The solutions are your eigenvalues.
Let's see this in action with a concrete example.
2. Step 1: Solving for Eigenvalues ()
Consider the matrix .
1. Construct :
2. Compute the determinant:
This is the characteristic polynomial.
3. Solve :
Factoring the polynomial gives:
The roots, and therefore the eigenvalues, are and .
21. Eigenvalues and Eigenvectors
Professor Strang's lecture from MIT OpenCourseWare provides another excellent walkthrough of this exact process. His methodical style is very helpful for reinforcing the steps.
Watch from 16:03 to 26:30. He first derives the characteristic equation det(A - λI) = 0 and then applies it to the same matrix we just used, finding the eigenvalues λ=4 and λ=2.
An interesting side note for 2x2 matrices: notice that the coefficient of (-6) is the negative of the sum of the diagonal elements of A (3+3=6), which is called the trace. The constant term (8) is the determinant of A (33 - 11 = 8). This is a useful shortcut for checking your work!
3. Step 2: Solving for Eigenvectors ()
Finding the eigenvalues is only half the problem. For each eigenvalue, we now need to find its corresponding eigenvector(s).
Remember our starting point: . An eigenvector is simply a non-zero vector in the null space of the matrix . Now that we have the values for , we can plug them in and solve this system for .
Let's continue with our example matrix and its eigenvalues and .
Case 1: Find the eigenvector for .
We need to solve .
First, find the matrix :
Now, solve the system .
This gives the equation , or . (The second row gives , which is the same equation, as expected for a singular matrix).
Any non-zero vector where is a valid eigenvector. The simplest choice is . The entire set of eigenvectors for is the line spanned by this vector.
Case 2: Find the eigenvector for .
We need to solve .
First, find the matrix :
Now, solve the system .
This gives the equation , or .
A simple choice for the eigenvector is .
We have successfully found the eigenvalues and a basis for their corresponding eigenspaces!
Machine Learning & Linear Algebra — Eigenvalue and ...
For a clear, step-by-step text guide that summarizes this entire process, this article from Jonathan Hui is excellent. It's written with a machine learning perspective in mind and presents the calculations clearly.
Read the section titled 'Solution'. It walks through finding the eigenvalues from the characteristic polynomial and then finding the eigenvectors using row reduction for both 2x2 and 3x3 examples. Pay attention to how it handles finding the null space to get the eigenvectors.
Test your understanding!
Let's solidify this two-step process. Find the eigenvalues and corresponding eigenvectors for the matrix .
Show answer
Step 1: Find Eigenvalues
- Characteristic Polynomial:
- Solve for :
The eigenvalues are and .
(Note: An eigenvalue of 0 is perfectly fine! It means the matrix is singular, which it is).
Step 2: Find Eigenvectors
-
For : Solve , which is just .
This gives the equation , or . A simple choice for an eigenvector is . -
For : Solve .
This gives the equation , or . A simple choice for an eigenvector is .
4. A Note on Complex Eigenvalues
What happens if the characteristic polynomial has no real roots? For example, a 90-degree rotation matrix .
Its characteristic polynomial is:
Setting gives the solutions and .
This is a profound result. The absence of real eigenvectors, which we observed geometrically in the last lesson, corresponds algebraically to the characteristic polynomial having complex roots. These complex eigenvalues and their corresponding complex eigenvectors are absolutely essential in quantum mechanics, where they are related to the dynamics of quantum systems. We will explore complex vector spaces more formally later in the course.
Conclusion
Today we established the core computational algorithm for finding eigenvalues and eigenvectors. You now have a reliable, two-step process to analyze any square matrix.
Key Takeaways:
- The Algorithm:
- Find Eigenvalues: Calculate the characteristic polynomial and solve the equation to find the eigenvalues .
- Find Eigenvectors: For each eigenvalue , find the non-zero vectors in the null space of by solving the system .
- The set of all eigenvectors for a given , plus the zero vector, forms a subspace called the eigenspace.
- The existence of complex eigenvalues is not a failure but an important feature, corresponding to transformations (like rotations) that have no real invariant directions.
Preview of the Next Lesson:
In our examples today, each distinct eigenvalue corresponded to one "dimension" or direction of eigenvectors. But what happens if the characteristic polynomial has repeated roots, for example, ? Does the eigenvalue give us two independent eigenvectors or only one? In the next lesson, we will explore this question by distinguishing between the algebraic and geometric multiplicity of an eigenvalue, which is the key to understanding when a matrix can be "diagonalized".