In the given figure, let us take the position of mass when the spring is unstreched as x=0, and the direction from left to right as the positive direction of x-axis. Give x as a function of time t for the oscillating mass if at the moment we start the stopwatch (t =0), the mass is at the maximum compressed position. In what way do these functions for SHM differ from each other, in frequency, in amplitude or the initial phase?
In the given figure, let us take the position of mass when the spring is unstreched as x=0, and the direction from left to right as the positive direction of x-axis. Give x as a function of time t for the oscillating mass if at the moment we start the stopwatch (t =0), the mass is at the maximum compressed position. In what way do these functions for SHM differ from each other, in frequency, in amplitude or the initial phase?

Solution:

The body is in the left position at maximal compression, with an initial phase of 3 \pi / 2 rad.

Then,

x=a \sin (\omega t+3 \pi / 2)
=-a \cos \omega t
=-2 \cos 20 t

As a result,

The amplitude and frequency of the functions are identical. In the beginning, they are different.