Appendix · Curriculum index

Kepler's equation

Where on its orbit is a body at time $t$? On a circle that's trivial: angle increases at a constant rate. On an ellipse, motion isn't uniform — the body sprints near periapsis, crawls past apoapsis. Converting elapsed time to actual position requires solving Kepler's equation, the most famous transcendental equation in celestial mechanics.

Three angles, one ellipse

To talk about position on an elliptical orbit we need to be careful which angle we mean — there are three different ones in standard use, and they're easily confused.

Time gives you $M$ for free. The end goal is $\nu$ (where the body actually is). Bridging them requires going through $E$, and that's where Kepler's equation comes in.

The equation itself

Kepler discovered, around 1620, that for any elliptical orbit:

$$ \boxed{\, M = E - e\, \sin E \,} $$

$E$ is what we want; $M$ and $e$ are known. The equation is transcendental — there's no algebraic rearrangement that gives $E$ explicitly in terms of $M$. You can't write $E = (\text{something})$. The answer exists, but only as the solution of an equation, and you have to find it numerically.

Where the equation comes from. It's a direct consequence of Kepler's second law (equal areas in equal times). The area swept by the focus-to-body radius vector is proportional to elapsed time, and after a chain of geometric steps that area can be expressed as $E - e\sin E$ scaled by $a^2/2$. The factor of $e\sin E$ is the correction for the ellipse not being a circle. Module 4 has the visual.

Solving it: Newton–Raphson

Rewrite Kepler's equation as $f(E) = 0$ and apply Newton's method. Define

$$ f(E) = E - e\sin E - M, \qquad f'(E) = 1 - e\cos E $$

and iterate

$$ E_{k+1} = E_k - \frac{f(E_k)}{f'(E_k)} = E_k - \frac{E_k - e\sin E_k - M}{1 - e\cos E_k}. $$

Starting from $E_0 = M + e\sin M$ (a sharp first guess that already gets you close), the iteration converges quadratically — meaning the number of correct digits roughly doubles with each step. For any reasonable orbit ($e < 0.95$, say), three or four iterations gets you to floating-point precision.

Watch it converge

Pick a mean anomaly and an eccentricity. The table shows the Newton iterations explicitly: at each step, the current $E$, the residual $f(E)$, and the correction $\Delta E$. Watch the residual drop by orders of magnitude per step.

Demo
Newton iteration on Kepler's equation
60°
0.60
k $E_k$ (rad) $f(E_k) = E_k - e\sin E_k - M$ $\Delta E_k$

Even at $e = 0.97$ — close to a parabolic escape — the iteration still converges in about half a dozen steps. Halley's Comet has $e \approx 0.967$, and its position-finding code uses exactly this loop, run a few times per orbit.

From $E$ to $\nu$

Once you have the eccentric anomaly, the true anomaly comes from a half-angle relation:

$$ \tan\!\frac{\nu}{2} = \sqrt{\frac{1+e}{1-e}}\, \tan\!\frac{E}{2} $$

And the focus-distance is $r = a(1 - e\cos E)$, the form used throughout this curriculum. With $\nu$ and $r$ in hand, you can convert to Cartesian coordinates relative to the orbital plane and you're done — that's how every Kepler-propagation animation in modules 3, 4, 5, 7, and 8 actually computes the body's position. Each frame: take the elapsed time, compute $M$, run the loop above for $E$, project onto the ellipse.

The historical detail. Kepler himself didn't have Newton's method (which arrived later, around 1669). He solved his equation by trial-and-error successive substitution — guess an $E$, plug into the right-hand side, get an $M'$, adjust. It works but converges slowly. With seventeenth-century arithmetic this was real labor; he reportedly worked through hundreds of iterations by hand to fit Tycho's Mars observations. The Newton-iteration trick we use today is a much later refinement applied to the same equation.

Getting back