Second-Order & Oscillators

Spring-mass systems, damping, and resonance

The Harmonic Oscillator

One equation, mx" + bx' + kx = 0, describes a bouncing spring, a car suspension, and an electrical circuit. Change three numbers and watch it oscillate, settle, or ring.

Spring-Mass System

Adjust the mass, spring constant, and damping, and watch the mass bounce while x(t) is plotted beside it. Add damping and see the oscillations shrink, then stop oscillating altogether.

underdamped
Go deeper:Spring-Mass System

The second-order linear ODE is one of the most important equations in all of physics and engineering. The general form for a damped, unforced oscillator is:

mx" + bx' + kx = 0

Here m is the mass, b is the damping coefficient, and k is the spring constant. This equation models everything from car suspensions to electrical circuits (RLC), to the vibration of buildings during earthquakes.

Watch a spring-mass system oscillate in real time. The left side shows the physical system, while the right side plots the displacement x(t) as it evolves. Adjust the mass, spring constant, and damping to see how the behavior changes between underdamped (oscillating), critically damped, and overdamped regimes.

Key insight: The character of the solution depends entirely on the discriminant b² - 4mk. When negative, the system oscillates (underdamped). When zero, it returns to equilibrium as fast as possible without oscillating (critically damped). When positive, it decays exponentially without oscillation (overdamped).

Damping Regime Comparison

Underdamped, critically damped, and overdamped curves are drawn side by side. Move the slider to place your own curve at any damping ratio and compare it with the three reference cases.

Underdamped (ζ=0.2)Critical (ζ=1)Overdamped (ζ=2)
Go deeper:The Characteristic Equation

To solve a second-order linear ODE with constant coefficients, we substitute the trial solution x = ert and obtain the characteristic equation:

mr² + br + k = 0

The roots of this quadratic determine the behavior of the solution:

  • Two complex roots (b² < 4mk) — underdamped oscillation with exponential decay envelope
  • Repeated real root (b² = 4mk) — critically damped, fastest non-oscillatory return to equilibrium
  • Two distinct real roots (b² > 4mk) — overdamped, slow exponential decay without oscillation
Go deeper:Damping Regime Comparison

Compare all three damping regimes side by side. The dashed lines show the exponential envelope that bounds the underdamped oscillation. Use the slider to place your own curve at any damping ratio and see how it compares to the reference cases.

Key insight: Critical damping (ζ = 1) is the boundary between oscillation and pure decay. It represents the fastest return to equilibrium without overshooting -- which is why it is used in door closers, car shock absorbers, and analog meter movements.

Resonance Explorer

Sweep the driving frequency ω past the natural frequency and watch the amplitude spike. Lower the damping to make the peak taller and sharper.

Natural frequency ω0 = 1.0 (fixed)Steady-state amplitude: 3.33Near resonance!
Go deeper:Forced Oscillations and Resonance

When we apply an external periodic force F₀cos(ωt) to the oscillator, the equation becomes:

x" + 2ζω₀x' + ω₀²x = F₀cos(ωt)

The steady-state response has an amplitude that depends on the driving frequency ω. When ω approaches the natural frequency ω₀ and damping is small, the amplitude grows dramatically -- this is resonance. Resonance explains why soldiers break step on bridges, how radio tuners work, and why opera singers can shatter glass.

Go deeper:Resonance Explorer

The top plot shows the frequency response curve: the steady-state amplitude as a function of driving frequency. The bottom plot shows the actual displacement over time. Sweep the driving frequency ω through the natural frequency to see the dramatic amplitude growth at resonance.

Key insight: The resonance peak becomes sharper and taller as damping decreases. With zero damping, the amplitude at resonance would be infinite -- in practice, nonlinear effects or material failure intervene first. The quality factor Q = 1/(2ζ) measures how sharp the resonance peak is.

Key Takeaways

  • Substituting x = ert turns the ODE into a quadratic whose roots set the behavior.
  • The sign of b² - 4mk decides underdamped, critically damped, or overdamped.
  • Critical damping (ζ = 1) is the fastest return to rest without overshoot.
  • Driving near the natural frequency makes the amplitude peak; damping limits the peak.

Spot a mistake or have an idea?

Search