Illustration of a spring and moving mass

Physics · Interactive exhibit

Driven Spring Resonance and Energy Laboratory

Tune a vibrating system, watch energy move through it, and test the theory against a live numerical experiment.

MODEL ACTIVE SELF-CONTAINED · OFFLINE READY

Live experiment

Watch the oscillator

HIGH DETAIL
Horizontal oscillator · scaled view Drag the mass to set its starting displacement
Displacement · x+0.120 mSIMULATED · ILLUSTRATIVE
Velocity · v0.000 m/sSIMULATED · ILLUSTRATIVE
Acceleration · a−2.400 m/s²SIMULATED · ILLUSTRATIVE
Mechanical energy · E0.173 JSIMULATED · ILLUSTRATIVE

The external drive is close to the natural frequency, so well-timed pushes can build a larger motion.

SIMULATION CLOCK0.00 s

Measured experiment vs theory

Steady-state amplitude

After the transient has faded, compare the amplitude measured from the simulated trace with the textbook prediction for a linear driven oscillator.

Numerical experimentCollecting…Measured from recent simulated cycles
Textbook prediction0.206 mLinear steady-state response
Absolute percentage differenceWaiting for steady state

The experiment needs time to settle before a fair comparison is available. All values are illustrative model results.

Independent numerical checks

Does the model agree?

Three separate comparisons test the integration, energy bookkeeping and driven response.

Free-motion solutionRK4 probe vs textbook closed form · illustrative calibration
Collecting
Work–energy balanceChange in stored energy vs input work minus damping loss
0.00% diff
Driven amplitudeMeasured steady response vs textbook prediction
Collecting
The science · equations, assumptions and limits
m x¨ + c x˙ + kx + F_stop(x) = F₀ cos(ωt)

The mass is pulled toward equilibrium by the spring, slowed by a velocity-dependent damper, and driven by a sinusoidal external force. The simulation advances this equation with a fixed-step fourth-order Runge–Kutta integrator. The model step is an illustrative computational setting of 1/240 s.

ω₀ = √(k/m)       ζ = c / (2√(mk))       ω = 2πf

The undamped natural angular frequency is ω₀, while ζ is the damping ratio. For an underdamped free oscillator, the damped angular frequency is ωd = ω₀√(1 − ζ²). When the drive is close to the natural frequency, the response can grow; damping limits its steady amplitude.

X = F₀ / √[(k − mω²)² + (cω)²]

This textbook amplitude applies to the steady response of the linear system. The model also includes soft travel stops beyond an illustrative displacement of ±0.36 m: F_stop = k_s sgn(x) max(|x| − x_s, 0), with illustrative stop stiffness k_s = 180 N/m. If a stop engages, the linear amplitude prediction is no longer an exact description.

E = ½mv² + ½kx² + ½k_s[max(|x| − x_s, 0)]²       ΔE = W_in − E_diss

What is included

  • One-dimensional motion on a horizontal track.
  • A linear spring and viscous damper.
  • A sinusoidal drive with fixed frequency and peak force.
  • Conservative soft stops to keep extreme settings visible.
  • Numerical work and damping-loss accounting at each fixed step.

What is simplified

  • The spring and damper have no internal moving parts.
  • Friction, temperature changes and material fatigue are omitted.
  • The support is perfectly rigid and the mass does not rotate.
  • Display geometry is scaled; it is not a dimensional blueprint.
  • The ideal linear theory is used only while the stops remain inactive.

Independent educational simulation. It is not affiliated with a university, laboratory, equipment maker or other institution. Numerical settings and readings are illustrative, not experimental measurements.

Made with 🤖 ChatGPT