The formula is v2sin2θg\frac{v^{2}\sin 2\theta}{g}gv2sin2θ
And the sine graph is highest at 1 with its inverse as 90°. Hence, 2θ2\theta2θ = 90°
θ\thetaθ = 45°