# Light ray equation: derivation?

1. Aug 15, 2006

### mvvdsteen

For a course in Experimental Aerdynamics I have to study a section on Optical Measurement Techniques. My oral exam is coming up and there is this little thing I don't understand. It annoys me expremely. It is the ray equation. It is about light ray path in a medium with changing refractive index. I will copy what's in the lecture notes, and maybe someone will know the derivation of this formulae.

$$\vec{e}_r$$: vector towards centre of curvature
$$\vec{e}_s$$: vector in path direction

Deflection (1):
$$n \frac{\partial \vec{e}_s}{\partial s} = \frac{\partial n}{\partial r} \vec{e}_r$$

Acceleration (2):
$$\frac{\partial n}{\partial s} \vec{e}_s$$

Combining (adding (2) to both sides of (1))

$$\frac {\partial (n \cdot \vec{e}_s)}{\partial s}=\frac{\partial}{\partial s} (n \cdot \frac{\partial \vec{x}}{\partial s})=\nabla n$$

with $$\vec{x}=[x,y,z]^T$$

Can somebody help me out by giving the derivation or a link to a page that contains it?

Kind regards,

Maciej

PS: So you can't let the tex automatically span more lines?

Last edited: Aug 15, 2006
2. Aug 16, 2006

### mvvdsteen

3. Aug 16, 2006

### Physics Monkey

Hi mvvdsteen,

You can easily obtain this equation from the standard variational principle for light. This principle, called Fermat's principle, states that light will take the path which extremizes the time of flight.

Ok, so how does it work out? The time of flight is given by the integral $$T = \int \frac{ds}{v} ,$$ where $$ds$$ is the infinitesimal arc length and $$v$$ is the speed of light. You know that the speed of light in a medium of refractive index $$n$$ is just $$v = c/n$$, so you rewrite the time of flight as $$T = \frac{1}{c} \int n(\vec{x}(s)) ds,$$ where I have indicated the dependence on arc length $$s$$. Following the usual variational approach, we try to find which path extremizes this quantity. Consider varying the path of the light ray from $$\vec{x}(s)$$ to $$\vec{x}(s) + \delta \vec{x}(s)$$ with end points fixed. The first order variation in the time of flight is given by $$\delta T = \frac{1}{c} \int $\delta n ds + n \delta ds$,$$ and note that it is important to remember that the infinitesimal arc length changes too! We can easily calculate the first term as $$\delta n = \nabla n \cdot \delta \vec{x}.$$ The variation of arc length is also easy to calculate: $$\delta ds = \sqrt{(d\vec{x} + d \delta \vec{x})^2} - \sqrt{(d\vec{x})^2} = ds \frac{d\vec{x}}{ds} \cdot \frac{d \delta \vec{x}}{ds},$$ where I have kept only first order terms in $$\delta \vec{x}$$. We can now write the variation of T as $$\delta T = \frac{1}{c} \int [ \nabla n \cdot \delta \vec{x} + n \frac{d\vec{x}}{ds} \cdot \frac{d \delta \vec{x}}{ds} ] ds = \frac{1}{c} \int [ \nabla n - \frac{d}{ds}\left(n \frac{d\vec{x}}{ds}\right) ]\cdot \delta \vec{x} ds.$$ The last equality there follows from an integration by parts and the fact that $$\delta \vec{x}$$ vanishes at the end points. The extremal path has $$\delta T = 0$$ for arbitrary variations $$\delta \vec{x}$$. This implies that the extremal path satisfies $$\nabla n - \frac{d}{ds}\left(n \frac{d\vec{x}}{ds}\right) = 0,$$ which is the desired equation.

If you haven't seen it before, the variational approach is extremely powerful and elegant. I like it a lot. Hope this helps.

Last edited: Aug 16, 2006