Goal
Understand the special directions in which a linear map acts like scalar multiplication, and learn how to recognize them from the equation .
By the end of the lesson, you should be able to say, in plain language, what an eigenvector is, what an eigenvalue is, and why the determinant condition appears.
Motivation
Most vectors change direction when a matrix acts on them.
That is the ordinary case.
The interesting case is when a matrix has a direction it does not twist at all. It may stretch that direction, shrink it, or flip it, but it does not send it somewhere else.
That is the feature behind eigenvectors.
The idea matters because repeated application of a matrix becomes easy along those directions. It also matters because covariance matrices, stability analyses, and dimensionality-reduction methods all lean on the same geometry.
Prerequisites
- Lesson 1: Vectors.
- Lesson 2: Matrices as Linear Transformations.
- Lesson 3: Matrix Multiplication.
- Lesson 4: Determinants.
- Lesson 5: Inverse Matrices.
- The meaning of scalar multiplication and matrix-vector multiplication.
Notation / Symbol Table
| Symbol | Plain-English name | Meaning |
|---|---|---|
| matrix | A square matrix or linear transformation acting on vectors. | |
| vector | A candidate eigenvector; it must be nonzero. | |
| eigenvalue | The scalar factor by which stretches or flips . | |
| identity matrix | The matrix that leaves vectors unchanged. | |
| eigenvector equation | The defining relationship for an eigenpair. | |
| characteristic determinant | The polynomial condition used to find eigenvalues. |
Core Ideas
The invariant-direction idea
If a matrix sends a vector back onto the same line, that vector is special.
Formally, a nonzero vector is an eigenvector of if
for some scalar .
Read this as:
Applying the matrix has the same effect as multiplying by a number, but only in that direction.
That is the whole idea. The matrix may still do other complicated things to other vectors.
Why this is not just a definition trick
The equation is not saying that every vector behaves this way.
It is saying there may be a few preferred directions where the matrix becomes simple.
That is the same pattern we have seen elsewhere in the course:
- a hard object becomes easier on the right coordinate system;
- a complex transformation becomes simple along its natural directions;
- a global problem becomes local when we pick the right frame.
Eigenvectors are one of the cleanest examples of that pattern.
Repeated application becomes easy
If , then applying again gives
By induction,
So on an eigenvector, repeated application of the matrix is just repeated multiplication by a scalar.
That is why eigenvectors are so useful for matrix powers, discrete dynamical systems, and stability questions.
How to find eigenvalues
Start from
Move everything to one side:
Factor out by writing as :
A nonzero solution exists only when is singular. Therefore:
That is the characteristic equation.
Why the determinant appears
The determinant detects when a square matrix fails to be invertible.
If has a nonzero vector in its kernel, then it cannot be invertible, so its determinant must be zero.
This is the algebraic bridge from the eigenvector equation to a polynomial equation in .
Worked Example
Let
We look for such that
Compute:
Then
Expand:
Factor:
So the eigenvalues are and .
Now find an eigenvector for :
gives
The first row says , so .
One eigenvector is
Check:
The same direction comes out, scaled by .
For , the equation becomes , so one eigenvector is
Why This Shows Up In ML
Eigenvectors and eigenvalues show up whenever a linear structure has preferred directions.
A covariance matrix is the classic example.
Its eigenvectors tell you which directions in the data vary independently.
Its eigenvalues tell you how much variation lives in each of those directions.
That is the geometry behind principal component analysis, but it also appears in:
- spectral clustering,
- Markov chains,
- diffusion models,
- stability analysis,
- optimization geometry,
- graph-based learning.
The lesson to keep is simple:
Eigenvectors are the directions a transformation respects.
Common Confusions
- An eigenvector is not any vector. It must be nonzero.
- An eigenvalue can be negative, zero, or positive.
- Not every matrix has a full set of real eigenvectors.
- The equation describes a direction, not a point.
- Repeated application uses powers of , not repeated matrix multiplication in the same complicated way.
Exercises
Work through these without rushing.
-
For
what are the eigenvalues?
-
Give one eigenvector for each eigenvalue above.
-
If , what is ?
-
Explain why must hold if is an eigenvalue.
-
Suppose a covariance matrix has eigenvalues , , , and . What does that suggest about the data, and what would PCA do with it?
Implementation Exercise
Write a TypeScript helper that checks whether a candidate vector is an eigenvector of a 2x2 matrix within a small tolerance.
A useful starting point is:
type Matrix2x2 = [[number, number], [number, number]];
type Vector2 = [number, number];
type EigencheckResult = {
isEigenvector: boolean;
eigenvalue: number | null;
residual: Vector2;
};
The helper should:
- compute ,
- estimate the scalar from a nonzero component of ,
- verify whether is close to ,
- return the residual so the caller can inspect the mismatch.
That keeps the exercise close to the lesson: test the defining equation directly.
Reflection Questions
- What changed in your mind when you first saw ?
- Why is repeated application of a matrix easier along an eigenvector?
- Which step in the derivation made the determinant appear naturally?
- Where do eigenvectors act as a coordinate system for a problem?
- Which part of the notation still wants a local reminder?
Next Lesson
Next: Change of Basis.
The bridge is direct: once you know a matrix has preferred directions, the next question is how to re-express a vector in a different basis so those directions become easier to work with.
Completed Exercises
Handwritten work submitted after completing this lesson.

