At the encounter radius , the planet's circular Kepler orbit has speed
The comet's speed follows from the vis-viva equation:
Its component parallel to the planet's prograde tangential velocity is fixed by its specific angular momentum,
The relative velocity therefore satisfies
and hence
Let be the specific angular momentum. The radial Kepler orbit equation has semi-latus rectum , so comparison with
gives for an elliptic orbit and for a hyperbolic Kepler orbit. At either apsis, and . Substituting the apsidal radius and angular momentum into part (i), or equivalently using the vis-viva equation, gives
Thus the signs are in the convention of the question.
The limiting trajectory grazes the planet at periapsis . Equating the asymptotic and periapsis values of specific angular momentum and using the vis-viva equation gives
Hence the comet avoids the planet when
Vis-viva equation 2026-09-28
For a Kepler orbit with semi-major axis , the vis-viva equation is
For the convention that a hyperbolic Kepler orbit has positive semi-major-axis magnitude , its final term instead has a plus sign.