Advanced Mathematics

The Spectral Theorem

Every real symmetric matrix has real eigenvalues and perpendicular eigenvectors, so it is just stretching along perpendicular axes.

Needs a step first: 12

If A=ATA=A^{\mathsf T}, you can always choose an orthonormal basis of eigenvectors, so A=QΛQTA=Q\Lambda Q^{\mathsf T} with QQ orthogonal and Λ\Lambda diagonal. Geometrically: turn, stretch along the axes, turn back. Symmetric matrices appear wherever something is measured in pairs: covariance matrices, second derivatives (the Hessian), quadratic forms. The complex version, for Hermitian matrices, is why quantum observables take real values and their distinct states are perpendicular.

Where it shows up: PCA diagonalises a covariance matrix this way, and the eigenvalues of the Hessian tell an optimiser whether it sits in a valley or at a saddle.

How to hold it: In your head

See a symmetric matrix as turn, stretch along perpendicular axes, turn back, and know why covariance matrices, Hessians and quantum observables all have this form.

What knowing it looks like

  • Orthogonally diagonalise a 2×22\times2 symmetric matrix as QΛQTQ\Lambda Q^{\mathsf T}.
  • Use the eigenvalues to classify a quadratic form and name the curve ax2+2bxy+cy2=kax^2+2bxy+cy^2=k.
  • Explain why eigenvectors of a symmetric matrix for different eigenvalues must be perpendicular.

Test yourself

Write A=(222−1)A=\begin{pmatrix}2&2\\2&-1\end{pmatrix} as QΛQTQ\Lambda Q^{\mathsf T} with QQ orthogonal, and say what curve 2x2+4xy−y2=62x^2+4xy-y^2=6 is.
Show the worked answer
Trace 11, determinant −6-6: λ2−λ−6=0\lambda^2-\lambda-6=0, so λ=3\lambda=3 or −2-2. For 33: −x+2y=0-x+2y=0, eigenvector (2,1)(2,1); for −2-2: 4x+2y=04x+2y=0, eigenvector (1,−2)(1,-2). They are perpendicular, so Q=15(211−2)Q=\tfrac1{\sqrt5}\begin{pmatrix}2&1\\1&-2\end{pmatrix} and Λ=(300−2)\Lambda=\begin{pmatrix}3&0\\0&-2\end{pmatrix}. The curve is xTAx=6\mathbf x^{\mathsf T}A\mathbf x=6; in coordinates u,vu,v along the unit eigenvectors it becomes 3u2−2v2=63u^2-2v^2=6, that is u22−v23=1\tfrac{u^2}{2}-\tfrac{v^2}{3}=1: a hyperbola whose axis runs along (2,1)(2,1).

Needs a step first: 12

Learn it with an AI

Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.

Be my maths tutor. I'm learning "The Spectral Theorem" (Undergraduate II tier): Every real symmetric matrix has real eigenvalues and perpendicular eigenvectors, so it is just stretching along perpendicular axes.
I already know: Eigenvalues and Eigenvectors, Orthogonality and Projections.
Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away.
Finish by testing me with this: Write $A=\begin{pmatrix}2&2\\2&-1\end{pmatrix}$ as $Q\Lambda Q^{\mathsf T}$ with $Q$ orthogonal, and say what curve $2x^2+4xy-y^2=6$ is.
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.

On the way to

Recommended