How the Harmonic Oscillator Is Solved, Why It Cannot Come to Rest, and Second Quantization
— Following the derivations in the lecture notes “Harmonic Oscillator” (1)(2)(3) and “Second Quantization” (1)–(5) (for second- and third-year undergraduates)
A point mass attached to a spring with spring constant .
In classical mechanics the energy can take any value continuously from 0, and the lowest state is “at rest.”
Solving the Schrödinger equation gives
,
so the energy is discrete, and what is more, the lower limit is lifted by .
We derive, step by step, where these two features come from.
The conclusion first“Discrete energies” come from the boundary condition. If we require that the wave function converge to 0 as
,
the series must terminate somewhere,
and this becomes the condition .
The lifted lower limit is the uncertainty principle itself;
is
translated into energy.
From §7 on we turn to second quantization. This is a route to the same answer that never solves a differential equation.
The creation and annihilation operators that appear there are not tools for the harmonic oscillator alone.
They become the common language for treating systems with many particles.
0. Setup
This is the starting point of lecture notes (1). The force exerted by the spring is
,
and its potential is
(1)
The time-independent Schrödinger equation is
(2)
This form appears everywhere
For any potential, if we Taylor-expand around a point of stable equilibrium,
the first-order term is 0 (because it is an equilibrium point), and the second-order term is
.
In other words, near its bottom, every potential is a harmonic oscillator. Molecular vibrations, atoms in a crystal,
and the individual modes of the electromagnetic field (the ones counted in Planck’s law) all obey this equation.
1. Intuition First (the 30-Second Version)
Why is the energy discrete? The reason is “unless it goes to 0 at infinity, it cannot be a probability.”
Eq. (2) is a second-order differential equation of the form ,
so a solution exists whatever value we choose for E.
But far from the origin, for most values of E the solution behaves like
and diverges. Since the integral becomes infinite, no probability interpretation is possible.
Only for discrete values of E does the diverging component cancel out cleanly, and
is all that remains.
Quantization comes not from the equation but from the boundary condition — this is the most worthwhile point to learn from the harmonic oscillator.
In the figure of §2.4, you can actually vary ε and watch the solution diverge.
2. Solving the Equation — Lecture Notes (1)
2.1 Making the equation dimensionless
Eq. (2) has scattered all over it, which makes it hard to read, so
we re-measure lengths and energies in their “natural units.”
(3)
All the constants have disappeared. From here on, no physical constants appear at all.
is the “1 meter” of this oscillator, and
is its “1 joule.”
2.2 Looking at the form far away first
For large
, we have
, so Eq. (3) becomes
.
The function that satisfies this is
.
The + sign diverges, so we discard it (boundary condition
).
Now we look for the solution in the form
(4)
We guess this form and substitute it. It looks like a clever trick, but all we are doing is
“pulling out first the part of the answer that we already know.” Substituting it into Eq. (3), the factor
multiplies every term, and setting the contents of the bracket to 0 gives
(5)
This is the Hermite differential equation.
2.3 Expanding in a series
Writing
and substituting into Eq. (5), then matching the coefficients of , we find
a relation that links neighboring coefficients.
(6)
2.4 Here is where quantization happens
Look at Eq. (6). For large we have
But the coefficient ratio of
is likewise, if we put , exactly
. In other words,
⚠ If the series does not terminate, it always diverges
If the series goes on forever, then
, and from Eq. (4),
.
The divergent solution that we had so carefully discarded comes back to life.
The only way to avoid this is for some coefficient to become 0 so that the series ends as a polynomial.
The series stops wherever the numerator of Eq. (6) becomes 0. Suppose it terminates at , then
(7)
The energy has become discrete.
This is what stands behind “ (from the series solution)” in the notes.
In the figure below, vary ε continuously and see what happens.
Left: ψ obtained by numerically integrating Eq. (3) from .
If ε deviates even slightly from the discrete values, the solution immediately diverges (the vertical axis is logarithmic).
Right: the far-field value seen as a function of ε.
Only the points where the curve crosses 0 are allowed — choosing an even function gives ,
choosing an odd function gives ,
and together they give .
3. The Form of the Solution — Lecture Notes (2)
The polynomial obtained when the series is cut off at order is the Hermite polynomial
.
Fixing the constant with the normalization condition
gives
,
as in the notes.
(8)
n
Shape
0
A single hump with no nodes (Gaussian function)
1
One node (zero at the center)
2
Two nodes
These are the same as (i), (ii), (iii) of lecture notes (2). The number of nodes is exactly n, and
the more nodes there are, the finer the wave, that is, the larger the kinetic energy.
This is why the energy goes up.
4. What the Zero-Point Energy Really Is — Lecture Notes (3)
Even for
,
.
Why it cannot be made 0 can be understood without solving the Schrödinger equation. This is the argument of lecture notes (3).
In the classical energy
,
replace x and p by their “fluctuations.”
For a state centered at the origin (),
this is just the mean energy . Using the inequality between the arithmetic and geometric means,
(9)
The thing to notice is that
drops out cleanly, leaving only .
Inserting the uncertainty principle
here gives
(10)
The zero-point energy is produced by the “fluctuations in position and momentum”
This is what lies behind the closing line of the notes, “The zero-point energy was an ‘energy fluctuation’ after all.”
(What fluctuates is position and momentum; the energy of the ground state itself has
— every measurement gives ).
To come to rest, we would have to make ,
and then ,
so the potential energy of the spring now becomes infinite.
Conversely, if we try to pin it down at a single point, the kinetic energy diverges.
In this tug of war, the best compromise is ,
and the obtained in §2 agrees with it exactly.
This agreement is no accident. Equality in Eq. (9) holds when the two terms are equal,
that is, when .
This is exactly the width of in Eq. (8).
In fact, since ,
equality in the uncertainty principle holds only when .
The ground state is “a state compressed as far as the uncertainty principle allows.”
5. Absolute Zero and the Third Law of Thermodynamics
In thermal equilibrium at temperature T, the probability of being in level n is given by the Boltzmann distribution
.
Summing the geometric series (exactly the same calculation as on the page on Planck’s law) gives
(11)
Relation to Planck’s law
The first term is exactly the expression
that Planck used for cavity radiation. Planck’s law contains no zero-point-energy term.
This is because the zero-point term does not depend on temperature, so it does not appear in the energy exchanged as thermal radiation (that is, in the spectrum).
differs from mode to mode and diverges when summed over all modes, so
it cannot be pulled out as a constant common to all modes. Incidentally,
in 1912 Planck himself added
in his second theory.
5.1 Absolute zero does not mean “coming to a stop”
Take the limit
. In
, the argument
diverges to , and approaches 1, so
(12)
Even when every particle has dropped into the ground state, the jiggling remains.
Saying “absolute zero = a state in which all motion has stopped” is natural in the language of classical mechanics, but
it is not correct in quantum mechanics. The correct statement is “a state in which everything is in the ground state,”
and there, zero-point motion with energy always remains.
Why liquid helium does not solidify
Helium remains a liquid at ordinary pressure even if it is cooled to absolute zero.
Because the atoms are light (m is small) and the interatomic forces are weak (ω is small),
the amplitude of the zero-point motion is so large, compared with the interatomic distance, that it cannot be neglected,
and the atoms cannot settle into a crystal lattice. This is one of the few examples in which the zero-point energy is directly visible.
5.2 Why it cannot be reached
The third law of thermodynamics can be stated in two ways.
Nernst’s theorem: as , the entropy
. This is because the ground state is uniquely determined.
In fact,
(where )
tends to 0 exponentially as .
Unattainability: cannot be reached by any finite number of operations.
The two are connected. Cooling is the operation of “throwing entropy out of the system,” but
as T falls the remaining S becomes smaller, so the amount that can be thrown away in a single operation also decreases.
Because the decrease is exponential, no number of stages will ever reach 0.
However, how much can be thrown away in one step is determined by the details of the cooling operation (the coupling to the heat bath and the speed of relaxation).
This is an explanation that shows the line of reasoning; it is not a theorem that follows from the ground state being unique alone.
⚠ Mind the direction of causalitySaying “absolute zero cannot be reached because there is zero-point energy” involves a bit of a leap.
More precisely, both start from the same fact: “the ground state is uniquely determined, and there is nothing below it,”
but they say different things.
The zero-point energy tells us what kind of state absolute zero is
— not a state at rest, but the ground state that keeps vibrating with the energy .
The third law says that the procedure for getting there never ends in a finite number of steps.
“It does not stop even when we cool it” and “it cannot be cooled all the way in the first place” are different claims. The former is
a property of the ground state itself, whereas the latter is a property of the cooling operation, and the two are linked through
(Nernst’s formulation).
6. The Road Back to Classical Physics
Then why can’t we see quantum behavior in a spring on a desk? Lining up the numbers makes it obvious at a glance.
System
(n=0)
at 300 K
H₂ molecule stretching mode
0.546 eV
6332 K
8.72 pm
7×10−10
CO molecule stretching mode
0.269 eV
3122 K
3.37 pm
3×10−5
Si optical phonon (Γ point)
0.0632 eV
734 K
3.43 pm
0.095
Si acoustic phonon (softest mode)
0.00152 eV
17.6 K
22.1 pm
16.5
Desk spring
6.6×10−15 eV
7.6×10−11 K
7.3×10−18 m
3.9×1012
Two things to take away(1) At room temperature, the desk spring is at .
The spacing of one step is only 10−12 of the total, so the staircase looks continuous.
The width of the zero-point motion, 7×10−18 m, is even smaller than the radius of a proton and cannot be measured.
(2) Conversely, at room temperature 99.997 % of CO molecules are already in the ground state.
In other words, for this vibration, room temperature is, for all practical purposes, “absolute zero.”
Even so, it is not at rest: it keeps up a zero-point motion of 3.37 pm (3 % of the bond length).
⚠ A crystal is not “a single harmonic oscillator”
So far we have discussed a single oscillator, but a crystal containing N atoms has
vibrational modes (phonons), and
depends on the wavenumber q and on the branch.
The two Si rows in the table above are taken from the Si phonons calculated from first principles by the Mochizuki Research Group, and they are the
two extremes. Within the same crystal, the room-temperature
ranges from 0.095 to 16.5, varying by more than two orders of magnitude.
Averaged over the Brillouin zone and all branches, we get
.
The modes are in a range where n = 0, 1, 2, … can be counted, so the quantum nature shows up directly in measurements
— the evidence is that the constant-volume molar heat capacity of Si at room temperature is 19.9 J/(mol·K),
only 80 % of the Dulong–Petit value .
Another route is the correspondence principle. As we increase n,
oscillates rapidly, but its overall shape approaches the classical probability density
.
In tab ① of the simulator, you can check this by raising n to 20.
7. Another Route — Second Quantization (Lecture Notes “Second Quantization” (1)(2))
In §2 we expanded Eq. (3) in a series and, from the requirement that “the series must terminate,” obtained
.
This is the right route, but chasing the coefficients of the Hermite polynomials is laborious.
Here we take a route that arrives at the same answer without ever solving a differential equation.
Moreover, this tool is not limited to the story of a single harmonic oscillator.
It becomes the standard language for treating systems with many particles.
7.1 Why do we need such a tool?
The Introduction of the notes
When treating the wave function of a many-particle state, it is often more convenient, without writing down the wave function each time, to
describe the number of particles and how it changes.
For this purpose, the creation operator and annihilation operator of the particle are often used.
When dealing with fermions (such as electrons), the particle number itself seldom changes,
but when we consider excited states of electrons, we have to see them as “one electron disappears and one hole is created.”
For bosons (phonons, photons, and so on) the particle number changes all the time,
so the creation and annihilation operators play the leading role in the description.
A note on notation
In the notes, the creation operator is written .
Here, following the usual textbook convention, we write (dagger). They are exactly the same thing.
The dagger is the mark of the “Hermitian conjugate,” a notation chosen so that it will not be mistaken for a +.
7.2 Factoring the Hamiltonian
The starting point is the same Schrödinger equation as Eq. (2). With the position operator and the momentum operator
, it reads
(13)
This is the starting point. A sum of two squares such as + can, for ordinary numbers, be rewritten as
by factoring. Let us try the same thing here, and we get
The two blocks underlined in the notes have names.
(14)
Inverting these relations, we can rewrite position and momentum in terms of , .
(15)
However, this factorization is not exact
and are operators that give a different result when the order is swapped
().
If we imitate the factoring of ordinary numbers, a discrepancy appears by exactly that much.
And that discrepancy is none other than the zero-point energy that we met in §4.
We settle the matter in §8 below.
8. Commutation Relations — Where Bosons and Fermions Part Ways (Lecture Notes (3))
8.1
Multiplying out Eq. (14) straightforwardly gives the following two lines from the notes’ Evidence.
The first terms are identical, so they cancel when we subtract. Only the commutator remains, and substituting
gives
(16)
8.2 Writing the Hamiltonian in a form with no ambiguity of ordering
This is the line marked “Attention” in the notes. This time, if we add, the commutator part cancels.
The bracket on the right is none other than the of Eq. (13). Therefore
(17)
and are treated on an equal footing, so
there is no ambiguity about which one to write first. This is what the notes mean when they write that “the Schrödinger equation of the harmonic oscillator can be expressed as
.”
The discrepancy in the factorization = the zero-point energy
The naive factorization in §7.2 was .
By Eq. (16) we have , so
Eq. (17) becomes
.
In other words, the naive factorization was too large by .
This is the same quantity as the one obtained from the uncertainty principle in §4.
“ and do not commute,” “the uncertainty principle,” and “the zero-point energy” are
three ways of saying one thing — here we can see it in the equations.
8.3 For fermions, it is addition, not subtraction
In the left margin of the notes it says, “This commutation relation holds only for bosons. For fermions it is
.” This is the passage in question.
If we write the fermion operators as , , the rules are
(18)
Why does the sign change? When two particles of the same kind are exchanged, the many-body wave function
keeps its sign for bosons and changes sign for fermions.
Eqs. (16) and (18) are exactly what this “exchange sign” turns into when carried over to the commutation relations of the operators.
Pauli’s exclusion principle comes out in two lines
means, directly, that
“a second particle cannot be put into the same state.”
Squaring the number operator and using Eq. (18) just once gives
In other words, .
The occupation number can only be 0 or 1.
This contrasts with the boson’s , which can grow as 0, 1, 2, … without limit
(in tab ⑤ of the simulator, you can play with exactly this difference).
Even for the same , a different way of packing gives a different shape
Let us put particles into a single harmonic oscillator.
If the particles are bosons, all of them can be placed in , so the ground-state energy is
,
the density stays in the shape of and is sharply peaked at the center.
Fermions can occupy a state only one at a time, so they have to be stacked up from to
, and the ground-state energy is
,
the density has to mobilize even the many-noded , and so it becomes broad and flat.
If we write the number density of particles as , the total number
is the same for both, yet the shape and the ground-state energy are completely different.
Matter has volume and cannot be squeezed together because of this latter property. However, spin has been omitted here.
Tab ⑤ of the simulator also displays “Fermions — at most one per level,” but this is a way of counting that leaves out spin.
Real electrons have spin ↑↓, so up to two can enter a single level,
and if we recount the states as (level, spin) pairs, the argument above holds as it stands.
9. The Number Operator (Lecture Notes (4))
Let us write
out again carefully. We simply substitute
into the second line of §8.1.
(19)
Substituting the result of §2, , we obtain, as in the notes,
(20)
The meaning of changes
Up to §2, was the number that labeled “which level it is.”
Here it is the eigenvalue of , that is,
the number that counts “how many quanta are in that oscillator.”
can be read as “ per quantum, times quanta, plus the zero-point energy.”
Each kind of system gives these quanta its own name.
For the lattice vibrations of a crystal they are phonons, and for the electromagnetic field they are photons.
The heart of second quantization is that “moving up a level” and “gaining one particle” are exactly the same mathematics.
In the margin of the notes: “Swap and and you get +½, right?”
Exactly. From Eq. (16) we have , so
.
is smaller than by ,
is larger than it by ,
so the difference, 1, is exactly Eq. (16).
Eq. (17) takes the mean of the two because it passes through the middle of this ±½.
10. Climbing Up and Down the Ladder (Lecture Notes (5))
The names are “creation” and “annihilation,” but what actually happens when we apply them to a wave function?
The notes check this using the exact wave function for .
In terms of the dimensionless variable , Eq. (14) becomes
10.1 The calculation in the notes
We apply the creation operator to
.
This is the notes’ line “and so we obtain .”
Conversely, applying the annihilation operator changes the sign of the middle term, and cancels out cleanly,
This is the notes’ line “and so we obtain !”
What to notice is that the shape of the wave function itself changes into that of the neighboring level.
10.2 Generalizing to arbitrary
This is the notes’ Theorem.
(21)
In the figure below, you can check this by actually applying the operators numerically, as differential operators. The curve computed for
and the curve for
coincide exactly.
Applying the ladder operators to a wave function.
Gray is the original , and the thick blue curve is
or (derivatives by numerical differences),
and the red dashed curve is the right-hand side of Eq. (21). If the two curves coincide, Eq. (21) holds.
10.3 The question in the margin of the notes: “Isn’t there a smarter way?”
There is. The notes’ Evidence rewrites the expression partway using , but
if we first collect it into the form of a commutator, it takes just one line.
(22)
Just apply this to .
In other words, is an eigenfunction with eigenvalue . All that remains is to measure its length (normalization), which fixes the coefficient.
(23)
Its length is and its direction is , so the first of the two relations in Eq. (21) follows.
In the same way, gives the second one.
We have never used the explicit form of the wave function. All we used were Eqs. (16) and (19).
10.4 Quantization appears once more
The equation below Eq. (23), , has the square of a length on its left-hand side, so it cannot be negative. That is,
.
But each time we apply , decreases by 1.
If it does not stop somewhere, we eventually reach .
The only way for it to stop is
Counting from there gives . The very same conclusion that we derived in §2 from “the series must terminate” has now come out
without ever solving a differential equation.
Bonus: the ground state follows from a first-order differential equation Writing
out using Eq. (14) gives
, that is,
.
Integrating gives .
This is the same as the in Eq. (8), which we obtained in §2 by solving the second-order differential equation with a series.
From here, applying Eq. (21) repeatedly gives every :
.
11. How This Helps in the Many-Body Problem
So far this has been about a single oscillator. Second quantization shows its worth
when there are many particles.
If we try to write out in full the wave function of
particles, ,
the Slater determinant for fermions contains terms. For
there are 3.6 million terms; for there are 2×1018 terms. That is far too many to write down on paper.
(The value of the determinant itself can be found using LU decomposition in operations.
What really gets out of hand is the combinatorial explosion that arises when we superpose this determinant in many different ways to build a many-body state.)
But if we write down only “how many particles are in which level,”
That is all it takes. The notation does not change however many particles there are.
Moreover, the fermion rule that “the sign changes when two particles are exchanged”
is absorbed wholesale into the anticommutation relation of Eq. (18).
There is no longer any need to write a Slater determinant.
The Hamiltonian, interactions included, can be written in this form for any system.
(24)
The first term is the one-body energy and the second term is the two-body interaction (the Coulomb repulsion, for electrons).
The Hartree–Fock method, perturbation theory, and Feynman diagrams all start from this equation.
Processes that change the particle number translate directly into equations
Absorption of light: annihilate one photon and promote an electron to a higher level
—
Electron excitation: annihilate the electron in level , and create one in level
— .
The vacated level is a hole. This is what the Introduction of the notes means by
“annihilation of an electron and creation of a hole.”
Lattice vibrations: if we decompose the vibrations of a crystal into normal modes, each mode is an independent harmonic oscillator.
For the mode with wavenumber and branch , applying amounts to “creating one phonon.”
Specific heat, thermal conductivity, and the electron–lattice interaction (superconductivity belongs here too) all
turn out to be calculations that count the creation and annihilation of these phonons.
In tab ② of the simulator we used the quantity , which is exactly “the average number of phonons in that mode.”
12. Numerical Checks
What was checked
Agreement
Recurrence-relation version of Eq. (8) vs. the explicit forms in lecture notes (2) for n = 0, 1, 2
Relative difference < 4×10−16
Normalization (n ≤ 30)
Relative difference < 2×10−13
Orthogonality
< 4×10−15
Whether Eq. (3) is satisfied (numerical second derivative)
Residual < 9×10−8
,
Relative difference < 2×10−13
Eqs. (9)(10): minimum from the arithmetic–geometric mean inequality =
Relative difference < 2×10−16
Coefficient ratio of Eq. (6) → 2/k (for k = 6, 10, 18: 0.57, 0.71, 0.82, approaching 1)
Same behavior as eX²
Numerical integration of Eq. (3): decays only for
At eigenvalues, 10−5; elsewhere, 10+3
Eqs. (11)(12): ⟨E⟩ at is , and at
is
Relative difference < 1×10−12
Second quantization (lecture notes (2)–(5))
Agreement
(21) , (n ≤ 12, operators applied by numerical differences)
Max. difference < 3×10−11
Coefficient measured by an overlap integral
Relative difference < 8×10−12
(bottom of the ladder, §10.4)
< 2×10−13
(16) , (19)(20) eigenvalues of are n (12×12 matrix representation)
Max. difference < 2×10−10
(17) diagonal of is
Max. difference < 1×10−10
Discrepancy of the naive factorization (§8.2)
Max. difference < 2×10−10
(22)(23) ,
Max. difference < 2×10−10
(n ≤ 10)
Max. difference < 2×10−11
(18) , ,
Exactly 0
Ground-state energy for the same N: bosons / fermions , (tab ⑤)
Relative difference < 4×10−14
13. Summary
Near its bottom, every potential is .
That is why the harmonic oscillator appears everywhere (1)(2).
Making the equation dimensionless removes all the constants, leaving the single equation
(3).
To discard the divergent solution far away, we put
(4)(5).
If the series does not terminate, the divergence returns. The condition for termination is
, that is, the quantization of the energy (6)(7).
Quantization comes not from the equation but from the boundary condition.
Even at the lowest level, remains.
This quantity follows from the arithmetic–geometric mean inequality plus the uncertainty principle alone, and
realizes the equality of the uncertainty principle (9)(10).
Absolute zero is not a “state at rest” but “a state in which everything is in the ground state.”
It cannot be reached in a finite number of operations — because the entropy that can be discarded in one operation keeps decreasing,
and how fast it decreases also depends on the details of the cooling operation (11)(12).
Rewriting the Hamiltonian in terms of by factorization
gives the same answer without solving the differential equation. The remainder due to the inexactness of the factorization,
, is exactly the zero-point energy (13)–(17).
has eigenvalue n, which is
“how many quanta are present.” creates one, and removes one. The fact that the ladder stops at
is itself quantization (19)–(23).
Bosons obey the commutation relation ; fermions obey the anticommutation relations
and
.
From the latter we get ,
that is, Pauli’s exclusion principle comes out in two lines (16)(18).
When there are many particles, we write not the wave function but “how many particles are in which level.”
This is second quantization, and it becomes the common language of many-body quantum theory (24).
Mochizuki Research Group, Tokyo University of Science / Based on lecture notes (in Japanese) 5. Wave Mechanics 3. Harmonic Oscillator
(1) “The One-Dimensional Harmonic Oscillator,” (2) “Solutions of the One-Dimensional Harmonic Oscillator and Their Graphs,” (3) “Zero-Point Vibrational Energy and the Uncertainty Principle,”
and the lecture notes “Second Quantization”: (1) “What Is Second Quantization?”, (2) “Creation and Annihilation Operators,” (3) “Commutation Relations of the Creation and Annihilation Operators,”
(4) “The Number Operator,” (5) “Wave Functions of the Harmonic Oscillator and the Creation and Annihilation Operators.”
The thermodynamic part of §5 and the introduction to many-body quantum theory in §11 go beyond the notes and have been added here.
Numerical verification uses the recurrence relation for Hermite functions, Simpson’s rule, fourth-order Runge–Kutta,
and matrix representations in which the ladder operators are applied with fourth-order central differences.
The equations are typeset with the browser’s built-in MathML (there are no external libraries or network communication at all).