got the other eqn, the 1st 1, original guess was wrong
d=2v^2sin@cos@/g
d^2=4v^2sin^2@(1-sin^2@)/g^2
=16 [ v^2sin^2@/2g] [v^2/2g - v^2sin^2@/2g]
=16 [H-S][v^2/2g - [H-S]]
d=4sqrt{ [H-S][v^2/2g] - [H-S]^2}
EDIT: oh yeah this is when @=/= pi/4 as if it was, it would hit the ceiling, u get the inequality condition from the 1st part which some how lead to the 2nd eqn lol
if only i had time in the exam... or had not spent 30 min bashing the bearing question lol