SHM graphs with energy

Note that for the last two graphs, potential energy is assumed to be the difference between total energy and kinetic energy. An example is that of the case of a horizontal mass-spring oscillation where there is no other energy conversions such as work done against friction or gravity.