Two stars each of mass M and radius R are approaching each other for a head-on collision. They start approaching each other when their separation is r >> R. If their speeds at this separation are negligible, the speed v with which they collide would be
Since the speeds of the stars are negligible when they are at a distance r, hence the initial kinetic energy of the system is zero. Therefore, the initial total energy of the system is
where M represents the mass of each star and r is initial separation between them; twice the radius of star i.e. 2R.
Let v be the speed with which two stars collide. Then total energy of the system at the instant of their collision is given by
According to law of conservation of mechanical energy
or v =