Differential Equations, Interactive EditionXYZ Homework Edition

⇩ Download ▾

2.2 Beats and Resonance

Attach the mass to a shaker and drive it. With no damping, and with the spring tuned so the system's natural frequency is 22, the equation is

x + 4 x = cos ( a t ) , x'' + 4x = \cos(a t),

where aa is the frequency you choose to push at. The method of undetermined coefficients says: guess a response of the same shape as the input, xp=Acos(at)x_p = A\cos(at). Substituting gives a2Acos(at)+4Acos(at)=cos(at)-a^2 A \cos(at) + 4A\cos(at) = \cos(at), so A=1/(4a2)A = 1/(4 - a^2) — provided a2a \ne 2. Adding the homogeneous solution and imposing rest initial conditions x(0)=x(0)=0x(0) = x'(0) = 0 produces

x ( t ) = cos ( a t ) cos ( 2 t ) 4 a 2 . x(t) = \frac{\cos(a t) - \cos(2 t)}{4 - a^2}.

The denominator is the whole story in miniature. Push at a frequency far from 22 and the response is small; push near 22 and 4a24 - a^2 is tiny, so the response is enormous. But the shape is stranger than "big" — as the figure shows, the motion swells and collapses in slow packets.

A red wave along the time axis whose amplitude swells and shrinks in slow packets: fast oscillations inside a slowly waving envelope, the classic picture of beats. Dragging the slider a toward the natural frequency 2 stretches the packets longer and taller, so near a = 1.95 a single enormous swell fills the window - the approach to resonance.Explore in 3D (opens in a new tab)
The rest-start response of x+4x=cos(at)x'' + 4x = \cos(at), an undamped oscillator with natural frequency 22. Dragging the forcing frequency aa toward 22 lengthens and heightens the beat packets — the run-up to resonance.

Explore

  1. Observe. Set a=1a = 1, well away from resonance. The motion is bounded and busy. Estimate the largest height it ever reaches, and compare it to the coefficient 1/(4a2)=1/31/(4 - a^2) = 1/3.
  2. Predict. Move aa to 1.61.6. Will the packets get longer, shorter, taller, or shorter and taller? Write your guess down first.
  3. Verify. Drag to a=1.6a = 1.6, then a=1.8a = 1.8, then a=1.9a = 1.9. Record roughly how many packets fit in the window at each setting. The packet count is falling — toward what, as a2a \to 2?
  4. Observe. At a=1.95a = 1.95 a single swell nearly fills the window. The amplitude scale has changed dramatically. Compute 1/(4a2)1/(4 - a^2) at this setting and see whether it matches the height you observe.
  5. Predict, then reason. What does the formula do at exactly a=2a = 2? The slider stops just short — explain from the algebra why the figure cannot draw the resonant case, and what the true resonant solution must look like instead.

Connect

The product-to-sum identity turns the response into

x ( t ) = 2 4 a 2 sin ( 2 + a 2 t ) sin ( 2 a 2 t ) , x(t) = \frac{2}{4 - a^2}\, \sin\!\left(\frac{2 + a}{2}\,t\right) \sin\!\left(\frac{2 - a}{2}\,t\right),

and now the two time scales are visible separately. The first sine oscillates at roughly the average frequency — that is the fast wiggle you see. The second oscillates at half the difference 2a2 - a, which is small when aa is near 22, and it acts as a slowly varying amplitude: the envelope. This is the phenomenon of beats, the same effect a piano tuner hears as a slow throb when a string is close to but not on pitch. As a2a \to 2 the envelope period 4π/(2a)4\pi/(2-a) grows without bound and the coefficient 2/(4a2)2/(4 - a^2) grows with it.

At exactly a=2a = 2 the guess Acos2tA\cos 2t fails, because cos2t\cos 2t already solves the homogeneous equation — the standard repair is to multiply by tt, and the true resonant solution is x(t)=14tsin2tx(t) = \tfrac{1}{4} t \sin 2t. The envelope is no longer a slow sine but the straight line ±t/4\pm t/4: amplitude that grows forever. Real systems have damping, which caps the growth at a large but finite value, and real structures are designed to keep their natural frequencies away from the frequencies they will be driven at.

An original work of XYZ Homework, built around interactive XYZ 3D figures, following the standard first-course sequence (first-order equations through systems and the phase plane). Distinct from the LibreTexts-sourced Differential Equations for Engineers (Lebl) edition, which has its own attribution. License: CC-BY-NC-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.