Drag the mass on the spring. At the extreme displacement all the energy is potential (½kx²); at the equilibrium position — all of it is kinetic. The sum stays constant (½kA²). Watch how the Ep and Ek bars pour into each other.

I will give you a target potential energy — set the displacement x to reach it. Ep = ½kx², and E = 1.0 J.
What just happened?
A mass on a spring stores energy in two ways: when it is displaced, the energy sits in the stretched spring (potential); when it races through the middle, it sits in the motion (kinetic). The sum is always the same.
Oscillation energy balance:
— potential energy grows with the square of displacement, and kinetic is the rest up to the constant total. k — spring constant (N/m), x — displacement (m), A — amplitude.
Invariant — what stays constant?
At the extreme position () the speed is zero, so — all the energy is potential. At equilibrium () the spring is slack, so — all of it is kinetic. Between them the energy just "sloshes" from one form to the other.
Why you need this for the exam:
Conservation of mechanical energy solves most oscillation problems — without computing forces and accelerations. Trick: at the extreme point compute from , and find the maximum speed from .
Remember: in oscillations the energy circulates between Ep and Ek, but their sum E = ½kA² is constant. Extreme = pure potential, middle = pure kinetic.
In oscillatory motion the potential and kinetic energy convert into each other:
The sum is constant (undamped oscillations): It depends on the square of the amplitude — 2× larger amplitude means 4× larger energy.
Symbols: — potential energy, — kinetic, — spring constant, — displacement, — amplitude, — total energy.
At the equilibrium position (x=0), where the displacement is zero and the speed is maximal; Ep=0, so all the energy is Ek.
On the square of the amplitude: E=½kA²; twice the amplitude means four times the energy.
In undamped oscillations, yes — Ep and Ek change, but their sum stays constant.
Teaching? Embed this experiment on your site.
Free widget — paste it on your school site, blog or notes. It links to the full version.