When compressing a spring, potential energy increases due to the work done on the spring, converting to kinetic energy upon release.
Potential energy increases when you compress a spring. As the spring is compressed, work is done on it, storing potential energy in the spring due to the change in its structure. This potential energy can later be converted back into kinetic energy when the spring expands.
https://brainly.com/question/33841767