Find the potential energy of the gravitational interaction of two mass points of masses m1 and m2 located at a distance r from each other.
The gravitational potential due to m1 at the point of location of m2,
V2=∫∞r→G⋅d→r=∫∞r−γm1x2dx=−γm1r
So, U21=m2V2=−γm1m2r
Similarly U12=−γm1m2r
Hence, U12=U21=U=−γm1m2r