I have the equation of trajectory:
$ y = x\tan \theta - {\displaystyle gx^2 \over \displaystyle2u^2\cos^2 \theta}$
I also know that the maximum height is given by:
${\displaystyle u^2 \over\displaystyle 2g \ }\sin^2 \theta $
but I can't figure out how you get that by differentiating the first equation. I know there are different forms of the equation of trajetory, so maybe I should be using a different one? Any help would be much appreciated!