Equation of motion
m ẍ + c ẋ + k x = F₀ cos(2πft)
Natural frequency: fₙ = √(k/m)/(2π). Steady amplitude: A = F₀ / √[(k − mω²)² + (cω)²]. Mechanical energy: E = ½mv² + ½kx².
Fixed-step fourth-order Runge–Kutta integrates the two first-order equations. The measurement uses the same integration rule in a separate trial. Free period uses an independent velocity-Verlet solver, static stretch uses numerical force balance, and energy uses work/dissipation integration.
Textbook model: linear spring, viscous damper, rigid cart, sinusoidal drive, no rolling resistance or impacts. The illustrative ±0.30 m travel limit is a diagnostic only; the ideal motion continues beyond it. Geometry is scaled to fit the screen. No affiliation with any equipment manufacturer.
Drag the cart or anywhere on the rig to shift its initial displacement; drag right to increase x. This resets time and pauses the model. Step advances an illustrative 1/60 s of model time.