The general function for describing the displacement from the mean position in harmonic motion is:

Where:
• A is the amplitude,
,
• T is the period,
,
• φ is initial phase displacement.
From the statement, we know that:
• the amplitude is 4 cm,
,
• at time t = 0 its displacement d from the rest is 0 → d(t = 0) = 0,
,
• initially, it moves in a negative direction.
s