Live experiment
Watch the oscillator
The external drive is close to the natural frequency, so well-timed pushes can build a larger motion.
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.
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.
The science · equations, assumptions and limits
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.
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.
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.
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.