Harmonic Oscillation
Simulating spring-mass systems and damping.
Simple and Damped Harmonic Oscillation
Concept Overview
The harmonic oscillator is arguably the single most important model in all of physics. Any system displaced slightly from a stable equilibrium experiences a restoring force approximately proportional to the displacement, making harmonic oscillation a universal phenomenon. From vibrating guitar strings to quantum field excitations, the mathematics of oscillation provides the foundation for understanding periodic motion across every scale of nature.
Mathematical Definition
The general equation of motion for a damped harmonic oscillator is a second-order linear ODE:
where m is the mass, c is the damping coefficient, k is the spring constant, x is the displacement, and primes denote time derivatives. Dividing through by m yields the standard form:
where ωn = √(k/m) is the natural frequency and ζ is the damping ratio.
The Undamped Oscillator (c = 0)
With no damping, the equation reduces to m·x″ + k·x = 0, whose solution is pure sinusoidal motion:
The amplitude A and phase φ are determined by initial conditions. The system oscillates forever with constant amplitude—energy is perpetually exchanged between kinetic and potential forms without loss.
Damping Regimes
The character of the motion is governed by the damping ratio:
Underdamped (ζ < 1)
The system oscillates with exponentially decaying amplitude. This is the most physically common case—a plucked guitar string, a swinging pendulum in air, a car's suspension after hitting a bump.
Critically Damped (ζ = 1)
The system returns to equilibrium as fast as possible without oscillating. This is the design target for many engineering applications like door closers and shock absorbers.
Overdamped (ζ > 1)
The system returns to equilibrium without oscillating, but more slowly than the critically damped case. Motion is a sum of two decaying exponentials.
Energy Considerations
In the undamped case, total mechanical energy is conserved as it oscillates between kinetic and potential forms:
When damping is present, energy is dissipated as heat at a rate proportional to c·v2. The total energy decays exponentially with a time constant of 1/(ζωn), and the system eventually comes to rest.
Key Concepts
- Resonance: When a damped oscillator is driven by an external periodic force at a frequency near ωn, the amplitude grows dramatically. The peak response occurs at ω = ωn√(1 − 2ζ2) for underdamped systems.
- Quality factor (Q): Defined as Q = 1/(2ζ), it measures how underdamped a system is. High-Q oscillators (like quartz crystals) ring for many cycles; low-Q systems (like shock absorbers) decay quickly.
- Superposition: Because the equation is linear, solutions can be added together. This principle underpins Fourier analysis—any periodic motion can be decomposed into a sum of harmonic oscillations.
- Phase space: Plotting velocity versus displacement reveals the system's dynamics geometrically. Undamped motion traces ellipses; damped motion spirals inward to the origin.
Historical Context
Robert Hooke (1635–1703) established the proportional relationship between force and displacement in 1660 ("ut tensio, sic vis"—as the extension, so the force), providing the physical law underlying harmonic oscillation. Isaac Newton (1643–1727) formulated the laws of motion that, combined with Hooke's law, yield the harmonic oscillator equation.
The mathematical framework was further developed by Euler, d'Alembert, and Lagrange in the 18th century. Lord Rayleigh's 1877 Theory of Sound provided a comprehensive treatment of damped and driven oscillators that remains a standard reference. In the 20th century, the quantum harmonic oscillator became one of the first exactly solvable problems in quantum mechanics, foundational to quantum field theory.
Real-world Applications
- Mechanical systems: Springs, pendulums, vehicle suspensions, seismometers, and MEMS accelerometers in smartphones.
- Electrical circuits: RLC circuits are exact electrical analogs of mechanical oscillators, with inductance playing the role of mass, capacitance as 1/k, and resistance as damping.
- Molecular vibrations: Chemical bonds vibrate approximately as harmonic oscillators, forming the basis of infrared spectroscopy.
- Acoustics and music: Musical instruments produce sound through harmonic oscillation of strings, air columns, and membranes.
- Structural engineering: Buildings and bridges must be designed to avoid resonant frequencies that could cause catastrophic oscillations (as in the Tacoma Narrows Bridge collapse).
Related Concepts
- Taylor Series — small-angle approximations that reduce nonlinear oscillators to harmonic ones
- Logistic Map — discrete nonlinear dynamics contrasting with the linear continuous dynamics here
- Gradient Descent — optimization dynamics analogous to a damped oscillator approaching equilibrium
- Wave Equation — harmonic oscillators coupled in space
Experience it interactively
Adjust parameters, observe in real time, and build deep intuition with Riano’s interactive Harmonic Oscillation module.
Try Harmonic Oscillation on Riano →