The potential energy of gravitation is written . It is negative.
It comes out negative because infinity was chosen as the reference where . The nearer a body comes, the more it is drawn in and falls, so it lies below the reference, which is to say at a negative value. This is a matter of where the reference was placed, not a sign that energy is somehow lacking.
Why not take the ground as the reference? Because can only be used where may be treated as constant, that is, just above the surface. As the height approaches the radius of the Earth, falls off visibly and stops agreeing. Infinity is the more convenient reference precisely because it still serves however far away you go.
The curve in the figure approaches as grows and plunges deeper the nearer the body. Cut out just the part of that curve immediately above the surface and it looks very nearly straight. Its slope is , and was the equation that looked only at that stretch.
With the potential energy settled, conservation of mechanical energy can be used: , where has the same value everywhere on the orbit.
The horizontal line in the figure is , the curve is , and the vertical gap between them is the kinetic energy . Near the body plunges deep, so is large and the motion is fast. The farther out, the more shrinks.
Where the two meet, is . That is the turning point, and the body can go no farther. So long as is negative such a crossing must exist, and the orbit closes. This is why the orbit is an ellipse.
To find the speeds at the nearest and farthest points of an elliptical orbit, pair this equation with from the areal velocity. Two unknowns, and , and two equations, which is enough to solve.
What speed does it take to keep circling just above the surface? This is called the first cosmic velocity.
The orbit is circular, so gravitation is the centripetal force. Setting and cancelling gives .
Recalling that , we have , so this can be rewritten . In that form it can be worked out from and the radius of the Earth alone, without knowing either or . With the Earth's values it comes to about kilometres per second.
Slower than this and the body falls to the ground; at this speed it keeps falling and never reaches the ground. This is the speed meant by fast enough in Newton's cannonball.
So what does it take never to come back? This is the second cosmic velocity, the escape velocity.
The boundary case is one that comes to rest exactly at infinity. There and , so . The mechanical energy does not change, so at launch too we must have .
Solving gives . That is exactly times the first cosmic velocity, about kilometres per second for the Earth.
On the left of the figure is the case that falls short: however high it climbs, its speed reaches at the horizontal line and it falls back. On the right is the case that suffices: there is no height at which it stops, so it simply leaves. All that separates the two is the sign of .