Skip to main content

Welcome to a Grasp lesson

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

Lesson 14

Eigenvalues and Eigenvectors: Calculation and Application

Recommended resources

Hello! Welcome to your next lesson in the "Mathematical Foundations: Linear Algebra" module.

In our last few lessons, we've been investigating key properties of matrices. We learned how the determinant tells us if a matrix is invertible, and how the rank gives us a measure of a matrix's "true" dimensionality. These concepts are about understanding the matrix as a whole.

Today, we'll explore a new, powerful concept that reveals how a matrix transformation acts on specific, special vectors. This lesson will cover the learning outcome: Define eigenvalues and eigenvectors and solve for them in 2x2 and 3x3 matrices. This topic is a cornerstone of linear algebra and has direct applications in data science, most notably in Principal Component Analysis (PCA), a technique used to reduce the dimensionality of data, which you will learn about later.

1. The Core Idea: What are Eigenvectors and Eigenvalues?

When we multiply a matrix by a vector, we are performing a linear transformation. Most vectors, when transformed, will be knocked off their original line (their "span"). They get both rotated and stretched.

However, for any given square matrix, there are special vectors that do not get rotated. When the transformation is applied, these vectors stay on their original line; they are only stretched, squished, or flipped. These special vectors are called eigenvectors. The factor by which they are stretched or squished is called the eigenvalue.

To get a strong visual intuition for this, let's turn to one of the best explanations available.

Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra

This video from 3Blue1Brown provides a fantastic geometric interpretation of eigenvalues and eigenvectors. It will help you build a solid conceptual foundation before we dive into the calculations.

Watch the segment from 01:39 to 05:15. Focus on understanding: The visual difference between vectors that get knocked off their span and those that stay on it. How an eigenvector is a vector whose direction is unchanged by the transformation. How an eigenvalue is the scalar factor by which the eigenvector is stretched or shrunk.


2. The Formal Definition and the Characteristic Equation

As you saw in the video, the relationship between a matrix , its eigenvector , and its corresponding eigenvalue is defined by a simple, elegant equation:

Where:

  • is an square matrix.
  • is a non-zero column vector (the eigenvector).
  • is a scalar (the eigenvalue).
Definition and Visual Representation of Eigenvalues and Eigenvectors
This image illustrates the core equation \(A\mathbf{x} = \lambda\mathbf{x}\). On the left, \(A\mathbf{x}\) and \(\mathbf{x}\) point in the same direction, meaning \(\lambda\) is positive. On the right, they point in opposite directions, meaning \(\lambda\) is negative.

Our goal is to find the pairs of and that satisfy this equation for a given matrix . To do this, we need to rearrange the equation.

  1. Start with .
  2. Subtract from both sides: .
  3. To factor out , we rewrite as , where is the identity matrix. This is like turning the scalar into a matrix that scales vectors, so the matrix-vector multiplication makes sense.
  4. Now, factor out :

This is a crucial step. We are looking for a non-zero eigenvector . This equation is a homogeneous system of linear equations. You might recall from the lesson on determinants that a system like this has a non-trivial (non-zero) solution only if the matrix is singular (i.e., not invertible). And a matrix is singular if and only if its determinant is zero.

This gives us the master key to finding eigenvalues:

The Characteristic Equation:

By solving this equation, we can find the eigenvalues .


3. How to Find Eigenvalues and Eigenvectors

The process is always the same two steps:

  1. Find the eigenvalues (): Set up and solve the characteristic equation .
  2. Find the eigenvectors (): For each eigenvalue you found, plug it back into the equation and solve for .

Let's see this process in action.

Step-by-Step Calculation for a 2x2 Matrix

This video will walk you through the entire process for a 2x2 matrix. It clearly separates finding the eigenvalues from finding the eigenvectors.

Finding Eigenvalues and Eigenvectors

Watch these segments from the 'Professor Dave Explains' channel. He provides a very clear, step-by-step calculation for finding eigenvalues and their corresponding eigenvectors.

First, watch from 02:51 to 06:31 to see how to form and solve the characteristic equation to find the eigenvalues. Then, continue from 06:31 to 11:27 to see how each eigenvalue is used to find its corresponding eigenvectors by solving a system of equations.

To reinforce this, you can also review the step-by-step example in the following article.

Eigenvalues and Eigenvectors

The article 'Eigenvalues and Eigenvectors' on GeeksForGeeks provides a concise text-based walkthrough of the same process. It's a good way to review the steps at your own pace.

Read the section titled 'Eigenvector of a 2 × 2 matrix'. Follow the example provided for the matrix A = [[1, 2], [5, 4]]. Compare the steps with what you saw in the video.

Test your understanding!

Let's find the eigenvalues and eigenvectors for the matrix .

Part 1: Find the eigenvalues.
Part 2: Find the corresponding eigenvectors for each eigenvalue.

Show answer

Part 1: Find the Eigenvalues

  1. Set up the characteristic equation .
  2. Calculate the determinant.
  3. Solve the quadratic equation for . We can factor this: The eigenvalues are and .

Part 2: Find the Eigenvectors

Case 1: For
Solve .

Both rows give the same equation: , or . If we choose , then .
So, an eigenvector for is .

Case 2: For
Solve .

Both rows give the same equation: , or . If we choose , then .
So, an eigenvector for is .

Calculation for a 3x3 Matrix

The process for a 3x3 matrix is identical, but the calculations for the determinant and for solving the system of equations are more complex. Let's watch Professor Dave work through one.

Finding Eigenvalues and Eigenvectors

Now let's apply the same two-step process to a 3x3 matrix. Pay close attention to how the 3x3 determinant is calculated and how the resulting system of three equations is solved.

Watch from 11:27 to the end of the video (16:06). Notice how the structure of the matrix in his example simplifies finding the eigenvalues. Then see how he finds the eigenvector for each of the three eigenvalues.


Conclusion

In this lesson, you've learned about one of the most important concepts in linear algebra. You can now not only define eigenvalues and eigenvectors but also compute them for 2x2 and 3x3 matrices.

Key Takeaways:

  • Eigenvectors are special vectors that, when acted upon by a matrix, do not change their direction (span).
  • Eigenvalues are the scalar factors by which their corresponding eigenvectors are stretched or shrunk.
  • The relationship is captured by the equation .
  • To find eigenvalues, you solve the characteristic equation: .
  • To find the eigenvector for a specific eigenvalue , you solve the system of linear equations .

In our next lesson, we will move on to another powerful matrix decomposition technique called Singular Value Decomposition (SVD). SVD can be seen as a generalization of the eigenvalue concepts you learned today, but it has the major advantage of working on any matrix, not just square ones. It is one of the most widely used tools in modern data science and machine learning.