Two people are throwing a ball from shoulder height $S$ in a hallway with ceiling $H$ meters high. The ball is thrown with velocity $v$. Show that the maximum separation is $d=4\sqrt{(H-S)v^2/2g - (H-S)^2}$ if $v^2 \ge 4g(H-S)$ and $d = v^2/g$ if $v^2 \le 4g(H-S)$.
I am able to prove both these results but I have no understanding as to what is actually happening with these results.
I used mamimum height is $H-S = \frac{v^2\sin^2{a}}{2g}$ metres, and range $d=\frac{v^2}{g}\sin{2a}$.
For the $d = v^2/g$ case, it "works" if you just let $a = 45$ degrees. I don't know how the condition $v^2 \le 4g(H-S)$. comes into play though. Same with the other case. I just substitute in $H-S = \frac{v^2\sin^2{a}}{2g}$ to prove $d=4\sqrt{(H-S)v^2/2g - (H-S)^2}$ if $v^2 \ge 4g(H-S)$ but what is the difference between these cases?