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 separatation of d is
As there is no external force acting on the system, linear momentum of the system is conserved.
the relative velocity of approach is
Applying conservation of mechanical energy for the system
Substitute V1 in (2) we get
relative velocity of approach