← thecodex.expert
Waves, Acoustics & Oscillations Hub Physicist Biographies
Definition Curious Exploring Deep Dive Sources
Oscillations · Concept

Simple Harmonic Oscillator

Reading time: 9 minConfidence: HighLast verified: November 2026

The equation ẍ + ω02x = 0 has the general solution x(t) = x0 cosω0t + (v0/ω0) sinω0t = A cos(ω0t + φ), with A = √(x02 + (v0/ω0)2). The total energy E = ½mv2 + ½kx2 = ½mω02A2 is constant and the speed at displacement x is v = ω0√(A2 − x2). The mass–spring system has ω02 = k/m; an LC circuit has ω02 = 1/LC; a torsion oscillator has ω02 = κ/I. The equation describes small oscillations about any stable equilibrium.

Curious

One sentence that captures itNearly everything that sits at a stable resting point and gets nudged will wobble like a mass on a spring, so one equation describes clocks, circuits, molecules and the strings of a guitar.

Pull a mass on a spring and let go: it swings back and forth, always pulled toward the middle with a force that grows the farther it is from it. The motion is a smooth sine wave, and remarkably the time of one swing does not depend on how far you pulled. Replace the spring with a pendulum, a swinging bridge, an electrical circuit or a vibrating atom in a molecule, and as long as the wobbles are small, the same equation applies.

This is why physicists study the simple harmonic oscillator so intensively: it is the simplest non-trivial dynamical system and the building block for waves, vibrations and quantum fields (see Quantum Harmonic Oscillator).

Exploring

Worked examples(1) A 0.50 kg mass on a 20 N/m spring has ω0 = √40 = 6.32 rad/s and a period of 0.993 s. Released from rest at A = 5 cm, E = ½kA2 = 0.025 J and the greatest speed is ω0A = 0.316 m/s, at the centre. (2) An LC circuit with L = 10 mH and C = 1 µF oscillates at f = 1/(2π√(LC)) = 1,591 Hz; the energy sloshes between the capacitor’s electric field and the inductor’s magnetic field. (3) Any smooth potential near a minimum is approximately V(x) ≈ V0 + ½V″(x0)(x − x0)2, so the oscillation frequency is ω0 = √(V″/m); a diatomic molecule with force constant 1,857 N/m (carbon monoxide) vibrates at about 6.5×1013 Hz. (4) Starting from x0 = 2 cm with velocity 0.1 m/s in example (1), the amplitude is √(0.022 + (0.1/6.32)2) = 2.5 cm. (Computed in Python.)
SystemVariableω02
Mass on springDisplacement xk/m
Small-angle pendulumAngle θg/L
LC circuitCharge q1/LC
Torsion pendulumTwist angleκ/I
Floating cylinder in a liquidVertical positionρlgA/m
Diatomic moleculeBond-length changek/μ
Common mistake — Commonly ConfusedPeriod independence from amplitude is true only for the linear (harmonic) approximation: a real pendulum swung through 60° has a period about 7% longer than the small-angle value, and a spring stretched beyond its elastic limit no longer obeys Hooke’s law (see Non-Linear Dynamics). The frequency also does not depend on the amount of energy, but the amplitude does, since E ∝ A2. And “simple harmonic” does not mean without friction forever: real oscillators are damped (see Damped Oscillations).

Deep Dive

Primary sourceHooke, R. (1678). Lectures de Potentia Restitutiva, or of Spring. London; Goldstein, H., Poole, C., Safko, J. (2002). Classical Mechanics (3rd ed.). Addison-Wesley, Ch. 6.

Representation. Using complex notation, x = Re[Ceiω0t] converts the differential equation to the algebraic condition −ω2 + ω02 = 0. In phase space (x, p) the trajectory is an ellipse of area 2πE/ω0 (see Phase Space), and the Hamiltonian H = p2/2m + ½mω02x2 is the prototype of an integrable system (see Hamiltonian Mechanics). Averaged over a period, kinetic and potential energies are equal, each E/2.

Why it is universal. Any conservative system near a stable equilibrium has, to leading order, a quadratic potential, so small oscillations are harmonic. With many degrees of freedom the linearised equations decompose into independent oscillators, the normal modes (see Normal Modes), and a continuous medium becomes a field whose Fourier components are oscillators; this is the route from vibrations to waves (see Wave Equation). Quantised, the oscillator has equally spaced levels (n + ½)ℏω0 and a zero-point energy ½ℏω0.

Limits and extensions. Real springs and bonds are anharmonic; the first correction typically lowers the frequency for large amplitude (a softening potential) or raises it (hardening); the amplitude dependence of the period is the signature of non-linearity. A mass on a spring in a uniform gravitational field is still harmonic about a shifted equilibrium, an important simplification. The page on the mechanical version of this topic (see Simple Harmonic Motion) gives Hooke’s law and the period formulas; this page concentrates on the oscillator as a general model.

Sources

  • Goldstein, H., Poole, C., Safko, J. (2002). Classical Mechanics (3rd ed.). Addison-Wesley.
  • French, A.P. (1971). Vibrations and Waves. MIT Introductory Physics Series. Norton.
  • Hooke, R. (1678). Lectures de Potentia Restitutiva. London.
  • Crawford, F.S. (1968). Waves (Berkeley Physics Course, Vol. 3). McGraw-Hill.
  • Halliday, D., Resnick, R., Walker, J. (2014). Fundamentals of Physics (10th ed.). Wiley.
Last verified: November 2026 · Source: Hooke (1678); Goldstein et al. (2002); French (1971) · Confidence: high