I know for a pendulum there's just a simple gravitational potential energy -> kinetic energy. But what happens in springs where there's gravitational, kinetic and elastic potential energy during oscillations? How do you calculate the elastic potential energy?
Thank you