Mass displacement x(t)
Driving force F(t)
Resonance curve A(ω)
This 2D companion numerically integrates the same driven mass-spring-damper equation as the 3D version — F0·cos(ωt) pushing a mass through a spring and a damper — and renders it as a plain animated oscillator plus two live plots: a displacement/force trace over time and a resonance curve A(ω) with a marker showing exactly where the current driving frequency sits relative to the natural frequency ω0, so the amplitude blow-up near resonance and its dependence on damping are both directly visible.