Energy in SHM

Conservation of mechanical energy applies to a simple harmonic motion system. We should find that the sum of the potential and kinetic energies is constant.

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.

Graphing the energies as a function of position is also interesting.