Sub topic 8
Gravitational potential energy
This chapter assumes you know the inverse-square law F = GMm/r², the definition of work as force times displacement, and the work-energy idea. Calculus helps for the derivation, but the results are also checked numerically. The goal is a formula for the energy stored in a gravitational system when the force changes with distance. The next chapters use it for orbital energy and escape velocity.
Why mgh is not enough
Near Earth's surface you write the energy stored in a lifted object as mgh. That formula assumes the gravitational force is constant. Gravity actually weakens as 1/r², so the assumption fails when the height is a noticeable fraction of Earth's radius.
For a satellite, a probe leaving Earth, or a planet orbiting the Sun, you need an expression that follows the inverse-square law all the way out.
Gravity is a conservative force
A force is conservative if the work it does between two points does not depend on the path taken. Gravity from a single spherical body has this property. Only the starting and ending distances from the center matter. This is what allows a potential energy to exist. You can assign each distance r an energy U(r), and the work done by gravity on a path from r₁ to r₂ is U(r₁) − U(r₂).
Gravity is also a central force. It points along the line to the center, so moving sideways at constant r does no work.
Deriving U(r) = −GMm/r
Suppose you lift a mass m slowly from radius R to a larger radius r. "Slowly" means you apply a force that just balances gravity, so the kinetic energy does not change. The force you apply has magnitude GMm/r′² at each radius r′. The work you do is:
W = ∫ from R to r of (GMm / r′²) dr′ = GMm (1/R − 1/r)
This work is stored as potential energy, so U(r) − U(R) = GMm (1/R − 1/r).
Only differences in U have physical meaning, so you can choose where U is zero. The standard choice is U = 0 when the separation is infinite. Letting r → ∞ in the result above, and setting U(∞) = 0, gives:
U(r) = −GMm / r
Here r is the distance between the centers of the two bodies, not the altitude.
What the minus sign means
U is negative at every finite distance because the zero point sits at infinity. Moving a mass away from Earth raises its energy toward zero, which is the highest value. A more negative U means the mass is more tightly bound.
| Separation r | U(r) | Meaning |
|---|---|---|
| R (surface) | −GMm/R | deepest point reachable outside the body |
| 2R | −GMm/(2R) | half as negative |
| 4R | −GMm/(4R) | a quarter as negative |
| ∞ | 0 | no longer interacting |
The curve is steep near the surface and flat far away. The same climb in altitude costs a lot of energy at low r and very little at large r.
Recovering mgh
Consider a lift from R to R + h. The exact change is:
ΔU = GMm (1/R − 1/(R + h)) = GMm h / (R(R + h))
When h is much smaller than R, the factor R + h is close to R. Then ΔU ≈ (GM/R²) m h. The surface field strength is g = GM/R², so ΔU ≈ mgh. The familiar formula is the small-height limit of the exact one, with the zero point shifted to the ground.
Checking the approximation in code
The script lifts a 1000 kg object from Earth's surface to 400 km. It compares the exact energy change with mgh.
GM = 3.986004e14 # Earth's G*M in m^3/s^2
R = 6.371e6 # m
m = 1000.0 # kg
h = 400e3 # m
g = GM / R**2
exact = GM * m * (1 / R - 1 / (R + h))
approx = m * g * h
print(f"g at surface: {g:.2f} m/s^2")
print(f"exact: {exact / 1e9:.2f} GJ")
print(f"m*g*h: {approx / 1e9:.2f} GJ")
print(f"mgh overestimates by {100 * (approx - exact) / exact:.1f} %")At 400 km, which is about 6% of Earth's radius, mgh overestimates by about 6%. The error grows roughly in proportion to h/R.
Potential per unit mass
Dividing U by m gives the gravitational potential V(r) = −GM/r, in joules per kilogram. It describes the source body alone, in the same way that the field strength g does.
The two are linked. The field is the negative slope of the potential: g = −dV/dr. Taking the derivative of −GM/r gives GM/r², with the sign showing that the field points inward.
At Earth's surface, V = −GM/R, which is about −6.26 × 10⁷ J/kg. This number returns in the escape-velocity chapter.
Whose energy is it?
U belongs to the pair of bodies, not to the small mass alone. When you say "the satellite's potential energy," you are using shorthand for the energy of the Earth–satellite system. For a small satellite, Earth barely moves, so assigning all the kinetic energy to the satellite is accurate. For two comparable masses, such as a binary star, both bodies move, and the pair shares the energy. The formula uses M and m symmetrically: U = −GMm/r.
Adding up many masses
Potential energy is a scalar, so there are no components to track. For a system of several bodies, U is the sum over every pair:
U = −G Σ (mᵢ mⱼ / rᵢⱼ), summed over each pair once
Counting each pair once matters. Summing over all ordered pairs counts every interaction twice. This is easy to miss in simulations.
Common errors
- Using altitude instead of distance from the center. Use r = R + h. A satellite at 400 km has r = 6.771 × 10⁶ m, not 4 × 10⁵ m.
- Dropping the minus sign. U(r) = −GMm/r is negative. A positive result means you used the wrong reference or sign.
- Applying mgh at large heights. The error is small at 400 km but large for a geostationary orbit at about 36,000 km altitude. There, g is far weaker than 9.8 m/s².
- Applying the formula inside a body. Outside a sphere, −GMm/r works. Inside, only the mass within radius r pulls with a force that follows the inverse-square law, and the shell theorem gives a different expression.
- Double-counting pairs when summing a many-body system.
Exercises
Exercise
How much energy per kilogram is needed to lift an object slowly from Earth's surface (r = R) to r = 2R? Use GM/R ≈ 6.26 × 10⁷ J/kg.
Show answer
The change is GM(1/R − 1/(2R)) = GM/(2R) = 6.26 × 10⁷ / 2 ≈ 3.13 × 10⁷ J/kg. This is half of the energy needed to reach infinity, because U(2R) is half as negative as U(R).
Exercise
A student uses mgh with g = 9.81 m/s² to find the energy to lift 1 kg to 2R above the surface. Will the answer be too high or too low compared with the exact value, and why?
Show answer
Too high. The lift to altitude R (r = 2R) uses g = 9.81 m/s² over the whole path, but the real field weakens as r grows, so the exact work is smaller. Here mgh gives 9.81 × 6.371 × 10⁶ ≈ 6.25 × 10⁷ J, while the exact value is GM/(2R) ≈ 3.13 × 10⁷ J, so the approximation is off by about a factor of 2.