Second-Order & Oscillators

Spring-mass systems, damping, and resonance

The Harmonic Oscillator

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.

Spring-Mass System

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.

underdamped

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

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

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.

Underdamped (ζ=0.2)Critical (ζ=1)Overdamped (ζ=2)

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.

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.

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.

Natural frequency ω0 = 1.0 (fixed)Steady-state amplitude: 3.33Near 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

  • The characteristic equation -- substituting x = ert converts the ODE into a quadratic whose roots determine whether solutions oscillate, decay, or both
  • Damping regimes -- the discriminant b² - 4mk (or equivalently ζ relative to 1) classifies behavior as underdamped, critically damped, or overdamped
  • Critical damping -- the boundary case ζ = 1 gives the fastest non-oscillatory return to equilibrium, widely used in engineering design
  • Resonance -- when an external force drives the system near its natural frequency, the response amplitude peaks dramatically, limited only by damping