6 CHAPTER 1. INTRODUCTION TO THE CALCULUS OF VARIATIONS
second-order derivative in Eq. (1.6) to first-order derivative in Eq. (1.8): y
00
(x) → y
0
(x)on
the solution y(x).
Euler’s Second Equation has, thus, produced an equation of the form G(y,y
0
; x)=0,
which can normally be integrated by quadrature. Here, Eq. (1.8) can be integrated by
quadrature to give the integral solution
x(y)=
Z
y
0
αdη
q
[n(η)]
2
− α
2
, (1.9)
subject to the condition x(y = 0) = 0. From the explicit dependence of the index of
refraction n(y), one may be able to perform the integration in Eq. (1.9) to obtain x(y) and,
thus, obtain an explicit solution y(x) by inverting x(y).
For example, let us consider the path associated with the index of refraction n(y)=H/y,
where the height H is a constant and 0 <y<Hα
−1
to ensure that, according to Eq. (1.8),
n(y) >α. The integral (1.9) can then be easily integrated to yield
x(y)=
Z
y
0
αηdη
q
H
2
− ( αη)
2
= Hα
−1
1 −
s
1 −
αy
H
2
.
Hence, the light path simply forms a semi-circle of radius R = α
−1
H centered at (x, y)=
(R, 0):
(R − x)
2
+ y
2
= R
2
→ y(x)=
q
x (2R − x).
The light path is indeed concave downward since n
0
(y) < 0.
Returning to Eq. (1.8), we note that it states that as a light ray enters a region of
increased (decreased) refractive index, the slope of its path also increases (decreases). In
particular, by substituting Eq. (1.6) into Eq. (1.8), we find
α
2
y
00
=
1
2
dn
2
(y)
dy
,
and, hence, the path of a light ray is concave upward (downward) where n
0
(y) is positive
(negative), as previously discussed.
1.1.3 Snell’s Law
Let us now consider a light ray travelling in two dimensions from (x, y)=(0, 0) at an angle
φ
0
(measured from the x-axis) so that y
0
(0) = tan φ
0
is the slop e at x = 0, assuming that
y(0) = 0. The constant α is then simply determined from initial conditions as
α = n
0
cos φ
0
,