The Motion of Mars - with deferent and epicycle

Earth and Mars follow real elliptical orbits, quickening near the Sun and easing away from it. From first principles of watching the planets in the night sky Mars appears to move westward in a predictable way - retrograde motion. In a elliptical heliocentric model this is easy to see why - the different orbits cause the planets to 'catch up' to one another or move further apart faster. Panel 3 shows the observed position of Mars on the horizon for an observer on earth (of course Mars wouldn't always be visible) showing its backward motion and how the Kepler and Ptolemaic models differed in their explanation of the phenomena.
The first models of the solar system relied entirely on the geometric tools of Antiquity - compass, straight-edge etc. but a model built from perfect circles around Earth is insufficient to describe planetary motion, it is obviously too inaccurate and was improved upon by ancient astronomers like Ptolemy. The genius of Ptolemy's (and others) model was using the concept of an equant (bias against the true center - Earth) one of the most elegant ideas in the history of astronomy. Toggle it on and off to see just how much it achieved.

I · The Kepler Orbit real ellipses, Sun at a focus
II · Deferent, Epicycle & Equant Ptolemy's geocentric machine
III · The Wandering Star reality vs. Ptolemy's prediction
0.20 yr / s
×3.0
Elapsed0.00 yr
Mars–Sun distance0.00 AU
Ecliptic longitude000.0°
Apparent motionPrograde
Agreement with ellipse0′
Sun Earth Mars (true) Mars (Ptolemy's model) Deferent & epicycle Equant point

In panel I the Sun sits slightly off-centre, at a focus of each ellipse, and both planets visibly quicken near perihelion. Panel II rebuilds Mars's motion from circles, exactly as astronomers did for a millennium and a half: the deferent is drawn off-centre from Earth, and the planet keeps time not by the centre but by the equant, a companion point about which it sweeps equal angles in equal times. This "bisection of the eccentricity" is what lets the circles trace the real ellipse so faithfully. The hollow marker in panel III shows where the geometric model places Mars; the small gap to the true position is how closely it agrees with the modern orbit, held to a fraction of a degree, tens of arc-minutes at most, even for Mars with its stubbornly large eccentricity. A remarkable testament to how well the ancients had read the sky. Set the equant aside and that agreement loosens, revealing just how much work this one idea was doing.

The physics beneath the geometry

Where Ptolemy and Kepler described the motion, Newton explained it.

Kepler had the shape of the orbit but not its cause. His ellipse and his equal-area rule were laws read straight off Tycho Brahe's observations, superb descriptions but not consequences of any deeper principle. Newton supplied the principle. Under universal gravitation every mass attracts every other along the line joining them with a force F = GMmr2, a central pull falling off as the inverse square of the distance. And a spherically symmetric body such as the Sun attracts everything outside it exactly as if its whole mass sat at its centre (Newton's shell theorem). That is what licenses treating the Sun as a single point mass, and why the natural origin of the system is the Sun's centre, not the Earth.

From that one force law, Kepler's astronomy follows as theorems rather than fits. A central inverse-square attraction produces conic-section orbits, and the bound ones are ellipses with the force-centre at a focus: Kepler's first law, now derived. Because the force is central, angular momentum is conserved, so the radius vector sweeps equal areas in equal times: Kepler's second law, and the true meaning of what the equant had been approximating all along, since uniform rotation about the empty focus is very nearly uniform sweeping of area. Balancing gravity against the orbital acceleration gives T2 = 2GMa3, Kepler's third law, its constant now fixed by the Sun's mass.

Strictly, the Sun is not quite still: both bodies orbit their common centre of mass, but because the Sun so vastly outweighs the planets, that point sits barely outside its surface, so a Sun-fixed ellipse is excellent if not perfect. Restore the mutual tugs between planets and the orbit no longer closes exactly. It was this Newtonian frame of point masses, inverse-square gravity, and perturbations pushed to ever higher order that carried planetary prediction from the arc-minutes of the equant to the arc-seconds that would later betray the position of Neptune and the anomalous precession of Mercury's perihelion. Each stage kept what worked in the last and explained why it had. See it happen for yourself just below.

IV · The Force Law, Integrated a live orbit built only from F = GMm/r2
0 M☉
Semi-major axis1.54
Eccentricity0.350
OrbitClosed

Nothing here is prescribed: the planet is released with a velocity and then simply pushed by gravity, integrated step by step under an inverse-square pull toward the Sun (a symplectic scheme, so energy is conserved and the shape is honest). With no companion it retraces the same ellipse forever; the closed orbit is a theorem of the force law, not an input. Raise the companion mass and that exactness breaks: a second source of gravity slowly rotates the long axis of the orbit, tracing a rosette that never quite closes. That drifting apsidal line (dashed) is precisely the planet–planet perturbation Newtonian astronomy spent centuries computing.

Glossary

Every term used above, in one place.

Retrograde motion
Near opposition Mars's ecliptic longitude briefly decreases, and for a few weeks it tracks westward against the stars before resuming prograde (eastward) motion. Both planets keep moving prograde in their orbits; it is the faster inner Earth overtaking Mars that swings the geocentric line of sight backwards, so dλ/dt momentarily turns negative.
Opposition
Earth lies between the Sun and Mars, placing Mars 180° from the Sun in ecliptic longitude. It coincides with minimum Earth–Mars separation, peak brightness, and the midpoint of the retrograde loop.
Eccentricity
The parameter e fixing the shape of a Kepler ellipse (e = 0 circular, e → 1 increasingly elongated). Mars's e ≈ 0.093 varies its heliocentric distance by about ±9% around the semi-major axis, and, through the conservation of angular momentum expressed in Kepler's second law, its orbital speed with it.
Perihelion
The point of closest approach to the Sun, r = a(1 − e), where orbital speed is greatest. The opposite extreme, r = a(1 + e), is aphelion, the slowest point. The apsidal line joins the two through the focus.
Deferent and epicycle
The geocentric construction: the planet rides the epicycle, a small circle whose centre is carried around the larger Earth-centred deferent. For a superior planet the epicycle radius encodes Earth's own orbit: its vector stays antiparallel to the Earth–Sun line and turns once per year, which is exactly why the loops recur at the synodic period. A remarkably economical way to capture the motion.
Equant
A point offset from the deferent's centre (on the far side from Earth, at the empty focus) about which the epicycle's centre moves at constant angular velocity. Bisecting the eccentricity like this reproduces Kepler's law of areas to first order in e, so uniform circular motion follows the true ellipse to within a fraction of a degree for Mars, tens of arc-minutes at worst. A genuinely inspired piece of geometry, arrived at fourteen centuries before the ellipse itself. Set the pivot back at the geometric centre and the residual grows to order 2e, well over ten degrees.
Universal gravitation
Newton's law that any two masses attract along the line between them with F = GMmr2. The inverse-square dependence is precisely what makes bound orbits closed ellipses with the attracting mass at a focus; most other force laws would not close at all.
Point mass and the shell theorem
Newton's result that a spherically symmetric body attracts external objects as though its entire mass were concentrated at its centre. This is what justifies modelling the Sun as a single point at the focus, and what makes the Sun's centre, not the Earth, the system's natural origin.
Centre of mass
The balance point that the Sun and a planet both orbit. Because the Sun is so overwhelmingly more massive, it lies just outside the Sun's surface, so a Sun-fixed ellipse is an excellent approximation, and the tiny residual wobble (plus the pull of other planets) is what later, finer work had to account for.