Introduction
Welcome to the next lesson in your study of linear algebra. In our previous lessons, we explored how matrices transform space and how we can use the inverse of a matrix to reverse a transformation and solve systems of equations like . We saw that every vector is mapped to a new vector .
Today, we'll focus on a fascinating question: during a transformation, are there any vectors that don't change their direction? That is, vectors that are simply stretched, shrunk, or flipped, but remain on the same line through the origin. These special vectors are called eigenvectors, and the factor by which they are scaled is the corresponding eigenvalue.
This lesson will teach you how to compute eigenvalues and eigenvectors of a 2x2 matrix. This is not just a mathematical exercise; understanding a transformation's principal axes (its eigenvectors) is fundamental to many advanced AI techniques, such as dimensionality reduction with Principal Component Analysis (PCA) and analyzing the behavior of complex systems.
1. The Core Idea: Vectors that Stay on their Span
The formal definition of an eigenvector and its corresponding eigenvalue for a matrix is:
This equation states that when the matrix acts on the vector , the result is the same as simply scaling by a number . The vector must be non-zero, otherwise the equation is trivially true for any .
To build a strong intuition for what this means geometrically, let's begin with a video from 3Blue1Brown's excellent series.
Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra
This video provides a powerful visual explanation of eigenvectors as the vectors that remain on their own span (the line they define) during a linear transformation.
Please watch the segment from 01:19 to 05:15. Focus on the core idea: most vectors are knocked off their span by a transformation, but some special vectors (eigenvectors) are just stretched or squished, staying on the same line. The amount they are stretched by is the eigenvalue.
2. Finding the Eigenvalues: The Characteristic Equation
Now that you have the geometric intuition, how do we find these special values and vectors algebraically? Your preference for a theory-first approach will be well-served here, as the derivation is elegant and builds directly on concepts like determinants from our previous lessons.
Let's rearrange the core equation:
- Start with the definition:
- Subtract from both sides:
- To factor out , we need to express as a matrix-vector product. We can do this using the identity matrix :
- Now, factor out :
This equation is key. We are looking for a non-zero vector that solves this. You might recognize this from our work on matrix inverses: a matrix-vector product can only equal the zero vector for a non-zero vector if the matrix itself is singular. A singular matrix is one that squishes space into a lower dimension, and a key property of a singular matrix is that its determinant is zero.
Therefore, to find the eigenvalues , we need to find the values that make the matrix singular. This leads us to the characteristic equation:
The solutions to this equation are the eigenvalues of matrix .
The following video segment provides a great visual summary of this derivation.
Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra
The same 3Blue1Brown video explains this derivation, connecting the algebra to the geometric idea of a transformation collapsing space onto a line or point.
Now watch from 05:15 to 09:28. This segment shows how the equation A\mathbf{v} = \lambda\mathbf{v} leads directly to the requirement that \det(A - \lambda I) = 0.
3. The Computational Method: A Step-by-Step Guide
We now have a complete, two-part procedure for finding eigenvalues and eigenvectors.
- Find the Eigenvalues (): Compute the determinant of . This will give you a polynomial in (the "characteristic polynomial"). Solve the characteristic equation to find the roots, which are the eigenvalues.
- Find the Eigenvectors (): For each eigenvalue you found, substitute it back into the equation and solve for the vector . The non-zero solutions form the set of eigenvectors for that eigenvalue.
Let's walk through an example. Consider the matrix:
Step 1: Find Eigenvalues
First, we set up the characteristic equation :
Now, we compute the determinant of this 2x2 matrix:
We solve this quadratic equation by factoring:
The eigenvalues are and .
Let's reinforce this by watching a clear, narrated example.
Finding Eigenvalues and Eigenvectors
The video 'Finding Eigenvalues and Eigenvectors' by Professor Dave Explains provides a clear, step-by-step example of this process.
Watch the segment from 04:38 to 06:31. He walks through the exact process we just outlined: setting up \det(A - \lambda I) = 0 and solving the quadratic to find the eigenvalues for this very same matrix.
Step 2: Find Eigenvectors
Now we find the eigenvector for each eigenvalue.
For :
We solve .
Both rows give the same equation: , or . This means any vector where the second component is twice the first is an eigenvector. A simple choice is .
For :
We solve .
This gives the equation , or . A simple choice is .
The following video segment walks through this exact process.
Finding Eigenvalues and Eigenvectors
Now for the second part: finding the eigenvectors. Professor Dave provides a very clear walkthrough for both eigenvalues.
Watch from 06:31 to 11:27. Observe how he takes each eigenvalue (\lambda=3 and \lambda=-1), plugs it back into (A - \lambda I)\mathbf{v} = \mathbf{0}, and solves the resulting system. Note that there's a whole line of eigenvectors for each \lambda; we just pick a simple representative.
The image below provides a clean summary of a similar calculation, which you can use as a reference.

4. A Polymath's Insight: The Trace and Determinant Shortcut
For someone aiming for deep understanding, it's valuable to see connections between different concepts. For any 2x2 matrix, there is a beautiful relationship between its eigenvalues and two properties we already know: the trace and the determinant.
Let's look at the characteristic polynomial for a general 2x2 matrix :
Notice two things:
- The term is the trace of the matrix (the sum of the diagonal elements).
- The term is the determinant of the matrix.
From algebra, we also know that for any quadratic equation with roots and , the sum of the roots is and the product is .
Comparing these facts gives us a powerful shortcut:
- Sum of eigenvalues = Trace of the matrix:
- Product of eigenvalues = Determinant of the matrix:
This means you can often find the eigenvalues more quickly and check your work. For our example matrix :
Our calculated eigenvalues were and . Let's check:
- Sum: . Matches the trace.
- Product: . Matches the determinant.
This provides a more profound connection between the properties of a matrix and its fundamental scaling behavior.
A quick trick for computing eigenvalues
This relationship between the trace, determinant, and eigenvalues is an elegant shortcut. The following article from 3Blue1Brown explains this 'quick trick'.
Read the text starting from the heading '1. The trace of a matrix...' down to 'Take a moment to see how you can derive...'. This section clearly states the two key facts: that the trace equals the sum of eigenvalues, and the determinant equals their product.
Conclusion
In this lesson, you've learned the complete computational procedure for finding the eigenvalues and eigenvectors of a 2x2 matrix, starting from the theoretical definition and ending with a practical calculation.
Key Takeaways:
- Eigenvectors are non-zero vectors that only change in length, not direction, when a linear transformation is applied. Eigenvalues are the scaling factors.
- The core relationship is defined by the equation .
- Eigenvalues are found by solving the characteristic equation .
- Eigenvectors are found by solving the system of equations for each eigenvalue .
- For any 2x2 matrix, the sum of its eigenvalues equals its trace, and the product of its eigenvalues equals its determinant.
Preview of the Next Lesson:
We have now mastered the computation of eigenvalues and eigenvectors. In the next lesson, we will delve deeper into their geometric interpretation. We will explore what eigenvalues and eigenvectors tell us about transformations like rotations, shears, and projections, and why they form a more "natural" coordinate system for understanding the action of a matrix. This geometric view is essential for appreciating their role in advanced AI and data analysis.