Answer:
a)
, b)
,
, 
Explanation:
a) The system mass-spring is well described by the following equation of equilibrium:

After some handling in physical and mathematical definition, the following non-homogeneous second-order linear differential equation:
The solution of this equation is:

The velocity function is:

Initial conditions are:

Equations at
are:

The spring constant is:


After some algebraic handling, amplitude and phase angle are found:


The position can be described by this function:

b) The period of the motion is:


The amplitude is:

The phase of the motion is:
