Simple harmonic motion (with calculus)