Simple harmonic motion (SHM) is oscillatory motion where the restoring force is directly proportional to the displacement. SHM includes the motion of a spring-mass system and a simple pendulum with small oscillations. The displacement of SHM follows the equation x = a sin(ωt + φ), where a is the amplitude, ω is the angular frequency, t is time, and φ is the phase. The period and frequency depend only on the spring constant or mass and gravitational field. Energy oscillates between potential and kinetic forms with the total mechanical energy conserved.