3.2.15Orbital Mechanics & Astrodynamics

Solving Kepler's equation — Newton-Raphson iteration

2,254 words10 min readdifficulty · medium

WHY do we even need this?

Given a time tt, we want to know where a satellite is on its ellipse. The clean chain is:

time t    M    E    ν    (r,θ)\text{time } t \;\longrightarrow\; M \;\longrightarrow\; E \;\longrightarrow\; \nu \;\longrightarrow\; (r,\theta)

  • MM = mean anomaly — a fictitious angle that grows uniformly with time.
  • EE = eccentric anomaly — the geometric angle on the auxiliary circle.
  • ν\nu = true anomaly — the actual angle of the body from the focus.

The trouble sits between MM and EE.


HOW is Kepler's equation derived (from scratch)?

We need to earn M=EesinEM = E - e\sin E, not just quote it. It comes from Kepler's 2nd law (equal areas in equal times).

Setup. Draw the ellipse (semi-axes a,ba,b) and its circumscribing auxiliary circle of radius aa. The eccentric anomaly EE is the angle at the centre to the point on the circle above the body.

Step 1 — Area swept scales with time. By the 2nd law, area swept from perihelion is proportional to elapsed time: Aellipse sectorAellipse total=ttpT=M2π.\frac{A_{\text{ellipse sector}}}{A_{\text{ellipse total}}} = \frac{t-t_p}{T} = \frac{M}{2\pi}. Why? Equal areas / equal times means fraction of area = fraction of period, and M/2πM/2\pi is exactly the fraction of the period elapsed (since M=n(ttp)M=n(t-t_p) and nT=2πnT=2\pi).

Step 2 — Squash the circle into the ellipse. Every yy-coordinate on the circle is scaled by b/ab/a to land on the ellipse. So every area on the circle is scaled by b/ab/a: Aellipse sector=baAcircle sector.A_{\text{ellipse sector}} = \frac{b}{a}\,A_{\text{circle sector}}.

Step 3 — Area of the circle sector. The circle "sector" swept from perihelion, measured from the focus, splits into a pie-slice about the centre minus a triangle: Acircle sector=12a2Epie slice, angle E12a2esinEtriangle to focus.A_{\text{circle sector}} = \underbrace{\tfrac12 a^2 E}_{\text{pie slice, angle }E} - \underbrace{\tfrac12 a^2 e\sin E}_{\text{triangle to focus}}. Why the triangle? The focus is offset from the centre by c=aec = ae. The triangle formed by centre, focus and the circle point has base aeae and height asinEa\sin E, area 12(ae)(asinE)\tfrac12(ae)(a\sin E).

Step 4 — Assemble. Total ellipse area =πab=\pi a b. Plug in: ba ⁣(12a2E12a2esinE)πab=M2π.\frac{\tfrac{b}{a}\!\left(\tfrac12 a^2 E - \tfrac12 a^2 e\sin E\right)}{\pi a b} = \frac{M}{2\pi}. The aa's and bb's cancel beautifully: 12ab(EesinE)πab=EesinE2π=M2π    M=EesinE.\frac{\tfrac12 a b (E - e\sin E)}{\pi a b} = \frac{E-e\sin E}{2\pi} = \frac{M}{2\pi} \;\Rightarrow\; \boxed{M = E - e\sin E}.


WHY Newton-Raphson? (the 80/20 method)

We must solve M=EesinEM = E - e\sin E for EE given M,eM,e. No closed form exists. Define the root function:

f(E)=EesinEM.f(E) = E - e\sin E - M.

We want f(E)=0f(E)=0. Newton-Raphson is the workhorse: fast (quadratic convergence), needs only ff and ff', and here ff' is trivial.

Why f=1ecosEf'=1-e\cos E? Differentiate f(E)=EesinEMf(E)=E - e\sin E - M term by term: ddEE=1\frac{d}{dE}E=1, ddE(esinE)=ecosE\frac{d}{dE}(-e\sin E)=-e\cos E, MM is constant. Since e<1e<1, f>0f'>0 always — the function is strictly increasing, so the root is unique and Newton is well-behaved.


Figure — Solving Kepler's equation — Newton-Raphson iteration

Worked Example 1 — moderate eccentricity

Given M=0.8M = 0.8 rad, e=0.3e = 0.3. Find EE.

Seed: E0=M+esinM=0.8+0.3(0.7174)=1.0152E_0 = M + e\sin M = 0.8 + 0.3(0.7174) = 1.0152. Why this seed? It pre-corrects for the esinE-e\sin E term, landing us close to the root so fewer iterations are needed.

Iteration 1: f=1.01520.3sin(1.0152)0.8=1.01520.25550.8=0.0403f = 1.0152 - 0.3\sin(1.0152) - 0.8 = 1.0152 - 0.2555 - 0.8 = -0.0403 f=10.3cos(1.0152)=10.1585=0.8415f' = 1 - 0.3\cos(1.0152) = 1 - 0.1585 = 0.8415 E1=1.01520.04030.8415=1.0631E_1 = 1.0152 - \frac{-0.0403}{0.8415} = 1.0631 Why this step? We move EE up because f<0f<0 meant our guess was too small.

Iteration 2: f=1.06310.3sin(1.0631)0.8=1.06310.26260.8=0.0005f = 1.0631 - 0.3\sin(1.0631) - 0.8 = 1.0631 - 0.2626 - 0.8 = 0.0005 E2=1.06310.00050.85581.06266E_2 = 1.0631 - \frac{0.0005}{0.8558} \approx 1.06266

Already f104|f|\sim 10^{-4}; one more step gives machine precision. E1.0627E \approx 1.0627 rad. Notice E>ME>M — the body has sped past the uniform angle, as expected.

Worked Example 2 — high eccentricity (where seeds matter)

Given M=0.1M = 0.1 rad, e=0.9e = 0.9.

Seed choice — why care? For high ee, E0=ME_0 = M can converge slowly or oscillate. Use E0=πE_0 = \pi only if MM near π\pi; here MM is small so seed E0=M+esinM=0.1+0.9(0.0998)=0.1898E_0 = M + e\sin M = 0.1 + 0.9(0.0998) = 0.1898.

Iter 1: f=0.18980.9sin(0.1898)0.1=0.18980.17000.1=0.0802f = 0.1898 - 0.9\sin(0.1898) - 0.1 = 0.1898 - 0.1700 - 0.1 = -0.0802 f=10.9cos(0.1898)=10.8838=0.1162f' = 1 - 0.9\cos(0.1898) = 1 - 0.8838 = 0.1162 E1=0.1898(0.0802/0.1162)=0.8801E_1 = 0.1898 - (-0.0802/0.1162) = 0.8801

Why the big jump? Near high ee, ff' is small (denominator 0.12\approx 0.12), so Newton takes a large step. This is exactly why high-ee orbits need care — the correction is violent.

Iter 2: f=0.88010.9sin(0.8801)0.1=0.88010.69090.1=0.0892f = 0.8801 - 0.9\sin(0.8801) - 0.1 = 0.8801 - 0.6909 - 0.1 = 0.0892 f=10.9cos(0.8801)=10.5731=0.4269f' = 1 - 0.9\cos(0.8801) = 1 - 0.5731 = 0.4269 E2=0.88010.0892/0.4269=0.6712E_2 = 0.8801 - 0.0892/0.4269 = 0.6712

Iter 3: f=0.67120.9sin(0.6712)0.1=0.67120.55950.1=0.0117f = 0.6712 - 0.9\sin(0.6712) - 0.1 = 0.6712 - 0.5595 - 0.1 = 0.0117; f=0.2914f'=0.2914; E3=0.6310E_3=0.6310 Continuing converges to E0.6249E \approx 0.6249 rad. Slower — high ee is genuinely harder.


From EE to true anomaly ν\nu

Once EE is found: tanν2=1+e1etanE2,r=a(1ecosE).\tan\frac{\nu}{2} = \sqrt{\frac{1+e}{1-e}}\,\tan\frac{E}{2}, \qquad r = a(1-e\cos E). Why r=a(1ecosE)r=a(1-e\cos E)? Project the geometry: the body's distance from the focus, expressed through the eccentric anomaly, gives this compact form (max at aphelion E=πE=\pi: r=a(1+e)r=a(1+e); min at perihelion E=0E=0: r=a(1e)r=a(1-e) — check it).


Recall Explain it to a 12-year-old

Imagine a runner on a racetrack shaped like a squashed circle. A clock-hand (that's MM) sweeps around at perfectly steady speed. But the real runner speeds up when close to the inside post and slows down far away. So the runner and the clock-hand don't line up — and there's no magic formula to instantly say where the runner is from the clock time. So we guess, check how wrong we are, use the slope to make a smarter guess, and repeat. After 3-4 guesses we're spot on. That guessing recipe is Newton-Raphson!


Flashcards

What is Kepler's equation?
M=EesinEM = E - e\sin E, linking mean anomaly MM, eccentric anomaly EE, eccentricity ee.
Why can't Kepler's equation be solved algebraically for EE?
It is transcendental — EE appears both linearly and inside sinE\sin E, so no closed-form inverse exists; you must iterate.
What is the Newton-Raphson update for Kepler's equation?
Ek+1=EkEkesinEkM1ecosEkE_{k+1} = E_k - \dfrac{E_k - e\sin E_k - M}{1 - e\cos E_k}
What is f(E)f(E) and f(E)f'(E) used here?
f(E)=EesinEMf(E)=E-e\sin E-M and f(E)=1ecosEf'(E)=1-e\cos E.
Why is the root unique?
Because e<1f(E)=1ecosE>0e<1 \Rightarrow f'(E)=1-e\cos E>0 everywhere, so ff is strictly increasing.
Good initial guess for moderate ee?
E0=M+esinME_0 = M + e\sin M (first-order correction), or E0=ME_0=M for small ee.
What convergence rate does Newton-Raphson give near the root?
Quadratic — the error roughly squares each iteration.
How do you get ν\nu from EE?
tan(ν/2)=1+e1etan(E/2)\tan(\nu/2)=\sqrt{\tfrac{1+e}{1-e}}\tan(E/2).
Distance from focus in terms of EE?
r=a(1ecosE)r=a(1-e\cos E); min a(1e)a(1-e) at E=0E=0, max a(1+e)a(1+e) at E=πE=\pi.
Why must Kepler's equation use radians?
Because EE and sinE\sin E are added directly; the equality only holds with consistent radian measure.
What physical law is Kepler's equation derived from?
Kepler's 2nd law (equal areas swept in equal times), via the auxiliary circle.
Mean motion formula?
n=μ/a3n=\sqrt{\mu/a^3}, giving M=n(ttp)M=n(t-t_p).

Connections

  • Kepler's Laws of Planetary Motion — the 2nd law births this equation.
  • Eccentric Anomaly and the Auxiliary Circle — geometric meaning of EE.
  • True Anomaly and the Orbit Equation — next step after solving for EE.
  • Newton-Raphson Method — general root-finding, convergence conditions.
  • Mean Motion and Orbital Period — where nn and MM come from.
  • Fixed-Point Iteration for Kepler — the simpler (slower) alternative Ek+1=M+esinEkE_{k+1}=M+e\sin E_k.

Concept Map

via mean motion n

solve Kepler eqn

geometry

gives

derives

defines

links

is

requires

computes

Time t

Mean anomaly M

Eccentric anomaly E

True anomaly nu

Position r,theta

Kepler eqn M = E - e sinE

Kepler 2nd law equal areas

Auxiliary circle radius a

Newton-Raphson iteration

Transcendental: cannot isolate E

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, Kepler's equation ka basic problem yeh hai: agar tumhe satellite ka angle pata ho, toh time nikaalna easy hai. Par ulta — time se angle nikaalna — mushkil hai, kyunki equation M=EesinEM = E - e\sin E transcendental hai. Matlab EE ko alag karke closed-form formula banana possible hi nahi. Yahan MM (mean anomaly) ek fictitious angle hai jo time ke saath steady-steady badhta hai, aur EE (eccentric anomaly) actual geometry hai.

Iska solution nikaalne ke liye hum Newton-Raphson use karte hain — ek smart guessing method. Function banate hain f(E)=EesinEMf(E) = E - e\sin E - M, aur hum chahte hain f(E)=0f(E)=0. Ek guess lo, dekho kitne galat ho (ff ki value), aur slope f=1ecosEf'=1-e\cos E use karke better guess maaro: Ek+1=Ekf/fE_{k+1} = E_k - f/f'. Sirf 3-4 baar repeat karo aur answer machine-precision tak sahi. Convergence quadratic hai — error har step pe roughly square ho jaata hai, super fast.

Do baatein yaad rakhna. Pehli: sab kuch radians mein, degrees mein nahi — kyunki EE aur sinE\sin E directly add ho rahe hain. Doosri: derivative ff' mein cos\cos aata hai, sin\sin nahi — yeh sabse common galti hai. Aur high eccentricity (ee 0.9 ke aas-paas) mein denominator chhota ho jaata hai, toh steps bade aur thode wild — isliye achha starting guess E0=M+esinME_0 = M + e\sin M lena zaroori hai.

Real life mein yeh matter karta hai kyunki GPS, satellite tracking, spacecraft ki position — sab isi loop pe chalte hain. Ek chhota sa iterative solver har second lakhon baar chalta hai orbits predict karne ke liye. Toh yeh chhoti si equation astrodynamics ka dil hai!

Go deeper — visual, from zero

Test yourself — Orbital Mechanics & Astrodynamics

Connections