📊 Section 1 -- Interactive Simulation
Controls
Parameters
Display
💡 Section 2 -- The Idea, Step by Step
Push a child on a swing once and let go. It swings back and forth, but each swing is a little smaller than the last until it finally stops. A weight bouncing on a spring does exactly the same thing. The "back-and-forth" comes from the spring; the "slowly dies down" comes from friction and air resistance. Almost everything on this page is just a careful description of that one familiar picture.
Three things act on the mass. The spring pulls it back toward the middle, harder the further you stretch it: a force of $-ky$, where $k$ is the spring's stiffness and $y$ is how far it is from rest. A damper (a shock absorber, or just air) pushes against whatever direction it is moving: a force of $-by'$, where $y'$ is the velocity. And Newton said force equals mass times acceleration, $my''$. Putting the pushes together gives the equation this whole page studies: $my'' + by' + ky = 0$. With no damper ($b=0$) the mass bounces forever at its natural frequency $\omega_0 = \sqrt{k/m}$. For $m=1$ and $k=4$ that is $\omega_0 = 2$ radians per second, so one full bounce takes $T = 2\pi/\omega_0 \approx 3.14$ seconds.
How fast the wiggles die out is set by the damping ratio $\zeta = \dfrac{b}{2\sqrt{mk}}$. Three different behaviors fall out of it. If $\zeta < 1$ (underdamped) the mass still oscillates, but trapped inside a shrinking envelope $e^{-(b/2m)t}$. If $\zeta = 1$ (critically damped) it slides straight back to rest as fast as possible with no overshoot. If $\zeta > 1$ (overdamped) it crawls back slowly without ever crossing zero. Now push the mass rhythmically with $F\cos(\omega t)$: when your push frequency $\omega$ lands near $\omega_0$, the swings build up enormously -- that is resonance. The sliders map straight onto these symbols: $m$, $k$, and $b$ set the character of the motion, while $F$ and the drive frequency $w$ switch on the forcing.
Set $b = 0$ and watch the curve oscillate forever while the energy graph stays perfectly flat -- nothing is lost. Then drag $b$ up past the critical value ($b = 2\sqrt{mk}$) and watch the oscillation disappear into a smooth return. Finally turn $F$ up and slide the drive frequency $w$ toward $\sqrt{k/m}$: the amplitude swells dramatically as you tune into resonance.
📐 Section 3 -- Second-Order Linear ODEs
For $my''+by'+ky=0$: characteristic roots $r=\frac{-b\pm\sqrt{b^2-4mk}}{2m}$.
Δ>0: overdamped $y=C_1e^{r_1t}+C_2e^{r_2t}$. Δ=0: critical $(C_1+C_2t)e^{rt}$. Δ<0: underdamped $e^{\alpha t}(C_1\cos\beta t+C_2\sin\beta t)$.
$\zeta=b/(2\sqrt{mk})$. Underdamped: $\zeta<1$ (oscillates). Critical: $\zeta=1$ (fastest non-oscillatory return). Overdamped: $\zeta>1$ (slow monotone return).
With forcing $F\cos(\omega t)$: particular solution amplitude $A=F/\sqrt{(k-m\omega^2)^2+(b\omega)^2}$. At $\omega=\omega_0=\sqrt{k/m}$ with $b=0$: $A\to\infty$ -- resonance. With $b>0$: maximum at $\omega_r=\sqrt{k/m-b^2/(2m^2)}$.
$y''+4y'+4y=0$ (critical, $b^2=4mk$). Char. eq. $(r+2)^2=0$, $r=-2$. General: $y=(C_1+C_2t)e^{-2t}$. With $y(0)=1,y'(0)=0$: $C_1=1,C_2=2$. So $y=(1+2t)e^{-2t}$.
KE $= \frac{1}{2}my'^2$, PE $=\frac{1}{2}ky^2$. Total $E=$ KE+PE. For $b=0$: $E=$ const (conserved). For $b>0$: $dE/dt=-by'^2\leq0$ (dissipation). At resonance with forcing: $E$ grows without bound.
For $y''+2y'+5y=3\cos t$: try $y_p=A\cos t+B\sin t$. Substituting: $4A+2B=3$, $-2A+4B=0$. Solving: $A=3/5$, $B=3/10$. General: $y=e^{-t}(C_1\cos2t+C_2\sin2t)+\frac{3}{5}\cos t+\frac{3}{10}\sin t$.
$W(y_1,y_2)=y_1y_2'-y_1'y_2$. If $W\neq0$ at any point then $y_1,y_2$ are linearly independent -- forming a fundamental set. Abel's theorem: $W(t)=W(t_0)\exp(-\int p(t)\,dt)$ where $p(t)$ is the coefficient of $y'$.
❓ Section 4 -- FAQ
The discriminant $b^2-4mk$ determines root type: positive gives two real distinct roots (overdamped, no oscillation); zero gives a repeated real root (critical, boundary case); negative gives complex conjugate roots (underdamped, oscillation with exponential envelope). Critical damping is the fastest non-oscillatory return -- used in car suspensions and seismographs.
Key takeaway: three damping types from sign of $b^2-4mk$. Critical damping returns to zero fastest without oscillating.Total mechanical energy $E=rac{1}{2}my'^2+rac{1}{2}ky^2$. For $b=0$ it is constant (conserved). With damping, $E$ decreases monotonically -- the damper converts KE to heat. At resonance with forcing, $E$ grows. The graph shows this clearly as $E(t)$ vs $t$.
Key takeaway: energy constant for b=0; decays for b>0; grows at resonance with forcing.Car suspension (critically damped). RLC circuit ($L$=mass, $C^{-1}$=spring, $R$=damping). Seismograph (overdamped). Building tuned mass dampers (prevent resonance in earthquakes). Radio tuning (RLC resonance selects one frequency). MRI magnetic coils. Guitar string vibrations (underdamped). Tacoma Narrows bridge collapse (resonance failure).
Key takeaway: car suspensions, RLC circuits, seismographs, tuned mass dampers -- all second-order ODE systems.Overdamped has two slow real exponentials. Underdamped oscillates -- wastes time crossing zero. Critical $(C_1+C_2t)e^{-bt/(2m)}$ achieves the fastest monotone approach to zero because it has the largest (least negative) characteristic root while still being non-oscillatory. This makes it optimal for door closers, gun recoil dampers, and analog meters.
Key takeaway: critical damping is the unique fastest non-oscillatory return -- overdamped is actually slower.Char. eq.: $r^2+5r+6=(r+2)(r+3)=0$. $r_1=-2,r_2=-3$. General: $y=C_1e^{-2t}+C_2e^{-3t}$. ICs: $y(0)=C_1+C_2=2$; $y'(0)=-2C_1-3C_2=-1$. Solving: $C_1=5,C_2=-3$. Answer: $y=5e^{-2t}-3e^{-3t}$. Overdamped ($b^2=25>4 imes6=24$).
Key takeaway: factor characteristic polynomial, find roots, apply both initial conditions to determine constants.$W(y_1,y_2)=y_1y_2'-y_1'y_2$. Abel's theorem: $W=W_0e^{-\int p(t)\,dt}$ where $p$ is the $y'$ coefficient. $W eq0$ everywhere or $W\equiv0$ (Abel guarantees this dichotomy). $W eq0$ iff $y_1,y_2$ are linearly independent iff they form a fundamental set. The Wronskian is the key tool for variation of parameters (finding particular solutions for any RHS).
Key takeaway: Wronskian nonzero iff LI. Abel: W either always zero or never zero. Used to verify fundamental set and in variation of parameters.