4
Part Zero · Foundations

Ordinary differential equations

A sample of radon gas fading away, a capacitor draining through a resistor, and a footbridge settling after a crowd crosses it look like three unrelated stories. They are told by the same few equations. Learn those equations once and you can read all three, along with most of the physics in this book.

An ordinary differential equation says how a quantity changes in terms of what it currently is. Physics is mostly written this way, because nature is local in time: what happens next depends on what is happening now.

Decay

Each radon-222 nucleus has the same small chance of decaying in any given second, so the number decaying is proportional to the number left: dN/dt=−λNdN/dt = -\lambda N. Separate the variables and integrate, and you get

N(t)=N0 e−λt,t1/2=ln⁡2λN(t) = N_0\,e^{-\lambda t}, \qquad t_{1/2} = \frac{\ln 2}{\lambda}

Radon-222 has a half-life of 3.82 days. After 3.8 days, a fraction 0.50 is left. Established

A capacitor discharging through a resistor obeys the same equation with λ=1/RC\lambda = 1/RC. After one time constant RCRC, 63% of the charge has gone, because 1−e−1=0.6321 - e^{-1} = 0.632.

Oscillation and the phase plane

A mass on a spring obeys Newton’s law with a restoring force and some friction: x¨=−ω02x−γx˙\ddot x = -\omega_0^2 x - \gamma \dot x. Two numbers describe its state at any moment: where it is and how fast it moves. Plot them as a point in a plane and the motion becomes a path. That is the phase plane, shown on the right of the plate.

Set the friction to 0.20 (with ω0=1\omega_0 = 1). With no friction the path is a closed loop: the energy never leaves. With a little, it spirals inward. At γ=2\gamma = 2 the system is critically damped and returns to rest as fast as possible without overshooting, which is how car suspensions and door closers are tuned.

Driving and resonance

Now push the oscillator back and forth at a frequency ω\omega of your choosing: 0.60. Near the natural frequency the swings grow large. That is resonance.

How sharp the peak is depends on the friction. The quality factor Q=ω0/γQ = \omega_0/\gamma counts roughly how many swings the oscillator makes before its energy fades, and the width of the peak is about ω0/Q\omega_0/Q. With your friction setting, QQ = 5.

DeeperTry x=Acos⁡(ωt−δ)x = A\cos(\omega t - \delta) in x¨+γx˙+ω02x=Fcos⁡ωt\ddot x + \gamma\dot x + \omega_0^2 x = F\cos\omega t. The amplitude is A=F/(ω02−ω2)2+γ2ω2A = F/\sqrt{(\omega_0^2-\omega^2)^2 + \gamma^2\omega^2}. The energy ∝A2\propto A^2 falls to half its peak value at ω≈ω0±γ/2\omega \approx \omega_0 \pm \gamma/2, so the full width is γ=ω0/Q\gamma = \omega_0/Q.

The bridge that was not a resonance

Textbooks often say the Tacoma Narrows Bridge collapsed in 1940 because the wind pushed it at its resonant frequency. That is not what happened. A steady wind does not push at a single frequency. The deck’s own twisting changed how the air flowed around it, and that flow fed energy back into the twisting. The motion drove itself. Established

Engineers call this aerodynamic flutter, a kind of self-excitation. In the equation it looks like negative damping: γ\gamma turns negative, and the spiral in the phase plane runs outward instead of in. K. Yusuf Billah and Robert Scanlan set the record straight in a 1991 paper written for physics teachers.

When the computer lies

Most equations in this book cannot be solved with a pen, so we step them forward on a computer. The simplest method, Euler’s, takes the current slope and walks in a straight line for a time step hh. For an oscillator with no friction, that is quietly wrong: every step adds a little energy. Watch the outer spiral on the plate.

Set the step to 0.10. With h=0.1h = 0.1, after ten time units Euler’s energy has grown by a factor of 2.7. The fourth-order Runge–Kutta method, which samples the slope four times per step, keeps it correct to six decimal places in the same run.

The lesson goes beyond oscillators: a simulation that does not conserve what physics conserves will drift into nonsense. Always check.

What you now have

Exponential decay, oscillation with friction, resonance and its sharpness, a picture of motion as a path in the phase plane, and a healthy suspicion of naive numerical methods.

· · ·

Three questions to carry with you.

What does the quality factor Q tell you?tap
Roughly how many oscillations happen before the energy fades, and how sharp the resonance peak is: its width is about ω₀/Q.
Why did the Tacoma Narrows Bridge fail, if not by resonance?tap
Aerodynamic flutter: the bridge’s own motion changed the airflow so that the wind fed energy in, which acts like negative damping.
What goes wrong with Euler’s method for a frictionless oscillator?tap
Each step adds energy, so the orbit spirals outward instead of closing.

And one to work out. What fraction of a radon-222 sample is left after 7.64 days?

fraction =

Sources: S. H. Strogatz, Nonlinear Dynamics and Chaos. W. E. Boyce and R. C. DiPrima, Elementary Differential Equations. K. Y. Billah and R. H. Scanlan, Am. J. Phys. 59, 118 (1991). Radon-222 half-life 3.82 days (NNDC). Checked by code: Euler energy ×2.70 after t = 10 at h = 0.1; RK4 error below 10⁻⁶.

Next · Chapter 5
PDEs and separation of variables

Why does a guitar string play only certain notes? The same math gives the particle in a box.

Turn the page