Back-and-forth simple harmonic motion is just the shadow on the real axis of steady circular motion in the complex plane, and mathematically is easily analyzed in that approach. Click on "Track Position" to see the path describes a sine wave as a function of time.
Here's the relevant lecture.
Program by: Jasmin Washington and Nathaniel Saxe.