Conservation of mechanical energy applies to a simple harmonic motion system. The sum of the potential and kinetic energies is constant.
The total energy is equal to the maximum potential energy:
E = Umax = ½ kA2
It is also equal to the maximum kinetic energy:
E = Kmax = ½ m vmax2 = ½ mA2 ω2
Graphs of potential and kinetic energy as a function of time show that the total energy is constant, and that energies go through two complete cycles for each oscillation of the object.
The first set of graphs is for an angular frequency ω = 1 rad/s. The second set of graphs is for ω = 0.8 rad/s. This change of ω is accomplished either by decreasing the spring constant or by increasing the mass. Which change did we make in this case?
Graphing the energies as a function of position is also interesting.