The displacement of the mass attached to the spring is given as,
Where,
Initial condition is
By substituting the given values in the above equation, we get
The derivative of displacement is the velocity of the body.
Initial condition is
By substituting the given values in the above equation, we get
By squaring and adding equations (1) and (2), we get
Thus, the amplitude of the resultant oscillation is