massspring
A mass-spring system is a simple mechanical model consisting of a mass m attached to a spring with stiffness k, optionally damped by a dashpot. The spring provides a linear restoring force F = -k x proportional to displacement x from equilibrium. The model is a standard lumped-parameter, one-degree-of-freedom oscillator, used to study vibrations and dynamic response.
In the absence of external forcing, and neglecting damping, the motion follows m x¨ + k x =
If ζ < 1, the system is underdamped and x(t) decays while oscillating at the damped frequency ω_d
With an external forcing F_ext(t) = F0 cos(ω t), the equation is m x¨ + c x˙ + k
Variants include multi-degree-of-freedom systems, nonlinear springs, or including dry friction. The mass-spring model underpins studies in