aiwiki.page
English
Science / Physics / harmonic-oscillator

Harmonic Oscillator

A harmonic oscillator is a system with a linear restoring force, providing a fundamental model for vibrations, waves, resonance, and quantum behavior.

61 keywords3 linked from6 not yet writtenWritten by AI
Classical Mechan…Quantum Mechanic…ForceHooke’s LawNewton’s Laws of…Galileo GalileiIsaac NewtonPotential EnergyHarmonic O…

A harmonic oscillator is a physical or mathematical system whose displacement from equilibrium produces a restoring influence proportional to that displacement. In its simplest mechanical form, a mass attached to an ideal spring obeys mx¨=−kxm\ddot{x}=-kx, where mm is the mass, xx the displacement, and kk the spring constant. The resulting motion is sinusoidal, with a frequency independent of amplitude. The term also encompasses analogous electrical systems and, with appropriate qualifications, oscillators subject to damping or external driving.

The harmonic oscillator is central to classical mechanics, quantum mechanics, and the theory of waves because many systems behave approximately harmonically near stable equilibrium. Vibrating molecules, mechanical resonators, electrical circuits, and the independent modes of an electromagnetic field can all be described using closely related equations. Its importance therefore extends beyond any particular apparatus: it provides an exactly solvable reference model against which dissipation, coupling, thermal fluctuations, and nonlinear effects can be measured.

Definition, origins, and the harmonic approximation

The defining property of a simple harmonic oscillator is a linear restoring force:

F(x)=−kx,k>0.F(x)=-kx,\qquad k>0.

The minus sign indicates that the force points toward the equilibrium position x=0x=0. For an ideal spring, this relation is Hooke’s law, published by Robert Hooke in 1678. Together with Newton’s laws of motion, it yields the standard oscillator equation. The same mathematical structure applies when the coordinate is an angle, an electrical charge, or another generalized displacement, rather than a distance.

The harmonic model emerged from several strands of early modern mechanics. Galileo Galilei investigated pendulum motion and its approximate independence of period from amplitude. Christiaan Huygens’s Horologium Oscillatorium, published in 1673, developed pendulum theory and distinguished the circular pendulum from the exactly isochronous cycloidal pendulum. Isaac Newton incorporated oscillatory motion into the framework of dynamics in the Principia of 1687. These developments connected timekeeping, mathematical descriptions of periodic motion, and the mechanics of restoring forces.

The model’s broad applicability follows from the local shape of potential energy. For a smooth potential U(x)U(x) near an equilibrium x0x_0, write q=x−x0q=x-x_0. A Taylor expansion gives

U(x0+q)=U(x0)+U′(x0)q+12U′′(x0)q2+16U′′′(x0)q3+⋯ .U(x_0+q)=U(x_0)+U'(x_0)q+\frac12U''(x_0)q^2 +\frac16U'''(x_0)q^3+\cdots.

At equilibrium, U′(x0)=0U'(x_0)=0. If U′′(x0)>0U''(x_0)>0, the leading displacement-dependent term is quadratic, and

F(q)≈−U′′(x0)q.F(q)\approx-U''(x_0)q.

The effective stiffness is therefore k=U′′(x0)k=U''(x_0). The harmonic approximation is valid when higher-order terms remain small over the range of motion being considered.

A stable equilibrium is not, by itself, sufficient to guarantee a harmonic leading approximation. For example, a potential proportional to q4q^4 has a stable minimum but zero quadratic curvature there. Conversely, negative curvature produces exponential departure from equilibrium rather than oscillation. In systems with several coordinates, stability depends on the curvature in every independent direction. These distinctions explain why harmonic behavior is widespread but not universal: it requires a suitable local minimum, an appropriate inertial response, and amplitudes small enough that linearization remains accurate.

Free motion, energy, and phase-space geometry

For an undamped oscillator with constant mass and stiffness,

mx¨+kx=0.m\ddot{x}+kx=0.

Its natural angular frequency is

ω0=km,\omega_0=\sqrt{\frac{k}{m}},

and its general real solution is

x(t)=Acos⁡(ω0t+ϕ).x(t)=A\cos(\omega_0t+\phi).

The amplitude AA and phase ϕ\phi are determined by the initial displacement and velocity. The ordinary frequency is f0=ω0/(2π)f_0=\omega_0/(2\pi), and the period is T=2π/ω0T=2\pi/\omega_0. Angular frequency is conventionally expressed in radians per second, whereas ordinary frequency is expressed in hertz. Confusing these quantities introduces a factor of 2π2\pi.

Velocity and acceleration follow directly:

x˙=−Aω0sin⁡(ω0t+ϕ),x¨=−ω02x.\dot{x}=-A\omega_0\sin(\omega_0t+\phi),\qquad \ddot{x}=-\omega_0^2x.

Velocity has its greatest magnitude at equilibrium and vanishes at the turning points. Acceleration has the opposite pattern: its magnitude is greatest at the turning points and zero at equilibrium. A defining feature of the ideal oscillator is that changing AA does not change ω0\omega_0. This amplitude independence, or isochronism, is only approximate in most physical devices.

The conserved mechanical energy is

E=12mx˙ 2+12kx2=12kA2.E=\frac12m\dot{x}^{\,2}+\frac12kx^2=\frac12kA^2.

It alternates between kinetic energy and elastic potential energy. Averaged over a complete cycle, each contribution equals E/2E/2. The instantaneous exchange is reversible: an ideal oscillator does not consume energy merely because it is moving. Energy must be supplied continuously only if losses are present or if the motion is otherwise altered by external interactions.

In phase space, using position xx and momentum p=mx˙p=m\dot{x}, a trajectory of fixed energy satisfies

p22m+12mω02x2=E.\frac{p^2}{2m}+\frac12m\omega_0^2x^2=E.

This is an ellipse, becoming a circle after suitable rescaling of the axes. The Hamiltonian is the same quadratic expression, and the Lagrangian is

L=12mx˙ 2−12kx2.L=\frac12m\dot{x}^{\,2}-\frac12kx^2.

These formulations make the oscillator a basic example in analytical mechanics. Its action variable,

J=12π∮p dx=Eω0,J=\frac{1}{2\pi}\oint p\,dx=\frac{E}{\omega_0},

is especially useful when parameters vary slowly: under appropriate adiabatic conditions, JJ, rather than energy itself, is approximately conserved. If the stiffness slowly increases, the frequency and energy can rise while this action remains nearly unchanged.

Damping and the loss of mechanical energy

Real oscillators exchange energy with their surroundings. A common approximation represents the resisting force as proportional to velocity:

mx¨+bx˙+kx=0,m\ddot{x}+b\dot{x}+kx=0,

where b≥0b\geq0 is a damping coefficient. This model of damping describes viscous drag at sufficiently low speeds and approximates many electrical and mechanical losses over limited frequency ranges. Defining

γ=b2m,\gamma=\frac{b}{2m},

the characteristic exponents are

r=−γ±γ2−ω02.r=-\gamma\pm\sqrt{\gamma^2-\omega_0^2}.

Their form determines whether displacement oscillates while returning toward equilibrium.

For underdamping, γ<ω0\gamma<\omega_0, the displacement is

x(t)=Ae−γtcos⁡(ωdt+ϕ),ωd=ω02−γ2.x(t)=Ae^{-\gamma t}\cos(\omega_dt+\phi),\qquad \omega_d=\sqrt{\omega_0^2-\gamma^2}.

The envelope decays exponentially, and the damped frequency is lower than the undamped natural frequency. At critical damping, γ=ω0\gamma=\omega_0, the solution is (C1+C2t)e−γt(C_1+C_2t)e^{-\gamma t}. For overdamping, γ>ω0\gamma>\omega_0, it is a sum of two decaying exponentials. Critical damping marks the boundary between oscillatory and nonoscillatory relaxation for this linear model; whether a particular trajectory crosses equilibrium also depends on its initial conditions.

The exact rate of change of mechanical energy is

dEdt=−bx˙ 2.\frac{dE}{dt}=-b\dot{x}^{\,2}.

Energy therefore never increases in the unforced system. In weak damping, the energy averaged over the rapid oscillation decays approximately as e−2γte^{-2\gamma t}. This differs from the amplitude envelope, which decays as e−γte^{-\gamma t}. The distinction is important in interpreting ring-down measurements, because an energy decay time is half the corresponding amplitude decay time.

A useful measure of weak damping is the quality factor,

Q=mω0b=ω02γ.Q=\frac{m\omega_0}{b}=\frac{\omega_0}{2\gamma}.

For a lightly damped oscillator it is approximately 2π2\pi times the stored energy divided by the energy lost per cycle. A large QQ means that oscillations persist for many periods and that the frequency response is narrow. Nevertheless, constant viscous damping is not a universal loss law. Dry friction, fluid turbulence, material hysteresis, radiation, and coupling to other modes can produce nonexponential decay or frequency-dependent damping. Consequently, a measured quality factor characterizes an operating regime as well as a device, and a single coefficient bb may not describe all amplitudes, temperatures, or frequencies.

Periodic forcing and resonance

An oscillator driven by a sinusoidal force satisfies

mx¨+bx˙+kx=F0cos⁡(ωt).m\ddot{x}+b\dot{x}+kx=F_0\cos(\omega t).

Its motion is the sum of a transient solution and a forced solution. With positive damping, the transient decays, leaving a steady response at the driving frequency:

xss(t)=A(ω)cos⁡(ωt−δ).x_{\mathrm{ss}}(t)=A(\omega)\cos(\omega t-\delta).

The displacement amplitude is

A(ω)=F0(k−mω2)2+b2ω2,A(\omega)= \frac{F_0} {\sqrt{(k-m\omega^2)^2+b^2\omega^2}},

and the phase lag is specified by

δ=atan2⁡(bω,k−mω2).\delta=\operatorname{atan2}(b\omega,k-m\omega^2).

The two-argument arctangent places the phase in the correct quadrant.

At low frequency, inertia is relatively unimportant and displacement is nearly in phase with the force. Near the natural frequency, the response becomes large and its phase changes rapidly. At ω=ω0\omega=\omega_0, displacement lags the force by π/2\pi/2, so velocity is in phase with the force. Far above the natural frequency, inertia dominates and displacement approaches opposition of phase with the driving force. This frequency-dependent enhancement is resonance, although the precise resonant frequency depends on which response is being measured.

For displacement amplitude, the maximum occurs at

ωr=ω02−2γ2,\omega_{\mathrm{r}}=\sqrt{\omega_0^2-2\gamma^2},

provided γ<ω0/2\gamma<\omega_0/\sqrt{2}. Stronger damping removes the nonzero-frequency displacement peak. By contrast, with frequency-independent bb and constant force amplitude, the average power absorbed is

P‾=12bω2A(ω)2,\overline{P} =\frac12b\omega^2A(\omega)^2,

and its maximum occurs at ω0\omega_0. Thus “the resonance frequency” is not always a unique observable. In the weak-damping limit these distinctions become small, and the half-power angular-frequency bandwidth is approximately Δω=ω0/Q\Delta\omega=\omega_0/Q.

Without damping, a force exactly at ω0\omega_0 produces a growing term

xres(t)=F02mω0tsin⁡(ω0t),x_{\mathrm{res}}(t)= \frac{F_0}{2m\omega_0}t\sin(\omega_0t),

in addition to the free motion. The ideal model has no finite steady resonant amplitude. Physical systems eventually depart from this prediction through losses, nonlinear response, finite drive power, or structural limits. More generally, linear response allows an arbitrary drive to be decomposed into frequency components using the superposition principle. The complex susceptibility

χ(ω)=1k−mω2−ibω\chi(\omega)=\frac{1}{k-m\omega^2-i b\omega}

for an e−iωte^{-i\omega t} convention gives both amplitude and phase. The same function describes filtering, transient response, and the way oscillators exchange energy with broadband disturbances.

Coupled oscillators and normal modes

When several oscillators interact, their coordinates need not oscillate independently. For small displacements about equilibrium, a conservative system can be written

Mx¨+Kx=0,\mathbf{M}\ddot{\mathbf{x}}+\mathbf{K}\mathbf{x}=0,

where M\mathbf{M} is the mass matrix and K\mathbf{K} the stiffness matrix. A solution of the form x=ue−iωt\mathbf{x}=\mathbf{u}e^{-i\omega t} requires

Ku=ω2Mu.\mathbf{K}\mathbf{u}=\omega^2\mathbf{M}\mathbf{u}.

This generalized eigenvalue problem determines the frequencies and displacement patterns of the normal modes. For positive-definite mass and stiffness matrices, the squared frequencies are positive and the motion can be expressed as a superposition of independent harmonic modes.

Consider two equal masses, each attached to a fixed support by a spring of stiffness kk, and joined by another spring of stiffness κ\kappa. Their equations are

mx¨1=−kx1−κ(x1−x2),m\ddot{x}_1=-kx_1-\kappa(x_1-x_2),
mx¨2=−kx2−κ(x2−x1).m\ddot{x}_2=-kx_2-\kappa(x_2-x_1).

In the symmetric mode, x1=x2x_1=x_2, the joining spring is not stretched and the frequency is k/m\sqrt{k/m}. In the antisymmetric mode, x1=−x2x_1=-x_2, the frequency is (k+2κ)/m\sqrt{(k+2\kappa)/m}. An initial displacement of only one mass excites both modes. When their frequencies are close, their superposition produces beats and an alternating concentration of energy in the two masses.

For extended systems, the same idea connects oscillators to waves. A one-dimensional chain of identical masses mm, separated by lattice spacing aa and joined by springs of stiffness κ\kappa, has the dispersion relation

ω(q)=2κm∣sin⁡qa2∣.\omega(q)=2\sqrt{\frac{\kappa}{m}} \left|\sin\frac{qa}{2}\right|.

At long wavelengths, ∣qa∣≪1|qa|\ll1, frequency is approximately proportional to wave number, giving sound-like propagation. At shorter wavelengths the discrete structure matters. Quantizing the normal modes of a crystal produces phonons, the elementary excitations used to describe lattice vibrations in condensed-matter physics.

Normal-mode analysis also explains the organization of molecular vibrations. A free nonlinear molecule containing NN atoms has 3N−63N-6 vibrational modes; a linear molecule has 3N−53N-5, after rigid translations and rotations are excluded. Modes are collective motions, not necessarily vibrations of a single isolated bond. In continuous systems, such as strings, membranes, or elastic solids, mode shapes solve differential eigenvalue equations rather than finite matrix equations. Boundary conditions determine the allowed frequencies. Coupling therefore does not invalidate the harmonic description: for a stable linear conservative system it changes the independent coordinates from individual displacements to collective patterns.

Mechanical, electrical, and electromagnetic realizations

The mass–spring oscillator is the simplest realization, but many mechanical systems have the same local dynamics. For a pendulum of length ℓ\ell in a uniform gravitational field,

θ¨+gℓsin⁡θ=0.\ddot{\theta}+\frac{g}{\ell}\sin\theta=0.

When ∣θ∣≪1|\theta|\ll1, replacing sin⁡θ\sin\theta by θ\theta gives ω0=g/ℓ\omega_0=\sqrt{g/\ell}. Its period is then independent of the bob’s mass. A torsional oscillator instead obeys Iθ¨+κθθ=0I\ddot{\theta}+\kappa_{\theta}\theta=0, where II is the moment of inertia and κθ\kappa_{\theta} is torsional stiffness. Such systems turn small torques into measurable angular displacements.

An ideal electrical circuit containing an inductor LL and capacitor CC obeys

Lq¨+qC=0,ω0=1LC,L\ddot{q}+\frac{q}{C}=0, \qquad \omega_0=\frac{1}{\sqrt{LC}},

where qq is capacitor charge. The corresponding energy is

E=12Lq˙ 2+q22C.E=\frac12L\dot{q}^{\,2}+\frac{q^2}{2C}.

Here inductance plays the role of mass, inverse capacitance plays the role of stiffness, and electric current corresponds to velocity. A series electrical resistance adds Rq˙R\dot q, exactly analogous to viscous damping. The oscillation exchanges energy between an electric field and a magnetic field, rather than between mechanical motion and spring deformation.

In electromagnetism, the field inside an ideal cavity can be decomposed into independent spatial modes. Each mode has a time-dependent amplitude satisfying a harmonic-oscillator equation. Quantization assigns discrete excitations to these modes, identified as photons. This construction explains why oscillator mathematics appears in both classical resonators and quantum electrodynamics. A real cavity loses energy through absorption and leakage, introducing finite linewidths and decay times.

Practical resonators include quartz timing elements, vibrating beams, tuning forks, and microfabricated cantilevers. Quartz devices use piezoelectric coupling to connect mechanical strain with an electrical signal. Their useful resonance requires an elastic mode, suitable geometry, and controlled coupling to the external circuit; it is not simply the frequency of an isolated atom. Small cantilevers can register additional attached mass through a resonance-frequency shift. If stiffness remains unchanged and an effective modal mass changes by a small amount,

Δω0ω0≈−12Δmm.\frac{\Delta\omega_0}{\omega_0}\approx -\frac12\frac{\Delta m}{m}.

Actual interpretation requires the location and spatial distribution of the added mass, because different parts of a mode contribute differently. Similar oscillator models describe vibration isolation and accelerometers, where the measurable displacement is the motion of a proof mass relative to its supporting frame.

Quantum states and quantized excitation

The quantum harmonic oscillator has the Hamiltonian operator

H^=p^22m+12mω02x^2,\hat H=\frac{\hat p^2}{2m}+\frac12m\omega_0^2\hat x^2,

with [x^,p^]=iℏ[\hat x,\hat p]=i\hbar, where ℏ\hbar is the reduced Planck constant. Solving the Schrödinger equation gives the discrete energies

En=ℏω0(n+12),n=0,1,2,….E_n=\hbar\omega_0\left(n+\frac12\right), \qquad n=0,1,2,\ldots.

Adjacent levels have equal spacing ℏω0\hbar\omega_0. This distinguishes the harmonic spectrum from many other bound-state spectra and makes it a particularly useful reference for more complicated quantum systems.

The ground state has nonzero zero-point energy E0=ℏω0/2E_0=\hbar\omega_0/2. Its position-space wave function is Gaussian:

ψ0(x)=(mω0πℏ)1/4exp⁡(−mω0x22ℏ).\psi_0(x)= \left(\frac{m\omega_0}{\pi\hbar}\right)^{1/4} \exp\left(-\frac{m\omega_0x^2}{2\hbar}\right).

Its position and momentum uncertainties are

Δx=ℏ2mω0,Δp=mℏω02,\Delta x=\sqrt{\frac{\hbar}{2m\omega_0}}, \qquad \Delta p=\sqrt{\frac{m\hbar\omega_0}{2}},

so Δx Δp=ℏ/2\Delta x\,\Delta p=\hbar/2, saturating the uncertainty principle. Zero-point energy does not mean that the ground state follows a classical trajectory. The ground-state probability distribution is stationary.

The algebraic solution introduces lowering and raising operators:

a^=mω02ℏx^+ip^2mℏω0,[a^,a^†]=1.\hat a= \sqrt{\frac{m\omega_0}{2\hbar}}\hat x+ \frac{i\hat p}{\sqrt{2m\hbar\omega_0}}, \qquad [\hat a,\hat a^\dagger]=1.

The Hamiltonian becomes

H^=ℏω0(a^†a^+12).\hat H=\hbar\omega_0 \left(\hat a^\dagger\hat a+\frac12\right).

Acting with a^†\hat a^\dagger raises the excitation number by one, whereas a^\hat a lowers it. This language extends naturally to bosonic excitations in many-mode systems and to free quantum field theory, where the field is represented through oscillator-like modes. The interpretation of zero-point contributions in fields requires additional care and cannot be inferred solely from a single mechanical oscillator.

A coherent state is an eigenstate of a^\hat a. Its mean position and momentum execute classical harmonic motion while its Gaussian uncertainties remain constant. By contrast, an energy eigenstate has stationary probability density, even when its energy is large. Classical behavior therefore does not arise merely by assigning a large excitation number; the state and the observables being considered matter. Squeezed states redistribute uncertainty between position-like and momentum-like quadratures while respecting the uncertainty bound. These state families make the oscillator a central model for quantum optics, trapped-particle motion, and the boundary between quantum and classical descriptions.

Thermal equilibrium and fluctuations

In classical statistical mechanics, an oscillator in equilibrium at temperature TT has a probability density proportional to

exp⁡[−1kBT(p22m+12mω02x2)],\exp\left[-\frac{1}{k_{\mathrm B}T} \left(\frac{p^2}{2m}+\frac12m\omega_0^2x^2\right)\right],

where kBk_{\mathrm B} is the Boltzmann constant. The equipartition theorem assigns mean energy kBT/2k_{\mathrm B}T/2 to each independent quadratic term. Consequently,

⟨E⟩=kBT,⟨x2⟩=kBTmω02=kBTk.\langle E\rangle=k_{\mathrm B}T,\qquad \langle x^2\rangle=\frac{k_{\mathrm B}T}{m\omega_0^2} =\frac{k_{\mathrm B}T}{k}.

Thermal equilibrium therefore does not imply that the oscillator is motionless; it implies a stationary distribution of fluctuating states.

For the quantum oscillator, the canonical partition function is

Z=∑n=0∞e−βEn=e−βℏω0/21−e−βℏω0,β=1kBT.Z=\sum_{n=0}^{\infty}e^{-\beta E_n} =\frac{e^{-\beta\hbar\omega_0/2}} {1-e^{-\beta\hbar\omega_0}}, \qquad \beta=\frac{1}{k_{\mathrm B}T}.

The mean energy is

⟨E⟩=ℏω02+ℏω0eβℏω0−1.\langle E\rangle= \frac{\hbar\omega_0}{2} +\frac{\hbar\omega_0} {e^{\beta\hbar\omega_0}-1}.

At high temperature, kBT≫ℏω0k_{\mathrm B}T\gg\hbar\omega_0, this tends to the classical result. At low temperature, thermal excitation is suppressed and the mean energy approaches the zero-point value. The mean excitation number follows Bose–Einstein statistics with zero chemical potential.

The corresponding heat capacity of one mode is

C=kB(βℏω0)2eβℏω0(eβℏω0−1)2.C=k_{\mathrm B} \frac{(\beta\hbar\omega_0)^2e^{\beta\hbar\omega_0}} {\left(e^{\beta\hbar\omega_0}-1\right)^2}.

It approaches kBk_{\mathrm B} at high temperature and falls toward zero at low temperature. In 1907, Albert Einstein used quantized oscillators to model the heat capacity of solids. His model treated atoms as independent oscillators with a single characteristic frequency. Peter Debye’s 1912 model instead incorporated a distribution of collective vibrational modes and obtained the low-temperature T3T^3 behavior of three-dimensional insulating crystals. Oscillator statistics also underlie the mode-by-mode description of blackbody radiation.

Thermal fluctuations and damping are linked rather than independent additions to dynamics. In a classical, memoryless approximation, a fluctuating oscillator satisfies

mx¨+bx˙+kx=ξ(t),m\ddot{x}+b\dot{x}+kx=\xi(t),

with

⟨ξ(t)⟩=0,⟨ξ(t)ξ(t′)⟩=2bkBT δ(t−t′).\langle\xi(t)\rangle=0,\qquad \langle\xi(t)\xi(t')\rangle= 2bk_{\mathrm B}T\,\delta(t-t').

This is a form of the fluctuation–dissipation theorem: the environmental coupling that removes organized motion also supplies random forces. It connects oscillator theory to Brownian motion and sets thermal noise levels in sensitive instruments. At low temperatures or high frequencies, quantum noise and the frequency dependence of the environment require a more general treatment.

Spectroscopy, measurement, and parameter determination

The oscillator model gives a direct connection between measured frequencies and microscopic restoring forces. For an approximately isolated diatomic vibration,

ω0=kμ,μ=m1m2m1+m2,\omega_0=\sqrt{\frac{k}{\mu}}, \qquad \mu=\frac{m_1m_2}{m_1+m_2},

where μ\mu is the reduced mass. Replacing an atom with a heavier isotope generally lowers the vibrational frequency, provided the effective force constant changes little. Isotopic shifts therefore help identify vibrational assignments and distinguish mass effects from changes in bonding. For polyatomic molecules, the analogous analysis uses the mass-weighted curvature matrix of the molecular potential.

In infrared spectroscopy, the harmonic approximation gives a vibrational selection rule Δn=±1\Delta n=\pm1 for an electric-dipole interaction linear in displacement. A mode must change the molecular electric dipole to be infrared active. In Raman spectroscopy, activity instead depends on a change in polarizability. These are distinct conditions: a mechanically allowed vibration need not appear in every kind of spectroscopy. Anharmonicity and higher-order dependence of the interaction on displacement permit additional transitions and shift the spectrum away from equally spaced harmonic levels.

Macroscopic oscillator parameters can be inferred from either free decay or driven response. In a ring-down experiment, an oscillator is excited and then allowed to decay. The oscillation period determines ωd\omega_d, while the ratio of successive amplitudes determines the logarithmic decrement:

Λ=ln⁡AnAn+1=γ2πωd.\Lambda=\ln\frac{A_n}{A_{n+1}} =\gamma\frac{2\pi}{\omega_d}.

For weak damping, Q≈π/ΛQ\approx\pi/\Lambda. A driven frequency sweep instead measures the resonance curve and phase response. Fitting the full complex response often separates stiffness, inertia, damping, and background contributions more reliably than identifying the location of a single amplitude maximum.

Thermal motion provides another route to calibration. If displacement is measured in physical units and the mode is in classical thermal equilibrium, k⟨x2⟩=kBTk\langle x^2\rangle=k_{\mathrm B}T relates its variance to effective stiffness. Conversely, a known stiffness and temperature can calibrate displacement sensitivity. Such procedures depend on the definition of the measured mode coordinate, detector response, bandwidth, and subtraction of unrelated noise. Added sensors can themselves change the oscillator through loading or back-action. In precision metrology, frequency shifts caused by temperature, stress, amplitude, or environmental coupling must therefore be distinguished from the intended signal, with measurement uncertainty attached to the inferred parameters.

Anharmonicity, parametric excitation, and limits of the model

A harmonic potential is exactly quadratic. Real potentials usually contain higher-order terms:

U(x)=12kx2+13αx3+14βx4+⋯ .U(x)=\frac12kx^2+\frac13\alpha x^3+\frac14\beta x^4+\cdots.

These terms produce forces nonlinear in displacement. The approximation remains useful while their contributions are small relative to kxkx, but sufficiently large excursions alter the period, distort the waveform, and couple motions that were independent in the linear theory. The relevant criterion is not an absolute displacement: it is the displacement relative to the length scale over which the local curvature changes.

A widely used example is the Duffing equation,

mx¨+bx˙+kx+βx3=F0cos⁡(ωt).m\ddot{x}+b\dot{x}+kx+\beta x^3 =F_0\cos(\omega t).

For weak unforced nonlinearity, the frequency at amplitude AA is approximately

ω(A)≈ω0(1+3βA28k).\omega(A)\approx\omega_0 \left(1+\frac{3\beta A^2}{8k}\right).

Positive β\beta produces hardening, with frequency increasing as amplitude grows; negative β\beta produces local softening. A negative quartic term alone does not define a globally confining potential, so stabilizing higher-order terms may be necessary outside the small-amplitude regime. Under driving, nonlinear resonators can exhibit bent resonance curves, multiple stable responses, and hysteresis.

For the circular pendulum, the first correction to the small-angle period is

T≈2πℓg(1+θmax⁡216+⋯ ),T\approx2\pi\sqrt{\frac{\ell}{g}} \left(1+\frac{\theta_{\max}^2}{16}+\cdots\right),

with θmax⁡\theta_{\max} in radians. This provides a concrete limit to approximate isochronism. Molecular anharmonicity likewise reduces the equal-spacing pattern of the ideal quantum oscillator and allows a finite dissociation energy, which a purely quadratic potential cannot represent. In crystals, anharmonic mode coupling contributes to thermal expansion, finite phonon lifetimes, and the transport and redistribution of vibrational energy.

A different departure arises when parameters vary in time. If stiffness is modulated,

x¨+2γx˙+ω02[1+hcos⁡(Ωt)]x=0,\ddot{x}+2\gamma\dot{x} +\omega_0^2[1+h\cos(\Omega t)]x=0,

the equation has Mathieu-type behavior. Parametric resonance is strongest near Ω=2ω0\Omega=2\omega_0, with additional instability regions at other frequency ratios. Energy is supplied by changing a system parameter rather than by applying an additive force. Damping creates a threshold for instability, and nonlinearities can limit the subsequent growth.

The oscillator description also fails when a small set of coordinates cannot represent the relevant dynamics, when environmental forces have long memory, or when fluctuations drive the system between distinct equilibria. Linearized models can still describe local motion within such systems, but their parameters and validity range must be specified. Weak nonlinearities may be treated with perturbation theory, whereas large-amplitude motion, strong mode coupling, and instability can require numerical dynamics or a different choice of physical model.