Step-by-step explanation:
This is a simple harmonic motion, produced by the action of a driving force that is directly proportional to the position of the body. Its position is described as a function of time by a sinusoidal function. According to Newton's second law and Hooke's law:

Here m is the object's mass, k is the spring constant and x is the displacement from the equilibrium position.

With
, called natural frequency, A is the amplitude, that is the maximum displacement for the equilibrium position and
is the initial phase.