The mean anomaly M grows evenly with time; the true anomaly θ does not. Kepler's equation M=E−esinE
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
Where will it be on a given day?
A comet passed perihelion on 1 March. Where will it be on 1 June? The second law says it slows down as it moves out. So its angle from perihelion does not grow evenly with time. We need a rule that turns a time into a place. Kepler found it.
Three angles
An ellipse inside its auxiliary circle, a circle of radius a around the centre C of the ellipse. The Sun S is at the right-hand focus. A planet P is on the ellipse in the upper half. A vertical dashed line runs from P up to the point Q on the circle directly above it. The angle at the centre C between the perihelion direction and the line CQ is labelled E, the eccentric anomaly. The angle at the Sun S between the perihelion direction and the line SP is labelled theta, the true anomaly. Theta is larger than E for this point.
The mean anomalyM grows evenly: M=2π(t−τ)/T, where τ is the time of perihelion. It is the angle of an imaginary planet moving round a circle with the same period.
The eccentric anomalyE is a helper. Draw the circle of radius a round the centre of the ellipse. Go up from the planet, at right angles to the major axis, to the circle. E is the angle at the centre to that point.
The true anomalyθ is the real angle at the Sun from perihelion.
With the Sun at the origin and perihelion on the x axis, the planet is at
x=a(cosE−e),y=bsinE
So its distance is
r=a(1−ecosE)
and the true anomaly follows from
tan2θ=1−e1+etan2E
Kepler's equation
The second law says that the area swept since perihelion grows evenly. On the circle, the area from the Sun to the point at angle E is 21a2(E−esinE). The ellipse is the circle squeezed by the factor b/a, so its area is 21ab(E−esinE). The whole ellipse, πab, is swept in one period. So
Tt−τ=2πE−esinE
which is Kepler's equation:
M=E−esinE
The angles are in radians here.
Solving it
From E we get M at once. But usually we know the time, so M, and want E. No formula gives E from M exactly. We solve by steps.
Fixed-point iteration. Start with E0=M and repeat Ek+1=M+esinEk. Each step cuts the error by about the factor ecosE. So it is quick for small e and slow for e near 1.
Newton's method. Repeat Ek+1=Ek−1−ecosEkEk−esinEk−M. It doubles the number of correct digits at every step.
Worked example: a quarter of the period
An asteroid has a=2.80AU and e=0.150. Where is it a quarter of a period after perihelion?
The mean anomaly.M=90∘=1.5708 rad.
Iterate.E1=1.5708+0.150sin(1.5708)=1.7208. Then E2=1.7191 and E3=1.7191. So E=1.7191 rad, which is 98.50∘.
The distance.r=2.80AU×(1−0.150cos98.50∘)=2.862AU.
The true anomaly.tan(θ/2)=1.1632×tan49.25∘=1.3500, so θ=106.94∘.
Check. After a quarter of the period the planet has gone more than a quarter of the way round. That fits: it moved fast near perihelion. Its distance is a little more than a, as it should be just past the end of the minor axis.
Unequal halves
The line through the Sun at right angles to the major axis cuts the orbit into a near half and a far half. At its ends θ=±90∘, so cosE=e. The near half takes the fraction
f=πE−esinE,cosE=e
of the period. For the Earth, with e=0.0167, f=0.4894. The near half lasts 178.7 days and the far half 186.5 days. This is one reason why the northern summer half of the year is about a week longer than the winter half. The Earth is nearest the Sun in early January.
Set t/T=0.25 and raise e from 0 to 0.9. How does the true anomaly change? Why is the planet then already close to aphelion?
Practise with new numbers
Try it in Python
The program solves Kepler's equation in two ways and counts the steps each one needs.
Common mistakes
Using degrees in Kepler's equation. In M=E−esinE the angles M and E must be in radians.
Taking E as the angle at the Sun.E is measured at the centre of the ellipse, on the auxiliary circle.
Thinking a quarter of the period is a quarter of the orbit. Near perihelion the planet covers more angle in the same time.
Losing the quadrant. For θ between 180∘ and 360∘, use the two-argument inverse tangent or check the sign of sinE.
Remember these
M=2π(t−τ)/T grows evenly with time.
Kepler's equation: M=E−esinE, angles in radians.
r=a(1−ecosE) and tan(θ/2)=(1+e)/(1−e)tan(E/2).
Solve by Ek+1=M+esinEk or by Newton's method.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
What are E and θ when M=0 and when M=180∘?
For a circular orbit, how are M, E and θ related?
A comet has e=0.9. What fraction of its period does it spend in the half of the orbit nearer the Sun?
Why does the fixed-point method slow down when e is close to 1?
References
A. E. Roy, Orbital Motion (4th edition, Institute of Physics Publishing), Chapter 4, The two-body problem.
J. Meeus, Astronomical Algorithms (2nd edition, Willmann-Bell), Chapter 30, Equation of Kepler.
Enroll free in Kepler's Laws and the Geometry of Orbits
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.