Symmetric Matrices, Quadratic Forms, and the SVD/Diagonalization of Symmetric Matrices

Lesson 7.11,044 words

Diagonalization of Symmetric Matrices

A symmetric matrix is one that equals its own transpose. Every such matrix can be diagonalized by an orthogonal change of basis, A = PDPᵀ, with real eigenvalues and perpendicular eigenvectors.

╌╌╌╌

Diagonalization factors a matrix as when it has enough independent eigenvectors. For a general matrix that condition can fail, and even when it holds the eigenvector matrix is usually not convenient: its inverse must be computed, and its columns sit at arbitrary angles. Symmetric matrices avoid both problems at once. They are always diagonalizable, their eigenvectors can always be chosen mutually perpendicular, and the change-of-basis matrix is orthogonal, so its inverse is just its transpose.

For example, and are symmetric; a matrix with but is not.

Eigenvectors of a symmetric matrix are orthogonal

Eigenvectors belonging to different eigenvalues are automatically perpendicular. Nothing like this holds for a general matrix.

The proof turns the symmetry into a statement about the dot product. Let be eigenvectors for distinct eigenvalues . Using and moving across the product with its transpose,

The middle equality is the only place symmetry enters. Rearranging, , and since the eigenvalues cancel, forcing . For a general matrix, distinct eigenvalues give only independent eigenspaces; symmetry makes them orthogonal.

A symmetric matrix stretches space along perpendicular axes: the unit circle maps to an ellipse whose axes lie along the orthogonal eigenvectors, scaled by the eigenvalues.

Orthogonal diagonalizability

An orthogonal matrix has orthonormal columns, which is equivalent to , so its inverse is .1 When the eigenvector matrix can be chosen orthogonal, diagonalization needs no inverse.

The condition does more than simplify computation; it characterizes symmetry. One direction is immediate: if , then

using for a diagonal matrix. So an orthogonally diagonalizable matrix must be symmetric. The converse is the harder and more useful statement.

For a general matrix, deciding diagonalizability requires inspecting eigenvalue multiplicities case by case. For symmetric matrices the question is settled in advance by a glance at the entries.

The Spectral Theorem

The orthogonal-diagonalizability theorem is one part of a larger statement. The set of eigenvalues of is its spectrum, and the Spectral Theorem collects four properties of a real symmetric matrix.

Property (a) says the characteristic polynomial of a real symmetric matrix has no complex roots, so the spiral dynamics of complex eigenvalues never occur here. Property (b) rules out the defect that blocks diagonalization in the general case: a symmetric matrix never runs short of eigenvectors. Property (c) is the orthogonal-eigenspaces theorem. Together they guarantee (d): assemble an orthonormal basis inside each eigenspace, and because eigenspaces are orthogonal, the pooled set is an orthonormal eigenvector basis for .

Orthogonal diagonalization sends A to a pure scaling D in the eigenvector coordinates: read into the eigenbasis by Pᵀ, scale each axis by its eigenvalue, then read back out by P.

Distinct eigenvalues

When the eigenvalues are distinct, the eigenvectors are automatically orthogonal and only normalization remains.

Repeated eigenvalues

When an eigenvalue is repeated, the eigenvectors returned by row reduction span the right space but need not be perpendicular to one another. Gram–Schmidt applied inside the eigenspace repairs this.

Inside a repeated eigenspace the raw eigenvectors need not be perpendicular; Gram–Schmidt subtracts the projection of v₂ onto v₁ to produce z₂ ⟂ v₁ spanning the same plane.

Spectral decomposition

Writing and expanding the product columnwise expresses as a sum of one-term contributions, one per eigenpair. Let the columns of be the orthonormal eigenvectors and the diagonal of the eigenvalues . The column–row rule for a product gives

Each term is an matrix of rank one: every column is a scalar multiple of . More is true. The matrix is the orthogonal projection onto the line spanned by , because for any ,

which reproduces the projection formula for a unit vector. So the spectral decomposition resolves into projections onto its eigenvector axes, each scaled by its eigenvalue. Applying to a vector projects onto each axis, rescales by , and sums.

Spectral decomposition stacks A out of rank-one projection layers: each uᵢuᵢᵀ projects onto one eigenvector axis, scaled by its eigenvalue λᵢ.

The three ways to hold a symmetric matrix each expose a different fact about it.

FormExpressionWhat it exposes
Entries with symmetry, at a glance
Orthogonal diagonalizationeigenvalues and perpendicular axes
Spectral decompositionrank-one projection structure

Orthogonality and computation

The eigenvalues of a symmetric matrix are computed by applying a sequence of similarity transformations built from orthogonal matrices, driving toward diagonal form while its diagonal entries converge to the eigenvalues. Because orthogonal matrices preserve lengths, rounding errors do not accumulate the way they can under a general similarity, so the process is numerically stable. When is symmetric the orthogonal factors multiply together into a single orthogonal matrix whose columns are the eigenvectors. A nonsymmetric matrix has no full orthogonal eigenvector set, so after its eigenvalues are found the eigenvectors require separate, less stable work. The numerical eigenvalue methods develop this computation in detail.

Two closure properties fall directly out of the theory. If is symmetric then is symmetric, since ; and if is orthogonally diagonalizable then so is , with the eigenvalues squared and the same eigenvectors. The eigenvector axes are fixed by ; powers of only rescale the stretch along them.

Footnotes

  1. Lay, §6.2 — Orthogonal Sets: a square matrix with orthonormal columns satisfies , hence , and such a matrix preserves lengths and dot products.

╌╌ END ╌╌