Fiveable

🎲Statistical Mechanics Unit 5 Review

QR code for Statistical Mechanics practice questions

5.4 Classical harmonic oscillators

5.4 Classical harmonic oscillators

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🎲Statistical Mechanics
Unit & Topic Study Guides

Harmonic oscillator basics

The harmonic oscillator is one of the most important models in all of physics. Any system sitting near a stable equilibrium can be approximated as a harmonic oscillator (since any smooth potential looks parabolic near its minimum), which is why this model shows up everywhere in statistical mechanics.

Simple harmonic motion

Simple harmonic motion occurs whenever a restoring force is proportional to displacement from equilibrium. Hooke's law captures this:

F=kxF = -kx

where kk is the spring constant and xx is displacement from equilibrium. The motion is sinusoidal with constant amplitude and frequency. Classic examples include a mass on a spring and a pendulum at small angles.

Potential energy function

The potential energy for a harmonic oscillator has a quadratic form:

V(x)=12kx2V(x) = \frac{1}{2}kx^2

This traces out a parabola on a VV vs. xx graph, with the minimum at the equilibrium position (x=0x = 0). The restoring force follows directly from the potential: F=dVdxF = -\frac{dV}{dx}. The quadratic shape is the key feature. Any potential that's approximately quadratic near its minimum will produce harmonic-oscillator-like behavior.

Equation of motion

Combining Newton's second law (F=maF = ma) with Hooke's law gives:

d2xdt2+ω2x=0\frac{d^2x}{dt^2} + \omega^2 x = 0

where the angular frequency is ω=k/m\omega = \sqrt{k/m}. This relates to the ordinary frequency by ω=2πf\omega = 2\pi f. The general solution is sinusoidal:

x(t)=Acos(ωt+ϕ)x(t) = A\cos(\omega t + \phi)

where AA is the amplitude and ϕ\phi is the phase, both set by initial conditions.

Mathematical description

Differential equation

The harmonic oscillator equation d2xdt2+ω2x=0\frac{d^2x}{dt^2} + \omega^2 x = 0 is a second-order linear ODE. Because it's linear, superposition applies: any linear combination of solutions is also a solution. This property becomes crucial when you move to coupled oscillators and normal modes.

General solution

The standard solution is:

x(t)=Acos(ωt+ϕ)x(t) = A\cos(\omega t + \phi)

An equivalent form uses complex exponentials: x(t)=Re[Aei(ωt+ϕ)]x(t) = \text{Re}[A e^{i(\omega t + \phi)}]. The complex form is often more convenient for calculations, especially with driven oscillators. The velocity follows by differentiation:

v(t)=Aωsin(ωt+ϕ)v(t) = -A\omega\sin(\omega t + \phi)

Initial conditions (starting position and velocity) pin down AA and ϕ\phi.

Phase space representation

Phase space plots position xx on one axis and momentum p=mvp = mv on the other. For a simple harmonic oscillator, the trajectory in phase space is an ellipse (or a circle if you scale the axes appropriately). The system traces this closed curve repeatedly, and the area enclosed is proportional to the total energy. Phase space is central to statistical mechanics because Liouville's theorem governs how probability distributions evolve in it.

Energy considerations

Kinetic vs. potential energy

  • Kinetic energy: KE=12mv2KE = \frac{1}{2}mv^2
  • Potential energy: PE=12kx2PE = \frac{1}{2}kx^2

Energy sloshes back and forth between these two forms during oscillation. At the equilibrium position (x=0x = 0), all the energy is kinetic. At maximum displacement (x=±Ax = \pm A), all the energy is potential.

Total energy conservation

For an ideal (undamped) oscillator, the total energy is constant:

E=12kA2=12mω2A2E = \frac{1}{2}kA^2 = \frac{1}{2}m\omega^2 A^2

This follows directly from energy conservation: what's lost in kinetic energy at the turning points is gained in potential energy, and vice versa. The total energy depends only on the amplitude, not on where the oscillator is in its cycle.

Virial theorem application

For the harmonic oscillator specifically, the virial theorem states that the time-averaged kinetic and potential energies are equal:

KE=PE=12E\langle KE \rangle = \langle PE \rangle = \frac{1}{2}E

This result is extremely useful in statistical mechanics. When you combine it with the equipartition theorem, you can immediately read off that each quadratic term in the Hamiltonian contributes 12kBT\frac{1}{2}k_BT to the average energy.

Classical vs. quantum oscillators

Understanding where classical mechanics breaks down is essential for knowing when your statistical mechanics results are trustworthy.

Key differences

  • A classical oscillator can have any energy, continuously. A quantum oscillator is restricted to discrete levels: En=(n+12)ωE_n = \left(n + \frac{1}{2}\right)\hbar\omega.
  • A classical oscillator can sit perfectly still at x=0x = 0 with zero energy. A quantum oscillator always has a ground-state energy of 12ω\frac{1}{2}\hbar\omega (zero-point energy).
  • The quantum oscillator exhibits wave-like behavior and obeys the uncertainty principle, so it can never have simultaneously well-defined position and momentum.
Simple harmonic motion, Simple Harmonic Motion – University Physics Volume 1

Correspondence principle

Quantum mechanics reduces to classical mechanics for large quantum numbers. When nn is large, the spacing between energy levels (ω\hbar\omega) becomes negligible compared to the total energy, and the quantum probability distribution for position starts to resemble the classical one (which peaks near the turning points where the oscillator moves slowly).

Energy level comparisons

The critical comparison for statistical mechanics is between the thermal energy scale and the quantum energy scale:

  • When kBTωk_BT \gg \hbar\omega (high temperature), many energy levels are thermally accessible, and the classical treatment works well.
  • When kBTωk_BT \ll \hbar\omega (low temperature), only the lowest few levels matter, and you must use the quantum treatment.

The crossover temperature is roughly Tω/kBT^* \sim \hbar\omega / k_B. For most macroscopic mechanical oscillators, TT^* is absurdly low, so classical mechanics is fine. For molecular vibrations, TT^* can be hundreds or thousands of kelvin.

Damped harmonic oscillators

Real oscillators lose energy to their surroundings. Damping introduces irreversibility, which connects directly to how systems approach thermal equilibrium.

Damping force introduction

A simple model adds a velocity-dependent drag force Fd=bvF_d = -bv, where bb is the damping coefficient. The equation of motion becomes:

md2xdt2+bdxdt+kx=0m\frac{d^2x}{dt^2} + b\frac{dx}{dt} + kx = 0

The result is oscillations whose amplitude decays exponentially over time.

Types of damping

The behavior depends on the damping ratio ζ=b2km\zeta = \frac{b}{2\sqrt{km}}:

  • Underdamped (ζ<1\zeta < 1): The system oscillates with exponentially decaying amplitude. Most physical oscillators fall here.
  • Critically damped (ζ=1\zeta = 1): The system returns to equilibrium as fast as possible without oscillating. This is the design target for things like door closers and shock absorbers.
  • Overdamped (ζ>1\zeta > 1): The system creeps back to equilibrium slowly, with no oscillation at all.

Decay time and Q factor

  • The decay time τ=2mb\tau = \frac{2m}{b} sets the timescale over which oscillations die out.
  • The quality factor Q=ω0mb=ω0τ2Q = \frac{\omega_0 m}{b} = \frac{\omega_0 \tau}{2} measures how many radians the oscillator swings through before its energy drops significantly. High QQ means low damping and long-lived oscillations. Specifically, the oscillator loses roughly a fraction 2π/Q2\pi/Q of its stored energy per cycle.

Driven harmonic oscillators

Adding an external time-dependent force models how systems absorb energy from their environment, which is directly relevant to how oscillators reach steady states in statistical mechanics.

Forcing function

A sinusoidal driving force gives:

md2xdt2+bdxdt+kx=F0cos(ωdt)m\frac{d^2x}{dt^2} + b\frac{dx}{dt} + kx = F_0\cos(\omega_d t)

After transients die out, the system settles into a steady-state oscillation at the driving frequency ωd\omega_d (not the natural frequency ω0\omega_0).

Resonance phenomenon

Resonance occurs when the driving frequency approaches the natural frequency of the oscillator. At resonance, energy transfer from the driving force is maximally efficient, and the amplitude peaks. For a damped oscillator, the resonance frequency is slightly shifted:

ωr=ω02b22m2\omega_r = \sqrt{\omega_0^2 - \frac{b^2}{2m^2}}

The peak amplitude at resonance is limited by damping. Lower damping (higher QQ) means a sharper, taller resonance peak.

Frequency response

  • The amplitude response curve shows a peak near ωr\omega_r, with a width inversely proportional to QQ.
  • The phase lag between the driving force and the oscillator's response shifts from near 0 (well below resonance) to π/2\pi/2 (at resonance) to π\pi (well above resonance).
  • The bandwidth of the resonance peak is approximately Δωω0/Q\Delta\omega \approx \omega_0 / Q.

Coupled oscillators

When multiple oscillators interact, new collective behaviors emerge. This is the starting point for understanding phonons in solids and other many-body phenomena.

Normal modes

Normal modes are the independent oscillation patterns of a coupled system. Each mode has its own characteristic frequency and shape. The number of normal modes equals the number of degrees of freedom. Any general motion of the system can be written as a superposition of these normal modes, which is what makes them so powerful: they decouple the problem.

Energy transfer between oscillators

Coupling allows energy to flow between oscillators. The rate of transfer depends on the coupling strength and how close the oscillators' natural frequencies are. When two oscillators are weakly coupled and nearly resonant, energy can slosh back and forth periodically between them. In a large system of coupled oscillators, this energy redistribution is the microscopic mechanism behind thermalization.

Simple harmonic motion, Energy and the Simple Harmonic Oscillator | Physics

Beating phenomenon

When two oscillations with slightly different frequencies ω1\omega_1 and ω2\omega_2 are superposed, the result is an oscillation at the average frequency with an amplitude that modulates at the beat frequency:

ωbeat=ω1ω2\omega_{\text{beat}} = |\omega_1 - \omega_2|

Beats are easily observed in coupled oscillators and provide a sensitive way to measure small frequency differences.

Statistical mechanics applications

This is where harmonic oscillators connect to thermodynamics. The simplicity of the harmonic oscillator Hamiltonian makes exact calculations possible, which is rare in statistical mechanics.

Equipartition theorem

The equipartition theorem states that each quadratic term in the Hamiltonian contributes 12kBT\frac{1}{2}k_BT to the average energy in thermal equilibrium. A one-dimensional harmonic oscillator has two quadratic terms (one kinetic, one potential), so:

E=12kBT+12kBT=kBT\langle E \rangle = \frac{1}{2}k_BT + \frac{1}{2}k_BT = k_BT

This is a purely classical result. It holds when kBTωk_BT \gg \hbar\omega but fails at low temperatures where quantum effects freeze out degrees of freedom.

Boltzmann distribution

The probability of a classical oscillator having energy EE is given by the Boltzmann factor:

P(E)eE/kBTP(E) \propto e^{-E/k_BT}

For a quantum oscillator, the probability of occupying the nnth level is PneEn/kBTP_n \propto e^{-E_n/k_BT}. These distributions are the starting point for computing all thermodynamic averages and deriving the partition function.

Partition function derivation

The partition function sums (or integrates) over all accessible states:

  • Classical: Z=1heH(x,p)/kBTdxdpZ = \frac{1}{h}\int e^{-H(x,p)/k_BT}\, dx\, dp, where the factor of hh ensures correct dimensionless counting. For a 1D harmonic oscillator, this evaluates to Z=kBTωZ = \frac{k_BT}{\hbar\omega}.
  • Quantum: Z=n=0e(n+1/2)ω/kBT=eω/2kBT1eω/kBTZ = \sum_{n=0}^{\infty} e^{-(n+1/2)\hbar\omega/k_BT} = \frac{e^{-\hbar\omega/2k_BT}}{1 - e^{-\hbar\omega/k_BT}}

Once you have ZZ, all thermodynamic quantities follow. The Helmholtz free energy is F=kBTlnZF = -k_BT \ln Z.

Thermodynamic properties

Heat capacity calculations

The heat capacity at constant volume is:

CV=(ET)VC_V = \left(\frac{\partial \langle E \rangle}{\partial T}\right)_V

For a classical oscillator, E=kBT\langle E \rangle = k_BT, so CV=kBC_V = k_B per oscillator. This is the basis of the Dulong-Petit law: a solid with NN atoms (each modeled as 3 independent oscillators) has CV=3NkBC_V = 3Nk_B.

At low temperatures, quantum effects suppress the heat capacity. The Einstein model (all oscillators at one frequency) captures the exponential freeze-out. The Debye model (a spectrum of frequencies) gives the more accurate CVT3C_V \propto T^3 behavior at low TT.

Entropy considerations

Entropy can be computed from the partition function via S=(FT)VS = -\left(\frac{\partial F}{\partial T}\right)_V. For a classical oscillator, entropy increases logarithmically with temperature. For a quantum oscillator, entropy approaches zero as T0T \to 0, consistent with the Third Law of Thermodynamics. The contrast between these two behaviors is another way to see where the classical approximation breaks down.

Free energy analysis

The Helmholtz free energy F=kBTlnZF = -k_BT \ln Z is the central thermodynamic potential for systems at constant temperature and volume. From FF, you can derive:

  • Entropy: S=(F/T)VS = -(\partial F / \partial T)_V
  • Internal energy: E=F+TSE = F + TS
  • Pressure: P=(F/V)TP = -(\partial F / \partial V)_T

For systems at constant pressure, the Gibbs free energy G=F+PVG = F + PV is the relevant quantity. Equilibrium states minimize the appropriate free energy.

Experimental relevance

Mechanical systems examples

  • Seismographs use mass-spring systems to detect ground motion; the instrument's response depends on its natural frequency and damping.
  • Atomic force microscopy (AFM) measures forces at the nanoscale by monitoring the oscillation of a tiny cantilever, where shifts in frequency or amplitude reveal surface properties.
  • Torsional pendulums appear in magnetometers and precision measurements of gravitational constants.

Electrical circuit analogies

The analogy between mechanical and electrical oscillators is exact: an LC circuit behaves as an undamped harmonic oscillator (with LmL \leftrightarrow m and 1/Ck1/C \leftrightarrow k), while an RLC circuit models a damped or driven oscillator (with RbR \leftrightarrow b). Quartz crystal oscillators exploit the mechanical resonance of a piezoelectric crystal to achieve extremely stable frequencies for timekeeping.

Spectroscopy applications

Molecular vibrations are well-approximated as harmonic oscillators near equilibrium. Infrared spectroscopy probes these vibrations directly by measuring which frequencies a molecule absorbs. Raman spectroscopy detects vibrational frequencies through inelastic light scattering. The harmonic model predicts equally spaced vibrational energy levels; deviations from equal spacing reveal anharmonic corrections, which carry information about bond dissociation and molecular geometry.