Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2008/ib/paper-1/14d/solution

For variations with , integration by parts gives . Since this vanishes for every such variation, the Euler-Lagrange equation is
When is independent of , it has the first integral .
For a ray represented as a graph traversed with increasing , the travel time is , with . By Fermat principle, use . The first integral becomes
The sign of is constant, and makes it positive. Write with and solve to obtain
A finite slope requires in the interior; a limiting vertical tangent is possible at an endpoint.
For and , positive speed on the whole interval and select and . The slope is . Integrating backwards from gives
so , with the branch . The endpoint integral is finite despite the vertical tangent. The specified value fits the first endpoint precisely when ; for other endpoint data the preceding integral determines a different .

New to topics? Read the docs here!