Why Do We Need Diagonalization to Obtain Observable Quantities?
— From the lecture notes “(14) Basis Transformations of Spin Matrices” (in Japanese) to the rules of measurement (for second- and third-year undergraduates)
In linear algebra courses, diagonalization tends to be taught like this: “find the eigenvalues, line up the eigenvectors, and you are done,”
that is, as a procedure. But once we get to quantum mechanics, diagonalization suddenly becomes
“what a measurement is” itself.
The value you get when you measure is an eigenvalue, and the state after the measurement is an eigenvector
— the moment you accept these two lines, it is settled that “if you want to know an observable quantity, diagonalization is the only way.”
The conclusion first
A matrix is nothing but “the look of an operator once one basis has been fixed.”
When the basis is changed, the look changes (),
and if we choose the basis well, all the off-diagonal elements vanish.
And as long as off-diagonal elements remain, we cannot read the matrix as “this value occurs with this probability.”
If we naively count the expectation value as , we miss exactly the part that comes from the off-diagonal elements.
Diagonalization is the operation that reduces that missed part to zero.
1. A Matrix Is Only a “Look” Relative to a Basis
The operator itself exists independently of any basis.
A “matrix” appears when we fix one set of orthonormal basis vectors and write out the components.
(1)
What happens if we replace the basis with a different set ?
Let be the matrix whose entries are the coefficients of the expansion of the new basis in terms of the old one. Then
(2)
What matters is “what changes and what does not”
Only the arrangement of the components changes. The determinant, the trace, and the eigenvalues do not change
(,
).
Physical quantities do not depend on the choice of basis — this sounds obvious, but it matters.
In tab ② of the simulator, the fact that ⟨σx⟩ stays the same however you move α is a demonstration of this.
2. First, a Picture — Symmetric Matrices and “Principal Axes”
Before turning to quantum mechanics, let us look at the geometric meaning of diagonalization.
For a real symmetric matrix ,
the curve is, when both eigenvalues are positive (positive definite), an ellipse (if the signs differ it is a hyperbola; below we consider the ellipse case).
The axes of that ellipse (the principal axes) are the eigenvectors, and the semi-axis lengths are .
The moment we align the coordinate axes with the principal axes, the off-diagonal elements vanish from the matrix.
In pictures, “diagonalization” is nothing more than this
The figure has not moved at all. What moves is the ruler (the coordinate axes) that measures it.
When we align the ruler with the axes of the figure, the description becomes simplest — that is diagonalization.
The situation in quantum mechanics is exactly the same: what we move is not the state but the basis.
3. Observable Quantities Must Be Hermitian Operators
From here on it is quantum mechanics. The values obtained by measurement must be real numbers.
This is because a length of 3 + 2i meters is impossible.
This obvious requirement ends up determining the form of the operator.
Taking and multiplying both sides from the left by , we get
(3)
In the middle equality we used (Hermiticity).
Since , we have , that is, the eigenvalues are real.
Conversely, an operator whose expectation value is real in whatever state it is measured
is necessarily Hermitian. In this sense,
“only real numbers come out of a measurement” and “the operator is Hermitian” are two sides of the same coin
(merely having eigenvalues that all happen to be real does not make an operator Hermitian.
is an example).
The same calculation gives one more important result.
Two eigenvectors with different eigenvalues are necessarily orthogonal.
(4)
Why is it a problem if they are not orthogonal?
If they are orthogonal and also span the whole space (which is guaranteed by the spectral theorem in the next section, §4),
any state can be decomposed uniquely as ,
and the coefficients can be extracted by .
It is precisely because this decomposition is possible that we can read as a probability.
4. The Spectral Theorem — Hermitian Matrices Can Always Be Diagonalized
Combining the two results of §3, we can state the following (the spectral theorem).
For a Hermitian matrix , we can always find a unitary matrix whose columns are the eigenvectors, such that
(5)
The second line is a way of writing called the spectral decomposition, and it is read as
“ is obtained by weighting with the eigenvalues
and adding up the projections onto the eigenstates.”
The operator has been taken apart into pairs of a measured value and the state in which that value occurs.
It does not work this way unless the operator is Hermitian
A general matrix is not necessarily diagonalizable (some can be brought only to Jordan normal form).
The requirement that “observable quantities are Hermitian” guarantees that “diagonalization is always possible”
— this order is important. The physical requirement comes first, and the mathematical theorem follows.
5. The Rules of Measurement — Where Diagonalization Becomes Necessary
The rules of measurement in quantum mechanics are the following two lines.
The rules of measurement
(i) When the physical quantity is measured, the value obtained is one of the eigenvalues .
(ii) In the state , the probability that it occurs is
.
After the measurement, the state changes to .
(6)
Note that this is an eigenvector.
That is, the rule of measurement can be read in the form “the squared absolute value of the coefficient is the probability” only
in “coordinates that take the eigenvectors as the basis.”
The same is true of the expectation value.
(7)
5.1 What happens if we have not diagonalized
Then what happens if we do the same thing in an ordinary basis that is not made of eigenvectors?
Expanding as and writing down the expectation value, we get
(8)
The first term has the same form as Eq. (7), but the second term is left over as an extra.
That is, the naive way of counting, reading “the diagonal elements as the values and |c|² as the probabilities,” is wrong as long as off-diagonal elements remain.
It is only when the matrix has been diagonalized that this missed part is exactly zero for every state — this is the answer.
You can check this in the simulator
In tab ②, if you set α to anything other than 45°, the readouts
“⟨σx⟩ (correct value)” and “Value counted with diagonals only” come apart
(only when the state lies on one of the basis vectors, so that one of c1, c2 is 0,
do they agree even though off-diagonal elements remain. Move θ to check this).
That difference is the second term of Eq. (8). At α = 45° (diagonalized) the two agree exactly.
5.2 What it means to “have a definite value”
Let us calculate the spread (standard deviation).
(9)
This is the “variance” of , so if the eigenvalues are all different, it becomes zero
only when exactly one is 1 (the phase is arbitrary) and all the others are 0.
When there is degeneracy, it is enough that only the components belonging to the same eigenvalue remain — because any superposition of them is again an eigenvector.
That is,
A physical quantity has a definite value ⟺ the state is an eigenvector of
So if you want to know “what value we get when we measure this physical quantity,”
there is no way other than to diagonalize that physical quantity and find its eigenvectors.
6. Only Commuting Quantities Can Be Made Definite Simultaneously
Suppose we want to make two physical quantities and definite simultaneously —
that is, we want a state that is an eigenvector of both. The condition for this is
(10)
One direction (⟸) is easy. If there is a common eigenbasis, both and are diagonal matrices in that basis.
Diagonal matrices give the same product whichever order they are multiplied in, so the commutator is zero.
The converse (⟹) also follows in two lines if there is no degeneracy:
, so
is also an eigenvector with eigenvalue ,
that is, a constant multiple of . That constant is the eigenvalue of .
Three things follow from this at once
(a) The uncertainty principle. Since , position and momentum cannot be made definite simultaneously.
(b) Good quantum numbers. Only quantities that commute with the Hamiltonian () can be used as labels of the energy eigenstates.
The , , of the hydrogen atom are precisely these.
(c) Only one quantization axis can be chosen. Since ,
the spin in the x direction and the spin in the z direction cannot be made definite at the same time.
The fact that lecture notes (14) rewrite the same state from a “representation quantized along the x axis” to a “representation quantized along the z axis” is for the same reason.
Since a state that has definite values along both axes cannot be built, we have no choice but to select one axis and write the state in terms of it (the state itself does not change; §8).
7. With Degeneracy, Freedom Remains in the Choice of Basis
If the eigenvalues are all different, the eigenvectors are determined uniquely (up to a phase).
However, if there are two or more equal eigenvalues (degeneracy), then within the space belonging to that eigenvalue
any orthogonal basis may be chosen.
This is what lies behind “complex vs. real” for spherical harmonics
have the same values of both the energy and .
Therefore, within this two-dimensional space the choice of basis is free;
we may keep the complex functions, or replace them with the real combinations , . Both are equally correct.
So what decides the basis? It is “what we measure next.”
If we want to measure , we use the complex basis; if we want to measure the energy inside a crystal field, we use the real basis.
The “perturbation” that lifts the degeneracy selects the basis for us.
8. Example 1: Spin Matrices (Lecture Notes (14))
Let us follow the calculation in the lecture notes. The Pauli matrix representing the spin in the x direction, together with its eigenvalues and eigenvectors, is
(11)
Simply lining up these two eigenvectors as columns gives .
(12)
Since this is real symmetric and orthogonal, it is its own inverse
(). That is why the lecture notes can write and almost without distinguishing between them. If we sandwich σx between U−1 and U, we obtain
(13)
As for the eigenvectors, we write the eigenvectors of in Eq. (11) () as
, , respectively.
Note that here the arrows mean up and down along the x axis, not yet up and down along the z axis. Mapping these with , we get
(14)
The conclusion of the lecture notes: “This is precisely the eigenvector that represents the spin in the z direction!!”
The same physical state has become “up” and “down” themselves in the new basis.
The physics has not changed at all. What has changed is the ruler used to write it down.
The operator σx that measures the spin in the x direction has taken on the look of σz — we read this as
“the quantization axis has changed from the x axis to the z axis.”
On the Bloch circle, the angle is doubled
When the basis is rotated by , it rotates by on the Bloch circle.
At the axis of the basis lies exactly on the x axis, and the matrix becomes diagonal there.
This doubling is the flip side of the fact that rotating a spin 1/2 by 360° in real space changes its sign (it returns only after 720°).
In tab ② of the simulator, you can see it as the angle of an arc.
9. Example 2: Spherical Harmonics — The Probability Current Stops for Real Orbitals
We span the two-dimensional space of anew with two real functions.
,
(the type and the type).
To make the matrix real, we attach the phase factor to (since we have only multiplied by a phase, it is still the same real orbital as a state). Writing in this basis, we get
(15)
This has exactly the same form as in §8.
In the real basis is entirely off-diagonal; that is, has no definite value.
In the complex basis, which is rotated by 45°, it becomes diagonal, and the diagonal elements are the measured values.
Then what merit does the real basis have? The probability current.
(16)
If is a real function, Im is zero, so no probability current flows at all in a real orbital.
In a complex orbital the phase rotates with , and that rotation becomes a ring current just as it is.
That ⟨⟩ and the probability current vanish together through the same factor is no accident;
it is because both measure the “rotation of the phase.”
How to read the picture in tab ① of the simulator
What tab ① draws is a cross section of the orbital cut at the equatorial plane (the plane).
Color is the phase, and darkness is .
On the complex side, the color goes around times as goes once around, and the darkness does not depend on : it is a donut.
On the real side there are only two colors (phase 0 and ), and the darkness forms petals — the orbital pictures printed in textbooks are on this real side.
Note that orbitals for which is odd are left out, because the whole plane becomes a node and nothing can be seen.
Condensed matter physics: quenching of orbital angular momentum
For an isolated atom, , so
the energy and can be made definite simultaneously (complex orbitals).
In a crystal, however, the crystal field created by the surrounding ions is added, and
.
By §6, the two cannot be diagonalized simultaneously.
If the crystal field lifts the degeneracy of , the eigenfunctions obtained by diagonalizing the energy can be taken as real orbitals, and
—
the orbital angular momentum disappears (quenching).
This is the reason why the magnetism of 3d transition metals can be explained almost entirely by spin alone.
10. Example 3: From Coupled Oscillations to Phonons
The last example is from classical mechanics. The equations of motion of two masses connected by springs (we take the two masses to be equal and set their value to 1 from here on) are
(17)
As long as the off-diagonal element is present, the two equations remain coupled.
Since is real symmetric, it can always be diagonalized by an orthogonal matrix , so that
(18)
The eigenvalues are the squares of the frequencies, and the eigenvectors are the normal modes.
Seen in the normal coordinates , there are just two ordinary simple harmonic oscillations side by side.
“Beating” is a sign that the basis is misaligned
If we pull only mass 1 and release it, the energy goes back and forth between masses 1 and 2.
This is seen because the two normal modes are superposed with slightly different frequencies, and its period is
.
Conversely, if we start with just one of the normal modes, the system keeps oscillating in that same form forever.
Beating is seen only when the chosen coordinates are misaligned with the normal coordinates.
From here on, it is solid-state physics itself
For a crystal with atoms, we do the same thing with a dynamical matrix.
The normal modes that come out of the diagonalization are the phonons,
and the eigenvalues are the squares of the frequencies. Both the specific heat and the thermal conductivity start from this diagonalization.
If an eigenvalue becomes negative (),
it means that displacing the atoms in that direction lowers the energy, so the structure is unstable.
What we look at when judging the stability of a crystal in first-principles calculations is precisely this sign.
11. Numerical Checks
| What was checked | Agreement |
| Eq. (2): the similarity transformation makes the off-diagonal elements zero and the diagonal elements the eigenvalues (400 real symmetric examples) | Maximum difference < 6×10−15 |
| The trace and the determinant do not depend on the basis | < 6×10−15 |
| Eqs. (12), (13): , | < 3×10−16 |
| Eq. (14): , | Exact agreement |
| Eq. (7): does not depend on the basis (234 cases) | < 5×10−16 |
| Eq. (8): the discrepancy when counting with the diagonal elements only | Before diagonalization: max. 1.000 / after: < 4×10−16 |
| The real spherical harmonics , are orthonormal (4 orbitals) | < 6×10−10 |
| Eq. (15): ( is the mixing angle of the state ; numerical integration over the sphere, 36 cases) | < 6×10−10 |
| Eq. (15): in the real basis, | < 6×10−10 |
| Eq. (16): the probability current constructed by numerical differentiation is compared with the analytical expression | < 3×10−14 |
| Eq. (16): the probability current is zero in the real basis | < 4×10−19 |
| Eq. (10): when is diagonalized, the off-diagonal element of becomes 1.000 | Not simultaneously diagonalizable |
| Eq. (10): two commuting matrices can be diagonalized simultaneously with the same angle (200 examples) | < 4×10−15 |
| Eq. (17): the solution satisfies (numerical second derivative, 60 examples) | < 9×10−8 |
| Eq. (18): no mixing if we start with a single normal mode / energy conservation | < 6×10−17 / relative difference < 2×10−8 |
12. Summary
- A matrix is nothing but a “look” relative to a basis.
When the basis is changed, the look changes to , but
the eigenvalues, trace, and determinant do not change (Eqs. (1), (2)).
- Observable quantities must be Hermitian.
From this it follows that the eigenvalues are real, that the eigenvectors are orthogonal, and that diagonalization is always possible (Eqs. (3)–(5)).
- The value obtained by measurement is an eigenvalue, and its probability is
.
Therefore unless we take the eigenvectors as the basis, we cannot even write down the rule of measurement (Eqs. (6), (7)).
- As long as off-diagonal elements remain, the expectation value cannot be decomposed into “value × probability” (Eq. (8)).
Diagonalization is the operation that reduces that missed part to zero.
- A physical quantity has a definite value ⟺ the state is its eigenvector (Eq. (9)).
- Only quantities that commute can be made definite simultaneously (Eq. (10)).
Hence the uncertainty principle exists, good quantum numbers are determined, and only one quantization axis can be chosen.
- With degeneracy, freedom remains in the choice of basis.
What we call a “good basis” is decided by what we measure next.
The complex and real forms of the spherical harmonics are precisely two ways of using this freedom.
- Lecture notes (14): sandwiching with , whose columns are the eigenvectors of , turns it into , and
the eigenvectors turn into (1,0) and (0,1) — the quantization axis has moved from x to z (Eqs. (11)–(14)).
- Real orbitals make off-diagonal but in exchange stop the probability current (Eqs. (15), (16)).
Under a crystal field this becomes the good basis, and the orbital angular momentum is quenched.
- Diagonalizing a real symmetric matrix is a principal axis transformation.
For coupled oscillations it gives normal modes, and for a crystal, phonons (Eqs. (17), (18)).