Visual walkthrough — Gravitational potential energy — U = −GMm - r (not mgh)
Step 1 — Two masses, one pull
WHAT. Put a big mass (think: a planet) at a fixed point we call the origin — the centre of our picture. Put a small mass (think: a ball) a distance away.
WHY. Before we can talk about energy, we must know the force. Energy is "stored-up work," and work comes from force. So we start with the pull.
PICTURE. Look at the figure. The straight line from to is the distance . The little pale-yellow arrow ("r-hat") is a unit vector: an arrow of length exactly that only tells us a direction — it points away from , outward. The pink arrow is the actual gravitational force , and it points the other way, inward, toward .

Step 2 — Write the force with its minus sign
WHAT. Newton's Law of Universal Gravitation tells us the size of the pull is , and the direction is inward. Put together:
WHY the minus? points outward, but gravity pulls inward — the exact opposite. Multiplying by flips the outward arrow around to point inward. The minus sign is literally "reverse the direction of ."
WHY ? Double the distance and the pull drops to a quarter. This "inverse-square" fall-off is the fingerprint of gravity, and it is what makes the final energy formula look the way it does.
PICTURE. The figure shows three snapshots of at , , . The pink force arrow shrinks fast — at it is as long, at it is as long. That shrinking is made visible.

Step 3 — What "potential energy" even means
WHAT. We define the change in potential energy as minus the work the force does:
WHY this definition? Because gravity is a conservative force — the work it does depends only on the start and end points, never the wiggly path. That lets us "bottle" the work into a single number that depends on position alone. The minus sign is a bookkeeping choice: when gravity does positive work (pulling in), we want the stored energy to go down, like a spent battery.
WHY the (integral) and not just force distance? Because the force changes as moves (Step 2 showed it shrinking). You cannot multiply a changing force by a distance. The integral is the tool that adds up force-times-tiny-step over a path where the force keeps changing — it is a running total of little pushes.
WHAT is ? The dot () is the dot product: it takes only the part of the force that lies along the direction of motion. If you push sideways to the motion, no work is done. Here we will move straight along , so the dot product will simplify nicely in the next step.
PICTURE. The figure shows a curvy path from to chopped into tiny straight steps . At each step we grab the piece of pointing along that step (the shadow of the pink arrow on the blue step) and add them all up.

Step 4 — Move straight out, so the dot product collapses
WHAT. Choose the simplest possible path: slide straight outward along the line through . Then every tiny step is — a step of length in the outward direction. Feed this into the force:
WHY are we allowed to pick this path? Because gravity is conservative (Step 3), the answer does not depend on the path. So we choose the laziest one — a straight radial line — and the messy dot product turns into ordinary numbers.
WHY does ? The dot product of an arrow with itself is (length). Here the length is , so . The two unit vectors "cancel," leaving a plain scalar.
PICTURE. The figure shows the force arrow (inward, pink) and the step (outward, blue) lying on the same line but pointing opposite ways. Same line ⇒ the dot product is just the product of the signed lengths; opposite ways ⇒ the result is negative.

Step 5 — Pin the zero of energy at infinity
WHAT. Potential energy only ever appears as a difference (), so we get to choose where "" lives. We choose: Then the energy at any distance is
WHY infinity? For an inverse-square force, infinity is the only natural landmark — it's the one place where the pull has fully faded to nothing. Any other choice would be arbitrary and would spoil the clean formula. "Free of the pull ⇒ zero energy" is the cleanest possible reference.
PICTURE. The figure is a horizontal energy line. Far to the right (huge ) the level sits at . As we walk left toward we will be walking downhill, into a valley — that valley is what the next step computes.

Step 6 — Do the integral
WHAT. Substitute Step 4's result into Step 5 and integrate. (I rename the running distance so it doesn't clash with the endpoint .)
The two minus signs (one from the definition of , one from the inward force) cancel, leaving a clean positive out front. Now use the fact that the antiderivative of is :
WHY does the term vanish? is . This is exactly why infinity was the smart reference: it kills one whole term.
PICTURE. The figure plots . It is a curve that plunges toward as (deep in the well, right next to ) and rises gently toward the line as grows. The whole curve lives below zero.

Step 7 — Edge case: what happens as and ?
WHAT. Check the two extremes of the curve so no reader is ever surprised.
- As : (approaches zero from below). The masses are essentially free.
- As : . The well is bottomless in the ideal point-mass model.
WHY does not break physics? Real bodies have a finite radius; you cannot actually reach because you hit the planet's surface first. The bottomless well is an idealisation for point masses — physically you stop at (the surface), a finite, sensible number.
WHY care about the sign of the approach? Because a common error (see below) is thinking bigger means "more negative." The figure kills that: as grows, the curve climbs toward zero — increases.
PICTURE. Same curve as Step 6, now with the two limits flagged: a pink arrow diving to on the left, a blue arrow flattening onto the line on the right, and a shaded band marking the physically reachable region .

Step 8 — Sanity check: the well is up close
WHAT. Zoom into a tiny sliver of the curve near the surface, with . The change in from surface to height :
WHY does this matter for a "derivation in pictures"? It shows the schoolbook is not a rival law — it is the straight-line tangent to our curve near . See Acceleration due to gravity g for .
PICTURE. The figure zooms the well near . Over a short span the curve looks like a straight ramp; its constant slope is , so climbing a height costs . Far from the surface the ramp bends back into the true curve — where fails and you must use .

The one-picture summary
WHAT. One figure holding the whole story: the inward force (pink), the outward path to infinity (blue), the shaded work being integrated, the reference , and the resulting energy well with its tangent near the surface.

Recall Feynman: retell the whole walkthrough to a 12-year-old
A planet is like the mouth of a deep round pit dug into space. A ball near the planet has fallen partway into that pit. To describe "how deep in the pit" we first ask: how hard does the pit pull? Answer — it pulls inward, and the pull gets weaker fast the farther out you go (twice as far, one-quarter the pull). To find the "depth energy" we imagine dragging the ball all the way out of the pit to infinitely far away, adding up every little tug of the pull along the way — that grand total is the energy. We decide that being fully out of the pit (infinitely far) counts as zero depth. Since anywhere inside the pit is below that, the number comes out negative: . Right at the top rim, if you only hop up a little, the pit wall looks like a straight ramp, and hopping up a height costs — that is the flat-Earth shortcut. But for rockets leaving the whole pit, you need the real curved-well formula.
Connections
- Newton's Law of Universal Gravitation — the force we integrated in Steps 2–4.
- Conservative Forces and Potential Energy — why picking a lazy straight path (Step 4) is legal.
- Work-Energy Theorem — the work we bottled into .
- Escape Velocity — set total energy to using this well.
- Kepler's Laws & Orbital Energy — reads off this same curve.
- Acceleration due to gravity g — the tangent slope of the well in Step 8.