We need to earnM=E−esinE, not just quote it. It comes from Kepler's 2nd law (equal areas in equal times).
Setup. Draw the ellipse (semi-axes a,b) and its circumscribing auxiliary circle of radius a. The eccentric anomaly E 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 totalAellipse sector=Tt−tp=2πM.Why? Equal areas / equal times means fraction of area = fraction of period, and M/2π is exactly the fraction of the period elapsed (since M=n(t−tp) and nT=2π).
Step 2 — Squash the circle into the ellipse. Every y-coordinate on the circle is scaled by b/a to land on the ellipse. So every area on the circle is scaled by b/a:
Aellipse sector=abAcircle 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=pie slice, angle E21a2E−triangle to focus21a2esinE.Why the triangle? The focus is offset from the centre by c=ae. The triangle formed by centre, focus and the circle point has base ae and height asinE, area 21(ae)(asinE).
Step 4 — Assemble. Total ellipse area =πab. Plug in:
πabab(21a2E−21a2esinE)=2πM.
The a's and b's cancel beautifully:
πab21ab(E−esinE)=2πE−esinE=2πM⇒M=E−esinE.
We must solve M=E−esinE for E given M,e. No closed form exists. Define the root function:
f(E)=E−esinE−M.
We want f(E)=0. Newton-Raphson is the workhorse: fast (quadratic convergence), needs only f and f′, and here f′ is trivial.
Why f′=1−ecosE? Differentiate f(E)=E−esinE−M term by term: dEdE=1, dEd(−esinE)=−ecosE, M is constant. Since e<1, f′>0 always — the function is strictly increasing, so the root is unique and Newton is well-behaved.
Seed:E0=M+esinM=0.8+0.3(0.7174)=1.0152.
Why this seed? It pre-corrects for the −esinE term, landing us close to the root so fewer iterations are needed.
Iteration 1:f=1.0152−0.3sin(1.0152)−0.8=1.0152−0.2555−0.8=−0.0403f′=1−0.3cos(1.0152)=1−0.1585=0.8415E1=1.0152−0.8415−0.0403=1.0631Why this step? We move E up because f<0 meant our guess was too small.
Seed choice — why care? For high e, E0=M can converge slowly or oscillate. Use E0=πonly if M near π; here M is small so seed E0=M+esinM=0.1+0.9(0.0998)=0.1898.
Iter 1:f=0.1898−0.9sin(0.1898)−0.1=0.1898−0.1700−0.1=−0.0802f′=1−0.9cos(0.1898)=1−0.8838=0.1162E1=0.1898−(−0.0802/0.1162)=0.8801
Why the big jump? Near high e, f′ is small (denominator ≈0.12), so Newton takes a large step. This is exactly why high-e orbits need care — the correction is violent.
Iter 2:f=0.8801−0.9sin(0.8801)−0.1=0.8801−0.6909−0.1=0.0892f′=1−0.9cos(0.8801)=1−0.5731=0.4269E2=0.8801−0.0892/0.4269=0.6712
Iter 3:f=0.6712−0.9sin(0.6712)−0.1=0.6712−0.5595−0.1=0.0117; f′=0.2914; E3=0.6310
Continuing converges to E≈0.6249 rad. Slower — high e is genuinely harder.
Once E is found:
tan2ν=1−e1+etan2E,r=a(1−ecosE).Why r=a(1−ecosE)? Project the geometry: the body's distance from the focus, expressed through the eccentric anomaly, gives this compact form (max at aphelion E=π: r=a(1+e); min at perihelion E=0: 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 M) 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!
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=E−esinE transcendental hai. Matlab E ko alag karke closed-form formula banana possible hi nahi. Yahan M (mean anomaly) ek fictitious angle hai jo time ke saath steady-steady badhta hai, aur E (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)=E−esinE−M, aur hum chahte hain f(E)=0. Ek guess lo, dekho kitne galat ho (f ki value), aur slope f′=1−ecosE use karke better guess maaro: Ek+1=Ek−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 E aur sinE directly add ho rahe hain. Doosri: derivative f′ mein cos aata hai, sin nahi — yeh sabse common galti hai. Aur high eccentricity (e 0.9 ke aas-paas) mein denominator chhota ho jaata hai, toh steps bade aur thode wild — isliye achha starting guess E0=M+esinM 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!