Solution:
Concept: The surface is smooth (no friction), so on release all the elastic potential energy of the compressed spring changes into the kinetic energy of the trolley.
Given: m = 0·5 kg, v = 2 m s⁻¹ (Fig. 2.16), smooth surface.
Step 1 — Equate the energies.
The spring's potential energy equals the trolley's kinetic energy when it leaves the spring.
U=21mv2
Step 2 — Substitute.
Put m = 0·5 kg and v = 2 m s⁻¹.
U=21×0.5×22=0.25×4=1.0 J

Therefore, the compressed spring possessed 1·0 J of potential energy.