Recommended resources
The freely available resources this lesson will direct you to.
Welcome to the second module of our course, where we delve into the fascinating world of Eigenanalysis and Matrix Decompositions.
Introduction
In the previous module, we established a strong foundation in linear algebra, culminating in our study of the determinant and matrix inverse. We learned that the determinant, a single number, reveals whether a matrix is invertible. You might recall the preview from our last lesson: this concept of the determinant is central to the topic we are beginning today.
This lesson introduces eigenvalues and eigenvectors, arguably one of the most important concepts in linear algebra, with profound applications across AI and data science, from Principal Component Analysis (PCA) to the theory behind Google's PageRank algorithm.
Our goal is to define eigenvalues and eigenvectors and explain their geometric interpretation in relation to linear transformations. We will explore the fundamental question: for a given linear transformation represented by a matrix , are there any vectors whose direction is unchanged by the transformation? These "special" vectors, called eigenvectors, reveal the true "axes" of a transformation, and the corresponding scaling factors, the eigenvalues, tell us how the transformation acts along these axes.
1. The Eigenvalue-Eigenvector Equation
At its core, the concept is captured by a single, elegant equation. Let's begin with a formal definition.

Formally, for a given matrix , a non-zero vector is an eigenvector of if it satisfies the equation:
for some scalar . The scalar is called the eigenvalue corresponding to the eigenvector .
Let's break this down:
- Matrix : Represents a linear transformation.
- Vector : This is the eigenvector. It must be non-zero. Why? Because if were the zero vector, the equation would hold for any matrix and any scalar , making it a trivial and uninformative case.
- Scalar : This is the eigenvalue. It's a number that tells us how the eigenvector is scaled by the transformation.
- If , the vector is stretched.
- If , the vector is shrunk.
- If , the vector's direction is reversed.
- If , the vector is unchanged.
- If , the vector is mapped to the zero vector, meaning it lies in the null space of .
The word "eigen" is German for "proper" or "characteristic". Thus, eigenvectors are the characteristic vectors of a linear transformation.
21. Eigenvalues and Eigenvectors
To start building our intuition, let's watch the first few minutes of a lecture by Professor Gilbert Strang. He provides a concise and clear introduction to the main idea.
Watch the segment from 00:47 to 03:51. Professor Strang introduces the core equation Ax = λx and defines the terms 'eigenvector' and 'eigenvalue', explaining their fundamental relationship.
2. The Geometric Meaning: Axes of Transformation
The algebraic definition has a powerful geometric interpretation. Most vectors, when multiplied by a matrix , are both scaled and rotated. Eigenvectors are special because they are only scaled. Their direction, or more precisely the line they span, is invariant under the transformation.
This is best understood visually.
Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra
The following video from 3Blue1Brown is one of the best visual explanations of eigenvalues and eigenvectors available. It masterfully illustrates how these vectors behave during a linear transformation.
Watch the video from 01:19 to 05:15. Focus on: The concept of a vector staying on its own 'span' after the transformation. The role of the eigenvalue as the 'stretch/squish' factor. The powerful example of a 3D rotation, where the eigenvector represents the axis of rotation—a concept that is geometrically intuitive but hard to find without this framework.
As the video explains, finding the eigenvectors and eigenvalues of a transformation helps us understand its "heart" in a way that is independent of our chosen coordinate system. They represent the fundamental directions along which the transformation acts most simply.
3. Examples of Eigenvectors in Action
Let's solidify this geometric intuition with a few concrete examples of matrices whose transformations are easy to visualize.
21. Eigenvalues and Eigenvectors
Let's return to Professor Strang's lecture, where he explores two excellent examples: a projection matrix and a permutation matrix.
Watch the segment from 05:30 to 14:10. For each example, try to predict the eigenvectors and eigenvalues based on your geometric understanding before the video reveals them.
Let's summarize the key insights from these examples:
-
Projection Matrix (onto a plane):
- Any vector already lying in the plane of projection is an eigenvector. The projection doesn't change it, so . The corresponding eigenvalue is .
- Any vector perpendicular to the plane is also an eigenvector. The projection maps it to the zero vector, so . The corresponding eigenvalue is . This shows that eigenvectors for are precisely the non-zero vectors in the null space.
-
Permutation Matrix ():
- The vector is an eigenvector. The transformation swaps its components, but since they are equal, the vector is unchanged: . The eigenvalue is .
- The vector is also an eigenvector. The transformation gives , which is exactly . The eigenvalue is .
Test your understanding!
Let . This matrix represents a transformation that scales the x-axis by 3 and the y-axis by -2.
Based on the geometric interpretation, what are the eigenvectors and their corresponding eigenvalues for this matrix?
Show answer
The transformation scales anything along the x-axis by 3 and anything along the y-axis by -2. These axes are the invariant directions.
-
Any vector on the x-axis has the form where . Let's take .
So, any vector on the x-axis is an eigenvector with eigenvalue .
-
Any vector on the y-axis has the form where . Let's take .
So, any vector on the y-axis is an eigenvector with eigenvalue .
4. From Geometry to Algebra: Finding Eigenvalues
Visual inspection works for simple matrices, but we need a systematic method for finding eigenvalues and eigenvectors for any matrix. This is where your knowledge of determinants becomes crucial.
Let's revisit the defining equation:
To solve this, we bring all terms to one side. Since is a scalar, we must introduce the identity matrix to perform matrix subtraction.
This equation is fundamental. It states that an eigenvector is a non-zero vector in the null space of the matrix .
From our previous work, we know that a matrix has a non-trivial null space (i.e., its null space contains more than just the zero vector) if and only if the matrix is singular. And the defining property of a singular matrix is that its determinant is zero.
This gives us our method for finding eigenvalues:
The number is an eigenvalue of if and only if the matrix is singular. This means:
This equation is called the characteristic equation of the matrix .
Chapter 6 Eigenvalues and Eigenvectors
For a formal presentation of this derivation, we turn to a standard linear algebra text.
Read the short section titled 'The Equation for the Eigenvalues' (page 292). This section concisely formalizes the logical steps we just walked through, connecting Ax = λx to det(A −λI) = 0.
The expression is a polynomial in of degree , called the characteristic polynomial. The roots of this polynomial are the eigenvalues of . We will dedicate our next lesson to mastering the computation and solution of this equation.
Conclusion
In this lesson, we introduced the foundational concepts of eigenvalues and eigenvectors. You learned that they are not just an algebraic curiosity but the key to understanding the geometric essence of a linear transformation.
Key Takeaways:
- Eigenvectors are non-zero vectors whose direction is invariant under a linear transformation; they are only scaled.
- The defining equation is , where is the eigenvector and is the corresponding eigenvalue.
- The eigenvalue represents the scaling factor along the direction of the eigenvector.
- Geometrically, eigenvectors represent the "principal axes" of a transformation.
- The search for eigenvalues leads to solving the characteristic equation: .
Preview of the Next Lesson:
We have established the what and the why of eigenvalues. In the next lesson, we will focus on the how. We will delve into the characteristic polynomial, derive it for general matrices, and use it to systematically compute the eigenvalues of a matrix. This will be our first major step into the computational machinery of eigenanalysis.