Skip to content
Tutorials Center
My learning

Topics

Lesson 28 of 38 · The Harmonic Oscillator

Energy Levels of the Harmonic Oscillator

Meet the quantum harmonic oscillator: equally spaced energy levels E_n = ħω(n + 1/2), zero-point energy, natural length scale, and molecular vibration in Python.

If you could only study one quantum system, the harmonic oscillator would be the best choice. Its potential, V(x) = ½ m ω² x², is the shape of nearly every smooth potential energy curve near its minimum: a diatomic molecule's bond, an atom in a crystal lattice, an ion in a trap, or one mode of the electromagnetic field. Whenever something wiggles slightly around a stable equilibrium, the harmonic oscillator is the first model to try.

Its energy levels are strikingly simple: E_n = ħω(n + ½). This lesson states that result, explains where it comes from physically, checks it with the numerical solver, and applies it to a real molecule. The next two lessons derive it algebraically (ladder operators) and look at the wavefunctions.

The classical oscillator

A mass m on a spring with constant k has potential energy V = ½ k x² and oscillates at angular frequency ω = √(k/m). Writing k = mω² gives V = ½ m ω² x². Classically the energy can be any non-negative value, the amplitude is A = √(2E/(mω²)), and the lowest energy is zero, with the mass at rest at x = 0.

The quantum result

The time-independent Schrödinger equation is

Text
-(ħ²/2m) ψ'' + ½ m ω² x² ψ = E ψ

Requiring ψ to be normalizable (to go to zero at large |x|) allows only special values of E:

Text
E_n = ħω (n + ½),     n = 0, 1, 2, 3, ...

Three features set the oscillator apart:

  1. Equal spacing. Adjacent levels differ by exactly ħω, whatever n. Contrast the box, where gaps grow as n². Equal spacing is why one photon of energy ħω can lift the oscillator by one step, again and again.
  2. Zero-point energy. The lowest level is E₀ = ½ħω, not zero. A quantum oscillator can never be perfectly at rest at the bottom: x = 0 with p = 0 would violate σ_x σ_p ≥ ħ/2. A quick estimate: with σ_x σ_p = ħ/2 the energy p²/2m + ½mω²x² is minimized at ħω/2. The result is exact.
  3. Natural scales. The only length that m, ω and ħ can form is x₀ = √(ħ / (mω)); the only energy is ħω. Measure x in units of x₀ and E in units of ħω and the equation contains no parameters at all. All oscillators, from molecules to quartz crystals, are the same problem in these units.

Do not confuse the angular frequency ω (radians per second) with the ordinary frequency f = ω/2π (hertz). The level spacing is ħω = hf. A photon that excites the oscillator by one step has frequency f, matching the classical frequency of oscillation.

Checking with the numerical solver

Use units ħ = m = ω = 1. Then x₀ = 1, and the predicted levels are 0.5, 1.5, 2.5, .... Here the matrix method from the box chapter gives the answer on a grid from -8 to 8. The first editor prints the lowest eight levels and their error.

Python Numerical oscillator levels

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The gaps all equal 1 (that is, ħω) to about five digits.

Why the shape matters: bottom of any potential well

Take any smooth potential with a minimum at x₀ and expand it in a Taylor series. The linear term vanishes at the minimum, so

Text
V(x) ≈ V(x₀) + ½ V''(x₀) (x - x₀)² + ...

which is a harmonic oscillator with mω² = V''(x₀). The approximation works for the low levels, where the particle stays near the bottom. For higher levels the anharmonic terms (the cubic and quartic corrections) matter: real levels bunch together as they approach the dissociation limit of a molecule.

Application: vibration of a carbon monoxide molecule

A diatomic molecule vibrates as a harmonic oscillator with the reduced mass μ = m₁m₂/(m₁ + m₂) in place of m (the two atoms move around their common center of mass). The infrared absorption of carbon monoxide has its fundamental near a wavenumber of ν̃ ≈ 2143 cm⁻¹. We use this observed value as the oscillation frequency (a simplification, because the real molecule is slightly anharmonic) and compute the bond force constant, the zero-point energy and the oscillation length. The editor does it with CODATA constants and approximate atomic masses of ¹²C and ¹⁶O.

Python CO: force constant and zero-point motion

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The ratio at the end shows that at room temperature almost every CO molecule is in its vibrational ground state; the quantized vibration is "frozen out", which is one reason why heat capacities of gases do not follow classical equipartition at low temperatures.

The classical limit

For large n the quantum probability density, averaged over its rapid oscillations, matches the classical distribution (the particle spends most time near the turning points, where it moves slowly). A macroscopic example: a 100 g mass on a spring with ω = 10 s⁻¹ has energy spacing ħω ≈ 10⁻³³ J, immeasurably small compared with its energy of order 1 J. Its quantum number is of order n ~ 10³³, so quantization is unobservable.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What are the energy levels of the quantum harmonic oscillator?

    The levels are equally spaced by ħω and the lowest is the zero-point energy ½ħω.
  2. 2. What is the zero-point energy of an oscillator with angular frequency ω?

    E₀ = ½ħω. A state with both x and p exactly zero would violate the uncertainty principle.
  3. 3. A photon can excite an oscillator from level n to n + 1 if its energy equals

    The spacing between adjacent levels is always ħω, independent of n.
  4. 4. Why is the harmonic oscillator a good model for molecular vibrations?

    A Taylor expansion about the minimum gives V ≈ V₀ + ½V''(x₀)(x − x₀)², accurate for small vibrations (low n).

Summary

  • The oscillator V = ½mω²x² has levels E_n = ħω(n + ½): equally spaced, with zero-point energy ½ħω.
  • The natural scales are the length x₀ = √(ħ/(mω)) and the energy ħω.
  • Near the minimum of any smooth potential, mω² = V''(x₀); real molecules show anharmonic corrections at higher n.
  • For a diatomic molecule use the reduced mass; at room temperature typical molecular vibrations sit in the ground state.

Next: Ladder Operators