Calculate the elastic potential energy stored in a spring based on its spring constant and displacement from its natural length.
Formula
PE = ½kx²