A particle is projected vertically upwards from O with velocity v and a second particle is projected at the same instant from P (at a height h above O) with velocity v at an angle of projection θ. The time when the distance between them is minimum is
h2v
Relative acceleration between the two particles is zero. The distance between then at time t is
s = √(h − (v − v sin θ t))2 + (v cos θ t)2
or s2 = (h − (v − v sin θ t))2 + (v cos θ t)2s is minimum when
or ddt(s2) = 0
or 2(h − (v − v sin θ)t)(v sin θ − v) + 2v2 cos 2θt = 0
or t = h2v