4.5.38Linear Algebra (Full)

Symmetric matrices — spectral theorem (real eigenvalues, orthogonal eigenvectors)

1,758 words8 min readdifficulty · medium6 backlinks

WHAT is the theorem?

The decomposition A=QΛQA = Q\Lambda Q^\top is called the spectral decomposition. Written out as a sum: A=i=1nλiqiqiA = \sum_{i=1}^{n} \lambda_i\, \mathbf{q}_i \mathbf{q}_i^\top each qiqi\mathbf{q}_i\mathbf{q}_i^\top is a rank-1 projection onto the ii-th eigen-axis, scaled by λi\lambda_i.

Figure — Symmetric matrices — spectral theorem (real eigenvalues, orthogonal eigenvectors)

WHY are the eigenvalues real? (Derivation from scratch)

We do NOT assume eigenvalues are real — we prove it. Suppose Ax=λxA\mathbf{x} = \lambda\mathbf{x} with possibly complex λ\lambda and x0\mathbf{x}\neq\mathbf{0}. Let xˉ\bar{\mathbf{x}} be the complex conjugate and use the conjugate transpose x=xˉ\mathbf{x}^* = \bar{\mathbf{x}}^\top.

Step 1 — Form the scalar xAx\mathbf{x}^* A \mathbf{x}. xAx=x(λx)=λ(xx)\mathbf{x}^* A \mathbf{x} = \mathbf{x}^*(\lambda \mathbf{x}) = \lambda\,(\mathbf{x}^*\mathbf{x}) Why this step? Plugging in Ax=λxA\mathbf{x}=\lambda\mathbf{x} pulls λ\lambda out front. Here xx=xi2>0\mathbf{x}^*\mathbf{x} = \sum |x_i|^2 > 0 is a positive real number.

Step 2 — Take the conjugate transpose of the same scalar. A 1×11\times1 quantity equals its own conjugate transpose: (xAx)=xAx.(\mathbf{x}^* A \mathbf{x})^* = \mathbf{x}^* A^* \mathbf{x}. Since AA is real and symmetric, A=Aˉ=A=AA^* = \bar{A}^\top = A^\top = A. So (xAx)=xAx.(\mathbf{x}^* A \mathbf{x})^* = \mathbf{x}^* A \mathbf{x}. Why this step? Symmetry + realness is exactly what makes xAx\mathbf{x}^*A\mathbf{x} equal to its own conjugate — i.e. it is a real number.

Step 3 — Compare. From Step 1, xAx=λ(xx)\mathbf{x}^*A\mathbf{x} = \lambda(\mathbf{x}^*\mathbf{x}), and its conjugate is λˉ(xx)\bar\lambda(\mathbf{x}^*\mathbf{x}). Since the value is real: λ(xx)=λˉ(xx)    (λλˉ)(xx)=0.\lambda(\mathbf{x}^*\mathbf{x}) = \bar\lambda(\mathbf{x}^*\mathbf{x}) \implies (\lambda - \bar\lambda)(\mathbf{x}^*\mathbf{x}) = 0. Because xx>0\mathbf{x}^*\mathbf{x} > 0, we get λ=λˉ\lambda = \bar\lambda, so λR\boxed{\lambda \in \mathbb{R}}. ∎


WHY are eigenvectors orthogonal? (Derivation from scratch)

Take two eigenpairs with distinct eigenvalues: Au=λuA\mathbf{u} = \lambda\mathbf{u}, Av=μvA\mathbf{v} = \mu\mathbf{v}, λμ\lambda \neq \mu.

Step 1 — Compute uAv\mathbf{u}^\top A \mathbf{v} two ways. uAv=u(μv)=μ(uv).\mathbf{u}^\top A \mathbf{v} = \mathbf{u}^\top(\mu \mathbf{v}) = \mu\,(\mathbf{u}^\top \mathbf{v}). Why? Apply AA to v\mathbf{v} on the right.

Step 2 — Move AA to the left using symmetry. uAv=(Au)v=(Au)v=(λu)v=λ(uv).\mathbf{u}^\top A \mathbf{v} = (A^\top \mathbf{u})^\top \mathbf{v} = (A\mathbf{u})^\top \mathbf{v} = (\lambda\mathbf{u})^\top\mathbf{v} = \lambda\,(\mathbf{u}^\top\mathbf{v}). Why? uA=(Au)\mathbf{u}^\top A = (A^\top\mathbf{u})^\top, and A=AA^\top = A lets us apply AA to u\mathbf{u} instead.

Step 3 — Equate. μ(uv)=λ(uv)    (λμ)(uv)=0.\mu(\mathbf{u}^\top\mathbf{v}) = \lambda(\mathbf{u}^\top\mathbf{v}) \implies (\lambda - \mu)(\mathbf{u}^\top\mathbf{v}) = 0. Since λμ\lambda\neq\mu, we must have uv=0\mathbf{u}^\top\mathbf{v} = 0, i.e. uv\mathbf{u}\perp\mathbf{v}. ∎


WHY does A=QΛQA = Q\Lambda Q^\top follow?

Stack the orthonormal eigenvectors as columns of QQ, so QQ=IQ^\top Q = I (i.e. Q1=QQ^{-1}=Q^\top). The eigen-equations Aqi=λiqiA\mathbf{q}_i = \lambda_i\mathbf{q}_i packed together read: AQ=QΛ(column i is Aqi=λiqi).AQ = Q\Lambda \quad\text{(column }i\text{ is }A\mathbf{q}_i = \lambda_i\mathbf{q}_i). Right-multiply by Q1=QQ^{-1} = Q^\top: A=QΛQ.\boxed{A = Q\Lambda Q^\top.} Why this is special: a general diagonalizable matrix gives A=PΛP1A = P\Lambda P^{-1} with P1PP^{-1}\neq P^\top. Symmetry upgrades P1P^{-1} to QQ^\top — that's the orthogonality bonus.


Worked Examples


Forecast-then-Verify


Common Mistakes (Steel-manned)


Flashcards

What two properties does the Spectral Theorem guarantee for a real symmetric matrix?
All eigenvalues are real, and eigenvectors of distinct eigenvalues are orthogonal (⇒ orthogonal diagonalization).
Write the orthogonal diagonalization form.
A=QΛQA = Q\Lambda Q^\top with QQ=IQ^\top Q = I and Λ\Lambda diagonal of eigenvalues.
Why are the eigenvalues of a symmetric matrix real?
Because xAx\mathbf{x}^*A\mathbf{x} equals its own conjugate (using A=AA^*=A), forcing λ=λˉ\lambda=\bar\lambda.
Key algebra step proving eigenvectors orthogonal?
μ(uv)=λ(uv)\mu(\mathbf{u}^\top\mathbf{v})=\lambda(\mathbf{u}^\top\mathbf{v}), so (λμ)(uv)=0(\lambda-\mu)(\mathbf{u}^\top\mathbf{v})=0, hence uv=0\mathbf{u}^\top\mathbf{v}=0 when λμ\lambda\neq\mu.
Spectral sum form of AA?
A=iλiqiqiA=\sum_i \lambda_i\,\mathbf{q}_i\mathbf{q}_i^\top (scaled orthogonal projectors).
Are symmetric matrices with repeated eigenvalues still diagonalizable?
Yes — eigenspaces always have full dimension; symmetric matrices are never defective.
What relation makes QQ orthogonal?
Its columns are orthonormal eigenvectors, so Q=Q1Q^\top = Q^{-1}.
For a general (non-symmetric) matrix, are eigenvectors orthogonal?
No — orthogonality is a special property of symmetric/normal matrices.

Recall Feynman: explain to a 12-year-old

Imagine a stretchy rubber sheet. Most ways of pulling it would also twist and skew it. But a "symmetric" pull is special: it only stretches along certain straight lines — and those lines always cross each other at perfect right angles, like a clean grid. The amount of stretch along each line is the "eigenvalue," and the directions are the "eigenvectors." The Spectral Theorem just says: for these nice pulls, the stretch amounts are ordinary numbers (never weird imaginary ones), and the stretch directions are always neatly perpendicular. So you can always tilt your graph paper to line up with them and the whole thing becomes super simple.

Connections

Concept Map

guarantees

guarantees

proof uses xstar A x is real

orthonormalized into

fill diagonal of Lambda

columns are eigenvectors

expands as

each term is

geometric meaning

satisfies Q transpose Q = I

Symmetric matrix A = A transpose

Real eigenvalues

Orthogonal eigenvectors

Orthogonal matrix Q

Spectral decomposition A = Q Lambda Q transpose

Sum of lambda qi qiT

Rank-1 projections onto eigen-axes

Stretch along perpendicular axes

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, symmetric matrix (jahan A=AA = A^\top, yaani diagonal ke aar-paar mirror image same hai) linear algebra ki sabse "sweet" matrix hai. Iska kaam sirf itna hai: space ko kuch perpendicular directions ke saath stretch karna — na koi ghumao (rotation), na koi tedha shear. Yeh perpendicular directions hi eigenvectors hain aur jitna stretch hota hai woh eigenvalues (λ\lambda) hain. Spectral Theorem ka promise: symmetric matrix ke saare eigenvalues real honge (kabhi imaginary nahi), aur alag-alag eigenvalues ke eigenvectors hamesha 90 degree par honge.

Real eigenvalues kyun? Hum xAx\mathbf{x}^* A \mathbf{x} scalar banate hain. Symmetry ki wajah se yeh apne conjugate ke barabar ho jata hai, matlab woh ek

Go deeper — visual, from zero

Test yourself — Linear Algebra (Full)

Connections