Solution

ID: past-exam-of-the-mathematics-course-of-the-year-1-of-the-natural-sciences-course-of-the-university-of-cambridge/2023/paper-1/20/b/i/solution

The angles in the PDF are measured from the vertical normal to the interface. The horizontal displacements of the two path segments are and , while their lengths are and . Thus the geometric constraint and travel time are
The Lagrange multiplier equations give
Cancelling the positive geometric factors gives , hence
This is Snell's law, . The relation depends only on the ratio of the two speeds, so changing leaves the relation unchanged; it changes which angles satisfy it together with the geometric constraint.
For a minimum check, let be the horizontal distance to the crossing point. Then
and
Thus the travel time is a strictly convex function of , and its stationary point is the unique global minimum. For positive , , placing the crossing between the two endpoint projections.

New to topics? Read the docs here!