Write down the Euler-Lagrange equation for the variational problem for y(x) that extremizes the integral I defined as
I=∫x1x2f(x,y,y′)dx
with boundary conditions y(x1)=y1,y(x2)=y2, where y1 and y2 are positive constants such that y2>y1, with x2>x1. Find a first integral of the equation when f is independent of y, i.e. f=f(x,y′).
A light ray moves in the (x,y) plane from (x1,y1) to (x2,y2) with speed c(x) taking a time T. Show that the equation of the path that makes T an extremum satisfies
dxdy=k2−c2(x)c(x)
where k is a constant and write down an integral relating k,x1,x2,y1 and y2.
When c(x)=ax where a is a constant and k=ax2, show that the path is given by