Lesson 7: The harmonic oscillator
Keywords : Harmonic oscillator, Ladder operators, Number operator, Ground-state energy, Hermite functions
The harmonic oscillator is undoubtedly the most important model in the whole of physics, both classical and quantum. The reason is simple: near a stable minimum, any regular potential resembles a parabola. The small oscillations of a pendulum, the vibrations of atoms about their equilibrium positions in a molecule or a crystal, and even, as we shall see much later, the modes of the electromagnetic field, are all described, to a first approximation, by a harmonic oscillator.
In this lesson, we shall calculate its spectrum and eigenstates. We could proceed as we did for the wells in the previous lesson, by solving the stationary differential equation. Instead, we shall follow an algebraic method, due to Dirac, which is both more elegant and more instructive. It is based on factorising the Hamiltonian using two operators, known as ladder operators, which allow us to move from one energy level to the next. We shall see that the positivity of certain operators, a direct consequence of the notion of adjoint, is enough to determine the spectrum completely. We shall return to the position-space representation only at the end, to write the wave functions explicitly, and shall then recover the Hermite functions already encountered in Theme 2.
1. The model
1.1. The neighbourhood of a minimum
Let us work in one dimension, and consider a regular potential with a minimum at , where and . The Taylor expansion near this point is
The linear term is absent because is a minimum. Let us choose the origin of position at and the origin of energy at . If the particle remains sufficiently close to the minimum for higher-order terms to be negligible, its Hamiltonian is that of a harmonic oscillator:
The angular frequency is that of small classical oscillations about the minimum. In what follows, we shall treat this Hamiltonian as exact. When it is used to approximate another potential, however, one must bear in mind that the approximation becomes less accurate for highly excited states, which explore regions farther from the minimum where higher-order terms, known as anharmonic terms, are no longer negligible.
1.2. The natural scales
Before beginning any calculation, it is useful to identify the scales of the problem. They are fixed by the three constants , and , from which one can form only a single energy, , and a single length,
We can go further and estimate the ground-state energy using the uncertainty relation. In a state with standard deviations and , and expectation values equal to zero by symmetry, the expectation value of the energy is
where we have used . The first term, the kinetic term, penalises excessively strong localisation; the second, the potential term, penalises excessive spreading. The minimum of the right-hand side as a function of is attained for , and is exactly (check this!). No state can therefore have an expectation value of the energy below . We shall see that this bound is attained: it is the exact ground-state energy. The particle cannot be at rest at the bottom of the well, for the same reason as in the infinite well of Lesson 6.
For what follows, it is convenient to measure lengths in units of and momenta in units of . Introduce the dimensionless operators
The canonical relation becomes , and the Hamiltonian takes the highly symmetric form
2. Ladder operators
2.1. The idea of factorisation
For real numbers and , we would factorise the sum of two squares using complex numbers: . Let us try to do the same with the operators and . Since they do not commute, we must carefully preserve the order of the factors when expanding:
Thus the factorisation works up to a constant term, which arises from the commutator. Reversing the order of the factors similarly gives . It is precisely this small difference between the two orders that will generate the entire structure of the spectrum.
To lighten the notation, we do not place hats on these new operators. The factor is chosen to simplify the commutator below, and the names given to these operators will be justified by their properties. Note that is indeed the adjoint of : since and are self-adjoint, taking the adjoint merely conjugates the factor . In contrast, is not self-adjoint, and therefore does not represent an observable. Nor is it a unitary operator: is not the inverse of .
2.2. The oscillator algebra
Proof.
Their difference gives the first commutator. The first equality also gives , and substituting this into (3) yields the expression for . For the last two commutators, use the rule :
Thus, up to a constant, the Hamiltonian is the operator . Diagonalising amounts to diagonalising : if , then is an eigenstate with energy . The rest of the argument consists in determining the possible values of , using only relations (5).
3. The spectrum
3.1. Positivity of the number operator
A first piece of information follows directly from the definition of as the product of an operator and its adjoint. For any state ,
The operator is therefore positive. In particular, its eigenvalues are non-negative: if with normalised, then . We thus recover, exactly, the bound obtained above from the uncertainty relation.
3.2. Moving up and down the ladder
Now take a normalised eigenstate of , and consider what becomes of and . The commutator may be written , so that
Thus, if is not the zero vector, it is an eigenstate of with eigenvalue . Similarly, gives
The operator therefore moves one step down the ladder of eigenvalues, that is, it lowers the energy by one quantum , while moves it up one step. This is the origin of the name ladder operators, and of their names as annihilation and creation operators for a quantum of energy.
It is also important to know the norm of the resulting vectors. Once again, it is calculated using the adjoint:
where we have used . These two formulae have an important consequence: the lowered state is zero if and only if , whereas the raised state is never zero. One can therefore never be stopped while moving up the ladder, but one can be stopped while moving down it, and only at the level .
3.3. An integer spectrum
We can now determine the possible eigenvalues. The idea is simple: starting from an eigenvalue and moving down the ladder gives the values , , and so on, which would eventually become negative, something forbidden by the positivity of . The descent must therefore stop, and it can do so only on reaching exactly zero.
Proof.
as long as the intermediate vectors are non-zero. Suppose that is not an integer. There is then an integer such that . For , all the factors in the product are strictly positive, and the vector is non-zero. It is therefore an eigenstate of , with eigenvalue , contradicting the positivity of . Thus is an integer . In this case, the factor is zero in the norm of : after steps the descent reaches a non-zero vector with eigenvalue zero, and the next step gives the zero vector.
Note the power of this argument: we have used only the commutation relation and positivity, without ever writing a differential equation. The argument does not yet prove, however, that every integer is indeed an eigenvalue, nor that there is only one eigenstate for each eigenvalue, nor that these states form a basis. These three points require us to construct the ground state explicitly, which we shall do in the position-space representation.

4. The ground state
The bottom of the ladder is a state with eigenvalue . By (6), , and it is therefore characterised by
The right-hand side is the zero vector, not a physical state: the equation simply expresses the fact that there is no lower level. Conversely, any state satisfying (7) satisfies .
To solve this equation, move to the position-space representation, where . From definition (4), we have , and the ladder operators become first-order differential operators:
The ground-state equation is therefore the first-order differential equation
This is the entire advantage of the factorisation: instead of solving the stationary Schrödinger equation, which is second order, it is enough to solve a first-order equation, which can be integrated immediately.
It is an eigenstate of the Hamiltonian, with energy .
Proof.
Thus , and all solutions are proportional. This Gaussian is square-integrable, and the normalisation condition
fixes ; we choose to be real and positive. Finally, implies , and then .
The ground state is therefore a Gaussian of width . Its probability density has standard deviation , which is the value that minimised the energy in our estimate based on the uncertainty relation. It is a Gaussian packet of the type studied in Lesson 4, with and , and is therefore a minimum-uncertainty state.
For an electron, an atom or a molecule, is typically of the order of a fraction of an ångström to a few ångströms. For a laboratory pendulum, by contrast, is absurdly small: with kg and rad s, one finds m, and the zero-point energy is entirely unobservable.
5. Excited states
5.1. Recursive construction
Starting from the normalised ground state , let us move up the ladder. The vector is an eigenstate of with eigenvalue , and its norm is by (6). We may therefore set . The next vector, , has eigenvalue , but its norm is : to obtain a normalised state, we must divide by this factor, and
Similarly, , and so on. The factorial that appears is not a convention: it compensates for the norms accumulated at each upward step.
are orthonormal and satisfy
with the convention . They are eigenstates of the Hamiltonian, with energies
They form a Hilbert basis of . The spectrum of the Hamiltonian is the set of these levels, all of which are non-degenerate.
Proof.
The states are eigenvectors of the self-adjoint operator associated with distinct eigenvalues: they are orthogonal, and normalised by construction.
Let us show that there is no other eigenstate. Let be an eigenstate of ; its eigenvalue is an integer by Proposition 2, and is a non-zero eigenstate with eigenvalue zero. It is therefore annihilated by , and proportional to by uniqueness of the ground state. Applying , we find that is proportional to ; by induction, starting from and , one verifies that , so that acts on an eigenstate of eigenvalue as multiplication by . Thus is proportional to : each level is non-degenerate.
Finally, the wave functions of the states are the Hermite functions, which we write explicitly below. Their completeness in is a result from analysis, assumed in Theme 2. It guarantees that no state has been omitted, and hence that the Hamiltonian, diagonal in this basis with eigenvalues , has no other spectrum.

The spectrum of the oscillator has a remarkable structure: the levels are equally spaced, separated by (Figure 2). This is very different from the infinite well, where the gaps increased as : the more slowly the potential widens, the closer together the levels become at high energy. The integer counts the number of quanta above the ground state; hence the name number operator for . Note, however, that here these quanta are not particles. The model still describes a single particle in a potential, and simply indexes its energy levels. It is in quantum field theory that these quanta acquire the status of particles, for example photons for the modes of the electromagnetic field.
5.2. The wave functions
The excited states are obtained by repeatedly applying the differential operator to the Gaussian (9). In the dimensionless variable , we have and . Thus
Repeating the operation, with , gives
At each step, the same Gaussian is multiplied by a polynomial whose degree increases by one. The general formula involves the Hermite polynomials , defined by the recurrence relation
which gives, for example, . It can be shown that
as is readily verified for and using the preceding expressions. These are the Hermite functions that we presented in Theme 2 as an example of a Hilbert basis of , noting that they were the eigenstates of the harmonic oscillator (Figure 3). The figure shows that has nodes, like the states of the infinite well, and that it is even for even and odd for odd , as it must be for an even potential with non-degenerate levels (cf. Lesson 6).
Note also that the wave functions extend beyond the classically allowed region , where is the amplitude of a classical oscillation with energy : as in the finite well, the wave function penetrates the forbidden region, where it decays as a Gaussian.

6. Expectation values and fluctuations
The algebraic method also makes it very easy to calculate expectation values, without ever calculating an integral. It is enough to invert definitions (4) to express position and momentum in terms of the ladder operators:
By (11), these two operators connect a state only to its immediate neighbours and . This is a selection rule that we shall encounter again: only the matrix elements are non-zero.
The ground state attains equality in the Heisenberg relation.
Proof.
The terms and change the level by two units and have zero expectation value in . The two remaining terms are and . Thus . For , the factor changes the sign of the cross terms:
and similarly we obtain .
It follows that the energy is divided equally between its kinetic and potential contributions in each eigenstate:
as for the time average of a classical oscillation. As increases, the position distribution broadens, and the momentum spread also increases: only the ground state minimises the product of the two, without either spread vanishing.
7. Dynamics
What happens for a state that is not an eigenstate? Since the potential is quadratic, we saw in Lesson 5 that Ehrenfest's theorem gives exactly classical equations for the expectation values:
The centre of any wave packet therefore oscillates exactly like a classical particle, at angular frequency : .
This can be checked for the example of the superposition . By Lesson 1, it evolves as
Using (14) and , we find
which indeed oscillates at the classical angular frequency. More generally, all the energy differences are integer multiples of . All the relative phases therefore return to their initial value after the classical period , and every state of the oscillator is periodic, up to a global phase. This property, specific to the equally spaced spectrum, makes the harmonic oscillator the quantum system closest to its classical analogue. One can even construct Gaussian packets that oscillate without changing shape, the coherent states, which we shall study later.
8. Scope of the model
The vibration of a diatomic molecule near its equilibrium separation provides a direct application. The relevant coordinate is then the distance between the two nuclei, and the mass is the reduced mass of the pair. The harmonic approximation predicts equally spaced vibrational levels, separated by , which are observed in infrared spectroscopy. For the HCl molecule, for example, eV. The actual levels become slightly closer together as increases, because of the anharmonic terms in the potential, which eventually allow the molecule to dissociate; the departure from the harmonic law provides a precise measure of these terms. The vibrations of the atoms in a crystal about their equilibrium positions can likewise be decomposed into a large number of independent oscillators, whose quanta are called phonons.
The model also applies to a particle trapped near the minimum of a trap, such as an ion in an electromagnetic trap or an atom in an optical trap, and more generally to any system whose Hamiltonian reduces, over the energy range under study, to the sum of a quadratic kinetic energy and a quadratic potential. In three dimensions, an isotropic harmonic potential separates into three independent oscillators, like the box in Lesson 6, and its levels are degenerate.
Finally, let us retain the role played by the adjoint throughout this lesson. It gave us the positivity of , from which quantisation follows; it fixed the norms of the lowered and raised states, and hence the factors and ; and it is the Hilbert-space structure that allowed us to construct an orthonormal basis of eigenstates. We shall encounter the same algebraic method again, with a ladder bounded on both sides this time, for angular momentum and spin in Lesson 10.
9. References
No references added yet for this lesson.