What makes motion simple harmonic
Motion is simple harmonic when the restoring force is proportional to the displacement from equilibrium, which makes the second law $\frac{d^2x}{dt^2} = -\omega^2 x$, solved by sines and cosines.
From AP Physics C: Mechanics.