How can we show that a projectile fired at an angle $\theta$ with initial speed $v_0$ travels a total distance $\frac{v_0^2}{g}\sin2\theta$ before hitting the ground?
The way I set it up is: direction is $(\cos\theta,\sin\theta)$. By using Newton's law, $$r(t) = (0,-\frac{1}{2} gt^2)+tv_0(\cos\theta,\sin\theta) = \frac{v_0^2}{g}\sin2\theta$$
I tried to solve the LHS so that it matches the RHS, the total distance. But obviously, there is something wrong with the way I tried to approach it. But cannot see it.
Any hints and pointers in terms of setting it up would be great. Also I do not want the full solution but rather few small hints to be able to set it up correctly.
Hint: Find out how long it takes for the $y$-component of velocity to reach $0$. Call that time $t_0$.
By symmetry it takes time $2t_0$ to hit the ground.