Part 0 · The Toolkit — Chapter 0.5

Inner Products, Eigenvectors, and the Spectral Theorem

Quantum mechanics, four parts early, with the physics stripped off.

Where we are

Here is the stake, stated as plainly as it can be stated. Every postulate of quantum mechanics is a statement about Hermitian operators on an inner-product space. Not modelled by. Not analogous to. Is. Measurement outcomes are eigenvalues. States are unit vectors. Time evolution is a unitary map. Compatible observables are commuting operators. Take the physics away and what is left is a chapter of linear algebra, and it is this one.

So we are going to prove that chapter of linear algebra now, four parts early, with no physics attached whatsoever. No wavefunctions, no \hbar, no measurement. By the end you will have proved, with no mention of physics anywhere in the argument, that a certain class of operators has only real eigenvalues, and that eigenvectors belonging to different eigenvalues are exactly perpendicular. Chapter 4.2 announces that measurement results are real numbers and that distinct outcomes are perfectly distinguishable. When it does, you will already have the proof. That makes Chapter 4.2 a translation exercise: a table of renamings, not a new subject.

That is the whole design of this book compressed into one chapter. The mathematics is not scaffolding erected to support the physics. It is the physics, wearing different words.

Tools you'll need  — Chapter 0.1: nothing beyond fluency. Chapter 0.3: Euler's formula eiθ=cosθ+isinθ\ee^{\ii\theta}=\cos\theta+ \ii\sin\theta, and power series. Chapter 0.4: vector spaces, basis and dimension, linear maps and their matrices, change of basis, determinant, trace, and the fact that over C\C every square matrix has at least one eigenvalue. Everything here is built on those.

1 · Inner products

A vector space as Chapter 0.4 left it is a bleak place. You can add vectors and scale them, and that is all. There is no length, no angle, no notion of two vectors pointing in different directions. Every geometric word you know is missing.

An inner product is the single extra structure that puts all of them back at once. Let's see what it has to look like, and why it has no freedom in the matter.

1.1 · Why the axioms look the way they do

You already have an inner product in Rn\R^{n}, namely the dot product uv=iuivi\vv{u}\cdot\vv{v}=\sum_i u_i v_i. Its essential property is that vv=ivi2\vv{v}\cdot\vv{v}=\sum_i v_i^{2} is the squared length: a non-negative number that vanishes only for the zero vector.

Now try to carry that same formula over to Cn\C^{n} unchanged. It breaks immediately. Take v=(1,i)v=(1,\ii) in C2\C^{2} and add up the squares of the components:

ivi2  =  12+i2  =  11  =  0, \sum_i v_i^{2} \;=\; 1^{2} + \ii^{2} \;=\; 1 - 1 \;=\; 0, (0.5.1)

and yet v0v\neq0. A non-zero vector with zero length is useless to us. We would lose the ability to say that two states are different, and telling states apart is the one job a length has to do.

So the formula needs repair, and there is exactly one repair available. Replace vi2v_i^{2} by vi2=vˉivi\abs{v_i}^{2}=\bar v_i v_i, which is non-negative for every complex number and zero only when vi=0v_i=0. That forces the complex inner product to conjugate one of its two arguments. Everything below is bookkeeping around that single fact.

An inner product on a complex vector space VV is a map V×VCV\times V\to\C, written u,v\avg{u,v}, satisfying three axioms.

(i) conjugate symmetry:u,v=v,u,(ii) linearity in slot 2:u,αv+βw=αu,v+βu,w,(iii) positive definiteness:v,v>0  for all v0. \begin{aligned} \textbf{(i) conjugate symmetry:}\quad & \avg{u,v} = \overline{\avg{v,u}},\\[4pt] \textbf{(ii) linearity in slot 2:}\quad & \avg{u,\alpha v+\beta w} = \alpha\avg{u,v}+\beta\avg{u,w},\\[4pt] \textbf{(iii) positive definiteness:}\quad & \avg{v,v}\gt 0 \ \text{ for all } v\neq 0. \end{aligned} (0.5.2)

Three remarks follow, in increasing order of importance.

Axiom (iii) is not quite well posed until (i) is used. Writing "v,v>0\avg{v,v}\gt0" presumes that v,v\avg{v,v} is real, and that is a consequence rather than an assumption. Set u=vu=v in (i) and you get v,v=v,v\avg{v,v}=\overline{\avg{v,v}}. A complex number equal to its own conjugate is real. So the axioms are consistent, and we derived the fact rather than assuming it.

Linearity in one slot forces conjugate-linearity in the other. We only demanded linearity in the second argument. The first is then determined, and conjugate symmetry shows it in one line:

αu,v  =  v,αu  =  αv,u  =  αˉv,u  =  αˉu,v. \avg{\alpha u,v} \;=\; \overline{\avg{v,\alpha u}} \;=\; \overline{\alpha\avg{v,u}} \;=\; \bar\alpha\,\overline{\avg{v,u}} \;=\; \bar\alpha\avg{u,v}. (0.5.3)

Pull a scalar out of the second slot and it comes out unchanged. Pull it out of the first and it comes out conjugated. This asymmetry is real and you have to keep track of it. It is also the reason the notation of §2 exists.

The convention. Which slot is the linear one is pure convention, and the two communities chose differently. Mathematicians make the first slot linear. Physicists make the second. We have chosen the physics convention above and will keep it for the whole book. The reason is Chapter 4.2, where ϕ,ψ\avg{\phi,\psi} becomes a probability amplitude, read right-to-left as "amplitude to find ψ\psi in state ϕ\phi". The linear slot had better be the one holding the state that is actually evolving. If you open a mathematics text and every formula appears to have its conjugates on the wrong side, this is why.

1.2 · The standard examples

SpaceInner productWhere it turns up
Rn\R^{n}iuivi\sum_i u_i v_iOrdinary geometry; least squares (§3)
Cn\C^{n}iuˉivi\sum_i \bar u_i v_iSpin, qubits, any finite quantum system (4.12)
Rn\R^{n}, weightediwiuivi\sum_i w_i u_i v_i, wi>0w_i\gt0Weighted regression; χ2\chi^{2} fitting
Functions on [a,b][a,b]abf(x)g(x)dx\int_a^b \overline{f(x)}\,g(x)\,\dd xFourier series (0.9); wavefunctions (4.3)
n×nn\times n matricestr(AB)\operatorname{tr}(A^{\dagger}B)Density matrices (4.19)

The fourth row is the one to test, because it is the one that will matter most later. Check it against the axioms and you will find nothing new is needed. Conjugate symmetry holds because gˉf=fˉg\overline{\int \bar g f} = \int \bar f g. Linearity in the second slot holds because integration is linear. Positive definiteness holds because f20\int\abs{f}^{2}\ge0, with equality only if f0f\equiv0.

That row is the entire reason Chapter 4.3 is possible. A space of functions is an inner-product space, and every theorem of this chapter will try to move there. Some of them survive the trip. Some need repair, and the warning at the end of §6 says which ones and why.

1.3 · Length, distance, and the angle we cannot yet define

An inner product is all we need in order to say how long a vector is and how far apart two vectors are. So define the norm and the distance:

v    v,v,d(u,v)    uv. \left\lVert v\right\rVert \;\equiv\; \sqrt{\avg{v,v}}, \qquad d(u,v) \;\equiv\; \left\lVert u-v\right\rVert. (0.5.4)

Both are well defined. We showed above that v,v\avg{v,v} is real and non-negative, so the square root is a real number. Call uu and vv orthogonal when u,v=0\avg{u,v}=0. That relation is symmetric, since v,u=u,v=0\avg{v,u}=\overline{\avg{u,v}}=0 as well, so it does not matter which vector you name first.

Now let's see what the three axioms hand us for free. Expand the squared norm of a sum, using nothing but the axioms, and the generalised Pythagoras drops out:

u+v2=u2+v2+2Reu,v, \left\lVert u+v\right\rVert^{2} = \left\lVert u\right\rVert^{2} + \left\lVert v\right\rVert^{2} + 2\,\mathrm{Re}\avg{u,v}, (0.5.5)

The reason is that u+v,u+v=u,u+u,v+v,u+v,v\avg{u+v,u+v}=\avg{u,u}+\avg{u,v}+\avg{v,u}+\avg{v,v}, and the middle two terms are conjugates of each other, so they add to twice the real part. When uvu\perp v the cross term dies and u+v2=u2+v2\left\lVert u+v\right\rVert^{2}=\left\lVert u\right\rVert^{2}+\left\lVert v\right\rVert^{2}. That is Pythagoras, in any dimension, over C\C, derived in one line from three axioms.

Now the angle. In Rn\R^{n} you were told that cosθ=uv/(uv)\cos\theta = \vv{u}\cdot\vv{v}/(\left\lVert u\right\rVert\left\lVert v\right\rVert), and we would like to define the angle that way in general. A definition is only legal if the right-hand side lands in [1,1][-1,1], and nothing we have written down so far guarantees that it does. Proving it is the next item, and it is much more than a technicality.

1.4 · The Cauchy–Schwarz inequality

The claim is that for all u,vu,v in an inner-product space,

  u,v2    u,uv,v   \boxed{\;\abs{\avg{u,v}}^{2} \;\le\; \avg{u,u}\,\avg{v,v}\;} (0.5.6)

with equality exactly when uu and vv are parallel.

The proof rests on one idea. Positivity of a norm is an infinite supply of inequalities, and we get to choose which one to use. Whatever λC\lambda\in\C we pick, axiom (iii) guarantees that

0    uλv,  uλv. 0 \;\le\; \avg{u-\lambda v,\;u-\lambda v}. (0.5.7)

That statement is true for every λ\lambda, which is a great deal of information. To get at it we have to see the λ\lambda explicitly, so expand the right-hand side, remembering that the first slot conjugates by (0.5.3) and the second does not:

uλv,uλv=u,uλu,vλˉv,u+λ2v,v=u,u2Re ⁣(λu,v)+λ2v,v, \begin{aligned} \avg{u-\lambda v,u-\lambda v} &= \avg{u,u} - \lambda\avg{u,v} - \bar\lambda\avg{v,u} + \abs{\lambda}^{2}\avg{v,v}\\[4pt] &= \avg{u,u} - 2\,\mathrm{Re}\!\left(\lambda\avg{u,v}\right) + \abs{\lambda}^{2}\avg{v,v}, \end{aligned} (0.5.8)

where the two middle terms combined because λˉv,u=λu,v\bar\lambda\avg{v,u}=\overline{\lambda\avg{u,v}}.

Now let's spend the freedom we have been saving. This quantity is non-negative for every λ\lambda, so it is non-negative for the λ\lambda that makes it smallest, and that is the choice worth making. Assume first that v0v\neq0. (If v=0v=0 then both sides of (0.5.6) are zero and there is nothing to prove.) Then take

λ  =  v,uv,v  =  u,vv,v. \lambda \;=\; \frac{\avg{v,u}}{\avg{v,v}} \;=\; \frac{\overline{\avg{u,v}}}{\avg{v,v}}. (0.5.9)

With that choice, λu,v=u,v2/v,v\lambda\avg{u,v} = \abs{\avg{u,v}}^{2}/\avg{v,v}, which is real and non-negative, and λ2v,v\abs{\lambda}^{2}\avg{v,v} comes out to the same thing. Substituting both into (0.5.8), the two copies partially cancel:

0    u,u2u,v2v,v+u,v2v,v  =  u,uu,v2v,v. 0 \;\le\; \avg{u,u} - \frac{2\abs{\avg{u,v}}^{2}}{\avg{v,v}} + \frac{\abs{\avg{u,v}}^{2}}{\avg{v,v}} \;=\; \avg{u,u} - \frac{\abs{\avg{u,v}}^{2}}{\avg{v,v}}. (0.5.10)

Multiply through by v,v>0\avg{v,v}\gt0 and you have (0.5.6). Equality holds precisely when the quantity in (0.5.7) is zero, which is to say when u=λvu=\lambda v. That is exactly the statement that the two vectors are parallel.

So the angle is now legal. Divide (0.5.6) by u2v2\left\lVert u\right\rVert^{2}\left\lVert v\right\rVert^{2} and it says u,v/(uv)1\abs{\avg{u,v}}/(\left\lVert u\right\rVert\left\lVert v\right\rVert)\le1, so we may define

cosθ    Reu,vuv    [1,1]. \cos\theta \;\equiv\; \frac{\mathrm{Re}\avg{u,v}}{\left\lVert u\right\rVert\,\left\lVert v\right\rVert} \;\in\;[-1,1]. (0.5.11)
Grind box — the triangle inequality, and what λ\lambda was

The triangle inequality falls out. Start from (0.5.5) and bound the cross term. Two facts do it, applied in order: Rezz\mathrm{Re}\,z\le\abs{z}, and then Cauchy–Schwarz.

u+v2=u2+v2+2Reu,vu2+v2+2uv=(u+v)2. \begin{aligned} \left\lVert u+v\right\rVert^{2} &= \left\lVert u\right\rVert^{2}+\left\lVert v\right\rVert^{2}+2\,\mathrm{Re}\avg{u,v}\\[3pt] &\le \left\lVert u\right\rVert^{2}+\left\lVert v\right\rVert^{2}+2\left\lVert u\right\rVert\left\lVert v\right\rVert = \big(\left\lVert u\right\rVert+\left\lVert v\right\rVert\big)^{2}. \end{aligned}

Taking square roots gives u+vu+v\left\lVert u+v\right\rVert\le\left\lVert u\right\rVert+\left\lVert v\right\rVert. Every metric-space fact you have ever used about these spaces descends from this line, and this line descends from (0.5.6).

What the magic λ\lambda was. It looks pulled from a hat. It is not. Minimise (0.5.8) honestly and it appears on its own. Write λ=tu,v\lambda = t\,\overline{\avg{u,v}} with tt real, so that λu,v=tu,v2\lambda\avg{u,v}=t\abs{\avg{u,v}}^{2} is real. Then the expression is a real quadratic in tt:

q(t)=u,u2tu,v2+t2u,v2v,v, q(t) = \avg{u,u} - 2t\abs{\avg{u,v}}^{2} + t^{2}\abs{\avg{u,v}}^{2}\avg{v,v},

and a real quadratic is minimised where its derivative vanishes, so set that derivative to zero:

q(t)=0    t=1v,v, q'(t) = 0 \;\Longrightarrow\; t = \frac{1}{\avg{v,v}},

which reproduces (0.5.9) exactly. And the minimising vector λv=v,uv,vv\lambda v = \dfrac{\avg{v,u}}{\avg{v,v}}\,v is precisely the orthogonal projection of uu onto the line through vv, which is the subject of §3. So Cauchy–Schwarz is the statement that a projection is never longer than the thing being projected. Everything in this chapter is one geometric picture seen from different angles.

An alternative proof, for the file. If u=v=1\left\lVert u\right\rVert=\left\lVert v\right\rVert=1 then 0ueiφv2=22Re(eiφu,v)0\le\left\lVert u-\ee^{\ii\varphi}v\right\rVert^{2}=2-2\,\mathrm{Re}(\ee^{\ii\varphi}\avg{u,v}). Choose φ\varphi to be minus the argument of u,v\avg{u,v}, which rotates that product onto the positive real axis, and the real part becomes u,v\abs{\avg{u,v}}, which gives u,v1\abs{\avg{u,v}}\le1 directly. The general case follows by rescaling. Same idea, with phase doing the work instead of magnitude.

This inequality is the uncertainty principle

Chapter 4.9 will prove that for any two observables AA and BB measured on a state ψ\psi,

ΔAΔB    12[A,B]. \Delta A\,\Delta B \;\ge\; \tfrac12\abs{\avg{[A,B]}}.

and the proof there is (0.5.6) applied to a particular pair of vectors built out of the state and the two observables, namely

u=(AA)ψ,v=(BB)ψ, u = (A-\avg{A})\psi, \qquad v = (B-\avg{B})\psi,

followed by one line splitting u,v\avg{u,v} into its real and imaginary parts. That is the entire derivation. Nothing is added in Chapter 4.9 except the physical meaning of the symbols.

Let's say what that means without softening it. The Heisenberg uncertainty principle is the single most quoted statement in twentieth-century physics, the one that gets prose written about the limits of human knowledge. It is Cauchy–Schwarz. You have just proved it. The only thing still missing is permission to say what the letters mean.

In plain terms 0.5.1

Until now the space has had no geometry in it whatever: no lengths, no angles, no way of saying that two directions differ rather than merely being labelled differently. An inner product restores all of that in one stroke, and the question it answers is how much of one vector lies along another. Over the complex numbers the definition is obliged to conjugate one of its two arguments, and that is forced rather than chosen, because without the conjugation a perfectly respectable non-zero vector can be assigned zero length, and the ability to tell two states apart would be lost on the first page.

Out of three short axioms comes an inequality stating that the overlap between two vectors can never exceed the product of their lengths, with equality only when the two are parallel. It has the air of housekeeping. What it actually does is make the word angle legal in a setting where no angles had been defined, and it will do considerably more than that.

Worth saying plainly now, because it is later dressed up beyond recognition. That inequality, applied to two particular vectors assembled from a state and a pair of measurements, is the uncertainty principle. The most quoted sentence of twentieth-century physics is a statement about overlaps, and nothing is added to it afterwards except an interpretation of the letters.

2 · Orthonormal bases

Chapter 0.4 showed that any basis lets you write every vector uniquely in coordinates. It also showed that finding those coordinates means solving a linear system, which is work. With an inner product in hand, one class of basis makes that work vanish altogether.

A set {e1,,en}\{e_1,\dots,e_n\} is orthonormal if

ei,ej  =  δij  =  {1,i=j0,ij. \avg{e_i,e_j} \;=\; \delta_{ij} \;=\; \begin{cases}1,& i=j\\ 0,& i\neq j.\end{cases} (0.5.12)

Orthonormal sets are automatically linearly independent, so in dimension nn any nn of them form a basis. Here is the one-line reason. Suppose iciei=0\sum_i c_i e_i=0, and take ej,\avg{e_j,\cdot} of both sides. Linearity in the second slot gives iciej,ei=cj=0\sum_i c_i\avg{e_j,e_i}=c_j=0 for every jj, so every coefficient vanishes.

That same computation is the payoff, so let's run it again on a vector we actually care about. Write any v=icieiv=\sum_i c_i e_i and hit it with ej,\avg{e_j,\cdot}:

ej,v  =  ej, iciei  =  iciδji  =  cj, \avg{e_j,v} \;=\; \Big\langle e_j,\ \textstyle\sum_i c_i e_i\Big\rangle \;=\; \sum_i c_i\,\delta_{ji} \;=\; c_j, (0.5.13)

The double sum has collapsed to a single term, and the jj-th coefficient has fallen out on its own with nothing solved. Renaming the index, that gives the expansion we will use for the rest of the book:

  v  =  iei,vei   \boxed{\;v \;=\; \sum_i \avg{e_i,v}\,e_i\;} (0.5.14)

Coordinates have become inner products. There is no system to solve and no matrix to invert. To find the ii-th coordinate you take one inner product. This is the single practical reason orthonormal bases dominate physics.

Notice also that the physics convention is already paying for itself. Because the second slot is the linear one, ei,v\avg{e_i,v} is the coefficient exactly, with no stray conjugate attached to it.

Two more consequences follow, and both come from the same move. Substitute (0.5.14) into an inner product, then use (0.5.12) to collapse the resulting double sum:

u,v=iei,uei,v,v2=iei,v2. \avg{u,v} = \sum_i \overline{\avg{e_i,u}}\,\avg{e_i,v}, \qquad \left\lVert v\right\rVert^{2} = \sum_i \abs{\avg{e_i,v}}^{2}. (0.5.15)

The second of those is Parseval's identity: the squared length of a vector is the sum of the squared magnitudes of its coordinates. The words "in an orthonormal basis" are load-bearing here, and the identity is false without them.

It is worth knowing now where Parseval gets spent, because it gets spent twice. In Chapter 0.9 the eie_i become the Fourier modes, and Parseval becomes the statement that total energy equals the sum of the energies in each mode. In Chapter 4.2 the ei,v2\abs{\avg{e_i,v}}^{2} become probabilities, and Parseval becomes the statement that they add to one.

2.1 · Gram–Schmidt: orthonormal bases always exist

The formulae above are worthless if orthonormal bases are rare. They are not rare, and what proves it is a recipe rather than an existence argument. Given any basis {v1,,vn}\{v_1,\dots,v_n\}, the following procedure manufactures an orthonormal one. Set

wk  =  vki<kei,vkei,ek  =  wkwk, w_k \;=\; v_k - \sum_{i\lt k}\avg{e_i,v_k}\,e_i, \qquad e_k \;=\; \frac{w_k}{\left\lVert w_k\right\rVert}, (0.5.16)

running k=1,2,,nk=1,2,\dots,n in order. For k=1k=1 the sum is empty, so e1=v1/v1e_1=v_1/\left\lVert v_1\right\rVert. In words: take the next vector, subtract off everything it has in common with the directions already fixed, and normalise what is left.

Grind box — why Gram–Schmidt works, line by line

Three things must be checked: that we never divide by zero, that the output is orthonormal, and that it spans the same space. All three come from one induction hypothesis:

HkH_k:   {e1,,ek}\{e_1,\dots,e_k\} is orthonormal and span{e1,,ek}=span{v1,,vk}\mathrm{span}\{e_1,\dots,e_k\}=\mathrm{span}\{v_1,\dots,v_k\}.

Base case. v10v_1\neq0 because it belongs to a basis, so v10\left\lVert v_1\right\rVert\neq0 and e1=v1/v1e_1=v_1/\left\lVert v_1\right\rVert is a unit vector spanning the same line. H1H_1 holds.

No division by zero. Assume Hk1H_{k-1}. If wkw_k were 00, then by (0.5.16) vk=i<kei,vkeiv_k=\sum_{i\lt k}\avg{e_i,v_k}e_i would lie in span{e1,,ek1}=span{v1,,vk1}\mathrm{span}\{e_1,\dots,e_{k-1}\}=\mathrm{span}\{v_1,\dots,v_{k-1}\}. That contradicts the linear independence of the vv's. So wk0w_k\neq0 and eke_k is defined.

Orthogonality. For any j<kj\lt k, take the inner product of (0.5.16) with eje_j and use ej,ei=δji\avg{e_j,e_i}=\delta_{ji}:

ej,wk=ej,vki<kei,vkδji=ej,vkej,vk=0. \avg{e_j,w_k} = \avg{e_j,v_k} - \sum_{i\lt k}\avg{e_i,v_k}\,\delta_{ji} = \avg{e_j,v_k}-\avg{e_j,v_k} = 0.

Exactly one term of the sum survives, and it is exactly the term that cancels. Dividing by wk\left\lVert w_k\right\rVert preserves this, so ekeje_k\perp e_j for all j<kj\lt k, and ek=1\left\lVert e_k\right\rVert=1 by construction.

Same span. From (0.5.16), eke_k is a combination of vkv_k and earlier ee's, hence of v1,,vkv_1,\dots,v_k. Rearranged, the same equation says vkv_k is a combination of e1,,eke_1,\dots,e_k. So each set spans the other's span, HkH_k holds, and induction completes the proof at k=nk=n. \blacksquare

Two consequences worth naming. First, every finite-dimensional inner-product space has an orthonormal basis, so the theorems below never have to assume one exists. Second, Gram–Schmidt is triangular: eke_k involves only v1,,vkv_1,\dots,v_k. Write that relationship as a matrix statement and you get V=QRV=QR, with QQ having orthonormal columns and RR upper triangular. That is the QR decomposition, and it is how a computer actually solves the least-squares problem of §3.

2.2 · Dirac notation, introduced where it is harmless

We now install the notation that Chapter 4.2 will use for everything. It is standard to meet it in the middle of learning quantum mechanics, where it acquires an entirely undeserved mystique. It is a piece of pure linear algebra and there is nothing in it. Here it is.

Write a vector vVv\in V as v\ket{v}, a ket. Now fix a vector uu and consider the map that sends any ww to the number u,w\avg{u,w}. By axiom (ii) that map is linear in ww, so it is a linear functional, an element of the space VV^{*} of linear maps VCV\to\C. (That space is itself a vector space, since sums and scalar multiples of linear maps are linear.) Call the functional u\bra{u}, a bra. Then:

u applied to v    uv  =  u,v    C. \bra{u}\ \text{applied to}\ \ket{v} \;\equiv\; \avg{u|v} \;=\; \avg{u,v} \;\in\; \C. (0.5.17)

The bracket closes, and a closed bracket is a number.

Now leave the bracket open instead, and see what kind of object comes back. Define uv\ket{u}\bra{v} to be the map that acts on w\ket{w} by applying v\bra{v} first and using the resulting number to scale u\ket{u}:

(uv)w    uvw  =  v,wu. \big(\ket{u}\bra{v}\big)\ket{w} \;\equiv\; \ket{u}\avg{v|w} \;=\; \avg{v,w}\,u. (0.5.18)

Is that a linear map? Check it: wv,wuw\mapsto \avg{v,w}u is linear in ww because v,\avg{v,\cdot} is, so yes. So the outer product uv\ket{u}\bra{v} is an operator, while the inner product uv\avg{u|v} is a number. In coordinates with respect to an orthonormal basis, the distinction is one you already know from Chapter 0.4:

(uˉ1uˉn)u (row)(v1vn)v (column)=1×1,uv=an n×n. \underbrace{\begin{pmatrix}\bar u_1 & \cdots & \bar u_n\end{pmatrix}}_{\bra{u}\ \text{(row)}} \underbrace{\begin{pmatrix}v_1\\ \vdots\\ v_n\end{pmatrix}}_{\ket{v}\ \text{(column)}} = \text{a } 1\times1, \qquad \ket{u}\bra{v} = \text{an } n\times n. (0.5.19)

Row times column is a number. Column times row is a matrix. That is the whole content.

Dirac notation is a device for making the type of an object visible in its shape. You can tell at a glance whether an expression is a scalar or an operator, without tracking any dimensions. Note also, from (0.5.3), that the map uuu\mapsto\bra{u} is conjugate-linear: αu=αˉu\bra{\alpha u}=\bar\alpha\bra{u}. The conjugates in (0.5.19) are that fact written out in coordinates.

2.3 · Completeness: the resolution of the identity

Now rewrite the expansion (0.5.14) in the new notation. Its coefficient ei,v\avg{e_i,v} is eiv\avg{e_i|v}, so

v  =  ieieiv  =  (ieiei)v. \ket{v} \;=\; \sum_i \ket{e_i}\avg{e_i|v} \;=\; \left(\sum_i \ket{e_i}\bra{e_i}\right)\ket{v}. (0.5.20)

The regrouping in the second step is legal by (0.5.18). Since this holds for every v\ket{v}, the operator in brackets acts as the identity on every vector. And two linear maps that agree on every vector are equal, so we may drop the v\ket{v} from both sides:

  ieiei  =  I^   \boxed{\;\sum_i \ket{e_i}\bra{e_i} \;=\; \hat I\;} (0.5.21)

This is the completeness relation, also called the resolution of the identity. It says the basis is not missing any directions. Reconstruct any vector from its components and you get the vector back, with nothing left over.

It is used constantly, and always in the same way. You insert I^\hat I into the middle of an expression in the form (0.5.21), and a hard object turns into a sum of easy ones. Chapter 4.2 does this on nearly every page. So does Chapter 0.9, where the sum becomes an integral over a continuum of modes.

In plain terms 0.5.2

Not all descriptions cost the same, and the difference is large enough to change what is worth attempting. In a general basis, finding the coordinates of a vector means solving a system of equations. Choose the basis so that its members are mutually perpendicular and each of unit length, and the work disappears: every coordinate is a single overlap, computed on its own, without reference to any of the others. Nothing has been approximated. This is why perpendicular bases dominate physics so thoroughly that people forget the other kind exists.

Two consequences arrive immediately. The squared length of a vector becomes the sum of the squared sizes of its coordinates, which later says that the total energy of a vibrating string is the sum of the energies in its modes, and later still that a set of probabilities adds to one. And the claim that the basis has missed no direction can be written as an operation which, inserted anywhere in an expression, changes nothing, so that a difficult object breaks into a sum of easy ones without being altered.

None of it would matter if such bases were rare. They are not. Take any basis at all, subtract from each new vector everything it shares with the directions already settled, and rescale what survives. The procedure never fails, so no theorem ahead has to assume its raw material exists.

3 · Projection, and why least squares is a right angle

Let WVW\subseteq V be a subspace, meaning a subset closed under addition and scalar multiplication. Such a set is a vector space in its own right, and it inherits VV's inner product unchanged. By Gram–Schmidt it has an orthonormal basis {f1,,fm}\{f_1,\dots,f_m\}, and that basis is all we need in order to define the orthogonal projection onto WW:

P  =  j=1mfjfj,soPv=jfj,vfj. P \;=\; \sum_{j=1}^{m}\ket{f_j}\bra{f_j}, \qquad\text{so}\qquad Pv = \sum_j \avg{f_j,v}\,f_j. (0.5.22)

Compare that with (0.5.21). It is the same construction, truncated. We keep only the directions inside WW and throw the rest away.

Three properties follow, and all three are derived rather than assumed.

PP lands in WW and fixes WW. PvPv is visibly a combination of the fjf_j, so PvWPv\in W. And if wWw\in W then (0.5.14) applied inside WW says w=jfj,wfj=Pww=\sum_j\avg{f_j,w}f_j=Pw. Put those two together. For any vv at all, the vector PvPv lies in WW, so applying PP to it again changes nothing, P(Pv)=PvP(Pv)=Pv. In symbols,

P2=P. P^{2} = P. (0.5.23)

Projecting something that has already been projected does nothing. That is what "projection" means, and (0.5.23) is the algebraic form of it.

PP is symmetric under the inner product. To see it, expand both sides with (0.5.22) and watch them meet in the middle:

Pu,v=ju,fjfj,v=u,Pv. \avg{Pu,v} = \sum_j \avg{u,f_j}\avg{f_j,v} = \avg{u,Pv}. (0.5.24)

The first equality uses conjugate-linearity in slot 1, in the form fj,u=u,fj\overline{\avg{f_j,u}}=\avg{u,f_j}. In §4 this property will be written P=PP^{\dagger}=P.

The residual is orthogonal to WW. The residual is what the projection threw away, so take its inner product with each basis vector of WW in turn. For each jj,

fj,vPv=fj,vfj,v=0, \avg{f_j,\,v-Pv} = \avg{f_j,v} - \avg{f_j,v} = 0, (0.5.25)

so vPvfjv-Pv\perp f_j for every jj. That is enough to give vPvWv-Pv\perp W entirely, because an inner product with any combination of the fjf_j is the corresponding combination of zeros.

3.1 · Projection is the closest point — proved

Now the theorem that makes projection useful rather than merely tidy.

Claim: for every wWw\in W, vwvPv\left\lVert v-w\right\rVert\ge\left\lVert v-Pv\right\rVert, with equality only for w=Pvw=Pv.

We want to compare an arbitrary ww against PvPv, so the move is to write the vector vwv-w in terms of PvPv. Add and subtract it:

vw  =  (vPv)W  +  (Pvw)W. v-w \;=\; \underbrace{(v-Pv)}_{\perp\, W} \;+\; \underbrace{(Pv-w)}_{\in\, W}. (0.5.26)

The first piece is orthogonal to WW by (0.5.25). The second lies in WW, because both PvPv and ww do. So the two pieces are orthogonal to each other, which means Pythagoras (0.5.5) applies with no cross term at all:

vw2  =  vPv2+Pvw2. \left\lVert v-w\right\rVert^{2} \;=\; \left\lVert v-Pv\right\rVert^{2} + \left\lVert Pv-w\right\rVert^{2}. (0.5.27)

Let's look at what that last line is actually saying. The first term on the right does not depend on ww in any way. The second is non-negative, and it vanishes only when w=Pvw=Pv. So the minimum is attained there and nowhere else. \blacksquare

Read (0.5.27) once more. It says "nearest point" and "perpendicular residual" are the same condition. Not similar, not related: the same. Every optimisation problem that turns out to have a linear-algebra answer is this theorem in disguise.

You have just derived least squares

Fit yXβy \approx X\beta, with yRny\in\R^{n} the outcomes, XX the n×pn\times p design matrix, and β\beta the coefficients to be chosen. Minimising the residual sum of squares means minimising yXβ2\left\lVert y-X\beta\right\rVert^{2}, which is a squared distance in Rn\R^{n} with the ordinary inner product.

As β\beta ranges over all of Rp\R^{p}, the vector XβX\beta ranges over exactly the column space of XX, the subspace spanned by the predictors. So the problem is this: find the point of that subspace closest to yy. By the theorem just proved, the answer is the orthogonal projection, and it is characterised by the residual being perpendicular to the subspace. Perpendicular to the subspace means perpendicular to every column of XX, and writing that down gives

X ⁣(yXβ^)=0X ⁣ ⁣Xβ^=X ⁣y. X^{\!\top}(y-X\hat\beta)=0 \quad\Longleftrightarrow\quad X^{\!\top}\!X\hat\beta = X^{\!\top}y.

Those are the normal equations, and the word "normal" in their name has always meant "perpendicular". Solving them gives β^=(X ⁣ ⁣X)1X ⁣y\hat\beta=(X^{\!\top}\!X)^{-1}X^{\!\top}y and y^=Hy\hat y = Hy with H=X(X ⁣ ⁣X)1X ⁣H = X(X^{\!\top}\!X)^{-1}X^{\!\top}. That is the "hat matrix" of every regression output you have ever read, and it satisfies H2=HH^{2}=H and H ⁣=HH^{\!\top}=H because it is the projection PP of (0.5.22).

One more line pays a dividend. If XX contains an intercept column, the constant vector lies in the column space, so (0.5.27) applied to v=yyˉ1v = y-\bar y\mathbf{1} gives

yyˉ12total SS=y^yˉ12explained SS+yy^2residual SS. \underbrace{\left\lVert y-\bar y\mathbf{1}\right\rVert^{2}}_{\text{total SS}} = \underbrace{\left\lVert \hat y-\bar y\mathbf{1}\right\rVert^{2}}_{\text{explained SS}} + \underbrace{\left\lVert y-\hat y\right\rVert^{2}}_{\text{residual SS}}.

The ANOVA decomposition is Pythagoras' theorem. And R2R^{2} is the squared cosine of the angle between the centred outcome vector and its projection. Regression is trigonometry in nn dimensions.

In plain terms 0.5.3

Suppose you are stranded outside some subspace and want the point of it nearest to you. Keep the parts of your vector lying along that subspace's own perpendicular directions and discard everything else, and what you kept is the nearest point, uniquely so. The proof is Pythagoras used once. What is left over is perpendicular to the subspace, the error committed by choosing any other point lies inside the subspace, and two perpendicular pieces add as squares, so wandering away can only add.

The sentence to carry off is that nearest point and perpendicular leftover are not two conditions that happen to agree. They are one condition. Every optimisation problem whose answer turns out to be linear algebra is this fact wearing a costume.

The most familiar costume is ordinary least squares. Fitting a model means choosing the combination of predictors closest to the observed outcomes; the combinations you can reach form a subspace; the fitted values are therefore the projection of the data onto it. The equations defining the fit assert that the residual is perpendicular to every predictor, which is why the word normal in their name has always meant perpendicular. The decomposition of variance printed at the foot of every regression table is Pythagoras with the right angle at the fitted values.

4 · The adjoint

Every operator on an inner-product space has a partner. What defines the partner is not a formula in coordinates but a piece of behaviour: how it interacts with the inner product.

Definition. The adjoint AA^{\dagger} of a linear map A:VVA:V\to V is the linear map satisfying

  Au,v  =  u,Avfor all u,vV.   \boxed{\;\avg{Au,\,v} \;=\; \avg{u,\,A^{\dagger}v}\qquad\text{for all }u,v\in V.\;} (0.5.28)

Read it as a rule for moving an operator across the comma, and note that doing so costs you a dagger. No basis appears anywhere in (0.5.28), and that is the point. The adjoint is a property of AA and the inner product, not of any coordinate system.

A definition by behaviour owes us two checks: that such a map exists at all, and that there is only one of them. Both are short.

It is unique. Suppose BB and CC both satisfy (0.5.28). Then u,(BC)v=0\avg{u,(B-C)v}=0 for every uu and vv. We get to choose uu, so choose u=(BC)vu=(B-C)v. This gives (BC)v2=0\left\lVert (B-C)v\right\rVert^{2}=0, so (BC)v=0(B-C)v=0 for every vv, so B=CB=C.

It exists. Fix an orthonormal basis and define AviAei,veiA^{\dagger}v \equiv \sum_i\avg{Ae_i,v}\,e_i. This is linear in vv, because the inner product is linear in slot 2. Now expand uu via (0.5.14) and compute the left-hand side of the definition:

Au,v=iei,uAei,v=u, iAei,vei, \avg{Au,v} = \sum_i \overline{\avg{e_i,u}}\,\avg{Ae_i,v} = \Big\langle u,\ \textstyle\sum_i \avg{Ae_i,v}e_i\Big\rangle, (0.5.29)

The right-hand side of that chain is u,Av\avg{u,A^{\dagger}v}, which is what (0.5.28) asked for. Existence and uniqueness settled, in five lines.

4.1 · In an orthonormal basis it is the conjugate transpose

Chapter 0.4 defined the matrix of AA by Aej=iAijeiA e_j = \sum_i A_{ij}e_i. Take ei,\avg{e_i,\cdot} of that and use (0.5.12), and you get a formula worth remembering: Aij=ei,AejA_{ij}=\avg{e_i,Ae_j}. A matrix element is an inner product.

Now compute the matrix of AA^{\dagger} the same way. Use (0.5.28) to move the operator across the comma, then conjugate symmetry to turn the result around:

(A)ij=ei,Aej=Aei,ej=ej,Aei=Aji. (A^{\dagger})_{ij} = \avg{e_i,A^{\dagger}e_j} = \avg{Ae_i,e_j} = \overline{\avg{e_j,Ae_i}} = \overline{A_{ji}}. (0.5.30)

So AA^{\dagger} is the conjugate transpose: transpose the matrix and conjugate the entries. That familiar recipe is not the definition. It is what the definition (0.5.28) looks like once you commit to an orthonormal basis. Note the hypothesis, because it is an easy one to lose. In a non-orthonormal basis (0.5.30) is flatly false.

Three algebraic rules follow immediately from (0.5.28), each by moving operators across the comma one at a time:

(A)=A,(αA)=αˉA,(AB)=BA. (A^{\dagger})^{\dagger} = A, \qquad (\alpha A)^{\dagger} = \bar\alpha A^{\dagger}, \qquad (AB)^{\dagger} = B^{\dagger}A^{\dagger}. (0.5.31)

The last one is worth doing out loud, since it is the one people misremember: ABu,v=Bu,Av=u,BAv\avg{ABu,v}=\avg{Bu,A^{\dagger}v}=\avg{u,B^{\dagger}A^{\dagger}v}, and uniqueness does the rest. The order reverses, exactly as it does for the transpose and the inverse. One more rule gets used constantly below and is derived the same way: (uv)=vu\big(\ket{u}\bra{v}\big)^{\dagger}=\ket{v}\bra{u}.

4.2 · The three species of operator

NameConditionWhat it is for
Hermitian (self-adjoint)A=AA^{\dagger}=AObservables. §6 is about these
UnitaryUU=I^U^{\dagger}U=\hat ISymmetries, time evolution, change of orthonormal basis
NormalAA=AAAA^{\dagger}=A^{\dagger}AThe largest class that can be diagonalised orthonormally

Both Hermitian and unitary operators are normal. For a Hermitian operator the reason is that AA=A2=AAAA^{\dagger}=A^{2}=A^{\dagger}A. For a unitary one it takes an extra step: UU=I^U^{\dagger}U=\hat I implies, in finite dimensions, that UU is invertible with U1=UU^{-1}=U^{\dagger}, and therefore UU=I^UU^{\dagger}=\hat I as well.

For a Hermitian matrix, (0.5.30) says Aij=AjiA_{ij}=\overline{A_{ji}}. Read that entry by entry. The diagonal entries are real, and entries across the diagonal are conjugates of each other. A real Hermitian matrix is nothing but a symmetric matrix.

4.3 · Unitary maps preserve all geometry

This is a two-line calculation with large consequences. We want to know what UU does to an inner product, so move UU across the comma using its defining property and watch it cancel. If UU=I^U^{\dagger}U=\hat I then for any u,vu,v:

Uu,Uv  =  u,UUv  =  u,v. \avg{Uu,Uv} \;=\; \avg{u,U^{\dagger}Uv} \;=\; \avg{u,v}. (0.5.32)

The inner product is untouched, and everything geometric follows from that one line. Setting v=uv=u gives Uu=u\left\lVert Uu\right\rVert=\left\lVert u\right\rVert, so lengths are preserved. Feeding both facts into (0.5.11) leaves cosθ\cos\theta unchanged, so angles are preserved too. And taking u,vu,v from an orthonormal basis shows {Uei}\{Ue_i\} is again orthonormal, so unitary maps are exactly the maps that carry orthonormal bases to orthonormal bases.

A real unitary matrix satisfies U ⁣U=IU^{\!\top}U=I, which is precisely an orthogonal matrix, meaning a rotation or a reflection. Unitary is the complex analogue of rotation. Hold that next to the last section of Chapter 0.3, where eiθ\ee^{\ii\theta} turned out to be a rotation of the plane. The connection is not an analogy, and §7 will make it an identity.

Here is where this goes. In Chapter 4.6 the state of a quantum system evolves by ψ(t)=U(t)ψ(0)\ket{\psi(t)}=U(t)\ket{\psi(0)}, and U(t)U(t) must be unitary because ψ2=1\left\lVert \psi\right\rVert^{2}=1 is a total probability and probabilities have to keep summing to one. Equation (0.5.32) is that requirement written in linear algebra, and it is the reason time evolution in quantum mechanics is a rotation rather than a flow that stretches.

In plain terms 0.5.4

Every map acquires a partner the moment its space has an inner product, and the partner is specified by a piece of behaviour rather than by a recipe. It is the map you substitute when you want to shift an operator from one side of an overlap to the other. No basis is mentioned anywhere in that description, which is exactly what makes it worth having. The familiar instruction to transpose an array and conjugate its entries is not the definition; it is what the definition looks like after you commit to a perpendicular basis, and in any other basis it is false.

Three kinds of map are then singled out by how each sits beside its partner. One kind is its own partner. A second has a partner that undoes it. A third merely commutes with its partner, and is the widest family for which the next section's conclusions survive at all.

The second kind earns a word now. A map whose partner undoes it leaves every overlap exactly as it found it, so it alters no length and no angle, and it carries perpendicular bases to perpendicular bases. It is the complex counterpart of a rigid rotation. That is why evolution in time, in any theory where a total probability must stay equal to one, has no choice about what kind of map it is.

5 · Eigenvalues and eigenvectors

A linear map generally does two things at once to a vector. It turns the vector, and it rescales it. Some directions are special, and they are the ones where only the second thing happens.

Definition. A non-zero vv is an eigenvector of AA with eigenvalue λ\lambda if

Av  =  λv. Av \;=\; \lambda v. (0.5.33)

Geometrically, vv spans a direction the map does not turn. It only stretches it, by the factor λ\lambda. A negative λ\lambda flips it, and a complex λ\lambda means, as we will see in a moment, that no such real direction exists at all. The requirement v0v\neq0 is essential, since A0=λ0A0=\lambda 0 holds for every λ\lambda and would make the definition vacuous.

To find these directions we need something we can solve, so rewrite (0.5.33) as (AλI^)v=0(A-\lambda\hat I)v=0. A non-zero solution exists exactly when AλI^A-\lambda\hat I fails to be invertible, which by Chapter 0.4 happens exactly when its determinant vanishes. So the eigenvalues are the roots of the characteristic polynomial:

p(λ)  =  det ⁣(AλI^)  =  0. p(\lambda) \;=\; \det\!\big(A-\lambda \hat I\big) \;=\; 0. (0.5.34)

Expanding the determinant of an n×nn\times n matrix produces a polynomial of degree nn in λ\lambda, with leading term (λ)n(-\lambda)^{n}. Which numbers you are allowed to use now matters enormously. Over R\R a polynomial need not have any roots at all, since λ2+1\lambda^{2}+1 has none, and correspondingly a real matrix can have no real eigenvectors whatsoever. A rotation of the plane turns every direction, so none is preserved. Over C\C this cannot happen. As recorded in Chapter 0.4, every non-constant polynomial has a complex root, so

every operator on a complex vector space has at least one eigenvalue. \text{every operator on a complex vector space has at least one eigenvalue.} (0.5.35)

That single sentence is why quantum mechanics is built over C\C and not R\R, and it is the hypothesis that makes §6 work.

Two pieces of vocabulary before we go on. The set of eigenvectors for a given λ\lambda, together with 00, forms the eigenspace Eλ=ker(AλI^)E_\lambda=\ker(A-\lambda\hat I), a subspace of dimension at least one. An eigenvalue whose eigenspace has dimension greater than one is called degenerate.

5.1 · Seeing it

Before proving anything, look at the phenomenon. The figure below applies a 2×22\times2 real matrix to every vector on the unit circle. The image is an ellipse. Take that as observed for the moment, since §6 will prove it, and the proof turns out to be the spectral theorem itself. A rotating input vector is drawn together with its image, and the eigen-directions are marked, meaning the angles at which input and image become parallel.

θ = 62.00°
c = 0.000
A = [ 2.000 0.866 ; 0.866 1.000 ]
λ = 2.500, 0.500 eigen-directions 30.0°, 120.0° → 90.0° apart
∠(v, Av) = 24.88°
The spectral theorem, made visible. Dashed grey is the unit circle of inputs; blue is its image under AA. Purple is the input v(θ)v(\theta), blue the image Av(θ)Av(\theta), and the arc between them is the angle by which AA turns that direction — the readout gives it, and it is exactly zero on an eigen-direction (green and orange lines; use the snap button). Start symmetric. The two eigen-directions are 9090^{\circ} apart. Now raise the skew cc, which adds an antisymmetric piece to the same matrix: they tilt toward each other — 6060^{\circ} at c=0.5c=0.5, and at c=1c=1 they collide into a single direction, leaving a 2×22\times2 matrix with only a one-dimensional eigenspace. Past c=1c=1 they are gone entirely. The rotation preset is the extreme case: every direction turns by the same 5050^{\circ} and no real eigenvector exists anywhere. Perpendicularity is not a feature of matrices in general. It is a feature of symmetric ones, and §6 explains why.

The figure's whole behaviour comes out of one small computation, and it is worth doing so that the sliders stop being magic. Write the family it uses as a symmetric matrix plus an antisymmetric one:

A(c)=(ab+cbcd),trA=a+d,detA=adb2+c2, A(c) = \begin{pmatrix} a & b+c\\ b-c & d\end{pmatrix}, \qquad \operatorname{tr}A = a+d, \quad \det A = ad-b^{2}+c^{2}, (0.5.36)

The eigenvalues are the roots λ=12(trA±D)\lambda = \tfrac12\big(\operatorname{tr}A \pm\sqrt{\mathcal D}\big) of the quadratic (0.5.34), so what decides whether they are real is the discriminant. Form it:

D=(trA)24detA=(ad)2+4b24c2. \mathcal{D} = (\operatorname{tr}A)^{2}-4\det A = (a-d)^{2}+4b^{2}-4c^{2}. (0.5.37)

At c=0c=0 the discriminant is a sum of squares. It is therefore non-negative, and the eigenvalues of a real symmetric 2×22\times2 matrix are always real. That is a preview of §6(a).

Turning on cc eats into the discriminant, and the eigenvalues stay real only until c2=(ad2)2+b2c^{2}=\big(\tfrac{a-d}{2}\big)^{2}+b^{2}, which is exactly the squared half-gap between the eigenvalues of the symmetric part. In the figure a=2a=2, b=3/2b=\sqrt3/2, d=1d=1, so the symmetric matrix has eigenvalues 2.52.5 and 0.50.5 and a half-gap of 11. The collapse therefore happens at c=1c=1, which is what the button does.

In plain terms 0.5.5

Turning and rescaling are what a map does to a vector at once, and the directions in which the turning stops are where the map is at its most legible. Locating them comes down to asking when the map, with a multiple of the identity subtracted from it, stops being invertible, since only then can something non-zero be sent to nothing. That condition is the vanishing of a determinant, which converts the search into finding the roots of a polynomial.

What the polynomial returns depends on which numbers you permit, exactly as the previous chapter warned. It depends on the map too, in a way better watched than read about. Begin with a symmetric object and its two special directions stand at right angles. Add an antisymmetric piece and they lean towards one another, meeting and merging at a definite amount of skew, beyond which they are gone altogether and nothing is left unturned.

That behaviour is what the remainder of the chapter accounts for. Perpendicular special directions are not a general property of maps and may never be assumed; they belong to symmetric ones specifically, and the symmetry does every bit of the work. Notice which way the dependence runs, because an enormous amount will later be resting on it.

6 · The spectral theorem

This is the centre of the chapter and of Part 0. Everything before it was preparation, and a great deal after it is consequence. The theorem comes in three parts, and we take them in order.

6.1 · (a) Hermitian ⇒ every eigenvalue is real

Let A=AA^{\dagger}=A and Av=λvAv=\lambda v with v0v\neq0. Since AA is Hermitian, the defining property (0.5.28) reads Au,w=u,Aw\avg{Au,w}=\avg{u,Aw}. We want a statement about λ\lambda on its own, so apply that with u=w=vu=w=v and evaluate each side using (0.5.33):

λˉv,v  =  λv,v  =  Av,v  =  v,Av  =  v,λv  =  λv,v. \bar\lambda\avg{v,v} \;=\; \avg{\lambda v,v} \;=\; \avg{Av,v} \;=\; \avg{v,Av} \;=\; \avg{v,\lambda v} \;=\; \lambda\avg{v,v}. (0.5.38)

The first step used conjugate-linearity in slot 1, and the last used linearity in slot 2. Since v0v\neq0, axiom (iii) gives v,v>0\avg{v,v}\gt0, so we may divide by it:

λˉ=λλR. \bar\lambda = \lambda \qquad\Longrightarrow\qquad \lambda\in\R. (0.5.39)

Three lines. The entire asymmetry between the two slots of the inner product has been converted into a statement that a number is real.

6.2 · (b) Hermitian ⇒ eigenvectors with distinct eigenvalues are orthogonal

Let Av=λvAv=\lambda v and Aw=μwAw=\mu w with λμ\lambda\neq\mu, both real by (a). We want to show that v,w=0\avg{v,w}=0, and the route there is to compute one quantity in two different ways. Take v,Aw\avg{v,Aw}:

v,Aw=v,μw=μv,w,v,Aw=Av,w=λv,w=λˉv,w=λv,w. \begin{aligned} \avg{v,Aw} &= \avg{v,\mu w} = \mu\avg{v,w},\\[3pt] \avg{v,Aw} &= \avg{Av,w} = \avg{\lambda v,w} = \bar\lambda\avg{v,w} = \lambda\avg{v,w}. \end{aligned} (0.5.40)

The last step is where reality is spent, since it needs λˉ=λ\bar\lambda=\lambda from (a). The two expressions have to agree, so subtract one from the other:

(μλ)v,w=0v,w=0, (\mu-\lambda)\avg{v,w} = 0 \qquad\Longrightarrow\qquad \avg{v,w}=0, (0.5.41)

since μλ0\mu-\lambda\neq0. Different eigenvalues force exactly perpendicular eigenvectors, not merely independent ones. Nothing was assumed about AA except A=AA^{\dagger}=A.

6.3 · (c) The theorem

The spectral theorem (finite-dimensional, Hermitian)

Let AA be a Hermitian operator on a finite-dimensional complex inner-product space VV. Then VV has an orthonormal basis consisting of eigenvectors of AA, with real eigenvalues λ1,,λn\lambda_1,\dots,\lambda_n, and

A  =  i=1nλieiei. A \;=\; \sum_{i=1}^{n}\lambda_i\,\ket{e_i}\bra{e_i}.

Before the proof, let's look at what that last equation says. Compare it with completeness (0.5.21). The identity is ieiei\sum_i\ket{e_i}\bra{e_i}, and AA is the same sum with the terms weighted by the eigenvalues. An operator that would be complicated in a random basis is, in its own eigenbasis, nothing but a list of numbers attached to a list of perpendicular directions.

Grant the orthonormal eigenbasis for a moment, and the formula is immediate. Both sides are linear maps, so it is enough to check that they agree on every basis vector, and they do:

(iλieiei)ej=iλieiδij=λjej=Aej, \Big(\sum_i\lambda_i\ket{e_i}\bra{e_i}\Big)\ket{e_j} = \sum_i\lambda_i\ket{e_i}\delta_{ij} = \lambda_j\ket{e_j} = A\ket{e_j}, (0.5.42)

By Chapter 0.4, two linear maps agreeing on a basis are equal. So the work is entirely in producing the basis, and producing it is what the grind box does.

Grind box — the induction proof of the spectral theorem

We induct on n=dimVn=\dim V. The claim to be proved at each stage is: every Hermitian operator on an nn-dimensional complex inner-product space has an orthonormal basis of eigenvectors.

Base case n=1n=1. Pick any unit vector e1e_1. It spans VV, so Ae1Ae_1 is a multiple of it, Ae1=λ1e1Ae_1=\lambda_1 e_1. Done, and λ1\lambda_1 is real by part (a).

Step 1, get one eigenvector. Let dimV=n2\dim V = n\ge2 and assume the claim in dimension n1n-1. Because VV is complex, (0.5.35) supplies an eigenvalue λ1\lambda_1 and an eigenvector, which we normalise to a unit vector e1e_1. By (a), λ1R\lambda_1\in\R.

Step 2, pass to the orthogonal complement. The plan is to peel off the line through e1e_1 and apply the induction hypothesis to whatever is left, so define

W  =  e1  =  {wV:e1,w=0}. W \;=\; e_1^{\perp} \;=\; \{\,w\in V : \avg{e_1,w}=0\,\}.

It is a subspace, because e1,\avg{e_1,\cdot} is linear. It inherits the inner product of VV and every axiom still holds on a subset, so WW is a complex inner-product space in its own right. We claim dimW=n1\dim W = n-1. To see it, split any vVv\in V using the projection of §3 onto the line through e1e_1:

v  =  e1,ve1span{e1}  +  (ve1,ve1)W, v \;=\; \underbrace{\avg{e_1,v}\,e_1}_{\in\,\mathrm{span}\{e_1\}} \;+\; \underbrace{\big(v-\avg{e_1,v}e_1\big)}_{\in\,W},

and the second bracket lies in WW by (0.5.25). So if {f2,,fm}\{f_2,\dots,f_m\} is any basis of WW, then {e1,f2,,fm}\{e_1,f_2,\dots,f_m\} spans VV. It is also independent: applying e1,\avg{e_1,\cdot} to a vanishing combination αe1+jβjfj=0\alpha e_1+\sum_j\beta_jf_j=0 kills every fjf_j term and leaves α=0\alpha=0, after which the independence of the fjf_j forces every βj=0\beta_j=0. So it is a basis, and since dimension is well defined (Chapter 0.4), 1+dimW=n1+\dim W = n.

Step 3, AA maps WW into WW. This is the step that uses Hermiticity, and it is the hinge of the whole proof. For wWw\in W,

e1,Aw=Ae1,w=λ1e1,w=λ1e1,w=0, \avg{e_1,Aw} = \avg{Ae_1,w} = \avg{\lambda_1 e_1,w} = \lambda_1\avg{e_1,w} = 0,

using A=AA^{\dagger}=A in the first step and λˉ1=λ1\bar\lambda_1=\lambda_1 in the third. So AwWAw\in W, which is to say the restriction AWA|_{W} is a genuine operator on WW. Without Hermiticity this fails. A general operator does not preserve the orthogonal complement of one of its eigenvectors, and the induction dies right here. That is precisely why the figure in §5 loses its perpendicular eigen-directions the moment you break the symmetry.

Step 4, the restriction is still Hermitian. For u,wWu,w\in W, the defining property is inherited verbatim, because it is a statement about inner products of vectors that all lie in WW:

AWu,w=Au,w=u,Aw=u,AWw. \avg{A|_{W}u,\,w} = \avg{Au,w} = \avg{u,Aw} = \avg{u,\,A|_{W}w}.

Step 5, induct. By the induction hypothesis WW has an orthonormal basis e2,,ene_2,\dots,e_n of eigenvectors of AWA|_{W}. But AWA|_{W} acts as AA does, so these are eigenvectors of AA. Each lies in WW, hence is orthogonal to e1e_1, and they are orthonormal among themselves. So {e1,e2,,en}\{e_1,e_2,\dots,e_n\} is an orthonormal set of nn eigenvectors in an nn-dimensional space, which makes it a basis. \blacksquare

What was used. Exactly three things: that C\C guarantees an eigenvalue (0.5.35), that Hermiticity makes the orthogonal complement invariant, and that the property survives restriction. Remove any one of the three and the theorem is false.

6.4 · Degeneracy, and the honest statement

Nothing above assumed the eigenvalues were distinct, so let's ask what happens when they are not. If λ\lambda is degenerate, the induction hands you several basis vectors with the same eigenvalue, and any orthonormal basis of the eigenspace EλE_\lambda will do. The choice is not unique, and no theorem prefers one. What is unique is the eigenspace itself.

That suggests writing the decomposition in terms of eigenspaces rather than eigenvectors, since only the eigenspaces are forced on us. Group the terms by distinct eigenvalue λk\lambda_k and write PkP_k for the projection onto EλkE_{\lambda_k}:

A=kλkPk,PkPl=δklPk,kPk=I^. A = \sum_k \lambda_k P_k, \qquad P_kP_l = \delta_{kl}P_k, \qquad \sum_k P_k = \hat I. (0.5.43)

The middle identity holds because eigenvectors from different eigenspaces are orthogonal by (b). The right-hand one is completeness (0.5.21), regrouped. This is the basis-independent form, and it is the one that survives to infinite dimensions in Chapter 4.5.

Finally, the matrix version. Assemble the orthonormal eigenvectors as the columns of a matrix UU. Orthonormality of the columns is exactly the statement UU=I^U^{\dagger}U=\hat I, so UU is unitary, and Aei=λieiAe_i=\lambda_ie_i for every column reads AU=UDAU=UD. We want AA by itself, so multiply on the right by U1=UU^{-1}=U^{\dagger}:

A=UDU,D=diag(λ1,,λn), λiR. A = U D U^{\dagger}, \qquad D = \operatorname{diag}(\lambda_1,\dots,\lambda_n),\ \lambda_i\in\R. (0.5.44)

In the language of Chapter 0.4 this is a change of basis, and the change of basis is unitary, which is to say a rotation. Every Hermitian operator is a diagonal one, seen from a rotated angle.

Two dividends fall out at once, using cyclicity of the trace from Chapter 0.4:

trA=tr(DUU)=iλi,detA=iλi. \operatorname{tr}A = \operatorname{tr}(DU^{\dagger}U) = \sum_i\lambda_i, \qquad \det A = \prod_i \lambda_i. (0.5.45)

6.5 · The real case, and the ellipse we borrowed

A real symmetric matrix is Hermitian, so (a) gives it real eigenvalues. For a real λ\lambda the matrix AλIA-\lambda I is real and singular, so it has a real null vector. And Gram–Schmidt inside each eigenspace uses only real arithmetic. Put those together and a real symmetric matrix has an orthonormal basis of real eigenvectors, so that (0.5.44) becomes A=ODO ⁣A=ODO^{\!\top} with OO real orthogonal. That is the classical principal axes theorem.

That closes the loan taken out in §5. Let AA be real, invertible, acting on the unit circle. A point xx of the image is x=Aux=Au with u=1\left\lVert u\right\rVert=1, which is the same as saying A1x=1\left\lVert A^{-1}x\right\rVert=1. Squaring that condition turns it into a quadratic form set equal to one:

x ⁣ ⁣Mx=1,M=(A1) ⁣A1. x^{\!\top}\!Mx = 1, \qquad M = (A^{-1})^{\!\top}A^{-1}. (0.5.46)

Now we are in a position to use the theorem, because MM is exactly the kind of matrix it governs. Note that M ⁣=MM^{\!\top}=M, and that x ⁣ ⁣Mx=A1x2>0x^{\!\top}\!Mx=\left\lVert A^{-1}x\right\rVert^{2}\gt0 for x0x\neq0. So MM is real symmetric with strictly positive eigenvalues μi\mu_i, each μi=ui ⁣Mui>0\mu_i=u_i^{\!\top}Mu_i\gt0. Substituting x=Oyx=Oy turns (0.5.46) into iμiyi2=1\sum_i\mu_iy_i^{2}=1, an ellipse with semi-axes 1/μi1/\sqrt{\mu_i} along the eigenvectors of MM. The image of a circle under any invertible linear map is an ellipse, and the reason is the theorem you just proved.

One detail is worth extracting, because the figure in §5 shows it. The ellipse's axes are the eigenvectors of MM, not of AA. If A=ODO ⁣A=ODO^{\!\top} is symmetric then M=OD2O ⁣M=OD^{-2}O^{\!\top} has the same eigenvectors and the two coincide, which is why the eigen-lines lie exactly along the ellipse in the symmetric preset. Break the symmetry and they part company, visibly.

What you have just proved, in physics language

Read the three results back, replacing "Hermitian operator" with "observable" and "eigenvalue" with "possible measurement outcome". Do not accept the replacement yet. Just look at the sentences.

(a) Eigenvalues are real becomes: measurement outcomes are real numbers. An apparatus reads out a number on a dial, and it cannot read 3+2i3+2\ii grams. In Chapter 4.2 this is presented as a requirement on the theory. It is not a requirement. It is (0.5.39).

(b) Eigenvectors are orthogonal becomes: distinct outcomes are perfectly distinguishable. Two states with different measured values have zero overlap, so the probability of confusing one for the other, which will turn out to be u,v2\abs{\avg{u,v}}^{2}, is exactly zero. Not small. Zero.

(c) The eigenvectors form a complete orthonormal basis becomes: any state whatsoever can be written as a superposition of outcomes, ψ=iciei\ket{\psi}=\sum_i c_i\ket{e_i} with ci=eiψc_i = \avg{e_i|\psi}. And ici2=ψ2=1\sum_i\abs{c_i}^{2}=\left\lVert \psi\right\rVert^{2}=1 by Parseval (0.5.15), so the probabilities add to one automatically.

These are three of the postulates of quantum mechanics as they are usually taught, and they are not postulates. They are theorems about Hermitian matrices, proved above, in a chapter containing no physics. Chapter 4.2 will do exactly one thing that this chapter did not. It will assert that a physical state is a unit vector and a physical observable is a Hermitian operator. That is one postulate, not four. Everything else is renaming.

⚠ Why this isn't obvious

Most matrices are not diagonalisable at all. The spectral theorem's hypothesis is doing heavy work, and it is easy to miss how heavy. Consider

J=(1101),det(JλI)=(1λ)2. J = \begin{pmatrix}1&1\\0&1\end{pmatrix}, \qquad \det(J-\lambda I) = (1-\lambda)^{2}.

The only eigenvalue is λ=1\lambda=1, repeated twice. Its eigenvectors solve (JI)v=0(J-I)v=0, i.e. (0100)v=0\begin{pmatrix}0&1\\0&0\end{pmatrix}v=0, which forces v2=0v_2=0. So the eigenspace is the single line spanned by (1,0)(1,0). A two-dimensional space, and only a one-dimensional supply of eigenvectors. There is no basis of eigenvectors, no diagonal form, and no spectral decomposition.

Such a matrix is called defective, and it is not exotic. The skew slider in the figure above manufactures one at c=1c=1. Note that JJJ^{\dagger}\neq J, so the theorem is not violated. It is inapplicable, which is a different thing. When a physics text says "expand in eigenstates", it is quietly leaning on Hermiticity, every time.

In infinite dimensions the theorem needs genuine repair. Everything proved in this chapter is a finite-dimensional theorem, and two of the steps fail outright in a function space. Both failures are worth knowing rather than filing away, because you will meet them.

First, "Hermitian" and "self-adjoint" come apart. An unbounded operator carries a domain, the subset of functions it is allowed to act on, and AA^{\dagger} carries its own, generally larger. The symmetric condition Au,v=u,Av\avg{Au,v}=\avg{u,Av} on a domain is strictly weaker than genuine self-adjointness, and the difference is not pedantry. The momentum operator id/dx-\ii\hbar\,\dd/\dd x on the half-line [0,)[0,\infty) is symmetric and admits no self-adjoint extension whatsoever.

Second, eigenvectors can fail to exist inside the space at all. On the whole line, the momentum eigenfunctions eikx\ee^{\ii kx} solve the eigenvalue equation but are not square-integrable, so they are not vectors of the Hilbert space. The spectrum becomes continuous, the sum kλkPk\sum_k\lambda_kP_k becomes an integral λdP(λ)\int\lambda\,\dd P(\lambda) over projection-valued measures, and completeness must be re-proved rather than assumed. Chapter 4.5 pays this bill in full. Until then, everything here is exact and everything here is finite-dimensional.

In plain terms 0.5.6

At the centre of the toolkit sit three statements, none of them long to prove. A map that is its own partner has multipliers that are real numbers. Its special directions belonging to different multipliers are exactly perpendicular, not merely independent. And there are enough of those directions to describe every vector in the space, with nothing left over.

Taken together they say that such a map, viewed in the right description, is a list of numbers attached to a list of mutually perpendicular directions, each one acting alone and none of them speaking to any other. This is the move most of the book is built from, and it deserves its name: the problem has fallen apart into independent pieces. Coupled oscillators, the modes of a plucked string, the components of a wave, the energy levels of an atom — every one of those is this, and the repetition is not laziness. It is one theorem being spent over and over.

Nothing in the argument is physics. Yet read the three again with the words changed and they say that measurement outcomes are real numbers, that distinct outcomes are perfectly distinguishable rather than merely different, and that any state can be written as a combination of outcomes whose weights add to one. Those are usually offered as postulates about nature. They are theorems about symmetric arrays.

7 · Functions of operators

You know what ex\ee^{x} means for a number. What could eA\ee^{A} mean for an operator? The spectral theorem answers it at once. If AA acts on each eie_i by multiplying by λi\lambda_i, then whatever f(A)f(A) is, it ought to act on eie_i by multiplying by f(λi)f(\lambda_i). So define

  f(A)    if(λi)eiei   \boxed{\;f(A) \;\equiv\; \sum_i f(\lambda_i)\,\ket{e_i}\bra{e_i}\;} (0.5.47)

for AA Hermitian with spectral decomposition A=iλieieiA=\sum_i\lambda_i\ket{e_i}\bra{e_i}, and any function ff defined on the eigenvalues.

There is one question to settle before we trust that definition. Does the answer depend on which orthonormal basis we happened to pick inside a degenerate eigenspace? In the projection form (0.5.43) the definition reads f(A)=kf(λk)Pkf(A)=\sum_k f(\lambda_k)P_k, and the PkP_k are unique, so the answer is no. Equation (0.5.47) is well posed.

It had better also agree with the answer you would get by substituting AA into a power series, and it does. The key is that orthonormality makes the cross terms vanish, which is easiest to see by squaring AA and watching the double sum collapse:

A2=i,jλiλjeieiejδijej=iλi2eiei, A^{2} = \sum_{i,j}\lambda_i\lambda_j\ket{e_i}\underbrace{\avg{e_i|e_j}}_{\delta_{ij}}\bra{e_j} = \sum_i \lambda_i^{2}\ket{e_i}\bra{e_i}, (0.5.48)

By the same collapse, inductively, Am=iλimeieiA^{m}=\sum_i\lambda_i^{m}\ket{e_i}\bra{e_i} for every m1m\ge1. It holds for m=0m=0 as well, since A0=I^=ieieiA^{0}=\hat I=\sum_i\ket{e_i}\bra{e_i} by completeness. So every power behaves, and that is enough to push a whole series through. For any f(z)=mcmzmf(z)=\sum_m c_m z^{m} whose series converges at every eigenvalue,

mcmAm=i(mcmλim)eiei=if(λi)eiei. \sum_m c_m A^{m} = \sum_i\Big(\sum_m c_m\lambda_i^{m}\Big)\ket{e_i}\bra{e_i} = \sum_i f(\lambda_i)\ket{e_i}\bra{e_i}. (0.5.49)

Swapping the two sums is legitimate because the sum over ii is finite. So (0.5.47) and "plug the matrix into the series" agree wherever both make sense. And (0.5.47) keeps working for functions with no power series at all, such as \sqrt{\cdot} on a positive operator.

7.1 · The exponential of i\ii times a Hermitian operator

Claim: if AA is Hermitian then U=eiAU=\ee^{\ii A} is unitary.

Unitarity is a statement about the adjoint, so the first thing we need is the adjoint. Take it of (0.5.47) with f(λ)=eiλf(\lambda)=\ee^{\ii\lambda}, using (αM)=αˉM(\alpha M)^{\dagger}=\bar\alpha M^{\dagger} and (ee)=ee\big(\ket{e}\bra{e}\big)^{\dagger}=\ket{e}\bra{e} from (0.5.31):

(eiA)=ieiλieiei=ieiλieiei=eiA. \big(\ee^{\ii A}\big)^{\dagger} = \sum_i \overline{\ee^{\ii\lambda_i}}\,\ket{e_i}\bra{e_i} = \sum_i \ee^{-\ii\lambda_i}\ket{e_i}\bra{e_i} = \ee^{-\ii A}. (0.5.50)

The middle step is where reality is spent. It uses eiλ=eiλˉ\overline{\ee^{\ii\lambda}}=\ee^{-\ii\bar\lambda}, and λˉ=λ\bar\lambda=\lambda holds only because AA is Hermitian. Now we have both factors of UUU^{\dagger}U, so multiply them together, collapsing with orthonormality exactly as in (0.5.48):

(eiA)eiA=ieiλieiλieiei=ieiei=I^. \big(\ee^{\ii A}\big)^{\dagger}\ee^{\ii A} = \sum_i \ee^{-\ii\lambda_i}\ee^{\ii\lambda_i}\ket{e_i}\bra{e_i} = \sum_i\ket{e_i}\bra{e_i} = \hat I. (0.5.51)

So eiA\ee^{\ii A} is unitary. \blacksquare

The converse holds as well: every unitary operator is eiA\ee^{\ii A} for some Hermitian AA, and the grind box proves it. Put the two halves together and Hermitian operators and unitary operators are the same information, related by an exponential. That is exactly how real numbers and points on the unit circle are related by θeiθ\theta\mapsto\ee^{\ii\theta} in Chapter 0.3. This is that statement with the number replaced by an operator.

Grind box — the converse: every unitary is eiA\ee^{\ii A}

We need a spectral theorem for unitary operators. The induction of §6 goes through with two substitutions, and here they are.

Eigenvalues have modulus one. If Uv=μvU\ket{v}=\mu\ket{v} with v0v\neq0 then by (0.5.32), v,v=Uv,Uv=μ2v,v\avg{v,v}=\avg{Uv,Uv}=\abs{\mu}^{2}\avg{v,v}, so μ=1\abs{\mu}=1 and we may write μ=eiθ\mu=\ee^{\ii\theta} with θ\theta real.

The orthogonal complement is invariant. In finite dimensions U=U1U^{\dagger}=U^{-1}, and Uv=μvUv=\mu v gives Uv=μ1v=μˉvU^{\dagger}v=\mu^{-1}v=\bar\mu v since μ=1\abs{\mu}=1. So for wvw\perp v,

v,Uw=Uv,w=μˉv,w=μv,w=0, \avg{v,Uw} = \avg{U^{\dagger}v,w} = \avg{\bar\mu v,w} = \mu\avg{v,w} = 0,

which says UwvUw\perp v. The restriction UWU|_{W} preserves inner products on WW and maps WW into WW. Being injective on a finite-dimensional space it is onto, hence unitary on WW.

Induct exactly as before, using (0.5.35) to start. The result is an orthonormal basis {fi}\{f_i\} with Ufi=eiθifiUf_i=\ee^{\ii\theta_i}f_i, so

U=ieiθififi=eiA,Aiθififi. U = \sum_i \ee^{\ii\theta_i}\ket{f_i}\bra{f_i} = \ee^{\ii A}, \qquad A \equiv \sum_i\theta_i\ket{f_i}\bra{f_i}.

That AA is Hermitian because the θi\theta_i are real and each fifi\ket{f_i}\bra{f_i} is self-adjoint. \blacksquare One caveat is worth recording. The θi\theta_i are only defined modulo 2π2\pi, so AA is not unique, and the exponential map is many-to-one, exactly as eiθ\ee^{\ii\theta} is on R\R.

Where this is spent

In Chapter 4.6 the Hamiltonian H^\hat H is Hermitian because energy is an observable, and time evolution is

ψ(t)=eiH^t/ψ(0). \ket{\psi(t)} = \ee^{-\ii\hat Ht/\hbar}\ket{\psi(0)}.

That operator is unitary by the theorem just proved, and unitary means probability is conserved by (0.5.32). So the sentence "energy is observable, therefore probability is conserved" is not a physical argument at all. It is (0.5.51). Differentiate the exponential and you get idψ/dt=H^ψ\ii\hbar\,\dd\ket{\psi}/\dd t = \hat H\ket{\psi}, so the Schrödinger equation is the statement that a Hermitian operator generates a unitary flow.

This pairing of a Hermitian generator with a unitary group element is the finite-dimensional shadow of the Lie algebra and Lie group relationship of Chapter 6.1, where e\ee maps the algebra, a vector space of generators, to the group, a curved space of transformations. Every symmetry in the Standard Model is an instance. You have just met the whole idea in two dimensions, with no differential geometry anywhere.

In plain terms 0.5.7

Once an object has been broken into independent directions you can do arithmetic on it one direction at a time, and that is the whole of what it means to take a function of a map. Multiply each direction's number by whatever the function does to that number, and leave the directions themselves alone. This agrees with the obvious alternative of substituting the map into a power series, because perpendicularity kills every cross term, and it goes on working for functions that have no series at all.

The case that matters is the exponential of the imaginary unit times a self-partnered map. Each of the real numbers becomes a phase of unit length, so the result preserves every overlap and belongs to the rotation-like family met earlier. The converse holds as well, so the two families carry the same information and are related by exponentiation, precisely as the real numbers are related to the points of a circle.

That equivalence is more consequential than its length suggests. It is the reason a quantity being observable forces the flow it generates to conserve probability, so that an argument people offer as physics is a line of algebra. It is also the first sighting of the pairing between a generator and the family of transformations it builds, which is how every symmetry in fundamental physics is eventually described.

8 · Commuting operators and simultaneous diagonalisation

Define the commutator [A,B]ABBA[A,B]\equiv AB-BA. It measures the failure of two operators to be interchangeable, and it is zero exactly when order does not matter. The theorem below is the reason that quantity is worth a name.

Theorem. Two Hermitian operators AA and BB on a finite-dimensional complex inner-product space admit a common orthonormal basis of eigenvectors if and only if [A,B]=0[A,B]=0.

8.1 · Forward direction (easy)

Suppose {ei}\{e_i\} is an orthonormal basis with Aei=aieiAe_i=a_ie_i and Bei=bieiBe_i=b_ie_i. We want to compare ABAB with BABA, so apply each of them to a basis vector and see what comes out:

ABei=A(biei)=aibiei,BAei=B(aiei)=biaiei, ABe_i = A(b_ie_i) = a_ib_i e_i, \qquad BAe_i = B(a_ie_i)=b_ia_ie_i, (0.5.52)

and aibi=biaia_ib_i=b_ia_i because they are numbers. So ABAB and BABA agree on a basis, hence are equal (Chapter 0.4), so [A,B]=0[A,B]=0. \blacksquare

8.2 · Reverse direction (the real content)

Here the difficulty is degeneracy. If AA had nn distinct eigenvalues the argument would be three lines. It generally does not, and the honest proof must build the common basis inside each eigenspace.

Grind box — the reverse direction, degeneracy handled

Assume A=AA^{\dagger}=A, B=BB^{\dagger}=B, and AB=BAAB=BA.

Step 1, decompose VV by AA. By the spectral theorem, VV is the orthogonal direct sum of the eigenspaces of AA for its distinct eigenvalues λ1,,λr\lambda_1,\dots,\lambda_r:

V=Eλ1Eλr,EλkEλl (kl), V = E_{\lambda_1}\oplus\cdots\oplus E_{\lambda_r}, \qquad E_{\lambda_k}\perp E_{\lambda_l}\ (k\neq l),

with the orthogonality being part (b) of §6 and the spanning being part (c).

Step 2, BB preserves each eigenspace. This is the only place the hypothesis [A,B]=0[A,B]=0 is used. Let vEλkv\in E_{\lambda_k}, so Av=λkvAv=\lambda_k v. We want to know where BvBv sits, so feed it to AA and use the commutation to move AA past BB:

A(Bv)=(AB)v=(BA)v=B(Av)=B(λkv)=λk(Bv), A(Bv) = (AB)v = (BA)v = B(Av) = B(\lambda_k v) = \lambda_k (Bv),

so BvBv is again an eigenvector of AA with eigenvalue λk\lambda_k, or else zero, which lies in EλkE_{\lambda_k} too. Hence B(Eλk)EλkB\big(E_{\lambda_k}\big)\subseteq E_{\lambda_k}.

Step 3, the restriction is Hermitian. This runs exactly as in Step 4 of the spectral-theorem proof. For u,wEλku,w\in E_{\lambda_k}, Bu,w=u,Bw\avg{Bu,w}=\avg{u,Bw} holds because it holds in all of VV, and both vectors lie in the subspace. So BEλkB|_{E_{\lambda_k}} is a Hermitian operator on the finite-dimensional inner-product space EλkE_{\lambda_k}.

Step 4, apply the spectral theorem inside the eigenspace. Therefore EλkE_{\lambda_k} has an orthonormal basis of eigenvectors of BB. And every vector in EλkE_{\lambda_k} is automatically an eigenvector of AA, with eigenvalue λk\lambda_k, because that is what the eigenspace is. So this basis consists of simultaneous eigenvectors of both operators. This is exactly where degeneracy is handled. Within a degenerate eigenspace of AA, the operator BB chooses the basis that AA could not.

Step 5, assemble. Take the union of these bases over k=1,,rk=1,\dots,r. Vectors from the same eigenspace are orthonormal by construction, and vectors from different eigenspaces are orthogonal by Step 1. The total count is kdimEλk=dimV\sum_k\dim E_{\lambda_k}=\dim V, so the union is an orthonormal basis of VV consisting of simultaneous eigenvectors of AA and BB. \blacksquare

Remark. Run the same argument with three or more mutually commuting Hermitian operators and it produces a basis of simultaneous eigenvectors for all of them. Apply Step 2 to each in turn, refining the decomposition as far as the operators allow. Whether that refinement reaches eigenspaces of dimension one depends on the set: it does exactly when the operators are enough to tell every basis vector apart by its eigenvalues, and a set that is not enough still yields a common eigenbasis while leaving some joint eigenspace of dimension two or more. Chapter 4.9 §3 turns that distinction into a criterion.

The theorem promises that a common eigenbasis exists. It does not promise that the one your solver just handed you is it, and the figure below is that distinction, driven to the point where it bites.

δ = 0.600
c = 0.600
eigenvalues of A: -1.000000, 1.000000, 1.600000 · gap = 6.000e-1
‖[A,B]‖_F = 0.50911688
v1 = ( 0.0000, 0.0000, 1.0000) a = -1.000000 ⟨B⟩ = 2.000000 ΔB = 0.0e+0
v2 = ( 0.0000, 1.0000, 0.0000) a = 1.000000 ⟨B⟩ = 0.000000 ΔB = 0.600000
v3 = ( 1.0000, 0.0000, 0.0000) a = 1.600000 ⟨B⟩ = 0.000000 ΔB = 0.600000
not a common eigenbasis: largest spread 0.600000
The joint spectrum, and the choice inside a degeneracy. The two operators are A=diag(1+δ,1,1)A=\operatorname{diag}(1+\delta,\,1,\,-1) and BB with the block (0cc0)\left(\begin{smallmatrix}0&c\\ c&0\end{smallmatrix}\right) on the first two coordinates and 22 on the third — both real symmetric, which §6.5 says is the case worth drawing. Each is diagonalised in the browser by cyclic Jacobi rotations, sweeping until the off-diagonal sum of squares reaches machine zero; no characteristic polynomial is solved anywhere, because solving one is the numerical instability this figure is about. The plane is the label plane: horizontally the value of AA, vertically the value of BB. Blue dots are the three eigenvectors of AA, placed at (ai, vi,Bvi)(a_i,\ \langle v_i,Bv_i\rangle) with a vertical bar of half-length ΔBi=(BB)vi\Delta B_i=\lVert (B-\langle B\rangle)v_i\rVert; purple dots are the eigenvectors of BB, with horizontal bars ΔAj\Delta A_j. A state is a joint eigenstate exactly when a blue dot and a purple dot sit on top of each other with no bars, and those get a green ring. [A,B]F\lVert[A,B]\rVert_F is computed from the product matrices. Start by pulling cc to zero. The bars vanish, the two families land on each other, and the operators commute: this is §8.1, and it is the easy half. Put cc back to 0.60.6 and drive δ\delta to zero instead. [A,B]F\lVert[A,B]\rVert_F falls as 2cδ\sqrt2\,c\,\delta0.84850.8485, 0.16970.1697, 0.00850.0085 — and reaches exactly 00 at the left stop. The blue bars do not move. They read 0.6000.600 at every setting, δ=0\delta=0 included. The operators now commute, the theorem says a common eigenbasis exists, and the solver has handed you three states in which BB is not sharp — because inside the plane where AA gave both directions the same number, any orthonormal pair is an eigenbasis of AA, and the solver returned the one it happened to start with. The shaded band, drawn once the gap in AA falls below 0.050.05, is the whole interval of B\langle B\rangle values some legitimate eigenbasis of AA would report; its ends are the eigenvalues ±c\pm c of BB restricted to that plane. Now press let BB choose. The blue dots swing to ±0.600\pm0.600 without AA noticing — their aa labels do not move at all — the bars collapse to 8×10178\times10^{-17}, and three joint labels snap into place. That is Step 4 of the grind box, and it is the only thing standing between you and n,,m\ket{n,\ell,m}. Finally set c=0c=0 and δ=0\delta=0, where AA and BB are both blind to the plane and two states share the label (1,0)(1,\,0): the readout says 2 of 3, and adding the third commuting operator CC makes it 3 of 3. That is what complete means in "complete set of commuting observables" — and if you then push δ\delta back up with CC still on, the readout reports that CC has stopped commuting with AA and withdraws the claim, because a set of labels is only worth having when the operators handing them out commute.
This theorem is the structure of quantum numbers

An orthonormal basis of simultaneous eigenvectors is a way of labelling every state by a list of numbers, one eigenvalue from each operator. Chapter 4.11 calls such a list the quantum numbers of the state, and calls the operators a complete set of commuting observables. Complete means two things: mutually commuting, and enough of them that every eigenspace has been cut down to a single line, so the labels determine the state uniquely. When you write the hydrogen states as n,,m\ket{n,\ell,m} you are naming the eigenvalues of three commuting operators. And the reason the labels are consistent, which is to say the reason a state can have a definite \ell and a definite mm at the same time, is Step 4 above, and nothing else.

Run it backwards and you get the other half. If [A,B]0[A,B]\neq0 there is no common eigenbasis, so there is no state in which both observables are sharp. That is the qualitative content of Chapter 4.9. The quantitative version is the Cauchy–Schwarz bound ΔAΔB12[A,B]\Delta A\,\Delta B\ge\tfrac12\abs{\avg{[A,B]}} from §1, whose right-hand side is non-zero exactly when the operators fail to commute. The two great mysteries of quantum mechanics, why can some quantities be known together and others not?, are one theorem about matrices, proved above, with an "if and only if" in the middle.

Familiar ground

You have run principal component analysis on expression data, on imaging features, on multiplexed assay panels. Here is what was actually happening, and why it could not have failed.

Centre the data matrix XX (nn samples ×\times pp features) and form the covariance matrix Σ=1n1X ⁣ ⁣X\Sigma = \tfrac{1}{n-1}X^{\!\top}\!X, whose entries are Σij=cov(feature i,feature j)\Sigma_{ij}=\mathrm{cov}(\text{feature }i,\text{feature }j). Covariance is symmetric in its two arguments, so Σ ⁣=Σ\Sigma^{\!\top}=\Sigma. A real covariance matrix is Hermitian by construction, not by assumption and not by luck. Section 6 therefore guarantees, as a theorem:

  • The eigenvalues are real. They are variances, so this had better be true. It is not a numerical accident, and it does not depend on the data.
  • The principal components are mutually orthogonal. Uncorrelated components are not something PCA arranges by cleverness. They come out perpendicular because §6(b) says eigenvectors of a symmetric matrix with distinct eigenvalues have no choice.
  • They span the whole feature space. Completeness (0.5.21) says no direction of variation is missed, so reconstructing from all pp components returns your data exactly.

More is true, and it is worth being precise about the extra. Σ\Sigma is not merely Hermitian. It is positive semi-definite, and one line shows it for any direction uu:

u ⁣Σu=1n1Xu2    0, u^{\!\top}\Sigma u = \tfrac{1}{n-1}\left\lVert Xu\right\rVert^{2} \;\ge\; 0,

because it is a sum of squares, and that sum is exactly the sample variance of the data projected onto uu. Apply this to a unit eigenvector and it gives λ=u ⁣Σu0\lambda = u^{\!\top}\Sigma u\ge0. So the eigenvalues are not just real, they are non-negative, and each eigenvalue is the variance along its own component. Positive semi-definiteness is strictly stronger than Hermiticity: a Hermitian matrix may have negative eigenvalues, and a covariance matrix may not.

Two further standard facts now cost one line each. Write a unit vector as u=iciuiu=\sum_i c_iu_i in the eigenbasis with ici2=1\sum_i c_i^{2}=1. The spectral decomposition then gives u ⁣Σu=iλici2u^{\!\top}\Sigma u=\sum_i\lambda_ic_i^{2}, a weighted average of the eigenvalues, and a weighted average is maximised by putting all the weight on the largest. The first principal component is the top eigenvector because a weighted average is largest when it is not an average. And by (0.5.45) the total variance is trΣ=iλi\operatorname{tr}\Sigma=\sum_i\lambda_i, which is why "proportion of variance explained" is λi/jλj\lambda_i/\sum_j\lambda_j and why those fractions sum to one.

Now the point worth carrying away. PCA works for exactly the same reason quantum measurement outcomes are real numbers. One theorem, §6, applied twice. Once to a covariance matrix, where the real eigenvalues are variances and the orthogonal eigenvectors are uncorrelated components. Once to a Hamiltonian, where the real eigenvalues are energies and the orthogonal eigenvectors are distinguishable states. It is not an analogy and not a coincidence of formalism. It is one theorem with two costumes, and you have been using the harder-looking costume for years without noticing.

In plain terms 0.5.8

Two maps of the self-partnered kind fall apart into the same independent directions when, and only when, the order of applying them makes no difference. Half of that is easy: if both are lists of numbers over one shared set of directions, then numbers commute and so must the maps. The other half carries the content. Wherever the first map cannot distinguish between several directions, having given them all the same number, the second goes inside that ambiguity and chooses, and between them they produce one set of directions suiting both.

This is how a physical state comes to be labelled by a handful of numbers, one from each map, the labels fixing the state completely once there are enough maps to leave no ambiguity. The reason such labels can coexist, which is to say the reason a state may have a definite value of one quantity and simultaneously of another, is the argument above and nothing besides.

Run it backwards for the other half. Where two maps fail to commute there is no shared set of directions, so no state exists in which both quantities are sharp, and the size of the failure is what the overlap inequality from the opening of the chapter measures. The two things people find most mysterious about quantum mechanics are one theorem about matrices with an if and only if in it.

9 · Worked examples

Worked example 1 — the two-state system, diagonalised completely

Take the Hermitian matrix

H=(E0ΔΔE0),E0,ΔR, Δ>0. H = \begin{pmatrix}E_0 & \Delta\\ \Delta & E_0\end{pmatrix}, \qquad E_0,\Delta\in\R,\ \Delta\gt0.

It is real and symmetric, hence Hermitian, so §6 applies before we compute anything. The eigenvalues will be real and the eigenvectors perpendicular. Let us watch it happen.

Eigenvalues. From (0.5.34),

det(E0λΔΔE0λ)=(E0λ)2Δ2=0, \det\begin{pmatrix}E_0-\lambda & \Delta\\ \Delta & E_0-\lambda\end{pmatrix} = (E_0-\lambda)^{2}-\Delta^{2} = 0,

and that is a difference of two squares, so take square roots of both sides:

E0λ=±Δλ±=E0±Δ. \Longrightarrow\quad E_0-\lambda = \pm\Delta \quad\Longrightarrow\quad \lambda_{\pm} = E_0\pm\Delta.

Real, as promised. And note what has happened here. A matrix with equal diagonal entries, two "levels" of the same value E0E_0, has eigenvalues that are split apart by the off-diagonal coupling, into E0+ΔE_0+\Delta and E0ΔE_0-\Delta, separated by 2Δ2\Delta.

Eigenvectors. For λ+=E0+Δ\lambda_{+}=E_0+\Delta, solve (Hλ+I)v=0(H-\lambda_{+}I)v=0:

(ΔΔΔΔ)(v1v2)=0    v1=v2    +=12(11). \begin{pmatrix}-\Delta & \Delta\\ \Delta & -\Delta\end{pmatrix}\begin{pmatrix}v_1\\v_2\end{pmatrix}=0 \;\Longrightarrow\; v_1=v_2 \;\Longrightarrow\; \ket{+}=\tfrac{1}{\sqrt2}\begin{pmatrix}1\\1\end{pmatrix}.

For λ=E0Δ\lambda_{-}=E_0-\Delta the matrix becomes (ΔΔΔΔ)\left(\begin{smallmatrix}\Delta&\Delta\\\Delta&\Delta\end{smallmatrix}\right), forcing v1=v2v_1=-v_2, so =12(11)\ket{-}=\tfrac{1}{\sqrt2}\begin{pmatrix}1\\-1\end{pmatrix}. Both have been normalised by dividing by 12+12\sqrt{1^{2}+1^{2}}.

Orthogonality, checked. +=12(11+1(1))=0.\avg{+|-} = \tfrac12\big(1\cdot1 + 1\cdot(-1)\big) = 0. ✓ Perpendicular, exactly as §6(b) requires. We never used that fact to find them, so this is a genuine test rather than a restatement.

Spectral decomposition. Build the projections P±=±±P_{\pm}=\ket{\pm}\bra{\pm} as column times row:

P+=12(11)(11)=12(1111),P=12(1111). P_{+} = \tfrac12\begin{pmatrix}1\\1\end{pmatrix}\begin{pmatrix}1&1\end{pmatrix} = \tfrac12\begin{pmatrix}1&1\\1&1\end{pmatrix}, \qquad P_{-} = \tfrac12\begin{pmatrix}1&-1\\-1&1\end{pmatrix}.

Sanity checks: P++P=IP_{+}+P_{-}=I ✓ (completeness), P+P=0P_{+}P_{-}=0 ✓ (orthogonality), P±2=P±P_{\pm}^{2}=P_{\pm} ✓ (idempotence).

Reconstruction. Now rebuild HH from its spectrum alone, which is the claim of §6.3 made concrete:

λ+P++λP=E0+Δ2(1111)+E0Δ2(1111)=(E0ΔΔE0)  =  H.   \begin{aligned} \lambda_{+}P_{+}+\lambda_{-}P_{-} &= \tfrac{E_0+\Delta}{2}\begin{pmatrix}1&1\\1&1\end{pmatrix} + \tfrac{E_0-\Delta}{2}\begin{pmatrix}1&-1\\-1&1\end{pmatrix}\\[6pt] &= \begin{pmatrix}E_0 & \Delta\\ \Delta & E_0\end{pmatrix} \;=\; H. \;\checkmark \end{aligned}

The matrix has been completely dissolved into two numbers and two perpendicular directions, and reassembled from them.

Why this example and not another. The eigenvalues E0±ΔE_0\pm\Delta are a level splitting. Two states that would be degenerate at energy E0E_0 are pushed apart by the coupling Δ\Delta, and the new eigenstates are the symmetric and antisymmetric combinations rather than either original state. This 2×22\times2 matrix is the most reused object in all of quantum mechanics. It is the ammonia molecule, whose two mirror-image configurations split by 2Δ2\Delta and give the ammonia maser. It is neutrino oscillation, where the states of definite mass are not the states of definite flavour and the mismatch makes them convert into one another. It is the qubit, where +\ket{+} and \ket{-} are the two states you engineer and control. Chapter 4.2 will do all three, and the linear algebra will already be finished.

Worked example 2 — eiθσx\ee^{\ii\theta\sigma_x}, or Euler's formula with a matrix in the exponent

Let

σx=(0110), \sigma_x = \begin{pmatrix}0&1\\1&0\end{pmatrix},

which is real symmetric, hence Hermitian. Compute eiθσx\ee^{\ii\theta\sigma_x} for real θ\theta using (0.5.47) rather than by summing a series.

Step 1, the spectrum. det(σxλI)=λ21=0\det(\sigma_x-\lambda I)=\lambda^{2}-1=0, so λ=±1\lambda=\pm1. The eigenvectors are the same ±\ket{\pm} as in Worked example 1. (Set E0=0E_0=0 and Δ=1\Delta=1 there and compare.) That gives the spectral decomposition

σx=(+1)P++(1)P=P+P. \sigma_x = (+1)P_{+} + (-1)P_{-} = P_{+}-P_{-}.

Step 2, apply the function. The operator in the exponent is θσx\theta\sigma_x, whose eigenvalues are ±θ\pm\theta on the same eigenvectors. So with f(λ)=eiλf(\lambda)=\ee^{\ii\lambda},

eiθσx=eiθP++eiθP. \ee^{\ii\theta\sigma_x} = \ee^{\ii\theta}P_{+} + \ee^{-\ii\theta}P_{-}.

Step 3, regroup using Euler. Write e±iθ=cosθ±isinθ\ee^{\pm\ii\theta}=\cos\theta\pm\ii\sin\theta from Chapter 0.3 and collect the PP's:

eiθσx=cosθ(P++P)+isinθ(P+P)=cosθI+isinθσx, \begin{aligned} \ee^{\ii\theta\sigma_x} &= \cos\theta\,\big(P_{+}+P_{-}\big) + \ii\sin\theta\,\big(P_{+}-P_{-}\big)\\[4pt] &= \cos\theta\,I + \ii\sin\theta\,\sigma_x, \end{aligned}

using completeness for the first bracket and Step 1 for the second. Written out as a matrix, that is

eiθσx=(cosθisinθisinθcosθ). \ee^{\ii\theta\sigma_x} = \begin{pmatrix}\cos\theta & \ii\sin\theta\\ \ii\sin\theta & \cos\theta\end{pmatrix}.

What this is. Compare it with eiθ=cosθ+isinθ\ee^{\ii\theta}=\cos\theta+\ii\sin\theta. The structure is identical, and this is Euler's formula with a matrix in the exponent. The reason it works is that σx2=I\sigma_x^{2}=I, so σx\sigma_x plays the role that i\ii plays for numbers, except that it squares to +1+1 rather than 1-1. The eigenvalues ±1\pm1 are what carry the alternating signs. Any Hermitian MM with M2=IM^{2}=I gives eiθM=cosθI+isinθM\ee^{\ii\theta M}=\cos\theta\,I+\ii\sin\theta\,M by the identical three steps.

Checks. Unitarity: (eiθσx)=cosθIisinθσx\big(\ee^{\ii\theta\sigma_x}\big)^{\dagger} = \cos\theta\,I - \ii\sin\theta\,\sigma_x, and multiplying gives cos2θI+sin2θσx2=I\cos^{2}\theta\,I+\sin^{2}\theta\,\sigma_x^{2} = I ✓, as §7 promised. Determinant: cos2θ(isinθ)2=cos2θ+sin2θ=1\cos^{2}\theta-(\ii\sin\theta)^{2}=\cos^{2}\theta+ \sin^{2}\theta=1 ✓.

Where it goes. Unitary 2×22\times2 matrices of determinant 11 form the group SU(2)\mathrm{SU}(2), and the operator above is a member of it. In Chapter 4.12, eiθn^σ/2\ee^{-\ii\theta\,\hat n\cdot\vec\sigma/2} is precisely the operator that rotates a spin-12\tfrac12 state about the axis n^\hat n by angle θ\theta. That is the same computation as this one, with a general unit vector in place of the xx-direction. The factor of 12\tfrac12 in the exponent is why a spin must be turned through 720720^{\circ} to return to itself, and you can already see it coming: at θ=2π\theta=2\pi the formula above gives cosπI=I\cos\pi\,I=-I, not II. Chapter 6.1 explains what kind of object does that.

10 · Your turn

Problem 1 · Gram–Schmidt, twice

(a) Apply (0.5.16) to the basis v1=(1,1,0)v_1=(1,1,0), v2=(1,0,1)v_2=(1,0,1), v3=(0,1,1)v_3=(0,1,1) of R3\R^{3} with the ordinary dot product. Verify the result is orthonormal.

(b) Now do the same in a space with no arrows in it. Take the polynomials 1,x,x21,x,x^{2} on [1,1][-1,1] with f,g=11f(x)g(x)dx\avg{f,g}=\int_{-1}^{1}f(x)g(x)\,\dd x, and orthonormalise them.

Solution

(a) v1=2\left\lVert v_1\right\rVert=\sqrt2, so e1=12(1,1,0)e_1=\tfrac{1}{\sqrt2}(1,1,0).

Next, e1,v2=12(1+0+0)=12\avg{e_1,v_2}=\tfrac{1}{\sqrt2}(1+0+0)=\tfrac{1}{\sqrt2}, so

w2=(1,0,1)1212(1,1,0)=(12,12,1), w_2 = (1,0,1) - \tfrac{1}{\sqrt2}\cdot\tfrac{1}{\sqrt2}(1,1,0) = \left(\tfrac12,-\tfrac12,1\right),

and normalising that vector gives the second basis element:

w2=14+14+1=32    e2=16(1,1,2). \left\lVert w_2\right\rVert = \sqrt{\tfrac14+\tfrac14+1} = \sqrt{\tfrac32} \;\Longrightarrow\; e_2 = \tfrac{1}{\sqrt6}(1,-1,2).

Finally e1,v3=12\avg{e_1,v_3}=\tfrac{1}{\sqrt2} and e2,v3=16(01+2)=16\avg{e_2,v_3}=\tfrac{1}{\sqrt6}(0-1+2) =\tfrac{1}{\sqrt6}, so subtracting both components off leaves

w3=(0,1,1)12(1,1,0)16(1,1,2)=(23, 23, 23),w3=23, \begin{aligned} w_3 &= (0,1,1) - \tfrac12(1,1,0) - \tfrac16(1,-1,2)\\[3pt] &= \left(-\tfrac23,\ \tfrac23,\ \tfrac23\right), \qquad \left\lVert w_3\right\rVert=\tfrac{2}{\sqrt3}, \end{aligned}

which normalises to

e3=13(1,1,1). e_3 = \tfrac{1}{\sqrt3}(-1,1,1).

Check. e1,e2=112(11+0)=0\avg{e_1,e_2}=\tfrac{1}{\sqrt{12}}(1-1+0)=0, and e1,e3=16(1+1+0)=0\avg{e_1,e_3}=\tfrac{1}{\sqrt6}(-1+1+0)=0, and e2,e3=118(11+2)=0\avg{e_2,e_3}=\tfrac{1}{\sqrt{18}}(-1-1+2)=0. Each has norm 11 by construction. ✓

(b) 1,1=11dx=2\avg{1,1}=\int_{-1}^{1}\dd x=2, so e0=1/2e_0=1/\sqrt2.

e0,x=1211xdx=0\avg{e_0,x}=\tfrac{1}{\sqrt2}\int_{-1}^{1}x\,\dd x=0, because the integrand is odd. So xx is already orthogonal to the constants and nothing needs subtracting. With x,x=11x2dx=23\avg{x,x}=\int_{-1}^{1}x^{2}\dd x=\tfrac23, normalising gives

e1=32  x. e_1 = \sqrt{\tfrac32}\;x.

For x2x^{2}: e1,x2=0\avg{e_1,x^{2}}=0 by oddness again, while e0,x2=1223\avg{e_0,x^{2}}=\tfrac{1}{\sqrt2}\cdot\tfrac23. Subtracting that one component,

w2=x2122312=x213, w_2 = x^{2} - \tfrac{1}{\sqrt2}\cdot\tfrac23\cdot\tfrac{1}{\sqrt2} = x^{2}-\tfrac13,

and the norm of what is left is

w22=11 ⁣(x213)2dx=2549+29=845, \left\lVert w_2\right\rVert^{2} = \int_{-1}^{1}\!\left(x^{2}-\tfrac13\right)^{2}\dd x = \tfrac25-\tfrac49+\tfrac29 = \tfrac{8}{45},

so that dividing through by it gives

e2=458(x213)=523x212. e_2 = \sqrt{\tfrac{45}{8}}\left(x^{2}-\tfrac13\right) = \sqrt{\tfrac52}\cdot\tfrac{3x^{2}-1}{2}.

Those are the first three Legendre polynomials, normalised: P0=1P_0=1, P1=xP_1=x, P2=(3x21)/2P_2=(3x^{2}-1)/2, each divided by 2/(2n+1)\sqrt{2/(2n+1)}. They were not invented. They are what you get by running Gram–Schmidt on 1,x,x2,1,x,x^{2},\dots, and there is nothing else they could have been. The identical procedure with a weight ex2\ee^{-x^{2}} on the whole line produces the Hermite polynomials, which are the quantum harmonic oscillator states of Chapter 4.8. The machinery does not care that the vectors are functions. That is the whole content of the abstraction, and it is what Chapter 4.3 will exploit.

Problem 2 · the spectrum of a unitary operator

Prove that every eigenvalue of a unitary operator has λ=1\abs{\lambda}=1. Then interpret it: what does this say geometrically, and what would go wrong physically if it were false?

Solution

Let Uv=λvUv=\lambda v with v0v\neq0. Apply (0.5.32) with both arguments equal to vv:

v,v=Uv,Uv=λv,λv=λˉλv,v=λ2v,v. \avg{v,v} = \avg{Uv,Uv} = \avg{\lambda v,\lambda v} = \bar\lambda\lambda\avg{v,v} = \abs{\lambda}^{2}\avg{v,v}.

Since v0v\neq0, axiom (iii) gives v,v>0\avg{v,v}\gt0 and we may divide, leaving λ2=1\abs{\lambda}^{2}=1. So λ=1\abs{\lambda}=1 and λ=eiφ\lambda=\ee^{\ii\varphi} for some real φ\varphi.

Geometry. A unitary map preserves all lengths, so along any direction it preserves it must stretch by a factor of modulus one, which is to say not stretch at all but only rotate the phase. A unitary operator has no expanding or contracting directions anywhere. In its eigenbasis it is diag(eiφ1,,eiφn)\operatorname{diag}(\ee^{\ii\varphi_1},\dots,\ee^{\ii\varphi_n}), a separate rotation on each of nn perpendicular axes. Contrast a Hermitian operator, which in its eigenbasis is diag(λ1,,λn)\operatorname{diag}(\lambda_1,\dots,\lambda_n) with the λi\lambda_i real: it only stretches and never rotates. The two classes are exactly complementary, which is the content of U=eiAU=\ee^{\ii A}.

Physically. If some λ>1\abs{\lambda}\gt1, a state along that eigenvector would grow in norm under repeated application of UU. Since ψ2\left\lVert \psi\right\rVert^{2} is total probability, that state would end up with probability greater than one, meaning an outcome that occurs more often than always. If λ<1\abs{\lambda}\lt1 the state would fade away and probability would leak out of the universe. Chapter 4.6's insistence on unitarity is exactly the demand that neither happens, and by the result above there is no third option, since unitary forces λ=1\abs{\lambda}=1 automatically.

Problem 3 · symmetry is what makes the right angle

(a) Diagonalise S=(3113)S=\begin{pmatrix}3&1\\1&3\end{pmatrix}: find the eigenvalues, normalise the eigenvectors, and verify they are orthogonal.

(b) Now break the symmetry with N=(332123)N=\begin{pmatrix}3&\tfrac32\\[2pt]\tfrac12&3\end{pmatrix}, which has the same symmetric part. Find its eigenvalues and eigen-directions and compute the angle between them. Comment on what happened.

Solution

(a) det(SλI)=(3λ)21=0\det(S-\lambda I)=(3-\lambda)^{2}-1=0 gives 3λ=±13-\lambda=\pm1, so λ=4\lambda=4 and λ=2\lambda=2. For λ=4\lambda=4: (1111)v=0\begin{pmatrix}-1&1\\1&-1\end{pmatrix}v=0 forces v1=v2v_1=v_2, giving u1=12(1,1)u_{1}=\tfrac{1}{\sqrt2}(1,1), at 4545^{\circ}. For λ=2\lambda=2: v1=v2v_1=-v_2, giving u2=12(1,1)u_{2}=\tfrac{1}{\sqrt2}(1,-1), at 45-45^{\circ}.

Orthogonality: u1u2=12(11)=0u_1\cdot u_2=\tfrac12(1-1)=0 ✓. The two eigen-directions are exactly 9090^{\circ} apart, as §6(b) guarantees for any real symmetric matrix with distinct eigenvalues.

(b) trN=6\operatorname{tr}N=6 and detN=934=334\det N = 9-\tfrac34=\tfrac{33}{4}, so the quadratic formula gives

λ=6±36332=3±323.866, 2.134. \lambda = \frac{6\pm\sqrt{36-33}}{2} = 3\pm\frac{\sqrt3}{2} \approx 3.866,\ 2.134.

Real, but that is luck rather than a theorem. The discriminant came out positive here and will not in general. For λ+=3+32\lambda_{+}=3+\tfrac{\sqrt3}{2}, the first row of Nλ+IN-\lambda_{+}I gives

32v1+32v2=0    v2=13v1, -\tfrac{\sqrt3}{2}v_1 + \tfrac32 v_2 = 0 \;\Longrightarrow\; v_2 = \tfrac{1}{\sqrt3}v_1,

a direction at arctan(1/3)=30\arctan(1/\sqrt3)=30^{\circ}. For λ\lambda_{-} the sign flips and the direction is at 30-30^{\circ}. Their dot product, with v±=(1,±1/3)v_{\pm}=(1,\pm 1/\sqrt3), is 113=2301-\tfrac13=\tfrac23\neq0, so they are not perpendicular, and the angle between them follows from dividing by the two lengths:

cosα=2/3(2/3)2=2/34/3=12    α=60. \cos\alpha = \frac{2/3}{\left(2/\sqrt3\right)^{2}} = \frac{2/3}{4/3} = \frac12 \;\Longrightarrow\; \alpha = 60^{\circ}.

Comment. The right angle is gone: 9090^{\circ} became 6060^{\circ}. Nothing was done to the symmetric part of the matrix, since N=S+12(0110)N = S + \tfrac12\begin{pmatrix}0&1\\-1&0\end{pmatrix} is an antisymmetric addition, and yet the eigen-directions tilted toward each other by 1515^{\circ} each. This is the figure of §5 with different numbers, and by (0.5.37) the eigenvalues would have gone complex once the antisymmetric coefficient exceeded half the eigenvalue gap of SS, i.e. c=1c=1. Orthogonality of eigenvectors is not a property of matrices. It is a property of Hermitian matrices, and it is lost the moment the hypothesis is.

Problem 4 · non-degenerate commuting operators share everything

Let AA and BB be Hermitian with [A,B]=0[A,B]=0, and suppose AA is non-degenerate: every eigenvalue of AA has a one-dimensional eigenspace. Show that every eigenvector of AA is automatically an eigenvector of BB. Then explain why the general proof of §8 needed to be longer than this one.

Solution

Let Av=λvAv=\lambda v with v0v\neq0. We want to know where BB sends vv, so push BvBv through AA and use AB=BAAB=BA to move AA inside:

A(Bv)=(AB)v=(BA)v=B(Av)=B(λv)=λ(Bv). A(Bv) = (AB)v = (BA)v = B(Av) = B(\lambda v) = \lambda(Bv).

So BvBv lies in the eigenspace EλE_\lambda. By hypothesis EλE_\lambda is one-dimensional and contains vv, so Eλ=span{v}E_\lambda = \mathrm{span}\{v\} and therefore Bv=μvBv=\mu v for some scalar μ\mu. Hence vv is an eigenvector of BB. (If Bv=0Bv=0 then μ=0\mu=0, which is still an eigenvalue, since the zero vector is excluded as an eigenvector, not as an eigenvalue.) The eigenvectors of AA already form an orthonormal basis, so that basis diagonalises BB too. \blacksquare

Why the general case is harder. The step "EλE_\lambda is one-dimensional, therefore BvBv is a multiple of vv" is exactly what fails under degeneracy. If dimEλ=3\dim E_\lambda = 3, all we learn is that BB maps that three-dimensional space into itself. The vector BvBv could be any vector in it, and a generic vEλv\in E_\lambda will not be an eigenvector of BB. The repair is the whole content of the grind box in §8: BB restricted to EλE_\lambda is still Hermitian, so the spectral theorem applies inside EλE_\lambda and selects the right basis there. Degeneracy does not break the theorem. It means AA alone no longer specifies the basis and needs BB's help to finish the job.

The physics of that last sentence, for later: a degenerate energy level is one where the Hamiltonian alone does not tell you which state you are in, and you must measure a second commuting observable to say. That is exactly why hydrogen states need three labels rather than one, and why "lifting a degeneracy" with a magnetic field, say, is such a common experimental move. Chapter 4.15.

The brick you just laid

You have the inner product from three axioms, with the conjugate forced by the demand that no non-zero vector have zero length, and every geometric notion rebuilt from it: length, distance, orthogonality, angle. You have Cauchy–Schwarz, proved by optimising a manifestly non-negative quantity, which is what makes "angle" definable at all. You have orthonormal bases, in which coordinates are inner products. You have Gram–Schmidt, which shows they always exist, and completeness, ieiei=I^\sum_i\ket{e_i}\bra{e_i}=\hat I, in Dirac notation introduced where it is nothing but bookkeeping about rows and columns. You have orthogonal projection as the nearest-point map, and with it the fact that least-squares regression is a right angle and ANOVA is Pythagoras. You have the adjoint defined without reference to any basis, and shown to be the conjugate transpose in an orthonormal one. And you have the spectral theorem: a Hermitian operator has real eigenvalues, perpendicular eigenvectors, and a complete orthonormal eigenbasis, so that it dissolves into iλieiei\sum_i\lambda_i\ket{e_i}\bra{e_i}. Functions of operators, the Hermitian–unitary correspondence U=eiAU=\ee^{\ii A}, and simultaneous diagonalisation of commuting operators all came out of it as corollaries.

Where this gets spent. Cauchy–Schwarz goes to Chapter 4.9, where it becomes the uncertainty principle with nothing added but interpretation. Orthonormal bases and completeness go to Chapter 4.2, for superposition and probability amplitudes, and to Chapter 0.9, where Fourier analysis turns out to be an orthonormal expansion in a function space and Parseval becomes conservation of energy across modes. Adjoint and Hermiticity go to Chapter 4.2, where "an observable is a Hermitian operator" is the one postulate that has to be made. The spectral theorem goes to Chapter 4.2 for the measurement postulates, which are these theorems renamed, to Chapters 4.7 and 4.8, where solving a system means diagonalising its Hamiltonian, to Chapter 0.8, where normal modes of coupled oscillators are eigenvectors of a symmetric matrix, and to every PCA you will ever run. eiA\ee^{\ii A} goes to Chapter 4.6, where a Hermitian Hamiltonian generates unitary time evolution and probability is conserved as a matter of algebra, and to Chapter 6.1, where the same pairing becomes the Lie algebra of a Lie group. Commuting observables go to Chapters 4.9 and 4.11, where they become the complete set of quantum numbers that labels every state of every atom.

One thing remains outstanding, and it is worth naming so that you notice when it is paid. Every proof in this chapter used finite dimension: in the induction, in rank–nullity, in the interchange of sums, in the claim that an injective map is surjective. Quantum mechanics happens in infinite dimensions. Chapters 4.4 and 4.5 are where the bill comes due.