The question is from Physics, but all I need is help on solving maths. So basically, i am trying to find out the optimal angle for projectile motion from a certain height and I end up with these two equations:
$$0=h + R \tan \theta - R^2 \frac g{2u^2}(1 + \tan^2 \theta) \tag1$$
$$R= \frac{g}{u^2}cot \theta \tag2$$ where, h = height of the tower
R= maximum distance travelled by the stone (Range)
g=gravitational constant
$\theta$ = angle of the projection
Can anyone help with how do I solve this two equations to obtain this:
$$\theta = \arctan \left(\frac u{\sqrt{u^2+2gh}} \right)$$
Thanks. :)
P.S.: I did tried to solve by substituting R in equation (1), but my final answer way very long and very complicated.