SHM Energy Lab
watch kinetic and potential energy trade places twice per cycle while the total ½kA² never moves.
Learn the physics first
In SHM the energy sloshes between kinetic and spring potential — but the total is fixed the moment you choose the amplitude: E = ½kA². Pull the spring twice as far and you store four times the energy, because the displacement appears squared.
At the extremes all the energy is potential (½kA²); at the centre all of it is kinetic (½mv_max² = ½kA²). At any intermediate displacement, PE = ½kx² and KE = ½k(A² − x²) — their sum is amplitude-squared and nothing else.
Add damping and the total bar visibly leaks: each cycle, the friction-like term b·v removes a slice of energy, and the oscillation dies away. Watch the KE/PE exchange continue right to the end — only the envelope shrinks.
Experiment
KE, PE and total vs time
KE, PE and total vs position
Controls
Measurements
Predict before you measure
Set amplitude and stiffness, then predict the total energy E = ½kA² in joules.
E = ½kA²