As it is $SHM$ so the equation of motion will be $F=- kx$ or $\frac{ vdv }{ dx }=-\omega^2 x$
Now integrating the expression with boundary condition, $\int \limits_{ v _0}^v v d v=-\omega^2 \int \limits_0^\pi xdx$
or $\frac{1}{2}\left[v^2-v_0^2\right]=-\frac{\omega^2 x^2}{2}$
or $v =\sqrt{ v _0^2-\omega^2 x ^2}$

$y_1 = \sin \left( {\omega t + \frac{\pi }{3}} \right)$ and $y_2 = \sin \omega t$ is :