The displacement time graph of a particle executing S.H.M. is as shown in the figure
The corresponding force-time graph of the particle is
Acceleration =−ω2y. So F=−mω2yy is sinusoidal function. So F will be also sinusoidal function with phase difference π