← SciSim / Mathematics

Second-Order Linear ODEs

Underdamping, critical damping, overdamping -- mass-spring system with resonance.
🎓 Tier: Standard Undergraduate -- Differential Equations

📊 Section 1 -- Interactive Simulation

y(t)
--
y'(t)
--
Damping type
--
omega0
--
zeta
--
Energy
--

Controls

Parameters

Display

💡 Section 2 -- The Idea, Step by Step

Start -- a swing that slowly dies down

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.

Build -- three pushes, one equation

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.

Deepen -- what the damping decides

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.

Try this in the sim above

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

General Solution: Homogeneous

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)$.

Step 1 -- Damping Ratio

$\zeta=b/(2\sqrt{mk})$. Underdamped: $\zeta<1$ (oscillates). Critical: $\zeta=1$ (fastest non-oscillatory return). Overdamped: $\zeta>1$ (slow monotone return).

Step 2 -- Resonance

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)}$.

Step 3 -- Worked Example

$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}$.

Step 4 -- Energy Analysis

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.

Step 5 -- Method of Undetermined Coefficients

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$.

Step 6 -- Wronskian

$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'$.

Reference: Boyce & DiPrima -- ODE §3.1-3.8; Strogatz -- Nonlinear Dynamics Ch.2; MIT OCW 18.03.

❓ Section 4 -- FAQ

🧮Conceptual  Why are there three damping cases?

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.
🔬Simulation  What does the energy graph show?

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.
🌍Applied  Real applications?

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.
💡Non-Obvious  Why does critical damping return fastest?

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.
📐Computational  Solve $y''+5y'+6y=0$, $y(0)=2,y'(0)=-1$.

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.
🎓Deep  What is the Wronskian and why does it matter?

$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.
Best resources: 3Blue1Brown -- Differential equations; MIT OCW 18.03; Boyce & DiPrima; Paul's Online Math Notes.

⚠️ Section 5 -- Misconceptions & Common Errors

A · Conceptual Misconceptions
❌ Misconception: Overdamped means faster return to equilibrium.✅ Correction: Critical damping returns fastest without oscillation. Overdamping is actually slower -- the two large drag coefficients make the system sluggish.📖 Boyce & DiPrima §3.7.
❌ Misconception: The general solution is $y=e^{r_1t}+e^{r_2t}$ (no constants).✅ Correction: $y=C_1e^{r_1t}+C_2e^{r_2t}$. Two arbitrary constants encode two initial conditions. Without them you have particular solutions, not the general solution.📖 Boyce & DiPrima §3.1.
❌ Misconception: Resonance only occurs at exactly $\omega=\omega_0$.✅ Correction: With damping, maximum amplitude occurs near but not exactly at $\omega_0$. True unbounded resonance requires $b=0$ and $\omega=\omega_0$ exactly. With $b>0$, amplitude is finite but maximized at $\omega_r=\sqrt{k/m-b^2/(2m^2)}$.📖 Boyce & DiPrima §3.8.
B · Common Procedural Errors
❌ Error: For $r^2+4r+4=0$, writing $(r+4)^2=0$.✅ Correct: $(r+2)^2=r^2+4r+4=0$. Check: $(r+2)^2=r^2+4r+4$ not $r^2+8r+16$.🔍 Why: students factor incorrectly, writing the constant as the square root of the last term instead of half the middle.
❌ Error: Complex roots $r=lpha\pm ieta$: writing $y=e^{lpha t}(C_1e^{ieta t}+C_2e^{-ieta t})$ and stopping.✅ Correct: Convert to real form: $y=e^{lpha t}(C_1\coseta t+C_2\sineta t)$ using Euler's formula. IC application with complex form gives complex constants.🔍 Why: students leave the solution in complex exponential form without converting to real trigonometric form.
❌ Error: Repeated root $r$: writing $y=C_1e^{rt}+C_2e^{rt}=(C_1+C_2)e^{rt}$ (collapses to one constant).✅ Correct: $y=C_1e^{rt}+C_2te^{rt}$. The factor $t$ creates a linearly independent second solution.🔍 Why: students apply the two-root formula to a repeated root, losing the second independent solution.
Education research: Rasmussen, C. -- JMTE 4(1) (2001).