Newton’s second law for a mass on a frictionless horizontal guide:
m x″ + c x′ + kx = F cos(2πft)
Here x is displacement from equilibrium, m is mass, c is viscous damping, k is stiffness, F is force amplitude and f is drive frequency.
ω₀ = √(k/m); ζ = c/(2√(km))
A = F / √((k − mω²)² + (cω)²)
E = ½mv² + ½kx²
ΔE = ∫ F cos(ωt)v dt − ∫ cv² dt
Textbook linear model. A fourth-order Runge–Kutta integrator advances the illustrative system at a fixed step of 1/240 s. The guide is rigid, the spring massless and linear, the damper ideal and viscous, and the force sinusoidal. There are no physical end stops, gravity along the guide, dry friction or temperature changes. The drawing rescales to keep the mechanism visible.
Checks compare a separate free response with its exact solution, energy accounting against work and loss, and a settled driven trial against the amplitude formula. All checks pass at ≤0.5% difference; the failed preset is a physical outcome, not a numerical failure.
Independent educational model; not affiliated with any equipment manufacturer.