Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Operators 2: Hermitian Operators and Commutators

Operators 1 turned functions into vectors and operators into matrices. This lecture answers the two questions it left open: which matrices may stand for something we can measure, and what happens when two of them do not commute. Both answers are properties of matrices.

Hermitian operators

The matrix version of a real number

numbersmatrices
conjugate z∗z^*: flip the sign of iiadjoint A†A^\dagger: swap rows and columns, then conjugate
real: z∗=zz^* = zHermitian: A†=AA^\dagger = A
Source
<Figure size 1040x390 with 2 Axes>

Fig. Left: conjugation mirrors a complex number in the real axis, and a real number sits on the mirror. Right: the adjoint mirrors a matrix in its diagonal and conjugates the entries. In a Hermitian matrix every entry’s mirror partner is its conjugate, and the diagonal entries, which sit on the mirror, must be real.

The adjoint of an operator

⟨ϕ∣A^ψ⟩=⟨A^†ϕ∣ψ⟩\langle \phi \vert \hat{A}\psi \rangle = \langle \hat{A}^\dagger\phi \vert \psi \rangle

Why observables must be Hermitian

A measurement needs three things from its operator, and Hermitian operators deliver all three.

  1. Real eigenvalues. The eigenvalues are the values a measurement can return, and measured values are real numbers.

  2. Orthogonal eigenfunctions. Eigenfunctions with different eigenvalues satisfy ⟨ϕm∣ϕn⟩=0\langle \phi_m \vert \phi_n \rangle = 0: distinct outcomes are mutually exclusive.

  3. A complete basis. Every state can be written as a sum of the eigenfunctions, so every state has a definite probability for each outcome. That is the subject of Measurement.

Source
<Figure size 960x390 with 3 Axes>

Fig. Eigen-directions of three 2×22\times 2 matrices. A symmetric (real Hermitian) matrix has perpendicular eigen-directions. A matrix that is not symmetric can still have real eigenvalues, but its eigen-directions are skewed, here 45° apart. A rotation turns every arrow, so no direction survives and the eigenvalues are complex.

Try the three matrices yourself. For each one, hunt for the eigen-directions or sweep v\mathbf{v} once around the circle, and read off the angle between the directions you find.

Source
Loading...

Fig. A Hermitian matrix HH (s=0s = 0) has real eigenvalues (left, all on the real axis) and orthonormal eigenvectors, so their overlaps (right) form the identity. Adding ss times a non-Hermitian part KK, with K†=−KK^\dagger = -K, pushes the eigenvalues into the complex plane, and the eigenvectors start to overlap. Neither could describe a measurement.

Momentum and its ii

Commutators: the order of operations

Order matters

Can two observables be sharp at once?

A^B^ ψ=A^ (bψ)=ab ψ,B^A^ ψ=B^ (aψ)=ba ψ⟹[A^,B^] ψ=0\hat{A}\hat{B}\,\psi = \hat{A}\,(b\psi) = ab\,\psi, \qquad \hat{B}\hat{A}\,\psi = \hat{B}\,(a\psi) = ba\,\psi \qquad\Longrightarrow\qquad \big[\hat{A},\hat{B}\big]\,\psi = 0

Two matrices that do not commute

Source
<Figure size 960x370 with 3 Axes>

Fig. The letter F mirrored twice. Swapping first and then flipping (FSFS) turns it 90° clockwise; flipping first and then swapping (SFSF) turns it 90° counterclockwise. Same two steps, opposite results.

FS=(01−10),SF=(0−110),[F,S]=(02−20)≠0FS = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}, \qquad SF = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}, \qquad [F, S] = \begin{pmatrix} 0 & 2 \\ -2 & 0 \end{pmatrix} \neq 0

Try it: press F and S in either order and watch the letter turn over each mirror. The panel keeps the product of the matrices, written right to left like operators. Play both orders to see the two results side by side, then try F twice, or F S twice.

Position and momentum

largest |C psi - i psi|: 9.0e-04
largest diagonal entry of C: 0.0

Rules for commutators

Commuting operators share eigenfunctions

Why, in three steps. Suppose no other eigenfunction of A^\hat{A} has the eigenvalue aa.

  1. Start from A^ϕ=aϕ\hat{A}\phi = a\phi.

  2. Swap the order, which is allowed because the operators commute: A^(B^ϕ)=B^(A^ϕ)=a (B^ϕ)\hat{A}\big(\hat{B}\phi\big) = \hat{B}\big(\hat{A}\phi\big) = a\,\big(\hat{B}\phi\big).

  3. So B^ϕ\hat{B}\phi is also an eigenfunction of A^\hat{A} with the eigenvalue aa. The only such function is ϕ\phi itself, up to a constant: B^ϕ=b ϕ\hat{B}\phi = b\,\phi.

integralDiracnumpy on a grid
adjoint∫(A^†ϕ)∗ ψ dx=∫ϕ∗ A^ψ dx\int (\hat{A}^\dagger\phi)^*\,\psi\,dx = \int \phi^*\,\hat{A}\psi\,dxA^†\hat{A}^\daggerA.conj().T
commutatorA^B^ψ−B^A^ψ\hat{A}\hat{B}\psi - \hat{B}\hat{A}\psi[A^,B^][\hat{A},\hat{B}]A @ B - B @ A

Problems

Problem 1: Complete the Hermitian matrix

Fill in the missing entries so that each matrix is Hermitian, or explain why it cannot be done:

A=(42−3i□−1),B=(□5i□0),C=(1□72i),D=(0□1i3□□42)A = \begin{pmatrix} 4 & 2 - 3i \\ \square & -1 \end{pmatrix}, \qquad B = \begin{pmatrix} \square & 5i \\ \square & 0 \end{pmatrix}, \qquad C = \begin{pmatrix} 1 & \square \\ 7 & 2i \end{pmatrix}, \qquad D = \begin{pmatrix} 0 & \square & 1 \\ i & 3 & \square \\ \square & 4 & 2 \end{pmatrix}

Problem 2: The parity operator

The parity operator reflects a function through the origin, Π^f(x)=f(−x)\hat{\Pi}f(x) = f(-x). Show that Π^\hat{\Pi} is Hermitian, and find its eigenvalues and eigenfunctions. Which states of the finite square well of Tunneling and the Finite Square Well are eigenfunctions of Π^\hat{\Pi}?

Problem 3: Momentum on a four-point grid

Build the 4×44\times4 momentum matrix on a periodic grid of four points with spacing Δx\Delta x, using the centered difference and ℏ=1\hbar = 1 (on a periodic grid the neighbors of point 1 are points 4 and 2). Show that it is Hermitian and find its eigenvalues.

Problem 4: Real eigenvalues are not enough

Find the eigenvalues and normalized eigenvectors of M=(1102)M = \begin{pmatrix} 1 & 1 \\ 0 & 2 \end{pmatrix} and the overlap between the eigenvectors. Could MM represent an observable?

Problem 5: Commutator algebra

Prove the product rule [A^,B^C^]=[A^,B^] C^+B^ [A^,C^][\hat{A},\hat{B}\hat{C}] = [\hat{A},\hat{B}]\,\hat{C} + \hat{B}\,[\hat{A},\hat{C}] by expanding both sides. Use it, with [x^,p^]=iℏ[\hat{x},\hat{p}] = i\hbar, to find [x^,p^3][\hat{x},\hat{p}^3] and [x^2,p^][\hat{x}^2,\hat{p}].

Problem 6: Momentum and force

Show that [p^,V(x)]=−iℏ dVdx[\hat{p}, V(x)] = -i\hbar\,\dfrac{dV}{dx} by acting on a test function. Evaluate it for a particle on a spring, V=12kx2V = \tfrac{1}{2}kx^2, and for a uniform field, V=mgxV = mgx. For which potentials does p^\hat{p} commute with H^\hat{H}?

Problem 7: Why centered differences?

Instead of the centered difference, approximate the derivative by the forward difference ψ′(xj)≈(ψj+1−ψj)/Δx\psi'(x_j) \approx (\psi_{j+1} - \psi_j)/\Delta x. Write the 3×33\times 3 forward-difference matrix DfD_f for three points with ψ=0\psi = 0 beyond the ends, and the momentum matrix Pf=−iℏDfP_f = -i\hbar D_f. Is PfP_f Hermitian? Find its eigenvalues (the matrix is triangular). What would a measurement of this “momentum” return, and what does that say about the choice of the centered difference?

Problem 8: Building a shared eigenfunction

For a free particle, show that cos⁡kx\cos kx is an eigenfunction of H^\hat{H} but not of p^\hat{p}. Which combinations acos⁡kx+bsin⁡kxa\cos kx + b\sin kx are eigenfunctions of both, and what are their momenta?