Position $x$ in a SHM is given by $x=A\space sin(\omega t+\phi)$.
Where $A$,$\omega$ and $\phi$ are Amplitude,Angular frequency and phase constant and are three constants respectively.
So,velocity of SHM is given by-
$$\frac {d}{dt}A\sin(\omega t+\phi)$$.
In my book it is given solving this it gives -$A\omega\space \cos(\omega t+\phi)$
Now,my question is where does the extra $\omega$ beside $A$ come from?
It would be greatly helpful if some one explains this to me.
Thanks for any help!!
By the chain rule of differentiation,
$$\frac {d}{dt}A\sin(\omega t+\phi)=\frac {d}{d(\omega t)}A\sin((\omega t)+\phi).\frac{d(\omega t)}{dt}=Acos(\omega t+\phi).\omega=A\omega cos(\omega t+\phi)$$