Recommended resources
The freely available resources this lesson will direct you to.
Introduction
In our last lesson, we saw how matrices act as operators that transform vectors and, by extension, entire geometric objects in space. We built matrices to perform specific transformations like rotation, scaling, and translation. This was about construction: starting with a desired geometric outcome and engineering the matrix to achieve it.
Today, we begin the process of deconstruction. Given an arbitrary matrix, can we uncover its fundamental properties? Can we find its most natural "axes" of action? This leads us to one of the most important concepts in linear algebra: eigenvalues and eigenvectors. These are special vectors that, when transformed by a matrix, do not change their direction, only their magnitude. The eigenvalue is the factor by which the eigenvector is scaled.
This lesson directly addresses the first outcome of our second module: to compute eigenvalues and eigenvectors of a matrix. We will start with the geometric intuition, derive the algebraic method for finding these values, and work through a concrete example. Mastering this computation is the first step toward understanding how to decompose complex transformations into their simplest, most essential components, a technique with profound applications in graphics, physics, and machine learning.
The Core Idea: Vectors that Don't Change Direction
When a matrix multiplies a vector , the resulting vector can point in any direction. However, for any given square matrix, there exist certain non-zero vectors that are special. When the matrix acts on them, the resulting vector is simply a scaled version of the original. It points along the exact same line.
These special vectors are the eigenvectors of the matrix, and the scaling factor is the corresponding eigenvalue, typically denoted by (lambda).

This relationship is captured by the defining equation of the eigenvalue problem:
where is an matrix, is a non-zero eigenvector, and is its associated scalar eigenvalue.
To build a strong visual intuition for this concept, the following video from 3Blue1Brown is unparalleled.
Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra
This video masterfully visualizes eigenvectors as vectors that remain on their own span during a linear transformation.
Please watch from the beginning of the discussion on eigenvectors at this segment. Focus on how most vectors are knocked off their original line, but a few special "eigenvectors" are only stretched or squished, remaining on their span. The amount of stretch/squish is the "eigenvalue". Note the example of a 3D rotation, where the eigenvector is the axis of rotation—a concept highly relevant to computer graphics.
Deriving the Characteristic Equation
The definition is conceptually clear, but it's not immediately obvious how to solve for and since they are both unknown. We need an equation that allows us to find the eigenvalues first.
Let's rearrange the defining equation:
We want to factor out the vector . However, we cannot simply write because is a matrix and is a scalar.
Question: What mathematical object can we introduce to make this subtraction valid, such that multiplying by is equivalent to scaling by the scalar ?
Answer
We can use the **identity matrix**, $I$. The term $\lambda\vec{v}$ is identical to $(\lambda I)\vec{v}$. This allows us to write the equation in a form where both terms are matrix-vector products.By introducing the identity matrix, our equation becomes:
Now we can factor out :
This equation is profound. It states that an eigenvector is a non-zero vector that lies in the null space of the matrix . In our first module, we learned a crucial fact about matrices that have a non-trivial (non-zero) null space: they must be singular. And the defining property of a singular matrix is that its determinant is zero.
This gives us the tool we need to find the eigenvalues. For the matrix to be singular, its determinant must be zero.
The Characteristic Equation:
This equation, known as the characteristic equation, depends only on . Solving it will give us the eigenvalues of the matrix .
Both the 3Blue1Brown video you just watched and the following lecture by Professor Gilbert Strang from MIT walk through this exact derivation.
21. Eigenvalues and Eigenvectors
Professor Strang's lecture provides a more formal, algebraic derivation that complements the visual intuition.
Watch these two segments. The first, on projection matrices, gives a fantastic geometric example of finding eigenvalues/vectors by just thinking about the transformation. Then, watch the formal derivation of the characteristic equation from this point, which mirrors the steps we just took.
The Algorithm for Finding Eigenvalues and Eigenvectors
We can now formalize the computation into a two-step process.
-
Find the Eigenvalues ():
- Construct the matrix by subtracting from each diagonal element of .
- Compute the determinant of this matrix, . This will result in a polynomial in of degree , called the characteristic polynomial.
- Solve the characteristic equation for its roots. These roots are the eigenvalues of .
-
Find the Eigenvectors ():
- For each distinct eigenvalue you found, substitute it back into the equation .
- Solve this homogeneous system of linear equations for . This is equivalent to finding the basis for the null space of the matrix . The non-zero vectors in this null space are the eigenvectors corresponding to .
Let's solidify this with a step-by-step example.
HELM 22: Eigenvalues and Eigenvectors
This workbook provides very clear, detailed worked examples for finding eigenvalues and eigenvectors. We will follow its structure for a 2x2 matrix.
Please read the introduction and then focus on the worked examples. Pay close attention to Example 5 and Example 6. We will now work through a similar problem ourselves.
Worked Example
Let's find the eigenvalues and eigenvectors for the matrix:
Step 1: Find the Eigenvalues
First, we set up the characteristic equation .
Now, we compute the determinant of the 2x2 matrix:
We solve this quadratic equation by factoring:
The roots, and therefore our eigenvalues, are and .
A Quick Sanity Check:
Two useful properties link eigenvalues to the trace and determinant of a matrix:
- The sum of the eigenvalues equals the trace of the matrix (the sum of the diagonal elements).
- .
- Trace(A) = . They match.
- The product of the eigenvalues equals the determinant of the matrix.
- .
- det(A) = . They match.
This is an excellent way to verify your eigenvalues, especially in a performance-critical or research setting.
Step 2: Find the Eigenvectors
Now we find the eigenvector for each eigenvalue.
Case 1:
We solve .
This gives us the system of equations:
Both equations tell us that . Any non-zero vector where the components are equal is a valid eigenvector. For simplicity, we can choose:
Case 2:
We solve .
This gives us the equation , or . Any non-zero vector satisfying this is a valid eigenvector. We can choose:
We have successfully computed the eigenvalues and a corresponding set of eigenvectors for matrix . Notice that any scalar multiple of an eigenvector is also an eigenvector. For example, is also an eigenvector for . The eigenvectors for a given eigenvalue form a subspace called the eigenspace.
Conclusion
In this lesson, we established the fundamental theory and practice of computing eigenvalues and eigenvectors. You learned that these pairs represent the intrinsic scaling behavior of a linear transformation—the directions that are preserved under the transformation.
Key Takeaways:
- Defining Equation: The eigenvalue problem is defined by , where is a non-zero eigenvector and is its corresponding scalar eigenvalue.
- Characteristic Equation: To find the eigenvalues, we solve the characteristic equation , which follows from the fact that must be a singular matrix to have a non-trivial null space.
- Computational Process: Finding eigenvalues requires solving a polynomial equation. For each eigenvalue found, the corresponding eigenvectors are found by solving the homogeneous system , which is equivalent to finding the null space of .
- Verification: The sum of eigenvalues equals the matrix trace, and their product equals the determinant, providing a valuable check on your calculations.
We have successfully built the computational machinery. In our next lesson, we will put it to use by exploring its powerful geometric interpretation. We'll see how finding the eigenvalues and eigenvectors of a matrix is equivalent to discovering a new basis in which the transformation acts as a simple scaling—a process known as eigendecomposition. This will reveal the "principal axes" of the transformation, a cornerstone for understanding techniques from Principal Component Analysis (PCA) to Singular Value Decomposition (SVD).