Visual Math Toolkit Guide 4 of 6 · tap to switch
Eigenvalues and Eigenvectors
Spin a probe arrow to catch the rare directions that refuse to tilt under a matrix warp, and see why they power PCA and PageRank.
Picture spinning a classroom globe on your desk. Every city on the surface sweeps around in a wide circle, changing direction every split second. Every spot moves, except the straight metal rod running from the North Pole to the South Pole: as the entire globe spins, that axis rod stays pointing along the exact same line.
Matrix transformations work the same way. When a square matrix A stretches, squishes, or shears the 2D plane, almost every arrow gets knocked sideways off its starting line. Only a few rare directions behave like that globe rod: they stay glued to their own rail, changing only in length (or flipping straight backward along the same line).
The German word eigen simply means “own” or “characteristic”. A special non-zero arrow v that refuses to tilt off its own line is called an eigenvector. The number telling you how much it stretches, shrinks, or flips is its eigenvalue, which we nickname with the Greek letter λ (pronounced “lambda”, just a handy label for the stretch multiplier). For these special arrows, applying the matrix to produce the transformed arrow A · v does the exact same thing as multiplying v by one plain number: A · v = λ · v.
Spin your arrow v below and watch the transformed arrow A · v. Sweep the angle slider until A · v snaps cleanly onto v’s dashed rail to discover both hidden eigenvectors!
Once you sweep the full half-circle, two angles snap cleanly onto the rail: at 45°, the transformed arrow A · v stretches to exact 3.0× length (λ₁ = 3) without tilting by even a fraction of a degree, and at 135°, A · v stays at exact 1.0× length (λ₂ = 1). Those two unchanged directions are this matrix’s eigenvectors, and 3 and 1 are its eigenvalues.
How to Interpret Eigenvalues and Eigenvectors Visually
Why do machine learning engineers care so much about a matrix’s stretch factors? Because deep neural networks and real-world simulations often apply the same matrix transformation many times in a row (5 steps, 20 steps, or 50 steps).
Whenever an arrow starts along an eigenvector, every single step simply multiplies its length by λ again. After k steps, the arrow scales by λ multiplied by itself k times (λᵏ). Click through all six behaviors below and step k from 1 to 5 to watch what repeated multiplication does in each case!
Look at how completely the stretch factor λ decides the arrow’s fate over repeated steps:
- Stretch (
λ > 1): every step compounds outward (1.5 → 2.25 → 3.38 → 5.06 → 7.59). In deep networks, weights with stretch factors above 1 cause exploding gradients during Backpropagation. - Shrink (
0 < λ < 1): every step cuts the arrow closer to zero (0.50 → 0.25 → 0.13 → 0.06 → 0.03), explaining vanishing gradients. - Steady (
λ = 1): the arrow stays completely frozen at its exact starting length forever. - Flip (
λ < 0): the minus sign reverses the arrow 180 degrees straight backward along its own line, so repeated steps bounce back and forth across zero (negative, positive, negative, positive). For example,λ = -2flips the arrow backward along its own line and doubles its length. - Collapse (
λ = 0): multiplying by zero crushes an entire direction onto the single point[0, 0], flattening space so that lost dimension can never be recovered (the matrix has no inverse). - Pure 90° Rotation (No Real
λ): turning the whole plane by 90 degrees knocks every non-zero arrow off its original line, leaving zero real eigenvectors on the 2D plane.
Power Iteration: how Google PageRank finds the #1 Eigenvector
Imagine a million bored web surfers clicking random links across the internet forever: eventually, the crowd settles into a steady share of visitors on every page, and that steady crowd distribution is the web’s dominant eigenvector (Google’s PageRank).
With billions of web pages in the graph, you could never solve for that eigenvector by hand with pen-and-paper algebra. Instead, computers use a surprisingly simple shortcut called Power Iteration: pick almost any starting arrow, multiply it by the matrix A, and rescale the result back to length 1 (normalizing it so the numbers stay tidy). Then repeat!
Why does this work? Because every starting arrow is a blend of the matrix’s eigenvector directions. Each round multiplies every piece by its own stretch factor, so the eigenvector with the largest stretch magnitude (|λ₁|) compounds much faster and drowns out all smaller directions.
Click Multiply by A & Normalize six times below to watch an arrow starting way over at 125° swing step by step until it locks onto the dominant 45° eigenvector automatically!
The Spectral Theorem: why Eigenvectors literally ARE PCA
Before connecting eigenvectors to Principal Component Analysis (PCA), let us unpack three everyday ideas in plain English:
- Variance (spread): how widely a single column of data spreads out around its average. Tightly bunched numbers have low variance; wide-ranging numbers have high variance.
- Covariance (moving together): whether two columns tend to rise and fall together. Height and shoe size increase together (positive covariance), while unrelated measurements sit near zero.
- Symmetric grid (matching mirror entries): when you place every feature pair’s covariance into a square table, you get the dataset’s covariance matrix (nicknamed with the capital Greek letter
Σ, pronounced “Sigma”). Because “how Column 1 moves with Column 2” is identical to “how Column 2 moves with Column 1”, the table always has matching mirror-image entries across its main diagonal!
Why symmetric tables are pure gold in ML: One of the most celebrated guarantees in mathematics, called the Spectral Theorem, proves that every real symmetric matrix has 100% real eigenvalues and perfectly perpendicular (90-degree) eigenvectors. No weird missing axes, and no tilted grids!
That single guarantee is why eigenvectors are PCA. The perpendicular eigenvectors of a dataset’s covariance matrix point straight along the data cloud’s natural axes: PC1 (the main spread direction) and PC2 (the secondary perpendicular direction). Even better, each eigenvalue equals the exact variance (spread) along its axis. For example, if λ₁ = 1.8 and λ₂ = 0.2, keeping only PC1 preserves 1.8 / (1.8 + 0.2) = 90% of the total spread!
Slide feature correlation ρ (pronounced “rho”, measuring how tightly two features move together from 0.00 for an unrelated round cloud up to 0.90 for a stretched diagonal cloud) below to watch the covariance table, the perpendicular axes, and the variance split respond live!
See Characteristic Equation, Determinant/Trace Identities & Spectral DecompositionThesis / Reference
1. The Characteristic Equation: Rewriting as shows a non-zero eigenvector exists if and only if collapses space (singular):
2. Trace & Determinant Shortcuts: For any matrix with eigenvalues , the sum equals the trace and the product equals the determinant: and .
3. Spectral Decomposition (Symmetric Matrices): Every real symmetric matrix factorizes into an orthonormal eigenbasis and diagonal eigenvalue matrix :
See Eigendecomposition in NumPy (eig vs. eigh)Optional Code
import numpy as np
# Use eigh() for symmetric matrices (covariance, Hessians): faster & guaranteed real!
Sigma = np.array([[1.0, 0.8],
[0.8, 1.0]])
eigenvalues, eigenvectors = np.linalg.eigh(Sigma)
# eigh sorts ascending; reverse so PC1 (largest variance) comes first:
idx = eigenvalues.argsort()[::-1]
print("Eigenvalues (PC1, PC2):", np.round(eigenvalues[idx], 2)) # [1.8, 0.2]
print("PC1 eigenvector:", np.round(eigenvectors[:, idx[0]], 2)) # [0.71, 0.71]Shifting from Linear Algebra to Calculus: how models actually learn
Linear algebra (vectors, spaces, matrices, and eigenvectors) describes what a model computes during a forward pass. Now we need calculus to answer the second half of ML: which direction should I nudge every weight to push loss downhill?
Next up: Derivatives, Slopes & the Gradient.
Quick Intuition Check
Four quick real-world scenarios. No scores, just test your intuition.
If arrow v is an eigenvector of matrix A with stretch factor (eigenvalue) λ = -2, what happens when you apply matrix A to v?
A 2D covariance matrix has eigenvalues λ₁ = 1.8 (along PC1) and λ₂ = 0.2 (along PC2). What share of the total data spread (variance) do you keep if you keep only PC1?
A pure 90-degree rotation matrix in 2D has two real perpendicular eigenvectors.
In Power Iteration, you start with almost any arrow, multiply by matrix A, and rescale back to length 1 over and over. Which direction does the arrow lock onto?
Common Questions
What are eigenvalues and eigenvectors in plain English?
How do you find eigenvalues and eigenvectors step by step?
What are Eigenvectors and Eigenvalues in plain English?
Why are Eigenvectors so important in Machine Learning?
Does every 2x2 matrix have real eigenvectors?
How is a zero eigenvalue connected to the Determinant?
Related Visual Guides
Principal Component Analysis (PCA)
How to rotate and compress dozens of correlated features into a few clean axes without throwing away the real story.
Matrices & Matrix Multiplication
See a matrix as a live space-warping machine, watch the Determinant scale or squash area, and master PyTorch layer shapes.
Vector Spaces, Span & Basis
See how two basis arrows tile an entire 2D plane, watch dependent columns collapse into a 1D rail, and rotate rulers like PCA.
Written & illustrated by Muhammad Aashir Irshad · Updated December 2026 · Free open-access reference
Cite this guide in a paper, thesis, or course (BibTeX & APA)
@misc{irshad2026eigenvaluesandeigenvectors,
author = {Irshad, Muhammad Aashir},
title = {Eigenvalues and Eigenvectors: Interactive Visual Guide},
howpublished = {SeeingML},
year = {2026},
month = {dec},
url = {https://seeingml.com/learn/eigenvalues-and-eigenvectors/},
note = {Interactive visual guide}
} Irshad, M. A. (2026). Eigenvalues and Eigenvectors: Interactive Visual Guide. SeeingML. https://seeingml.com/learn/eigenvalues-and-eigenvectors/