Diagonalization and the Spectral Decomposition
Diagonalization answers a structural question underneath most of computational physics: is there a basis in which a linear operator does nothing but scale each axis independently? When a basis of eigenvectors exists, the matrix collapses to a diagonal list of eigenvalues, and every hard matrix operation — powers, exponentials, inverses, square roots — becomes the same scalar operation one eigenvalue at a time. A tangled coupled system falls apart into independent one-dimensional pieces the moment you view it in that basis. The same fact wears a second face, the spectral decomposition. Instead of with an explicit change-of-basis matrix, we write , a weighted sum of projectors onto the eigenspaces. The projectors are intrinsic to — idempotent, mutually orthogonal, resolving the identity. This form is the gateway to functional calculus and to the operator language of quantum mechanics, where observables are Hermitian operators and a measurement is a projection. Not every operator submits. The obstruction is defectiveness — a shortage of eigenvectors, measured exactly by the geometric multiplicity falling below the algebraic multiplicity, and organized by the Jordan canonical form. But the operators that dominate physics — Hermitian, anti-Hermitian, unitary, and generally normal operators satisfying — obey the spectral theorem, which guarantees diagonalizability by an orthonormal eigenbasis, i.e. by a unitary transformation. This article develops the algebraic statement, the projector statement, the sharp conditions for each, and the functional calculus that makes the machinery indispensable.
- An operator is diagonalizable when its eigenvectors form a basis; in that basis its matrix is diagonal with the eigenvalues on it.
- Concretely , the columns of being eigenvectors and — a similarity into the eigenbasis.
- Equivalently , the spectral decomposition into eigenprojectors that are idempotent, sum to the identity, and (for normal ) mutually orthogonal.
- Diagonalizability holds iff the minimal polynomial has no repeated root — i.e. geometric multiplicity equals algebraic multiplicity for every eigenvalue.
- The spectral theorem makes every normal operator unitarily diagonalizable — real eigenvalues if Hermitian, unit-modulus if unitary.
- Functional calculus is then immediate: , so , , all reduce to scalar functions of the eigenvalues.
- Key idea: Diagonalizing an operator is choosing the eigenbasis as your coordinate system; the spectral decomposition then exhibits as a superposition of independent scalings on orthogonal eigenspaces, turning any function of into the same function applied scalar-by-scalar to the eigenvalues.
Where this lives today
Diagonalization is the inner loop of an enormous amount of live computation. Quantum chemistry and condensed-matter physics spend much of their machine time diagonalizing Hamiltonians — the Lanczos and Davidson algorithms extract the low-lying eigenpairs of matrices with billions of rows for molecular energies and phonon spectra, and the normal modes of a vibrating molecule or crystal are literally the eigenvectors of its dynamical matrix. Quantum computing runs on the same idea: a variational quantum eigensolver estimates the smallest eigenvalue of a Hamiltonian, and every quantum gate is a unitary whose spectral decomposition says what it does. In data science, principal component analysis diagonalizes a covariance matrix so its eigenvectors become the axes of maximal variance, and Google's original PageRank is nothing but the dominant eigenvector of a stochastic web-link matrix. Spectral graph theory reads community structure off a Laplacian's eigenvalues; stability analysis asks one question of a linearized system — are the real parts of its eigenvalues negative? Wherever a linear operator must be understood rather than merely applied, the first move is to diagonalize it.
The physical picture
Picture as a deformation of space. A generic vector gets rotated and stretched in a way hard to read off the matrix; eigenvectors are the special directions that survive intact up to a scale factor — the natural axes of the deformation, the grain of the wood. Diagonalizing redraws the coordinate grid along these axes, after which does nothing but stretch each by its eigenvalue. For the symmetric matrix with rows (2, 1) and (1, 2) the axes lie at 45°: the diagonal is stretched by 3, the anti-diagonal left almost alone at 1, and the unit circle is carried to an ellipse aligned with those axes.
The spectral form turns that geometry into an algebraic recipe. To apply to any vector, resolve it into its component in each eigenspace — what the projector extracts — scale each by the matching , and add the pieces back; the operator never mixes the eigenspaces. This is why functions of are trivial here: squaring squares each scale factor and exponentiating it exponentiates each one, the eigenspaces being inert containers on which a scalar acts. The second figure exhibits the decomposition as an actual sum of numeric projector matrices resolving the identity.
For Hermitian operators the eigenspaces are mutually orthogonal, so the natural axes are perpendicular and the change of basis is a rigid unitary rotation, never a shear. That single fact is why measurement in quantum mechanics is clean: distinct outcomes live in orthogonal subspaces, read out by the projectors above.
The core equations
Everything begins with the eigenvalue equation, the statement that certain directions are merely scaled by the operator. It is the defining relation from which diagonalization, the spectral decomposition, and functional calculus all descend.
where: — linear operator, or an matrix once a basis is fixed; — the -th eigenvector, a nonzero direction left invariant by ; — its scale factor. The article is about when there are enough such axes to form a basis. Collect independent eigenvectors as the columns of a matrix . The whole set of eigenvalue equations then bundles into a single similarity, and is conjugate to a diagonal matrix.
where: — the eigenvector matrix, columns ; — the diagonal eigenvalue matrix; — the inverse change-of-basis, existing precisely when the eigenvectors are independent. Read right to left: rotates into the eigenbasis, scales, rotates back. The same operator repackaged geometrically is the spectral decomposition: a weighted sum of projectors, one per distinct eigenvalue, weighted by that eigenvalue.
where: — the orthogonal projector onto the eigenspace of ; — a distinct eigenvalue, the sum running over distinct values rather than a basis, with degeneracy absorbed into the rank of . The projectors obey a tight algebra encoding "the eigenspaces do not overlap and together fill the space." This algebra, not the explicit matrices, is what makes the decomposition compute.
where: — Kronecker delta, so the projectors are idempotent () and mutually annihilating; — identity, the resolution of the identity that guarantees probabilities sum to one; — self-adjointness, holding for the orthogonal projectors of a normal operator. Because powers of collapse under the projector algebra, any function defined on the spectrum is obtained by applying that scalar function to each eigenvalue — the single most useful consequence of the whole framework.
where: — any function defined on the eigenvalues of (, , , ). No power series is ever summed; one evaluates on a handful of numbers and reassembles — the functional calculus. For the operators that matter in physics the projectors are not just any idempotents but orthogonal ones, because the eigenbasis can be chosen orthonormal. The spectral theorem states exactly when.
where: — unitary matrix of orthonormal eigenvectors; — conjugate transpose, equal to ; the two-sided condition on the right is normality. Hermitian () gives real , unitary () gives ; both are special cases of normal. Finally, the sharp criterion for the general (not necessarily normal) case is a count: diagonalizability is the statement that no eigenvalue is short of eigenvectors.
where: — geometric multiplicity, the dimension of the eigenspace; — algebraic multiplicity, the order of as a root of . Always ; equality for every is the whole condition. The invariants and (with multiplicity) give quick sanity checks on any claimed spectrum.
The goal is to show that the abstract sentence " has a basis of eigenvectors" is literally the same statement as the matrix equation , and to pin down where linear independence of the eigenvectors is the one hypothesis that makes the passage legal. We stack the eigenvalue equations into a single matrix identity, recognize the diagonal factor, and invert.
Step 1. Assemble the eigenvectors as columns, , and act with . Matrix multiplication is column-wise, so . Why: multiplying into applies to every eigenvector at once, handling the eigenvalue equations in a single stroke.
Step 2. Replace each column using , giving . Scaling the -th column by is exactly right-multiplication by the diagonal matrix , so . Why: right-multiplication by a diagonal rescales columns (left-multiplication would rescale rows), which is what pins the eigenvalues onto the diagonal in the order matching 's columns.
Step 3. The identity holds for any list of eigenvectors; the real content is invertibility of . If the are linearly independent, exists and right-multiplying gives ; conversely, reading backwards from any such factorization recovers , so the columns of a diagonalizing must be eigenvectors. Why: independence of the eigenvectors is exactly the hypothesis that exists, so diagonalizability and "the eigenvectors span the space" are one statement, not two.
Go deeper · Derivation B · 1 minBuilding the eigenprojectors of a normal operator
The aim is to construct the projectors explicitly from an orthonormal eigenbasis and to prove — not merely assert — the three properties the spectral calculus rests on: idempotence, mutual orthogonality, and completeness. We start from the unitary diagonalization the spectral theorem guarantees, expand it as a sum of rank-one outer products, and check the algebra of the blocks.
Step 1. Write the normal operator in its orthonormal eigenbasis as , the column-by-column expansion of . Each is a rank-one projector onto a single eigen-direction. Why: the outer-product form is the bridge from the matrix to the coordinate-free sum , available only because the eigenvectors are orthonormal.
Step 2. Group the terms that share an eigenvalue: define , so that . The projector onto a degenerate eigenspace is the sum of the rank-one projectors of its orthonormal basis vectors. Why: collecting equal eigenvalues converts a basis-dependent sum over vectors into an intrinsic sum over the distinct eigenvalues, making independent of how the degenerate subspace was resolved.
Step 3. Idempotence and orthogonality follow from : expanding kills every cross term, leaving when and otherwise, so . Completeness follows from the eigenbasis spanning the space: . Why: the entire projector algebra is a corollary of one orthonormality relation — it fails for non-normal operators with skew eigenvectors — and is the geometric heart of "the observable has a complete set of states."
Go deeper · Derivation C · 1 minFrom powers to any function of an operator
The goal is to justify the workhorse formula — a function of an operator is that function applied to each eigenvalue — building from the projector algebra through powers and polynomials to any analytic function. This is what reduces , , and from infinite processes to a scalar evaluation on a handful of numbers.
Step 1. Square the spectral form: , since collapses the double sum to its diagonal, and inducting gives for every power. By linearity every polynomial follows: . Why: the cross terms vanishing is the whole mechanism — the eigenspaces never talk to each other, so each eigenvalue is simply raised to the power in place.
Step 2. Sum an analytic term by term: , valid whenever every lies in the disc of convergence. Read off the cases: , (iff all ), . Why: the eigenvalues are ordinary numbers, so an operator series poses no new analytic question — convergence at each is all that is needed, and each function becomes a one-line substitution.
Limiting cases
Whether and how an operator diagonalizes is decided by its internal structure; the cases below run from the most generous to the outright forbidden.
| Case | Result | Meaning |
|---|---|---|
| Distinct eigenvalues | diagonalizable | distinct eigenvalues in dimension force independent eigenvectors — a sufficient, not necessary, guarantee |
| Degenerate but semisimple | with repeats | Repeated eigenvalues are fine as long as the eigenspace is full; the identity has one eigenvalue yet is already diagonal |
| Normal operator | Spectral theorem: an orthonormal eigenbasis exists; covers Hermitian (real ) and unitary () | |
| Defective operator | Too few eigenvectors to span; not diagonalizable, and the Jordan form takes over | |
| Minimal-polynomial test | with distinct factors diagonalizable | The sharp iff criterion: the minimal polynomial must be square-free over the relevant field |
Worked examples
1 · Full spectral decomposition and functional calculus
Take the symmetric matrix with rows and . Find its eigenvalues and eigenprojectors, verify the spectral decomposition, and use it to compute and — quantities that would otherwise require summing an infinite matrix series.
Step 1. Characteristic polynomial: , so the eigenvalues are and . As a check, and . Eigenvalues 3 and 1.
Step 2. Eigenvectors. For : gives , so . For : , so . They are orthogonal, as the spectral theorem demands for a symmetric matrix. Orthonormal eigenbasis at ±45°.
Step 3. Eigenprojectors : , . They satisfy , , , and reassemble as . Spectral decomposition verified.
Step 4. Matrix exponential by functional calculus: . With and , the diagonal entry is and the off-diagonal is , so . Trace check: . e^A computed with no series summation.
Step 5. Principal square root the same way: , giving diagonal and off-diagonal , so . Squaring it returns rows and exactly. Every function of A is one scalar evaluation per eigenvalue.
2 · Diagonalizable or defective? A multiplicity test
Two matrices share the same single eigenvalue 3 with algebraic multiplicity 2. Decide which is diagonalizable: and .
Step 1. Both have characteristic polynomial , so for each. Eigenvalue count alone cannot separate them — the decision lives entirely in the eigenvectors. Same spectrum, different fate.
Step 2. For : , so is the whole plane and ; is already diagonal, diagonalizable despite the repeat. B is semisimple.
Step 3. For : has kernel only the line , so . The eigenvectors cannot span the plane; is defective and no similarity makes it diagonal. C fails the criterion.
Step 4. Confirm by the minimal polynomial: is square-free, but with makes — a repeated root, the sharp signal of defectiveness and the point where the Jordan form takes over. Minimal polynomial agrees: B diagonalizable, C not.
3 · Decoupling a linear system into normal modes
Solve with the matrix of rows and and by projecting onto the eigenbasis.
Step 1. In the eigenbasis the equations decouple, , so with the solution is with , giving and . The eigenvectors are the normal modes — the mode grows like , the mode like . Eigenvectors are the normal modes; eigenvalues are their rates.
Physics of the portrait
The spectral decomposition is where nineteenth-century matrix algebra, integral equations, and quantum mechanics turn out to be one subject. The word that ties them together — spectrum — was coined not for atoms but for the eigenvalues of an operator, by the man who built the space they live in.
Origins · 1 minDavid Hilbert and how this was discovered
The finite-dimensional theorem came first and from elsewhere: Augustin-Louis Cauchy proved in 1829 that every real symmetric matrix has real eigenvalues and an orthogonal eigenbasis — the principal-axis theorem, born from the geometry of quadric surfaces and the secular equations of celestial mechanics. Karl Weierstrass (1868) and Camille Jordan (1870) then mapped the failures, classifying through elementary divisors and the Jordan canonical form when a matrix is defective. But it was David Hilbert who lifted the idea to infinite dimensions and gave it its language. In his 1904–1912 papers on integral equations he studied symmetric kernels as infinite matrices, proved a spectral theorem for them, and borrowed the word Spektrum for their eigenvalues — famously remarking that he had chosen the name with no suspicion it would later attach to the spectra of atoms; the space of square-summable sequences he worked in became "Hilbert space." The circle closed in 1929, when John von Neumann proved the spectral theorem for unbounded self-adjoint operators and made it the spine of quantum mechanics: an observable is its spectral decomposition, its spectrum the possible measurements, its projectors the machinery of collapse. The abstraction Hilbert built for integral equations became the exact language physics needed for the atom.
Going further
Texts. Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 5–6 (matrices, eigenvalue problems) · Hassani, Mathematical Physics, 2nd ed., Ch. 2–4 (operators and the spectral theorem) · Stone & Goldbart, Mathematics for Physics, Ch. on linear algebra and spectral theory · Nakahara, Geometry, Topology and Physics, §2 (linear algebra background) · Byron & Fuller, Mathematics of Classical and Quantum Physics, Ch. 3–4 · Horn & Johnson, Matrix Analysis, Ch. 1–2 (diagonalization, normal matrices, and the spectral theorem). The core results of this article — , , the projector algebra with , the functional calculus , and the spectral theorem — are standard results of linear algebra. The anchor example throughout is the matrix with rows (2, 1) and (1, 2): eigenvalues 3 and 1, projectors , , ; the defective shear with rows (1, 1) and (0, 1) has geometric multiplicity 1. No empirical constants enter.
Prerequisites. Eigenvalues, Eigenvectors, and the Characteristic Equation · Change of Basis and Similarity Transformations · Linear Independence, Basis, and Dimension · Linear Operators and Matrix Representations. Leads to. Adjoint Operators and Hermitian Operators · Unitary and Orthogonal Operators · Jordan Canonical Form and Defective Matrices · Orthogonality and the Gram–Schmidt Process.
Ask the tutor: Ask me to diagonalize any specific matrix, build its eigenprojectors, or compute a function like or step by step, and I will walk the whole spectral decomposition with you.
What is the difference between diagonalization and the spectral decomposition?
They are two encodings of the same fact. Diagonalization is the matrix statement , naming an explicit change-of-basis built from eigenvectors and a diagonal of eigenvalues. The spectral decomposition is basis-free: it expresses as a weighted sum of projectors onto its eigenspaces, no coordinate system chosen. The projector form is more intrinsic — the do not depend on how you order or normalize eigenvectors within a degenerate subspace — and it generalizes cleanly to infinite dimensions and to functions of the operator. For a normal operator the two are related by over an orthonormal basis of the -th eigenspace.
Why do physicists care so much about normal operators specifically?
Because normality () is exactly the condition for an operator to have an orthonormal eigenbasis, and orthonormality is what quantum mechanics needs. Hermitian operators (real eigenvalues, observables), unitary operators (symmetries, time evolution), and anti-Hermitian generators are all normal, so the spectral theorem covers every operator that appears as a physical quantity. The payoff is perpendicular eigenspaces: distinct measurement outcomes live in orthogonal subspaces, projector probabilities are non-negative and sum to one via , and the change of basis is a rigid unitary rotation, not a distorting shear. A non-normal operator may still be diagonalizable, but its eigenvectors are skew and the clean probabilistic reading is lost.
Can a matrix with repeated eigenvalues still be diagonalized?
Yes — repeated eigenvalues are not the problem. The identity has a single eigenvalue repeated times and is already diagonal. What matters is whether each eigenspace is as large as its algebraic multiplicity: you need for every . A degenerate eigenvalue just means several independent eigenvectors share a scale factor, which is fine and common (rotational symmetry produces it). Trouble arises only when an eigenvalue is "short" of eigenvectors, — the defective case handled by the Jordan form. Repeated eigenvalues raise the risk of non-diagonalizability but never cause it by themselves.
How does functional calculus let me compute e^A without an infinite series?
Once you have , any function is applied eigenvalue-by-eigenvalue: . Powers collapse under the projector algebra — because — so the series just sums each scalar series in place. You diagonalize once, exponentiate a few numbers, and reassemble. For the worked matrix gives entries and directly, and the same one-liner delivers (use ), (use ), and — provided is defined on every eigenvalue.
What exactly goes wrong for a defective matrix, and what replaces diagonalization?
A defective matrix has an eigenvalue whose eigenspace is too small — geometric multiplicity below algebraic multiplicity — so its eigenvectors fail to span the space and no eigenbasis exists. The shear with rows (1, 1) and (0, 1) is canonical: eigenvalue 1 twice over, but only the single direction , so no diagonal is possible. The replacement is the Jordan canonical form , with block-diagonal carrying 1's on the superdiagonal that couple generalized eigenvectors. Functional calculus still works, but each Jordan block contributes derivatives of , not just . Defectiveness never happens for normal operators, which is why physics rarely meets it.
Why are the eigenspaces of a Hermitian operator automatically orthogonal?
It follows in two lines from and the reality of Hermitian eigenvalues. Take eigenpairs , with . Comparing with — equal because — gives , and since we conclude . Eigenvectors for distinct eigenvalues are orthogonal; within a degenerate eigenspace you orthonormalize by Gram–Schmidt. The result is a complete orthonormal eigenbasis — the concrete content of the spectral theorem and the reason the diagonalizing is unitary.