In
classical mechanics, two or more
masses always have a
gravitational potential.
Conservation of energy requires that this gravitational field energy is always
negative, so that it is zero when the objects are infinitely far apart. The gravitational potential energy is the potential energy an object has because it is within a gravitational field. The magnitude & direction of gravitational force experienced by a point mass m, due to the presence of another point mass M at a distance r, is given by
Newton's law of gravitation. Taking origin to be at the position of M,\vec{F_g} = -\frac {GMm}{r^2}\hat{r}To get the total work done by the gravitational force in bringing point mass m from infinity to final distance R (for example, the radius of Earth) from point mass M, the force is integrated with respect to displacement: W_g = \int \vec{F}_g \cdot d\vec{r} = -\int_\infty^R \frac {GMm}{r^2}dr = \left . \frac{G M m}{r} \right|_{\infty}^{R} = \frac{G M m}{R}Gravitational potential energy being the minimum (quasi-static) work that needs to be done against gravitational force in this procedure,{{Equation box 1 |title=
Gravitational Potential Energy |equation=U = -\frac {GMm}{R}}}
Simplified version for Earth's surface In the common situation where a much smaller mass m is moving near the surface of a much larger object with mass M, the gravitational field is nearly constant and so the expression for gravitational energy can be considerably simplified. The change in potential energy moving from the surface (a distance R from the center) to a height h above the surface is \begin{align} \Delta U &= \frac{GMm}{R}-\frac{GMm}{R+h} \\ &= \frac{GMm}{R}\left(1-\frac{1}{1+h/R}\right) \end{align} If h/R is small, as it is close to the Earth's surface and where g can be considered constant over h, then this expression can be simplified using the
binomial approximation \frac{1}{1+h/R} \approx 1-\frac{h}{R} to \begin{align} \Delta U &\approx \frac{GMm}{R}\left[1-\left(1-\frac{h}{R}\right)\right] \\ \Delta U &\approx \frac{GMmh}{R^2}\\ \Delta U &\approx m\left(\frac{GM}{R^2}\right)h \end{align} since the acceleration due to gravity is g = GM / R^2, this can be simplified to \Delta U \approx mgh Note, this is the change in potential energy in gaining some height h from the surface. == General relativity ==