HomeArticlesMathematics

Eigenvalues & Eigenvectors: The Directions a Matrix Doesn't Rotate

Apply a matrix to the unit circle and watch it become an ellipse — the eigenvectors are the two directions that stay put, and the eigenvalues are how much they stretch.

mysimulator teamUpdated June 2026≈ 7 min read▶ Open the simulation

The vectors a matrix doesn't rotate

A matrix A acting on a vector generally both rotates and scales it. An eigenvector is one of the special directions where A does only the scaling — the output vector points along the exact same line as the input, just longer, shorter, or flipped. The scale factor is the eigenvalue λ:

A v = λ v          (v ≠ 0)
live demo · unit circle warping into an ellipse under A, eigenvectors fixed● LIVE

Visually, apply A to every point on the unit circle and the image is generally an ellipse. The eigenvectors are exactly the two directions where a point on the circle maps to a point on the ellipse along the same line from the origin — everywhere else on the circle, the image point has rotated off that radial line. The eigenvalues are how much the ellipse stretches along those two special axes; the major and minor axis lengths of the image ellipse are literally |λ1| and |λ2| when the eigenvectors are orthogonal.

Finding them: the characteristic equation

Rearranging Av = λv gives (A − λI)v = 0. For a nonzero v to solve this, the matrix (A − λI) must be singular — non-invertible — which happens exactly when its determinant is zero. That determinant, expanded, is a polynomial in λ called the characteristic polynomial, and its roots are the eigenvalues:

det(A − λI) = 0
for A = [[a,b],[c,d]]:
  λ² − (a+d)λ + (ad−bc) = 0
  λ² − trace(A)·λ + det(A) = 0

For a 2×2 matrix this is just a quadratic, solvable with the quadratic formula, and its two coefficients are the trace (sum of diagonal entries, equal to the sum of the eigenvalues) and the determinant (equal to the product of the eigenvalues) — a useful sanity check when computing eigenvalues by hand.

Real, repeated, or complex — and what each looks like

The discriminant of that quadratic, trace² − 4·det, decides the character of the eigenvalues. Positive: two distinct real eigenvalues, two genuine fixed directions, the ellipse has two different-length axes. Zero: a repeated real eigenvalue — either the matrix scales every direction equally (a pure scaling, e.g. the identity times a constant) or, more commonly for a non-diagonal matrix, there's only one independent eigenvector direction and the transformation includes a shear alongside the scaling. Negative: a pair of complex conjugate eigenvalues, which means there is no real direction left unrotated — geometrically, the transformation is dominated by rotation (mixed with scaling by the eigenvalues' magnitude), and repeatedly applying A traces a vector spiralling around the origin rather than converging along any fixed line.

Why this matters far beyond geometry

Eigenvalues describe the long-run behaviour of any system that evolves by repeatedly applying the same linear transformation. In a discrete dynamical system xₙ₊₁ = Axₙ, the eigenvalue with the largest magnitude dominates as n grows — if that magnitude exceeds 1 the system blows up along that eigenvector's direction, if it's below 1 the system decays toward the origin along it, and this single fact underlies stability analysis for everything from population models to control systems to the convergence of iterative numerical algorithms. In statistics, the eigenvectors of a covariance matrix are the principal components — the directions of maximum variance in a dataset — and their eigenvalues are exactly how much variance lies along each one, which is the entire mechanism behind PCA dimensionality reduction.

Diagonalization: why eigenvectors are the 'natural' basis

If a matrix has enough independent eigenvectors to form a full basis, you can write A = PDP⁻¹, where D is diagonal (the eigenvalues on the diagonal) and P's columns are the eigenvectors. In that eigenvector basis, A's action is nothing but independent scaling along each axis — all the geometric complexity of a general matrix reduces to a list of numbers. This is also why computing Aⁿ for large n is cheap once you have the decomposition: Aⁿ = PDⁿP⁻¹, and raising a diagonal matrix to a power just means raising each eigenvalue to that power, instead of n expensive matrix multiplications.

Frequently asked questions

What does it mean intuitively for an eigenvalue to be negative?

A negative real eigenvalue means the matrix flips the corresponding eigenvector to point in exactly the opposite direction while also scaling its length by the eigenvalue's absolute value. Geometrically, that eigenvector's line maps onto itself but with the arrow reversed — the point moves through the origin to the opposite side.

Why do some matrices have complex eigenvalues even though the matrix itself has only real entries?

Complex eigenvalues arise whenever the characteristic polynomial's discriminant is negative, which happens for matrices whose action is dominated by rotation rather than pure stretching along any real direction — a pure rotation matrix, for instance, has no real direction it leaves unrotated, so its eigenvalues must be complex, appearing as a conjugate pair since the matrix's entries are real.

What's the practical connection between eigenvectors and PCA in statistics?

Principal Component Analysis computes the eigenvectors and eigenvalues of a dataset's covariance matrix. The eigenvectors point along the directions of maximum spread in the data, and each corresponding eigenvalue tells you exactly how much variance lies along that direction, which is why sorting eigenvalues by size and keeping only the top few eigenvectors gives an effective, variance-preserving way to reduce dimensionality.

Try it live

Everything above runs in your browser — open Eigenvalues & Eigenvectors Visualizer and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Eigenvalues & Eigenvectors Visualizer simulation

What did you find?

Add reproduction steps (optional)