The optimal angle of 45° for maximum horizontal range is only valid when initial height is the same as final height.
<span>In that particular situation, you can prove it like this: </span>
<span>initial velocity is Vo </span> <span>launch angle is α </span>
<span>initial vertical velocity is </span> <span>Vv = Vo×sin(α) </span>
<span>horizontal velocity is </span> <span>Vh = Vo×cos(α) </span>
<span>total time in the air is the the time it needs to fall back to a height of 0 m, so </span> <span>d = v×t + a×t²/2 </span> <span>where </span> <span>d = distance = 0 m </span> <span>v = initial vertical velocity = Vv = Vo×sin(α) </span> <span>t = time = ? </span> <span>a = acceleration by gravity = g (= -9.8 m/s²) </span> <span>so </span> <span>0 = Vo×sin(α)×t + g×t²/2 </span> <span>0 = (Vo×sin(α) + g×t/2)×t </span> <span>t = 0 (obviously, the projectile is at height 0 m at time = 0s) </span> <span>or </span> <span>Vo×sin(α) + g×t/2 = 0 </span> <span>t = -2×Vo×sin(α)/g </span>
<span>Now look at the horizontal range. </span> <span>r = v × t </span> <span>where </span> <span>r = horizontal range = ? </span> <span>v = horizontal velocity = Vh = Vo×cos(α) </span> <span>t = time = -2×Vo×sin(α)/g </span> <span>so </span> <span>r = (Vo×cos(α)) × (-2×Vo×sin(α)/g) </span> <span>r = -(Vo)²×sin(2α)/g </span>
<span>To find the extreme values of r (minimum or maximum) with variable α, you must find the first derivative of r with respect to α, and set it equal to 0. </span>
<span>Vo and g are constants ≠ 0, so the only way for dr/dα to become 0 is when </span> <span>cos(2α) = 0 </span> <span>2α = 90° </span> <span>α = 45° </span>
There are two reasons why air pressure decreases as altitude increases: density and depth of the atmosphere. Most gas molecules in the atmosphere are pulled close to Earth's surface by gravity, so gas particles are denser near the surface.