Two point masses m1 and m2 are separated by a distance r is shown as
Gravitational potential energy (U) of the above system is given as U=−rGm1mh
i.e. gravitational potential energy ∝m1m2 and gravitational potential energy ∝r1 or gravitational potential energy is directly proportional to the product of the masses of particles and inversely proportional to the separation between them.