Skip to content
Tutorials Center
My learning

Topics

Lesson 30 of 38 · The Harmonic Oscillator

Oscillator Wavefunctions and Hermite Polynomials

See the oscillator eigenfunctions ψ_n as Hermite polynomials times a Gaussian, find turning points and classically forbidden probability, and compare with the classical limit.

The ladder operators gave you the energies and a recipe for building each wavefunction from the Gaussian ground state. In this lesson we write the wavefunctions in closed form, look at their shapes, and see how they compare with a classical oscillator. Two things are worth watching for: the particle is found in regions that classical mechanics forbids, and for large n the quantum probability starts to look classical.

The formula

Use the dimensionless coordinate ξ = x / x₀ with x₀ = √(ħ/(mω)). The normalized energy eigenfunctions are

Text
ψ_n(x) = (1 / √(x₀)) · (1 / (π^{1/4} √(2ⁿ n!))) · H_n(ξ) · e^{-ξ²/2}

Here H_n is the n-th Hermite polynomial (in the "physicists'" convention). The first few are

Text
H₀(ξ) = 1
H₁(ξ) = 2ξ
H₂(ξ) = 4ξ² - 2
H₃(ξ) = 8ξ³ - 12ξ

and the next ones follow from the recurrence H_{n+1}(ξ) = 2ξ H_n(ξ) - 2n H_{n-1}(ξ). The polynomial has degree n, so ψ_n has n nodes.

Compare with the ladder-operator result of the last lesson, ψ₂ = √2 (ξ² − ½) π^{-1/4} e^{-ξ²/2}: it is the same function, because H₂/√(2² · 2!) = (4ξ² − 2)/√8 = (2ξ² − 1)/√2 = √2 (ξ² − ½).

Properties worth remembering:

  • Parity. ψ_n(-x) = (-1)ⁿ ψ_n(x): even n gives even states, odd n gives odd states, so ⟨x⟩ = 0 in every energy eigenstate.
  • Orthonormality. ∫ ψ_m ψ_n dx = δ_mn.
  • Gaussian envelope. Every state is a polynomial times the same Gaussian, so all fall off as e^{-ξ²/2} at large |ξ|.

Turning points and the forbidden region

A classical oscillator with energy E cannot go beyond where V = E. For E_n = ħω(n + ½), this gives ½mω²x² = ħω(n + ½), i.e.

Text
ξ_turn = ± √(2n + 1)

For n = 0, ξ_turn = ±1. Classical mechanics says the particle never leaves |ξ| < 1. Quantum mechanics says ψ₀ extends beyond, with a tail. The probability of finding the particle outside the classical region in the ground state is

Text
P(|ξ| > 1) = (1/√π) ∫_{|ξ|>1} e^{-ξ²} dξ = erfc(1) ≈ 0.157

(erfc is the complementary error function). About 16% of position measurements in the ground state would find the particle where V > E. In that region the kinetic energy would be negative, which is the same strange feature as the tails in the finite square well. As n increases, the fraction outside shrinks.

Classical comparison

A classical oscillator with amplitude A spends most time near the turning points where it moves slowly. Its position probability density is

Text
P_cl(x) = 1 / (π √(A² - x²))      for |x| < A

For the low states, |ψ_n|² looks nothing like this: the ground state is a hump in the middle where the classical particle is fastest. For high n, the quantum density oscillates rapidly around the classical curve, and averaging over a few oscillations gives agreement. This is the correspondence principle at work.

Even a high-n energy eigenstate is not a classical oscillating mass: it is stationary, with ⟨x⟩ = 0 forever. To mimic a moving particle you need a superposition of many neighboring states, a wave packet (a coherent state is the best such packet: a Gaussian that moves back and forth without spreading).

Computing the wavefunctions

The first editor uses scipy.special.eval_hermite to compute ψ_n on a grid (with a stable normalization using gammaln, the logarithm of the gamma function, so large n does not overflow). It checks normalization and orthogonality for the first few states, and prints the probability of finding the particle outside the classical turning points.

Python Hermite functions: normalization and forbidden regions

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.

You should find about 0.157 for n = 0 and a smaller value for the others, decreasing slowly toward a limit. A value of about 0.157 matches erfc(1).

The classical limit, visually

The second editor plots |ψ_n|² for a low state (n = 2) and a high state (n = 30) together with the classical probability density over the same range. It also marks the classical turning points. Look at the high state: the wiggles trace the classical curve, and the density drops quickly just beyond the turning point.

Python Quantum density vs. the classical curve

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.

Where the wavefunctions come from, briefly

Substituting ψ = f(ξ) e^{-ξ²/2} into the Schrödinger equation in ξ gives Hermite's equation f'' - 2ξ f' + 2n f = 0. A series solution only terminates (and keeps ψ normalizable) when the parameter n is a non-negative integer. This is the differential-equation route to the quantization condition, identical in outcome to the ladder-operator method.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. How many nodes does the oscillator eigenfunction ψ_n have?

    ψ_n is H_n times a Gaussian, and H_n has degree n and n real zeros. The ground state (n = 0) has none.
  2. 2. What are the classical turning points for energy E_n = ħω(n + ½), in units of x₀ = √(ħ/mω)?

    Setting ½mω²x² = ħω(n + ½) gives ξ² = 2n + 1.
  3. 3. In the oscillator ground state, the probability of finding the particle in the classically forbidden region is about

    P(|ξ| > 1) = erfc(1) ≈ 0.157. The Gaussian tail extends beyond the turning points.
  4. 4. What is the parity of ψ_3?

    ψ_n(−x) = (−1)ⁿψ_n(x), so odd n gives odd functions. Hence ⟨x⟩ = 0 for every eigenstate.

Summary

  • ψ_n(x) ∝ H_n(ξ) e^{-ξ²/2} with ξ = x√(mω/ħ); it has n nodes and parity (−1)ⁿ.
  • Classical turning points are at ξ = ±√(2n+1); the ground state has about 16% probability outside them.
  • For large n the quantum density oscillates around the classical 1/(π√(A² − x²)) curve (correspondence principle).
  • Energy eigenstates are stationary; classical-looking motion needs superpositions such as coherent states.

Next: Orbital Angular Momentum