Skip to main content

Welcome to a Grasp lesson

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

Lesson 6

Eigenvalues and Eigenvectors: A Geometric Perspective

Recommended resources

Hello! Welcome to the first lesson of our second module, "Essential Mathematical Foundations."

In the last module, we completed our rapid overview of core statistics by learning about confidence intervals, which allow us to estimate a range of plausible values for a population parameter. As we previewed, we are now shifting gears from statistics to linear algebra, another cornerstone of data science and machine learning.

Today, we'll explore one of the most important concepts in linear algebra: eigenvalues and eigenvectors. For your GATE exam, recognizing what these are and why they are important is key. This lesson will focus on building a strong geometric intuition for them, which is foundational for understanding many advanced machine learning algorithms.

Our learning outcome is to describe eigenvalues/eigenvectors and their geometric significance.

Let's begin.

1. Matrices as Transformations

Before we get to eigenvectors, let's quickly refresh a key concept from linear algebra. You can think of a matrix not just as a grid of numbers, but as a function that performs a linear transformation on space. When you multiply a matrix by a vector, the matrix transforms that vector—it might stretch, shrink, rotate, or shear it, moving it to a new position.

Typically, this transformation changes both the vector's length and its direction. To see this in action, let's watch a very short video that contrasts a general transformation with a special case.

Eigen values and Eigen vectors in 3 mins | Explained with an interesting analogy

This short video from Solid Mechanics Classroom provides a quick, clear illustration of how matrix multiplication affects a vector, setting the stage for eigenvectors.

Watch from the beginning to 01:32. Focus on the visual difference between Case 1 (vector is rotated and scaled) and Case 2 (vector is only scaled).

The video highlights a crucial question: are there any vectors that don't get rotated off their original line when the transformation is applied? The answer leads us directly to eigenvectors.


2. Eigenvectors and Eigenvalues: The "Special" Vectors

As you saw in that brief clip, some vectors have a special property: when a matrix transforms them, they don't change their direction. They stay on the same line (or "span") they started on. They are only stretched, shrunk, or flipped.

  • An eigenvector of a matrix is a non-zero vector that only changes by a scalar factor when that linear transformation is applied to it.
  • The eigenvalue is the scalar factor by which the eigenvector is scaled. A positive eigenvalue means stretching, a value between 0 and 1 means shrinking, and a negative eigenvalue means flipping direction and scaling.

The best way to build a deep intuition for this is to see it visually. The following video is renowned for its excellent geometric explanation of this concept.

Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra

This video from 3Blue1Brown, titled 'Eigenvectors and eigenvalues', is the gold standard for building an intuitive, visual understanding of this topic.

Please watch from 01:48 to 05:15. As you watch, focus on: How the video defines eigenvectors as vectors that "remain on their own span." The visual examples of vectors being stretched while staying on the same line. The explanation of an eigenvalue as the factor of that stretch or squish. The example of the axis of rotation in 3D being an eigenvector.

To solidify this geometric idea, consider the transformation of reflection. Imagine a matrix that reflects every vector across the line .

Geometric Interpretation of Eigenvalues and Eigenvectors with Reflection Matrix Example
This image shows a reflection across the line y=x. Any vector on this line (an eigenvector) is unchanged by the reflection, so its eigenvalue is 1. Any vector perpendicular to this line is flipped to its opposite, so it's also an eigenvector, but with an eigenvalue of -1.
  • Any vector that lies exactly on the line of reflection () is its own reflection. It doesn't move or change length. It is an eigenvector with an eigenvalue of .
  • Any vector that is perpendicular to the line of reflection is flipped to point in the exact opposite direction. It is also an eigenvector, but with an eigenvalue of .
  • Any other vector will be rotated off its original span.

3. The Formal Definition and Its Meaning

The visual intuition we've built is captured concisely in the central equation of this topic:

Let's break this down:

  • is the square matrix representing the linear transformation.
  • is the eigenvector, a non-zero vector.
  • (lambda) is the corresponding eigenvalue, which is a scalar number.

This equation says that multiplying the vector by the matrix (the left side, A) produces the exact same result as just scaling the vector by the scalar (the right side, ). This elegantly states that the direction of is unchanged by the transformation .

While the full method for calculating eigenvalues and eigenvectors is beyond our quick overview, it's useful to recognize the key formula involved, which you might have noticed in the 3Blue1Brown video. Finding the eigenvalues typically involves solving the characteristic equation:

Here, is the identity matrix and stands for the determinant. For the GATE exam, simply recognizing this equation's purpose is a great first step.


4. Why Eigenvectors are Important

Understanding why we care about these special vectors is crucial. Eigenvectors and eigenvalues reveal the fundamental properties of a linear transformation. They essentially define the "axes" along which the transformation acts purely as a stretching or compressing force.

This has profound practical implications:

  1. Understanding Physical Systems: As the video mentioned, if a matrix describes a 3D rotation, its eigenvector with gives you the axis of rotation. This simplifies a complex 3x3 matrix into a simple axis and an angle.

  2. Analyzing Dynamic Systems: Consider a system that changes over time, like a population model or the car rental example mentioned in one of your resources. The state of the system at each step can be found by repeatedly multiplying by a matrix .

    • If you express the initial state as a combination of eigenvectors, you can predict the future state easily. The eigenvector with the largest eigenvalue (in magnitude) will dominate the system's long-term behavior. This tells you where the system is headed.
  3. Machine Learning and Data Science: This is a critical application area. Eigenvectors are at the heart of Principal Component Analysis (PCA), a technique used for dimensionality reduction. In PCA, you analyze the covariance matrix of your data. The eigenvectors of this matrix point in the directions of maximum variance in the data (the "principal components"), and the corresponding eigenvalues tell you how much variance is captured by each direction. This allows you to reduce the number of features in your data while retaining the most important information.


Conclusion

In this lesson, we focused on building an intuitive, geometric understanding of eigenvalues and eigenvectors. You don't need to be a master of the calculations for this overview, but you should now have a solid grasp of the core concepts.

Key Takeaways:

  • Eigenvectors are non-zero vectors whose direction is unchanged by a linear transformation; they are only scaled.
  • Eigenvalues are the scalar factors by which the eigenvectors are scaled.
  • The relationship is defined by the equation .
  • Geometrically, eigenvectors represent the fundamental "axes" of a transformation (e.g., axis of reflection, axis of rotation, directions of pure stretch).
  • They are crucial for understanding everything from physical rotations to the long-term behavior of systems and for foundational machine learning techniques like PCA.

Preview of the Next Lesson:
We will continue our tour of essential linear algebra by looking at matrix decompositions. Specifically, we will discuss the purpose of LU decomposition and Singular Value Decomposition (SVD). These are powerful techniques for solving systems of equations and analyzing data. You'll see that SVD, in particular, has a very close relationship to the eigenvalues and eigenvectors we learned about today.