= Solution
For an integrand $I(y,y')$ with no explicit $x$ dependence, the <Euler-Lagrange equation> is $I_y-d(I_{y'})/dx=0$. Differentiate the proposed first integral:
$$
\frac d{dx}(I-y'I_{y'})=I_yy'+I_{y'}y''-y''I_{y'}-y'\frac d{dx}I_{y'}
=y'\left(I_y-\frac d{dx}I_{y'}\right)=0.
$$
Thus \b[$I-y'I_{y'}$ is constant along an extremal], the <Beltrami identity>.
For the optical path the <Fermat principle> uses the travel-time integrand $I=e^{-\lambda y}\sqrt{1+y'^2}$, in the stated speed units. Its first integral is
$$
\frac{e^{-\lambda y}}{\sqrt{1+y'^2}}=k>0,\qquad
y'^2=k^{-2}e^{-2\lambda y}-1.
$$
Set $u=ke^{\lambda y}$. Then $u'^2=\lambda^2(1-u^2)$, and integration gives $u=\cos[\lambda(x-x_0)]$ on a positive arch. The symmetric endpoint conditions require $x_0=0$ and $k=\cos\lambda a$. For $\lambda>0$ and $0<\lambda a<\pi/2$, the resulting <ray in an exponential-speed medium> is
$$
\boxed{y(x)=\frac1\lambda\log\left(\frac{\cos\lambda x}{\cos\lambda a}\right).}
$$
It is above zero inside the endpoints. Substitution also verifies the Euler-Lagrange equation $y''=-\lambda(1+y'^2)$, so the first-integral construction does not accidentally select a spurious constant-height path.
\Image[/past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2004/ib/paper-3-exponential-ray.png]
{title=Stationary light rays in an exponential-speed medium, including a near-critical arch}
Here $y'=-\tan\lambda x$. For $\lambda a$ close to $\pi/2$, the endpoint slopes are steep and the central height $-\lambda^{-1}\log\cos\lambda a$ is large. The travel time evaluates directly to
$$
\boxed{\mathcal T=\int_{-a}^a e^{-\lambda y}\sqrt{1+y'^2}\,dx
=\cos\lambda a\int_{-a}^a\sec^2\lambda x\,dx
=\frac2\lambda\sin\lambda a.}
$$
It tends to $2/\lambda$ as the arch height diverges. Positive $\lambda$ is the increasing-speed interpretation needed for a ray arching into $y>0$; for $\lambda<0$ the same algebraic expression bends below that region and is not an admissible interior path. At zero $\lambda$ the limiting straight boundary path has travel time $2a$.
Back to article page