The general horizontal range
formula for a projectile or how to win at shot-put
Neglecting
air drag, the acceleration is g straight down, and thus the initial and final
velocity vectors are related as shown

Vo
gt
Vf
Taking
gt as the base of the triangle, its altitude is vx ,
so its “area” in v2 units is ½ vxgt.
But vxt = x, the horizontal distance
traveled. So x is twice the “area”/g.
Using vf as the base, the altitude
is vosin(q+f), where q is the angle of vo above horizontal and f is the angle of vf
below horizontal. Putting this together,
we get x = (vovf /g)sin(q+f). You can easily see from this that the maximum
x occurs when q+f = 90o. Suppose we know vo, q, and the initial and final
y. How to find vf
and f: Take the starting point to be the origin. vy2
= vyo2 – 2gy , where y, the
final vertical location is negative if below the start, as in the
shot-put. Add vx2
to both sides of this equation and we have vf2 = vo2
– 2gy. (This could also be found using
an energy approach.) To find f, vx
= vocosq = vf
cosf.
For
maximum x, vo and vf
are perpendicular, and you can show that tanq = vo/vf.