Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2021/iii/paper-316/1/vi/solution

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

New to topics? Read the docs here!