Sub topic 12
Kepler's three laws from Newton's gravity
Kepler found his three laws by fitting Tycho Brahe's planetary observations. He had no explanation for why they held. Newton's inverse-square law supplies one. This chapter derives each law from the physics you already have, so the laws become consequences of one force law and not separate facts.
This chapter assumes you know the inverse-square force law, centripetal acceleration, the circular-orbit result v = sqrt(GM/r), and the idea of angular momentum as r × p. Elliptical orbits get a full treatment in the next chapter. Here we focus on why the laws hold.
The three laws at a glance
| Law | Statement | What it reflects physically |
|---|---|---|
| First | A planet moves on an ellipse with the Sun at one focus. | The force falls off as 1/r². |
| Second | The line from Sun to planet sweeps out equal areas in equal times. | The force is central, so angular momentum is conserved. |
| Third | T² is proportional to a³, where a is the semi-major axis. | The force strength depends on the central mass, GM. |
The second law needs only that the force points toward a fixed center. The first and third laws depend on the specific 1/r² dependence.
Second law: equal areas from conservation of angular momentum
Gravity from the Sun on a planet points along the line joining them. A force along the position vector exerts zero torque about the Sun, because torque is r × F and the two vectors are parallel. With zero torque, the planet's angular momentum L = m r × v is constant in both size and direction.
Constant direction means the motion stays in one plane. Constant size is where the area law comes from. In a short time dt the planet moves a distance v dt. The thin triangle it sweeps has area
dA = ½ · r · (v_perp · dt)
where vperp is the velocity component perpendicular to the radius. The angular momentum magnitude is L = m r vperp, so
dA/dt = ½ r v_perp = L / (2m)
The right side is constant, so equal areas are swept in equal times. A planet therefore moves fastest at perihelion (closest approach) and slowest at aphelion (farthest point). Because r vperp is the same at both points, vperp at perihelion is larger by the ratio of the distances.
Third law: the circular-orbit derivation
For a circular orbit of radius r, gravity provides the centripetal force:
G M m / r² = m · (4π² r / T²)
Here the speed is v = 2πr/T, so the centripetal acceleration is v²/r = 4π² r / T². Cancel m and rearrange:
T² = (4π² / GM) · r³
The factor in parentheses depends only on the central mass M, not on the orbiting body's mass m. That is why every planet around the Sun shares the same ratio T²/a³.
For an ellipse, the same formula holds with the circle's radius r replaced by the semi-major axis a (half the long diameter of the ellipse). We will prove this in the elliptical-orbits chapter using energy and angular momentum. For now, treat it as the general form:
T² = 4π² a³ / (G M)
Checking the third law with data
The script below uses the Sun's GM value of 1.32712e20 m³/s², which is known more precisely than G and M separately. It computes T²/a³ for four planets and compares each with the predicted constant 4π²/GM.
import math
GM_SUN = 1.32712e20 # m^3 / s^2
DAY = 86400.0
# (name, semi-major axis in m, period in days)
planets = [
("Mercury", 5.791e10, 87.97),
("Earth", 1.496e11, 365.25),
("Mars", 2.279e11, 686.98),
("Jupiter", 7.785e11, 4332.6),
]
predicted = 4 * math.pi**2 / GM_SUN
print(f"predicted 4*pi^2/GM: {predicted:.4e} s^2/m^3")
for name, a, days in planets:
T = days * DAY
ratio = T**2 / a**3
print(f"{name:8s} T^2/a^3 = {ratio:.4e} ({ratio / predicted:.4f} of predicted)")Every ratio should land within a fraction of a percent of 1.000 relative to the prediction. The small differences come from rounded input values and from the fact that the planets pull on each other and on the Sun.
The mass correction: why "M" is slightly wrong
The derivation above treats the Sun as fixed. In reality the Sun and planet orbit their common center of mass. A full two-body treatment replaces M with M + m:
T² = 4π² a³ / (G (M + m))
For Earth and the Sun, m/M is about 3 × 10⁻⁶, so the correction is invisible. For Jupiter it is about 0.1%. For a binary star with comparable masses, or for the Earth-Moon system, it matters. Using Kepler's third law with the Sun's mass alone is a very good approximation for planets but is not exact. Astronomers use the corrected form to measure the combined mass of binary stars from their period and separation.
The Moon check from the topic's earlier example shows the same law in action:
import math
G = 6.674e-11
M_EARTH = 5.972e24
A_MOON = 3.844e8 # m, mean Earth-Moon distance
# Kepler's third law with Newton's constant: T^2 = 4 pi^2 a^3 / (G M)
period = 2 * math.pi * math.sqrt(A_MOON**3 / (G * M_EARTH))
print(f"{period / 86400:.1f} days")This prints about 27 days, close to the Moon's observed sidereal period of 27.3 days. The small gap is mostly the neglected Moon mass and the Sun's pull.
First law: why ellipses
Deriving the ellipse takes more work. The standard route solves the orbit equation for the shape r(θ) using conserved angular momentum, and the result for a 1/r² force is
r(θ) = p / (1 + e cos θ)
with p set by angular momentum and e by energy. This is the equation of a conic section (a curve you get by slicing a cone) with the central body at one focus. When e is between 0 and 1 the curve is an ellipse. The next chapter works through this in detail.
Two facts are worth knowing now.
- The inverse-square law is special. Bertrand's theorem says that only the 1/r² force and the linear spring force F proportional to r give closed orbits for every bound starting condition. Most other force laws make orbits precess, tracing a rosette instead of retracing one ellipse.
- Kepler's ellipses are approximate in practice. The other planets perturb each orbit, and general relativity adds a small extra precession to Mercury's perihelion.
How the pieces fit together
Common mistakes
- Using altitude instead of distance from the center. In T² = 4π²a³/GM, a is measured from the center of the central body. For a satellite, add Earth's radius to its altitude.
- Mixing units. The ratio T²/a³ has the same value for all planets only in a single unit system. In years and astronomical units around the Sun it equals 1 exactly. In SI units it equals 4π²/GM.
- Applying the Sun's constant to moons. Each central body has its own constant. Jupiter's moons obey T²/a³ = 4π²/(GM_Jupiter), a different number.
- Thinking the second law means constant speed. The swept area rate is constant. The speed varies along an elliptical orbit.
- Using the planet's mass in the period formula. The period is independent of the orbiting body's mass, apart from the small M + m correction.
Exercises
Exercise
An asteroid orbits the Sun with a semi-major axis of 4 AU. Using Kepler's third law in units of years and AU, what is its period?
Show answer
In these units T² = a³ for the Sun. So T² = 4³ = 64 and T = 8 years.
Exercise
A comet is 0.6 AU from the Sun at perihelion, moving at 50 km/s. At aphelion it is 30 AU from the Sun. What is its speed there? Which law do you use, and what must be true about the force?
Show answer
At perihelion and aphelion the velocity is perpendicular to the radius, so conservation of angular momentum gives rp vp = ra va. Then v_a = 50 km/s × 0.6 / 30 = 1.0 km/s. This uses the second law, which follows because gravity is a central force and exerts no torque about the Sun.
Exercise
A satellite orbits Earth at an altitude of 35,786 km. Use T² = 4π²a³/(GM) with GM = 3.986e14 m³/s² and Earth's radius of 6.371e6 m to find its period in hours. What kind of orbit is this?
Show answer
a = 6.371e6 + 3.5786e7 = 4.2157e7 m. T = 2π sqrt(a³/GM) = 2π sqrt(7.4915e22 / 3.986e14) ≈ 2π × 1.371e4 s ≈ 8.61e4 s, which is about 23.9 hours. This matches Earth's rotation period (one sidereal day), so it is a geostationary orbit when placed over the equator.