Sub topic 3
Angular momentum and central forces
This chapter assumes you know Newton's laws, uniform circular motion, vector cross products, and basic Python.
Angular momentum and central forces
A central force points along the line joining two bodies. Gravity is central. For a body of mass m at position r moving with velocity v, angular momentum is L = m r × v. Its magnitude is L = m r v⊥, where v⊥ is the velocity component perpendicular to r. A central force produces no torque about the center, so L stays constant.
Kepler's three laws from Newton's gravity
Constant L gives Kepler's second law: the radius sweeps out equal areas in equal times, with dA/dt = L/(2m). The first law (orbits are conic sections) follows from solving the inverse-square equation. The third law follows from T² = 4π²a³/(GM), where a is the semi-major axis.
Elliptical orbits and conic sections
Orbits follow r = p / (1 + e cos θ), where e is the eccentricity. An orbit with e = 0 is a circle, 0 < e < 1 is an ellipse, e = 1 is a parabola, and e > 1 is a hyperbola. Total energy E = v²/2 − GM/r sets the type: E < 0 means bound, and E ≥ 0 means unbound.
Two bodies orbiting a common center of mass
Both bodies orbit the barycenter. With r = r2 − r1 and M = m1 + m2, the body positions are r1 = −(m2/M) r and r2 = (m1/M) r. The relative orbit obeys the one-body equation with μ = G(m1 + m2).
Simulating an orbit step by step
This leapfrog integrator advances the orbit in small time steps and checks that the radius and energy stay nearly constant.
import math
GM = 3.986004e14 # Earth's G*M in m^3/s^2
def accel(x, y):
r3 = (x * x + y * y) ** 1.5
return -GM * x / r3, -GM * y / r3
def energy(x, y, vx, vy):
return 0.5 * (vx * vx + vy * vy) - GM / math.hypot(x, y)
r0 = 6.771e6
x, y = r0, 0.0
vx, vy = 0.0, math.sqrt(GM / r0)
dt = 5.0
ax, ay = accel(x, y)
e0 = energy(x, y, vx, vy)
for _ in range(1200):
vx += 0.5 * dt * ax
vy += 0.5 * dt * ay
x += dt * vx
y += dt * vy
ax, ay = accel(x, y)
vx += 0.5 * dt * ax
vy += 0.5 * dt * ay
e1 = energy(x, y, vx, vy)
print(f"radius change: {math.hypot(x, y) - r0:.1f} m")
print(f"relative energy drift: {abs((e1 - e0) / e0):.2e}")Where Newtonian gravity falls short
Newtonian gravity is an approximation. It is inaccurate in strong gravity, such as near black holes and neutron stars, and at speeds near the speed of light. It also predicts Mercury's orbit incorrectly: the perihelion advances about 43 arcseconds per century beyond the Newtonian prediction. General relativity explains this.
Exercise
Exercise
A body has angular momentum L and mass m. If its distance from the center doubles while L stays constant, how does its perpendicular speed change?
Show answer
Since L = m r v⊥, doubling r halves v⊥.