Driven oscillator, live

A plain HTML page with a little JavaScript: the mass obeys x″ + 2ζω₀x′ + ω₀²x = (F₀/m) cos Ωt, integrated step by step in your browser. Change the damping and the drive frequency and watch the swing build up or die away.

Predicted steady amplitude × F₀/k Quality factor Q =