I recently started studying simple harmonic motion and I came across two equations for the displacement of a particle, as given in my textbook:
\begin{align} y &= a\sin(\omega t +\phi)\\ x &= a\cos(\omega t+ \phi) \, . \end{align}
I really have no clue when to use which one. It would help me a lot if someone could give an explanation on this.