Two masses m1 and m2 are initially at rest and are separated by a very large distance. If the masses approach each other subsequently, due to gravitational attraction between them, their relative velocity of approach at a separation distance of d is
We use the energy balance
Initial potential energy equals final kinetic energy
Gm1m2d=12mv21+12mv22
also from the conservation of momentum we have
m1v1=m2v2
or
v1=m1v1m2
Substituting this we get
v1=√2Gm22d(m1+m2)
Similarly we have
v2=√2Gm21d(m1+m2)
Now as velocities are in opposite direction their relative velocity is v1−(−v2)=v1+v2
or
√2G(m1+m2)d