Solution

ID: past-exam-of-the-mathematics-course-of-the-year-2-of-the-natural-sciences-course-of-the-university-of-cambridge/2019/paper-1/9/c/solution

The original PDF places both endpoints at height ; the vertically stacked fraction can be misread in extracted text. The coefficient in the index is , multiplying .
For the optical-length integrand , the Beltrami identity applies because there is no explicit dependence. It gives
where is constant. Therefore . The full Euler-Lagrange equation is , and combining these gives . This also excludes a constant curve, which would satisfy the squared first integral but not the full variational equation. Integration yields
Equal endpoint heights at require . The height condition then becomes , or . Its two positive roots are and . Hence the two possible stationary rays are
Both stay in , have the required endpoints and satisfy the variational equation. These are the two optical rays in a square-root refractive-index profile. Fermat stationarity supplies two rays; it does not assert that both globally minimize travel time.
Figure 1.
The two stationary optical rays from Fermat principle in a medium with refractive index
. Details.

New to topics? Read the docs here!