Add one more derivative and the world changes. With x¨ in play the system has inertia — once it starts moving it tends to keep moving — and inertia is what lets a system oscillate. Almost every system in this bookshelf that vibrates, rings, resonates, or oscillates is described by a second-order linear ODE. Mass on a spring, pendulum, tuning fork, LC circuit, every acoustic mode, the cochlear filter at each place on the basilar membrane — the same equation, different labels.
The characteristic-equation trick from 5.2 carries through with one extra subtlety: the polynomial is now quadratic, so there are two roots, and the interplay between them sets the character of the motion.
The general form
A second-order linear ODE with constant coefficients looks like
ax¨+bx˙+cx=f(t),
with constants a,b,c and an external forcing f(t). In physical problems each of the three constants always means something — inertia, friction, restoring stiffness — and we’ll see them under several different names as the lesson goes on.
Damped (b>0, f=0) — decay and four distinct regimes.
Forced (f(t) a sinusoid) — resonance: dramatic amplification when the drive matches the natural frequency.
Each stage adds one feature at a time. By the end you’ll have the full damped-driven-oscillator equation, which is one of the most useful equations in all of physics and engineering.
Stage 1 — Simple harmonic motion
Set b=0 (no friction) and f=0 (no forcing). Rename constants to their physical meanings: a=m (mass), c=k (spring stiffness). Newton’s second law for a mass on a frictionless spring is
mx¨+kx=0,or equivalentlyx¨+ω02x=0,
with the natural frequencyω0≡k/m. Try the trick. Substitute x=eλt:
λ2eλt+ω02eλt=0⟹λ2=−ω02⟹λ=±iω0.
The two characteristic roots are pure imaginary. By Euler’s formula (refresher →), eiω0t=cos(ω0t)+isin(ω0t). The real-valued general solution is the linear combination
x(t)=Acos(ω0t)+Bsin(ω0t),
with constants A and B fixed by the initial position x(0) and initial velocity x˙(0). The motion is purely sinusoidal at ω0 — no decay, no drift. The oscillator runs forever.
Pure sinusoid forever. Period T = 2π/ω₀; amplitude set by initial conditions.
On the left, a mass slides back and forth on a spring; on the right, the same motion appears as a sine curve in time. Slide ω0 and the period T=2π/ω0 shrinks. Set x0 to start the mass displaced; set v0 to give it an initial kick. The two pieces of initial data uniquely fix the curve.
The mass and the curve are the same thing seen two ways: the mass’s position at time tis the value of x(t) on the right.
Stage 2 — Add damping
Real oscillators lose energy. Air viscosity drags on a tuning fork; mechanical friction warms a shock absorber; electrical resistance dissipates current in an RLC circuit. We model the loss with a force proportional to velocity, opposing the motion:
x¨+2γx˙+ω02x=0.
The coefficient γ>0 is the damping rate. (The factor of 2 makes downstream formulas tidier.) Apply the same trick — substitute x=eλt:
λ2+2γλ+ω02=0⟹λ=−γ±γ2−ω02.
This is just the quadratic formula. Now look at what happens as we crank γ up from zero. The character of λ — and hence of x(t) — depends on the sign of the discriminant γ2−ω02. Four regimes:
γ=0 — undamped. λ=±iω0. Pure sinusoid; the previous stage.
0<γ<ω0 — underdamped. λ=−γ±iωd with ωd=ω02−γ2. The roots have both a real part (decay) and an imaginary part (oscillation). The solution is a sinusoid inside a decaying envelope:
x(t)=e−γt[Acos(ωdt)+Bsin(ωdt)].
γ=ω0 — critically damped. The two roots collide at the single real value −γ. The repeated-root case from 5.2 kicks in: x(t)=(A+Bt)e−γt. The system returns to equilibrium as fast as possible without oscillating.
γ>ω0 — overdamped. Two distinct real negative roots. Sluggish, monotone return to equilibrium with no overshoot.
Slide γ from 0 up past ω₀ to walk through all four regimes.
Slide γ from 0 up through and beyond ω0. At low damping you get slow ringdown — a sinusoid inside a slowly-shrinking envelope (the dashed lines trace ±e−γt). At critical damping the oscillation just barely doesn’t happen. At high damping the curve sags back to zero without crossing it.
You can also vary x0 and v0 — the two pieces of data a second-order ODE always demands.
Why each regime matters
Each regime is the right answer for a different engineering problem. Engineers spend a lot of time deliberately choosing damping to land in one of these zones.
Underdamped is what makes things ring. A tuning fork, a wine glass tapped with a knuckle, a struck bell, the strings of an instrument, the cochlear filters in your ear — all are slightly underdamped, so they sustain audible oscillation while losing a small fraction of their energy per cycle. The number of cycles before they fade is the quality factorQ∼ω0/(2γ).
Critical damping is the optimum for systems that should settle quickly without bouncing: a car shock absorber, a swinging door with a closer, the read-arm of a hard drive, the auto-focus actuator in a camera lens, an analog meter needle. Engineers tune for γ≈ω0 deliberately so the response is fast but free of overshoot.
Overdamped is what you get when friction dominates: a heavy door swinging through air thick with friction, a galvanometer in a viscous fluid bath, a slow chemical reaction settling toward equilibrium.
The characteristic roots in the complex plane
The four regimes correspond to four configurations of λ± in the complex plane. This is the most important picture in the chapter — once you see it the four-regime story becomes a single geometric statement.
▮ Re(λ) sets the decay rate of the envelope.
▮ Im(λ) sets the oscillation rate — period equals 2π divided by the imaginary part.
regime: underdamped
λ₊ = -0.30 + 0.95i ·
λ₋ = -0.30 − 0.95i
Two synchronised pictures. On the left, the roots’ positions in the complex plane. On the right, the resulting time-domain x(t) from unit initial conditions. Two coloured rules tie them together:
Red — the real part of λ. Sets the decay rate. On the left it’s the horizontal distance from the imaginary axis to each root; on the right it’s the dashed envelope ±e−γt that the solution lives inside.
Blue — the imaginary part of λ. Sets the oscillation rate. On the left it’s the vertical distance from the real axis to each root; on the right it’s the period T=2π/∣Imλ∣ marked with vertical dashed lines.
Slide γ from 0 upward and watch both panels move together. The roots start on the imaginary axis (undamped — pure oscillation, no envelope), slide together along a semicircle into the left half-plane (underdamped — oscillation inside a shrinking envelope), meet on the real axis at γ=ω0 (critically damped — envelope collapses, no oscillation), and then walk apart along the real axis (overdamped — two decay rates, no oscillation).
Stable systems — ones that decay to equilibrium rather than blow up — live in the left half of the complex plane: Reλ<0. Unstable systems live in the right half. The imaginary axis is the stability boundary. The central question of control theory and circuit design is keeping the eigenvalues of a closed-loop system on the stable side of that axis.
Stage 3 — Force it
Now turn on the forcing. The simplest case is a sinusoidal drive at some frequency ω:
x¨+2γx˙+ω02x=mF0cos(ωt).
The full solution is a sum of two parts: a transient (the homogeneous solution we just worked out, decaying with γ) plus a particular solution at the driving frequency ω. After the transient dies out, only the steady-state response remains. Using the complex-exponential trick (refresher →), the steady-state amplitude as a function of drive frequency is
X~(ω)=(ω02−ω2)+2iγωF0/m.
The magnitude is maximised when ω≈ω0 — this is resonance. The peak height grows like 1/γ (so the peak diverges as damping vanishes); the peak width is ∼γ (so the peak narrows as damping vanishes). The quality factor Q=ω0/(2γ) captures both: high Q means tall and narrow.
700 Hz
10.0
f / f₀
0.700
|H(f)| / |H(0)|
1.94
phase lag
-7.8°
Slide the drive frequency past the natural frequency and watch the amplitude peak rise and fall. The phasor diagram on the side shows the phase of the response relative to the drive — exactly 90° behind at resonance, in phase well below, 180° out of phase well above. That 90° lag at resonance is a universal signature; it appears in every resonant system ever built.
Why resonance matters
Resonance is what makes acoustics, music, and hearing work — and what occasionally breaks bridges and shatters wine glasses. A small sample of real systems described by exactly the equation above:
A wine glass has natural frequencies set by its geometry and material. Sing the right note loudly enough at low damping and the amplitude can climb past the glass’s elastic limit. It shatters.
A child on a swing is a damped pendulum. Push at the natural frequency (and at the right phase) and the amplitude grows; push off-frequency and you do almost no net work. Every parent at a playground is solving the forced-oscillator problem.
The Tacoma Narrows Bridge collapsed in 1940 because a vibrational mode of the deck happened to match the frequency of wind-driven aerodynamic forcing. The damping was too low to absorb the energy and the amplitude grew until the bridge tore itself apart. Modern long-span bridges are deliberately detuned or fitted with dampers to prevent such matches.
An MRI machine drives nuclear-spin resonances at ω0=γnB0 by hitting them with an RF pulse at that frequency. The image is reconstructed from the ring-down of the response after the drive is removed.
A cochlear hair cell sits on a basilar-membrane segment whose mechanical resonance places it at a characteristic frequency. Sound at that frequency drives that hair cell preferentially — the ear is built as a bank of resonators tuned across the audible range (Hearing Ch 4).
An AM/FM radio tuner is an LC circuit whose resonance is steered to the carrier frequency of the station you want. The narrow peak rejects all the other broadcasts at adjacent frequencies.
A vocal-tract formant is a resonance of the air column in your mouth, throat, and nose. By reshaping the geometry you move ω0 around; the formant frequencies are how vowels are distinguished.
The body of a violin, the port of a bass-reflex loudspeaker, the soundboard of a piano — each is an acoustic resonator whose response peak shapes the radiated spectrum.
A dye-laser tuning curve, a mass-spectrometer ion trap, an atomic-clock cavity: physics labs are full of forced oscillators driven near their natural frequencies for precision-measurement reasons.
A building during an earthquake has natural sway modes; if the seismic excitation overlaps them, the amplitudes climb. Tuned mass dampers (a heavy pendulum tuned to the building’s ω0, off in phase) are added to skyscrapers to bleed energy away from the structural mode.
Every one of those systems is described by the equation at the top of this section, with different physical meanings for ω0 and γ but identical mathematics.
⏳The history— From Newton's spring to the bandpass filter
The equation mx¨+kx=0 for simple harmonic motion appears as Proposition 38, Book I, of Newton’s 1687 Principia, in his analysis of a body oscillating on a “perfectly elastic” spring. Newton already knew that the solution was sinusoidal and that the period depended only on m/k — independent of amplitude. The same equation governs the small-angle pendulum (his Proposition 52), which is where the more famous SHM derivation lives.
Damping was added gradually through the 18th and 19th centuries; Lord Rayleigh’s Theory of Sound (1877) gives the equation mx¨+bx˙+kx=0 in the modern form. The classification of regimes — overdamped, underdamped, critically damped — comes from late-19th-century galvanometer design, where engineers cared about getting the needle to settle as quickly as possible without ringing. The optimum is critical damping, and “critical damping” is a term of art that crossed over from galvanometers into acoustics, mechanical engineering, and circuit design wholesale.
The complex-impedance approach to forced oscillators (X~=F0/[(k−mω2)+ibω] written as one line of algebra) was systematised by Charles Steinmetz for AC circuits in the 1890s — see also the Complex Exponentials chapter. The same algebra of impedances ties together acoustic, electrical, and mechanical filters; the bandpass filter of every audio EQ and every radio tuner is exactly this driven-oscillator equation, with different physical meanings for the symbols.
A pause before lesson 4
We’ve now done the canonical second-order story: SHM → damping → forcing. The same characteristic-equation trick handled all three. In the final lesson — 5.4 — Phase plane and classification — we step back and look at the geometric view, in which the same motion becomes a curve in (x,x˙) space, and meet the classification of equilibria that organises every 2-D linear system on a single map.