We will end up reading a single master sentence written in symbols. But we refuse to show it until every ingredient inside it has been defined and drawn. So this page introduces the pieces one at a time — plain words first, a picture next, and only then the symbol. The master sentence appears in full in section 6, and the three concrete PE formulas it produces are written out and derived in section 6b.
The picture: all four are just arrows measuring how far. h=Δy and x start at a natural "zero" (the ground y0; the spring at rest). r starts at a planet's core.
Figure 1 — Three "where" measures. Left: h=y−y0 is the vertical gap (lavender arrow) between the raised object and the floor y0=0. Middle: r (lavender arrow) runs from the planet's centre out to the object. Right: x (lavender arrow) is the stretch of the spring measured from its relaxed length x=0. Notice each starts at its own natural zero.
Why the topic needs them: potential energy depends only on position. If we can't name position, we can't write PE. Each formula grabs the position label that fits its geometry: mgh uses h, −GMm/r uses r, 21kx2 uses x.
The picture below shows why: only the part of the force along the tiny step dr counts.
Figure 2 — Reading a dot product. The coral arrow is the force F (pointing down); the mint arrow is the tiny step dr (pointing up-and-right). The lavender arrow is the piece of F that lies along dr — that projected piece, times the step's length, is F⋅dr. If F were at a right angle to dr, the lavender arrow would shrink to nothing and the dot product would be zero.
Why this tool and not plain multiplication? Because "work" (defined next) means force helping motion. If you carry a book sideways, gravity (down) is at a right angle to your step (sideways) — it does zero work. Only the dot product captures that "only the aligned part counts" rule. See Work done by a force.
Figure 3 — The reference is a free choice. The lavender curve is U=−GMm/r with U=0 placed at infinity; the dashed coral curve is the same physics with the zero moved elsewhere — the whole curve slides up. The two vertical slate arrows show the gap between the same pair of points on each curve: the individual U values differ, but ΔU (the arrow's length) is identical. Only ΔU is physical.
The master sentence is a machine: put a force in, get a U out. Here we turn its crank three times so you actually see each formula the topic will make you apply.
Why three? Each uses a different position label (h, r, x) and a different force shape (constant, inverse-square, linear) — together they cover "flat ground," "deep space," and "stretchy things," which is every case the parent topic asks about. See Conservation of mechanical energy for what these U's then do.
Why it matters: PE can only be a clean function of position if the banked energy doesn't depend on the route. That is the entire licence to writeU(position). See Conservative vs non-conservative forces.
Section 6 added up force to get U. Now we run the machine backwards: given the U landscape, recover the force. The reverse of "add up" is "look at the slope."
The picture: draw U as hills and valleys. A ball rolls downhill, toward lower U. The force is minus the slope: steeper hill, harder shove.
Figure 4 — Force is minus the slope of U. The lavender curve is a valley-shaped U(x). At the coral dot the butter dashed line shows the local slope dU/dx (positive: U rises to the right). The mint arrow is the force F=−dU/dx, pointing the opposite way — downhill, back toward the valley floor. Where the curve is flat (the very bottom) the slope is zero and so is the force.