Visual walkthrough — Gauss's method for Lambert's problem
We are solving Lambert's problem: given two positions and a travel time, find the orbit. Watch the geometry grow one line at a time.
Step 1 — Two dots and a chord (pure geometry, no orbit yet)
WHAT. Put the central body (Sun, Earth, whatever we orbit) at a point called the focus . Draw an arrow from to the first position, call it ; draw another to the second position, . The straight line joining the tips of those two arrows is the chord .
WHY. Before we know anything about the orbit, we already know these three lengths from the given data. Everything Gauss does is anchored to this triangle, so we draw it first.
PICTURE. Look at the figure. Two arrows leave ; the dashed line between their tips is . The angle between the arrows — swept from to — is the transfer angle .
The chord comes from the law of cosines — the rule that finds the third side of a triangle when you know two sides and the angle between them:
And itself is free from the given vectors via the dot product:
Step 2 — The flat triangle's area
WHAT. Fill in the triangle –tip–tip and measure its area.
WHY. The moving planet does not travel along the chord — it curves. But the flat triangle is the simplest thing we can measure, so we use it as a yardstick and later ask "how much bigger is the true curved region?"
PICTURE. The shaded triangle. Its area is base height ; taking as base, the height is .
Step 3 — The real path is a pie slice, not a triangle
WHAT. Now let the planet actually move on its ellipse from tip to tip. The region the arrow sweeps is a curved elliptic sector — a pie slice with a bulging crust. Give this region a name: .
WHY. This is where the orbit finally enters. The sector is bigger than the flat triangle because the true path bulges outward (or inward). The amount it differs is the fingerprint of the specific orbit.
PICTURE. The mint pie-slice sits on top of the flat triangle. The extra sliver between the curved arc and the straight chord is the "bulge".
Kepler's second law, written as an equation, says the sweep rate is constant and equals , where is the (constant) angular momentum. Rearranging "area = rate × time":
Step 4 — Define the ratio : how much fatter is the pie than the triangle?
WHAT. Divide the curved sector area by the flat triangle area. Call it .
WHY. A raw area depends on units and orbit size — messy. A ratio of two areas is a clean, unit-free number that captures only the shape difference. That is the one quantity Gauss chases.
PICTURE. The two regions side by side; is literally "green area ÷ blue area".
Recall Why is
near 1 a good first guess? Guess-when-in-doubt ::: For most transfers the arc is only slightly bulged, so sector ≈ triangle, so starts the iteration close to the answer.
Step 5 — The eccentric anomaly, and where the half-angle comes from
Before the two equations, we need the variable that measures how much of the ellipse the ship covered — and to see why a half-angle keeps appearing.
WHAT. Draw the ellipse with a helper circle of the same width around it. For any point on the orbit, drop it straight up to the circle; the angle from the ellipse's centre (not the focus!) out to that circle point is the eccentric anomaly . Call the two tip values and .
WHY. Time-of-flight through an ellipse is clean only in terms of (that is Kepler's equation). And the chord joining the two tips, worked out in , always comes out proportional to — a half-difference — because a chord of a circle of radius subtending angle has length . That single "chord = " identity is the source of every and every half- you will see.
PICTURE. The ellipse, its helper circle, the centre , the focus , the two eccentric-anomaly angles, and the chord drawn as .
Step 6 — The two equations, and where they come from
We now have two independent facts about the same orbit, each carrying the variable . One is pure geometry; one carries the time. The true orbit obeys both at once.
WHY two equations? One unknown pair , two independent physical facts (geometry, time) → a determined system. Their simultaneous solution is the orbit.
Step 7 — The constants and , motivated
WHAT. Two numbers, computed once from the givens.
WHY. They are just the shape-only and time-only leftovers from the derivation in Step 6, given names so the iteration stays clean.
PICTURE. A label diagram: tags the triangle, tags the stopwatch.
Step 8 — The iteration as a picture: guess, slide, correct
WHAT. Start at . Use Equation A to get the that guess implies. Use Equation B to compute a better . Repeat.
WHY. We can't solve the two curves' crossing in closed form, so we bounce between them; because starts near the true value the bounces shrink fast (a contraction map).
PICTURE. A staircase converging onto the crossing point of the two curves.
The step-4 update is Equation B with replaced by :
Step 9 — The degenerate and non-elliptic cases you MUST see
WHAT / WHY. Every solver must survive the corners. Here are the ones that bite.
PICTURE. Panels: near- blow-up, the short/long-way branches, the straight-line limit, and the parabolic/hyperbolic () regime.
The one-picture summary
Everything on one canvas: the flat triangle (yardstick), the fatter sector (real path), their ratio , the two curves whose crossing satisfies, and the staircase that lands on it. From we read off , then the Lagrange f and g functions , then the velocities that turn two dots and a stopwatch into a full orbit — the raw material of a Porkchop plot.
Recall Feynman retelling — the whole walkthrough in plain words
I drew two arrows from the Sun to where a spaceship was and where it went, and joined their tips with a straight line — that flat triangle is my ruler. But the ship doesn't fly straight; it curves, sweeping out a fatter pie slice, and I call that curved region the sector. Kepler told me that area is really a clock: how much the ship sweeps tells me how long it took — and the stopwatch time they gave me tells me how big that pie slice must be. So I compare the pie slice to the flat triangle and call that ratio . To pin down I need one more number: how far around the ellipse the ship went, measured by the eccentric-anomaly angle — and because a chord of a circle is always "twice-radius-times-sine-of-half-the-angle," half-angles show up everywhere. That gives me two statements about the same orbit: one pure geometry, one carrying the clock. I don't know yet, so I guess it's about 1 (barely curved), see what arc that implies, check the time, and nudge until geometry and stopwatch agree. That agreement is the orbit. Watch the edges: opposite sides of the Sun make my numbers explode, forgetting which way around gives the wrong path, perfectly-lined-up points leave no triangle to measure, and a super-fast trip isn't even an ellipse — it's a parabola or hyperbola that needs the universal-variable method instead.