Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 17

Eigenvalues of 2x2 Matrices

Recommended resources

Introduction

In our last lesson, we developed the geometric intuition for eigenvectors and eigenvalues. We saw that for a given linear transformation , eigenvectors are the special vectors that don't get knocked off their span; they are simply scaled by a factor , their corresponding eigenvalue. This relationship is captured by the fundamental equation .

While visually identifying these vectors for a 2D transformation is insightful, it isn't a practical method for finding them, especially in higher dimensions. In this lesson, we will bridge the gap between geometric intuition and algebraic computation. You will learn how to rearrange the defining equation into a powerful tool called the characteristic equation. Mastering this will allow you to systematically calculate the eigenvalues for any square matrix, a crucial first step in many machine learning algorithms like Principal Component Analysis (PCA).


From a Geometric Definition to an Algebraic Condition

Our starting point is the equation that defines eigenvectors and eigenvalues:

Our goal is to find the values of for which this equation has a non-zero solution for . (The zero vector always satisfies this equation trivially, but by definition, eigenvectors are non-zero.)

The equation mixes a matrix-vector product on the left with a scalar-vector product on the right. To work with it, we need to express both sides as matrix operations. We can rewrite the right side by using the identity matrix , since .

Now we can move everything to one side:

And factor out the vector :

This final form is incredibly revealing. It states that the eigenvector is a vector that is sent to the zero vector by the new matrix . In other words, is in the null space of the matrix .

Since we are looking for a non-zero eigenvector , this means the null space of must contain more than just the zero vector. A matrix with a non-trivial null space is called a singular matrix. And as we learned in a previous module, the definitive test for a square matrix being singular is that its determinant is zero.

This gives us the condition we need. A value is an eigenvalue of if and only if the matrix is singular. This leads to the central equation for finding eigenvalues.

Chapter 6 Eigenvalues and Eigenvectors

This section from the MIT OpenCourseWare notes by Gilbert Strang formally lays out the logic we just discussed. It's a concise, rigorous path from the initial definition to the characteristic equation.

In the PDF, find the subsection titled The Equation for the Eigenvalues. As you read, focus on this critical logical chain: The eigenvector equation is rewritten as (A −\lambda I)\mathbf{x} = \mathbf{0}. For a non-zero eigenvector \mathbf{x} to exist, the matrix (A −\lambda I) must be singular. A singular matrix has a determinant of zero, leading directly to the characteristic equation: \det(A −\lambda I) = 0.

To solidify this, let's connect the algebra back to the geometry. The statement means that the transformation represented by the matrix squishes space into a lower dimension. This is precisely the condition required for a non-zero vector to be mapped to the origin.

Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra

This segment from the 3Blue1Brown video you've seen before provides the crucial visual intuition for why the determinant must be zero. It masterfully connects the algebraic manipulation to the geometric idea of a transformation collapsing space.

Please watch from the symbolic derivation. Focus on how "tweaking" \lambda changes the matrix (A - \lambda I). The video shows that finding a value of \lambda that makes the determinant zero corresponds to finding a transformation that squishes all of space onto a line or point.


The Characteristic Equation in Action

The equation is called the characteristic equation of matrix . When you compute the determinant, you get a polynomial in called the characteristic polynomial. The roots of this polynomial are the eigenvalues of .

Let's see how this works for a general 2x2 matrix .

  1. Form the matrix :

  2. Compute its determinant:

  3. Set the determinant to zero:

    Expanding this gives a quadratic equation of the form . We can then solve for using factoring or the quadratic formula.

Let's use this procedure on a couple of concrete examples from the MIT notes.

Chapter 6 Eigenvalues and Eigenvectors

These sections walk through the exact calculation for two different 2x2 matrices, providing clear, step-by-step examples of the method.

First, read Example 4. This shows how to form the matrix A - \lambda I, calculate the determinant to get the characteristic polynomial (\lambda^2 - 5\lambda), and solve for the eigenvalues. Next, look at the worked example under the heading WORKED EXAMPLES 6.1 A. This follows the same process for a non-singular matrix, resulting in the characteristic equation \lambda^2 - 4\lambda + 3 = 0 and eigenvalues \lambda = 1 and \lambda = 3.

This algebraic procedure is exactly how computational software finds eigenvalues. For your project on cancer classification, when you perform PCA on genomic data, the first step is to compute the covariance matrix of your data. The software then solves the characteristic equation to find its eigenvalues. These eigenvalues represent the amount of variance along each principal axis, telling you which components of your data are most important. This process beautifully transforms a high-dimensional geometric problem into a solvable algebraic one.


Conclusion

In this lesson, you've moved from the geometric concept of eigenvalues to a robust computational method for finding them. This is the bridge between theory and practice.

Key Takeaways:

  • The defining equation can be rearranged into the form .
  • Because eigenvectors must be non-zero, the matrix must be singular.
  • The condition for singularity provides a way to solve for : the characteristic equation, .
  • For a 2x2 matrix, this equation is a quadratic polynomial whose roots are the eigenvalues of the matrix.

We now have a method for finding the scaling factors, . But what about the special directions themselves, the eigenvectors ? In the next lesson, we will complete the process. You'll learn how to take the eigenvalues you just found, plug them back into the equation , and solve for the corresponding eigenvectors.