Solution:
Distance travelled by the mass sideways is given as
Angular frequency of oscillation can be calculated as,
(a) As time is noted from the mean position,
So, using
We have,
(b) At maximum stretched position, the body is at the extreme right position, with an initial phase of . Then,