Mechanical Energy Conservation (Vis-Viva Equation)
As the planet moves from perihelion to aphelion, kinetic energy exchanges with gravitational potential energy while total mechanical energy $E/m = -\frac{GM}{2a}$ remains invariant.
Verify Kepler's three laws of planetary motion with symplectic Velocity Verlet orbital integration, live equal-area sector sweeps, and harmonic $T^2 \propto a^3$ scaling.
As the planet moves from perihelion to aphelion, kinetic energy exchanges with gravitational potential energy while total mechanical energy $E/m = -\frac{GM}{2a}$ remains invariant.
Every planet moves in an ellipse with the Sun at one of the two foci. The sum of the focal distances to any point on the orbit is constant: $r_1 + r_2 = 2a$. The closest approach is perihelion $r_p = a(1-e)$ and the furthest distance is aphelion $r_a = a(1+e)$.
The line joining a planet to the Sun sweeps out equal areas in equal intervals of time: $\frac{dA}{dt} = \frac{L}{2m} = \text{constant}$. This is a direct physical consequence of the conservation of angular momentum under a purely central radial gravitational force ($\vec{\tau} = \vec{r} \times \vec{F}_g = 0$).
The square of the orbital period $T$ is directly proportional to the cube of the semi-major axis $a$: $T^2 = \left(\frac{4\pi^2}{GM}\right) a^3$. The ratio $\frac{T^2}{a^3}$ is identical for all bodies orbiting the same central mass, and is strictly independent of eccentricity $e$.
Question: If Halley's comet has a highly eccentric orbit ($e \approx 0.967$) while Earth has a nearly circular orbit ($e \approx 0.017$), what is the ratio of their orbital speeds at perihelion vs aphelion?
Predict: Express $\frac{v_p}{v_a}$ in terms of $e$ using angular momentum conservation.
Observe & Explain: In Mode 2, use Auto-Pair to confirm: $\frac{v_p}{v_a} = \frac{r_a}{r_p} = \frac{1+e}{1-e}$. For Earth, $v_p/v_a \approx 1.03$ (only 3% variation); for Halley's Comet, $v_p/v_a \approx 60$ (the comet moves 60 times faster at perihelion than at aphelion!).
Notice a bug, conceptual nuance, or have an idea to improve this simulation? Your feedback is warmly welcomed.