3.2.10 · D2Orbital Mechanics & Astrodynamics

Visual walkthrough — Vis-viva equation v² = GM(2 - r − 1 - a) — derivation

2,405 words11 min readBack to topic

Step 1 — The picture: one small body, one big body

Before any formula, look at the setup.

Figure — Vis-viva equation v² = GM(2 - r − 1 - a) — derivation
  • The big orange dot is the central body, mass (think Sun or Earth). We treat it as fixed.
  • The small magenta dot is the orbiting body, mass (a satellite or planet), so small it doesn't tug the big one around.
  • The purple arrow labelled points from the centre of to . Its length is your current distance.
  • The magenta arrow labelled is the velocity — which way, and how fast, is moving right now. Its length is the speed.

WHY start here? Every symbol below is either , , or built from this picture. If we can measure a distance and a speed, we have everything.


Step 2 — The shape of the loop: an ellipse and its size

The orbit is not a circle in general — it's a squashed circle called an ellipse. We need names for its parts.

Figure — Vis-viva equation v² = GM(2 - r − 1 - a) — derivation
  • The central body sits at one focus (the orange dot), not the middle. This is Kepler's first law (see Kepler's Laws).
  • The point where is closest is the periapsis, at distance (magenta).
  • The point farthest away is the apoapsis, at distance (violet).
  • The long axis of the ellipse (periapsis straight through to apoapsis) has length . Half of it is the ==semi-major axis ==.

WHY define this way? Because — as we will prove in Step 7 — the total energy of the orbit turns out to depend on this one number and nothing else. is the single knob that sets how much "oomph" the whole orbit has.


Step 3 — The energy balance: kinetic plus potential is constant

Now the first of two conservation laws. See Conservation of Energy.

Figure — Vis-viva equation v² = GM(2 - r − 1 - a) — derivation

Gravity is a conservative force: it never secretly adds or drains energy. So the sum below is the same number at every point of the orbit.

In the figure the two coloured bars swap height as moves: near periapsis the kinetic bar is tall (fast), the potential bar is deep (deep in the well); near apoapsis they swap. Their total (the dashed line) never moves. That flat dashed line is .

WHY this tool? Energy conservation gives us one equation that is true everywhere at once. That's exactly what we need to link a point far out to a point close in.


Step 4 — The clever trick: read energy at the two ends

Energy is the same everywhere, so we're free to evaluate it wherever the algebra is easiest. The two easiest spots are periapsis and apoapsis.

Figure — Vis-viva equation v² = GM(2 - r − 1 - a) — derivation

WHY the ends? At periapsis and apoapsis the velocity arrow is exactly perpendicular to — the planet is momentarily neither climbing nor falling, just sweeping sideways. So the speed is purely the sideways speed, with no confusing radial part. Everywhere else the velocity is slanted and messier.

Because is equal at both ends:

One equation, two unknown speeds. We need one more relation — that's the next step.


Step 5 — The second balance: angular momentum ties the speeds

See Conservation of Angular Momentum. Angular momentum measures "spinning-around-ness": how much sideways sweep the body carries. Gravity pulls straight toward the centre, so it can't change this spin — it's conserved too.

Figure — Vis-viva equation v² = GM(2 - r − 1 - a) — derivation

At the two ends, where , the full speed is the sideways speed, so:

WHY do we need this? Equation (1) had two unknowns. Equation (2) expresses using . Two equations, now really only one unknown (). We can solve.


Step 6 — The algebra collapses to a clean speed

Substitute (2) into (1) — replace by — and watch it simplify.

Figure — Vis-viva equation v² = GM(2 - r − 1 - a) — derivation

Gather the pieces on the left, the pieces on the right:

The bracket factors as , and the right side over a common denominator is . The factor appears on both sides and cancels:

The figure highlights the twin brackets glowing on each side, with an arrow showing them cancel — that cancellation is the whole magic that makes it collapse.

WHY does this feel like a miracle? The difference-of-squares was hiding a common factor with the right-hand side. Nature arranged it so a messy quadratic reduces to one tidy fraction.


Step 7 — The big reveal: energy depends ONLY on

Now use Step 2's fact: . Substitute it into the result:

Put this back into the energy expression at periapsis and use :

Figure — Vis-viva equation v² = GM(2 - r − 1 - a) — derivation

The cancels and we land on:

The figure shows three different-shaped ellipses that share the same ; a bar on the side shows they all sit at the same energy level. Different eccentricities, identical energy.


Step 8 — Read off vis-viva at any point

Energy is constant, so at any point (distance , speed ) the balance equals the value we just found:

Multiply through by 2 and rearrange:


Step 9 — All the cases in one picture

The single formula secretly covers four different kinds of path depending on . We must check them all.

Figure — Vis-viva equation v² = GM(2 - r − 1 - a) — derivation
  • Circle (): . Constant speed — the loop never dips or climbs. (Magenta path.)
  • Ellipse ( finite, varies): speed rises near periapsis, falls near apoapsis. (Violet path.)
  • Parabola / escape (, so ): . This is the boundary — just barely free. See Escape Velocity. (Orange path.)
  • Hyperbola (, so ): . Extra "leftover" speed even at infinity — a flyby that never returns. (Navy dashed path.)

The one-picture summary

Figure — Vis-viva equation v² = GM(2 - r − 1 - a) — derivation

Two conservation laws (energy + angular momentum), evaluated at the two easy ends of the orbit, collapse by a difference-of-squares cancellation into — energy set by size alone — which unrolls into vis-viva.

Energy is conserved

Write energy at periapsis = at apoapsis

Angular momentum is conserved

Relate v_p and v_a

Substitute and cancel r_a minus r_p

Use r_p plus r_a equals 2a

Energy equals minus GM over 2a

Vis-viva v squared

Recall Feynman: the whole walk in plain words

Picture a ball whirling around you on a stretchy string in an oval loop. Two things about it never change no matter where it swings: its total energy (motion-energy plus how-high-up energy) and its spinning-around-ness. I look at the two extreme moments — closest and farthest — because there the ball moves purely sideways, so its speed is clean and simple. Writing "energy at closest = energy at farthest" and "spin at closest = spin at farthest" gives me two facts. I mash them together, a big pile of terms cancels, and out pops a shockingly simple truth: the total energy depends only on how big the oval is — half its longest width, which we call . Not its shape, not where the ball is right now — just its size. Once I know the energy is fixed by , I can stand anywhere on the loop, plug in my current distance , and immediately know my speed. That recipe is the vis-viva equation.


Connections

Recall Quick self-check

Why can we evaluate energy just at periapsis and apoapsis? ::: Energy is the same everywhere, and at the apsides , so the speed is purely sideways — the algebra is cleanest there. What single quantity sets the total orbital energy? ::: The semi-major axis , via . What makes the hyperbola faster than escape in the formula? ::: A negative semi-major axis, , which makes and pushes above . Define the specific angular momentum . ::: — distance times the sideways part of the velocity; constant because gravity applies no twist.