Introduction: the privileged directions
When a matrix acts on a vector, it transforms it. In general, the vector changes both its direction and length. But for certain special vectors, the matrix only stretches or compresses them, without changing their direction.
These special vectors are the eigenvectors. The corresponding stretching factor is the eigenvalue. Together, they reveal the deep structure of a transformation.
The intuition: a matrix as a transformation
Imagine a matrix acting on all vectors in the plane. Most vectors are deformed into a new direction. But there exist "natural" directions of the transformation, axes along which the matrix only pushes or pulls.
Concrete analogy: think of a rubber band being stretched. The rubber band deforms in all directions, but there's a principal stretching axis (the direction in which it elongates the most) and a perpendicular axis (in which it contracts). These axes are the eigenvectors of the transformation.
Another analogy: in a movie theater, sound vibrations have natural modes, frequencies at which the room naturally resonates. Eigenvectors are the same thing: the "natural modes" of a matrix transformation.

Formal definition
For a square matrix , a nonzero vector is an eigenvector if:
Where is a scalar called the eigenvalue associated with .
In other words: applying to simply amounts to multiplying by . The direction is preserved, only the magnitude changes.
What the eigenvalue tells you
- : the eigenvector is stretched (the transformation amplifies in this direction)
- : the eigenvector is compressed
- : the eigenvector is unchanged
- : the eigenvector is crushed to zero (information in this direction is lost)
- : the eigenvector is reversed (and stretched/compressed according to )
Concrete example
Take the matrix:
You can verify that is an eigenvector with :
And is an eigenvector with :
How to find them (the concept)
You start from the equation and rewrite:
For a nonzero to exist, the matrix must be singular, so:
This is the characteristic polynomial. Its roots are the eigenvalues. An matrix has at most eigenvalues (potentially complex).
In practice, you never solve this polynomial by hand for large matrices. You use iterative numerical algorithms (QR, Lanczos, etc.) implemented in NumPy, SciPy, or LAPACK.
The eigendecomposition
If a matrix has linearly independent eigenvectors, you can write:
Where:
- is the matrix whose columns are the eigenvectors
- is the diagonal matrix of eigenvalues
This decomposition says: the transformation is equivalent to (1) switching to the eigenvector basis, (2) stretching each axis by its eigenvalue, (3) switching back to the original basis.
For symmetric matrices (like covariance matrices), the eigenvectors are orthogonal and the decomposition becomes . It's cleaner and numerically more stable.
Applications in machine learning
PCA: dimensionality reduction
Principal Component Analysis (PCA) is the most direct application of eigenvalues in ML.
The principle: you have high-dimensional data (say 1,000 features) and you want to project it into low dimensions (say 50) while losing minimal information.
How? You compute the covariance matrix of the data (after centering), then its eigenvectors. The eigenvectors associated with the largest eigenvalues are the directions of maximum variance, the most "informative" directions.
Projecting onto these few eigenvectors means keeping the essentials while drastically reducing dimensionality. If the first 50 eigenvalues capture 95% of the total variance, the other 950 dimensions are noise.

Spectral analysis of graphs
Social networks, molecules, and knowledge graphs are represented by adjacency matrices or graph Laplacians. The eigenvectors of these matrices reveal the community structure of the graph.
Graph Neural Networks (GNNs) use this spectral theory. Spectral filters on graphs are defined in terms of eigenvalues of the Laplacian.
Training stability
The eigenvalues of the Hessian matrix (second derivatives of the loss) give information about the loss landscape:
- Very large eigenvalues in the Hessian indicate directions of strong curvature, the gradient changes rapidly, making optimization unstable.
- The ratio between the largest and smallest eigenvalue (the condition number) measures how ill-conditioned the optimization problem is. A high condition number means gradient descent converges slowly.
Techniques like normalization (BatchNorm, LayerNorm) improve the conditioning of the Hessian, which stabilizes training.
Markov models and PageRank
Google's PageRank algorithm models the web as a Markov chain. The ranking of pages is given by the dominant eigenvector of the transition matrix, the one associated with the largest eigenvalue.
Spectrum of a matrix
The set of all eigenvalues of a matrix is called its spectrum. Analyzing the spectrum gives a global view of the transformation:
- Spectral radius: the largest eigenvalue in absolute value, . If , the transformation contracts, which guarantees convergence of certain iterative algorithms.
- Trace: the sum of eigenvalues equals the trace of the matrix, .
- Determinant: the product of eigenvalues equals the determinant, .
Why this matters for AI
Eigenvalues and eigenvectors are not an abstract concept reserved for mathematicians. They are at the heart of very concrete ML techniques:
- PCA for dimensionality reduction and visualization
- Spectral analysis for graphs and GNNs
- Training diagnostics via the Hessian spectrum
- Model compression by identifying "useless" directions
When you understand eigenvalues, you understand how a transformation preserves or destroys information. And in ML, everything is a transformation.
Where this is used. The spectrum of a weight matrix decides whether the signal grows or collapses as it crosses layers: see training stability and orthogonality.