Math & Statistics

Eigenvectors & Eigenvalues

The special vectors that change only in magnitude—not direction—when transformed by a matrix.

🟡 intermediate4 min readlinear-algebra
For a square matrix A, an eigenvector v is a non-zero vector that satisfies Av = λv. The scalar λ is the corresponding eigenvalue, representing the factor by which v is stretched or shrunk. In machine learning, eigenvectors define principal component axes in PCA, stationary distributions in Markov Chains (PageRank), spectral graph embeddings, and singular values in SVD.

The Core Geometric Intuition

Matrix multiplication A x generally rotates and rescales vector x.

An Eigenvector v is a special vector whose direction is unaffected by A:

A v = λ v
  Standard Vector x:        Ax rotates and stretches x.
  Eigenvector v:            Av = λv stays on the same line span!

Solving for Eigenvalues & Eigenvectors

  1. Characteristic Equation: (A - λI) v = 0.
  2. Determinant Condition: For non-zero v to exist, (A - λI) must be non-invertible:
det( A - λ I ) = 0

Solving this polynomial yields d eigenvalues λ_1, ..., λ_d. Plugging each λ_i back into (A - λ_i I) v_i = 0 yields corresponding eigenvectors v_i.

Spectral Theorem for Symmetric Matrices

Real symmetric matrices (A = Aᵀ), common in ML (Covariance matrices, Hessian matrices, Laplacian matrices):

  1. All eigenvalues λ_i are real numbers.
  2. Eigenvectors v_i corresponding to distinct eigenvalues are strictly orthogonal (v_i · v_j = 0).
  3. Matrix can be eigen-decomposed as A = V Λ Vᵀ, where V is an orthogonal matrix of eigenvectors (VᵀV = I) and Λ is a diagonal matrix of eigenvalues.

Applications across ML

Say this out loud

"An eigenvector v of square matrix A satisfies Av = λv—it maintains its line direction under matrix transformation and is scaled only by eigenvalue λ. For symmetric matrices like covariance matrices, eigenvectors are strictly orthogonal. In PCA, eigenvectors of the sample covariance matrix represent axes of maximum variance, and eigenvalues quantify the variance explained by each axis."

Follow-ups to expect

Check yourself

Question 1 of 3

What geometric transformation occurs to an eigenvector v when multiplied by square matrix A?

More in Math & Statistics

See all →
Bayes’ Theorem4 minCentral Limit Theorem4 minLaw of Large Numbers4 min