Spring-Mass Systems and Harmonic Oscillators

April 14, 2026

Problem

A 2 kg mass is attached to a spring with stiffness k = 50 N/m and damping c = 4 N·s/m. Solve m·x″ + c·x′ + k·x = 0 and show the decaying oscillation.

Explanation

The canonical second-order physical ODE

Newton's second law applied to a mass on a spring with a dashpot (viscous damper) gives mx+cx+kx=0.m \, x'' + c \, x' + k \, x = 0.

Forces in play:

  • kx-k\,x: spring restoring force (Hooke's law).
  • cx-c\,x': drag force proportional to velocity (dashpot / viscous damping).
  • mxm\,x'': inertia.

This is the textbook damped harmonic oscillator — one of the most-studied equations in physics and engineering.

The given system

  • Mass: m=2m = 2 kg.
  • Stiffness: k=50k = 50 N/m.
  • Damping: c=4c = 4 N·s/m.

So 2x+4x+50x=02 x'' + 4 x' + 50 x = 0.

Step-by-step

Step 1 — Normalise to standard form.

Divide by m=2m = 2: x+2x+25x=0.x'' + 2 x' + 25 x = 0.

Step 2 — Characteristic equation (see #181).

r2+2r+25=0r^{2} + 2 r + 25 = 0

Discriminant Δ=4100=96<0\Delta = 4 - 100 = -96 < 0 → complex conjugate roots: r=2±962=1±i24=1±26i.r = \frac{-2 \pm \sqrt{-96}}{2} = -1 \pm i \sqrt{24} = -1 \pm 2\sqrt{6}\, i.

So α=1\alpha = -1, β=264.899\beta = 2\sqrt{6} \approx 4.899.

Step 3 — Identify the regime.

Δ<0\Delta < 0under-damped. Oscillates while decaying.

The critical damping would be ccrit=2mk=2250=20 N\cdotps/m.c_{\text{crit}} = 2\sqrt{m k} = 2\sqrt{2 \cdot 50} = 20 \text{ N·s/m}.

Our c=4c = 4 is far below 20, so we're well into the under-damped regime.

Step 4 — General solution.

x(t)=et(C1cos(26t)+C2sin(26t))\boxed{\, x(t) = e^{-t}\bigl(C_1 \cos(2\sqrt{6}\, t) + C_2 \sin(2\sqrt{6}\, t)\bigr) \,}

Natural frequency (un-damped): ω0=k/m=25=5\omega_0 = \sqrt{k/m} = \sqrt{25} = 5 rad/s. Damped frequency: ωd=ω02γ2=251=264.899\omega_d = \sqrt{\omega_0^2 - \gamma^2} = \sqrt{25 - 1} = 2\sqrt{6} \approx 4.899 rad/s. Decay rate: γ=c/(2m)=1\gamma = c / (2m) = 1 s⁻¹. Time constant (envelope): 1/γ=11/\gamma = 1 s.

Step 5 — Apply initial conditions.

Say x(0)=0.1x(0) = 0.1 m (displaced 10 cm) and x(0)=0x'(0) = 0 (released from rest).

x(0)=C1=0.1x(0) = C_1 = 0.1. x(0)=C1+βC2=0    C2=C1/β=0.1/(26)0.0204x'(0) = -C_1 + \beta C_2 = 0 \implies C_2 = C_1 / \beta = 0.1 / (2\sqrt{6}) \approx 0.0204.

x(t)et(0.1cos(26t)+0.0204sin(26t)).x(t) \approx e^{-t}\bigl(0.1 \cos(2\sqrt{6}\, t) + 0.0204 \sin(2\sqrt{6}\, t)\bigr).

Verification (structural)

Both etcos(26t)e^{-t} \cos(2\sqrt{6}\, t) and etsin(26t)e^{-t} \sin(2\sqrt{6}\, t) solve x+2x+25x=0x'' + 2x' + 25x = 0 because r=1±26ir = -1 \pm 2\sqrt{6}i satisfy the characteristic equation. Any linear combination does too (superposition — see #200).

The three damping regimes, geometrically

Let γ=c/(2m)\gamma = c/(2m) (decay rate) and ω0=k/m\omega_0 = \sqrt{k/m} (natural frequency). Then:

  • Under-damped (γ<ω0\gamma < \omega_0): oscillates inside an envelope ±Aeγt\pm A e^{-\gamma t}. Bouncy. (Our case.)
  • Critically damped (γ=ω0\gamma = \omega_0): (C1+C2t)eγt(C_1 + C_2 t) e^{-\gamma t}. Returns fastest, no overshoot.
  • Over-damped (γ>ω0\gamma > \omega_0): two decaying exponentials with different rates. Sluggish return, no oscillation.

Shock absorbers in cars are tuned near critical damping — any less and the car bounces; any more and it wallows.

Energy and the envelope

Total mechanical energy E(t)=12mx2+12kx2E(t) = \tfrac{1}{2} m x'^2 + \tfrac{1}{2} k x^2 decays exponentially: E(t)=E(0)e2γt×(oscillation).E(t) = E(0) \, e^{-2\gamma t} \times \text{(oscillation)}. Damping dissipates energy at the rate cx2c \, x'^2 per unit time. Not conserved — the dashpot converts it to heat.

Quality factor Q

A dimensionless measure of "how bouncy" an oscillator is: Q=ω02γ=mkc.Q = \frac{\omega_0}{2 \gamma} = \frac{\sqrt{m k}}{c}.

  • Q1Q \gg 1: very under-damped, rings many cycles before decaying. Tuning forks, crystals, high-Q LC circuits.
  • Q0.5Q \approx 0.5: critically damped.
  • Q<0.5Q < 0.5: over-damped.

Our system: Q=100/4=10/4=2.5Q = \sqrt{100}/4 = 10/4 = 2.5. Moderately under-damped — you'd hear a few dying bounces.

Where this equation shows up

  • Mechanical: car suspension, building response to wind, pendulums, bridges, watch escapements.
  • Electrical: RLC circuit (#203) — literally the same ODE with QxQ \leftrightarrow x, LmL \leftrightarrow m, RcR \leftrightarrow c, 1/Ck1/C \leftrightarrow k.
  • Acoustic: speaker cone dynamics, room resonance.
  • Biological: heart rhythms (to first order), swinging limbs during walking.

Master this one ODE and you have a mental model for half of undergraduate physics.

Common mistakes

  • Forgetting to divide by mm. The characteristic equation is r2+(c/m)r+(k/m)=0r^2 + (c/m) r + (k/m) = 0 — easy to accidentally use r2+cr+kr^2 + c r + k.
  • Confusing natural and damped frequency. ω0=k/m\omega_0 = \sqrt{k/m} is what you'd see with no damping; ωd=ω02γ2\omega_d = \sqrt{\omega_0^2 - \gamma^2} is what you actually observe (slightly slower).
  • Sign of the damping force. Damping opposes motion, so the term has sign +cx+c x' on the left side (or cx-c x' as a force on the right).
  • Reading the amplitude off the wrong thing. The envelope is eγte^{-\gamma t}, where γ=c/(2m)\gamma = c/(2m), not c/mc/m.

Try it in the visualization

Draw the mass sliding on a track, attached to a spring (coil drawing) and dashpot (cylinder). Animate x(t)x(t) as the mass moves. Overlay the x(t)x(t) curve with its ±eγt\pm e^{-\gamma t} envelope. Slide cc from 00 to 3030 to watch the three regimes morph: pure oscillation → under-damped → critically damped → over-damped.

Interactive Visualization

Parameters

2.00
4.00
50.00
0.15
0.00
8.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Spring-Mass Systems and Harmonic Oscillators | MathSpin