What this simulation shows
A trolley waits on a smooth, level track. Under the track a spring is hooked to its back, and pulling the trolley backwards stretches that spring. Above the track, a force–extension graph marks the present extension and shades the area underneath it, and two bars compare the energy in the spring with the energy of the trolley. Press Release and the spring drags the trolley forward until it is back at its natural length. There the spring hits a stop and unhooks, and the trolley carries on at a steady speed. Everything runs ten times slower than life unless you switch slow motion off.
Energy as an area
To stretch a spring you have to keep pulling, and the pull grows as the extension grows. Work done is force times distance moved, so the work done in stretching it is the area under the force–extension graph. As long as the spring is not deformed inelastically, which means not stretched past its elastic limit, all of that work is held in its elastic store, and the area gives the energy stored.
As long as the line stays straight and starts at the origin, that area is a triangle. Its base is the extension e and its height is the force ke, so the area is ½ × e × ke, which is ½ke². With the starting settings, 100 N/m and 10 cm, the working shows ½ × 100 × 0.1² = 0.500 J. Remember to change the extension to metres before you square it.
Twice the pull, four times the energy
Halve the pull to 5 cm and the Elastic store card drops to 0.125 J, a quarter of the original amount. The triangle is half as wide and half as tall. Release it, though, and the trolley leaves at 0.707 m/s, exactly half of 1.41 m/s. Kinetic energy also depends on a square, the speed squared, so a quarter of the energy means half the speed. While the graph stays straight, the launch speed is in proportion to the pull.
Watching the transfer
During the launch the shaded area shrinks towards the origin while the Kinetic bar fills, and the Total energy card never changes. The force is largest at the start, yet the trolley is fastest at the end of the pull, because it speeds up for as long as the spring pulls on it. Swap in a 2 kg trolley and it still receives 0.500 J, but carries it at only 0.707 m/s.
Past the limit of proportionality
Beyond 12 cm this spring no longer obeys F = ke. Its graph bends below the dashed straight line, so the triangle formula gives too much. At 20 cm the formula says 2.00 J but the area under the curve, and the energy the trolley really receives, is 1.91 J. Between 12 cm and 20 cm the spring still goes back to its natural length when it is let go, so all the work done stretching it is stored and then handed to the trolley. Twenty centimetres is this spring's elastic limit, so the slider stops there. Past an elastic limit a spring is deformed inelastically: it stays longer than before, and it does not give back all the work done on it.
Simplifications and course notes
The track has no friction, there is no air resistance and the spring's own mass is ignored, so no energy is wasted. The spring constants, masses and both limits are model values.
AQA GCSE gives ½ke² on the equation sheet (4.1.1.2 and 4.5.3) and says it holds only until the limit of proportionality is passed. Cambridge IGCSE names the elastic (strain) store and, in the Supplement, the limit of proportionality, but has no formula for the energy. The Punjab Class 9 book describes elastic potential energy in words and finds work as the area under a force–distance graph.