The equations of motion for a ray in a Snell's law medium with a varying index of refraction are derived. A stratified medium is considered. Explicit expressions are given for the velocity and acceleration components of the ray. These are derived directly from Snell's law. It is further shown that the propagation of a ray can be modeled in terms of Newtonian-like equations of motion and that momentum is conserved along the interface. It is shown that Snell's law follows from this conservation law. Properties of the motion are studied and an example is given.

We obtain equations of motion for rays in a Snell's law medium with a variable index of refraction. Our main results are the explicit equations for ray velocity and acceleration as functions of time, explicitly given by Eqs. (11), (12) and rederived in (20), (21), (23), (26). The velocity equation for the horizontal direction has been previously given by Watson.1 In this letter, we consider a stratified medium where the index of refraction is a function of position in the stratification direction. There are a number of ways that our equations can be derived and originally our derivation followed directly from Snell's law. This is presented in Sec. 3. However, after deriving the equations, we realized that they can be cast as Newtonian-like equations of motion but with a variable mass. This is presented in Sec. 2.

Before proceeding, we briefly mention some historical points pertaining to rays and Snell's law. In arguing for the particle theory of light, Newton showed that he could obtain Snell's law by assuming that light consists of particles.2 Of course, subsequently it was accepted that light is a wave, and Maxwell's equations lead to Snell's law when light passes form one medium to another with a different index of refraction. Similar considerations apply to acoustic wave propagation. Currently wave propagation in materials with variable index of refraction has become of importance in many fields including sound propagation in the ocean and metamaterials.3 Perhaps the first to study propagation with variable index of refraction was Rayleigh, who addressed the propagation of light in the atmosphere.4 Of particular relevance to our considerations are references.1,5–8 Traditionally, ray paths have been obtained by applying Fermat's principle of least time. Our method allows the explicit calculation of the velocity, acceleration and position of a ray as a function of time.

We consider a stratified medium where stratification is in the z direction (with positive pointing down) and the range is signified by x (with positive pointing to the right). Units are normalized appropriately. For the speed we use c(z) and for its derivative with respect to z we use c′(z). For this case, we take the forces to be

(1)

and we take the mass to be speed dependent

(2)

We derive the equations of motion in a number of ways and subsequently, in Sec. 6, we show that they lead to Snell's law. For variable mass, the equations motion have to be written in terms of momentum.9,10 In particular for the x and z directions, we have

(3)
(4)

where (px, pz), (vx, vz), and (Fx, Fz) are the momenta, velocities, and forces in the corresponding directions. Consider first the equation of motion in the x direction for the mass and forces as given by Eqs. (1) and (2),

(5)

Therefore, the equation of motion for the horizontal direction is

(6)

For the z direction we have, from Eqs. (1), (2), and (4),

(7)

which leads to

(8)

Equations (6) and (8) are the equations of motion. Equation (5) shows that momentum in the x direction is conserved and is a constant of the motion since

(9)

For emphasis we call this constant of the motion η,

(10)

We note that the equations of motion, Eqs. (6) and (8), may then be written, respectively,

(11)

From the equations of motion, Eqs. (11), one can verify that

(12)

In Sec. 5, we discuss the properties of the motion and prove that 14η2c2(z) never becomes imaginary.

We now show that the equations of motion, Eqs. (11) and (12), follow directly from Snell's law. Snell's law as usually written,

(13)

is equivalent to

(14)

for a stratified medium. The velocities in the x and z direction vx and vz are generally

(15)

From Eqs. (14) and (15), we have that

(16)

as defined in Eq. (10).

Using

(17)

it follows that

(18)

which upon substitution in Eq. (15) become

(19)

and hence,

(20)
(21)

which are our velocity equations, Eqs. (12), but here derived directly from Snell's law. The accelerations, Eqs. (11), are obtained by differentiating.

Alternatively, we now show that one can obtain the equations of motion from the Snell's law constraint η, as given by Eq. (16). Differentiating Eq. (16) we have

(22)

and hence,

(23)

which is the acceleration equation in the horizontal direction [Eq. (6)]. Rewriting η as

(24)

differentiation gives

(25)

which leads to the acceleration equation in the vertical direction [Eq. (8)],

(26)

Lagrange's equation involves positions and velocities; however, the standard forms of Lagrange's equations have to be modified when we have a variable mass. This has been done in many fields, and in particular, we use the formulation given in references.11–14 For a two dimensional case with position dependent mass, Lagrange's equations are

(27)
(28)

The Lagrangian is the kinetic energy minus the potential energy,

(29)

where φ(x, z) and T are the potential and kinetic energy, respectively. We point out that if the mass and potential φ(x, z) are only functions of position we also have

(30)
(31)

which are the equations given in Refs. 11 and 12. We apply these equations to our case where the mass is a function of position and where the potential is

(32)

This potential yields the forces in Eqs. (1). The Lagrangian is then

(33)

We can see from Eq. (2) that the mass varies with position as

(34)

which shows that the right hand side of Eq. (30) is zero. Furthermore,

(35)

which shows that the right hand side of Eq. (31) is also zero. Therefore, Lagrange's equations, Eqs. (30) and (31), become

(36)

These equations now lead to the equations of motion as given by Eqs. (6), (8), and the constraint Eq. (10).

The Hamiltonian formulation involves positions and canonical momenta. As with the Lagrangian formulation, Hamilton's equations have to be modified to take variable mass into account. For the general two dimensional case with position-dependent mass, Hamilton's equations become

(37)
(38)

where px and pz are the canonical momenta and are given by pi = (/vi)L. For our case, the canonical momenta are

(39)

and hence, the Hamiltonian is

(40)

with the same potential [Eq. (32)] used for our Lagrangian. We now derive the equations of motion. From the first pair of Hamilton's equations [Eqs. (37)], we obtain

(41)

and from the second pair of the modified Hamilton's equations [Eqs. (38)], we obtain

(42)
(43)

Using Eqs. (32) and (34), these lead straightforwardly to

(44)

which lead to the equations of motion as given by Eqs. (6), (8), and (10).

From Eqs. (12) we see that the sign of dx/dt is constant and given by the sign of the constant of the motion η, which is obtained from the initial conditions, η = vx(z0)/2c2(z0). Hence the particle always moves to the right or to the left depending on the sign of η. We point out that the equation for dx/dt in Eqs. (12) has been previously given in Ref. 1.

Notice that for the dz/dt equation in Eqs. (12) one would run into difficulty if the square root became imaginary. We now show that indeed it will never become imaginary. For convenience, we define Δ(z) = 1 − 4η2c2(z) and define the point z* where Δ(z*) = 0. At z*, we have that 4η2c2(z*) = 1 and from Eq. (12) we have that dz/dt|z=z* = 0, yielding d/dtΔ|z=z* = 0. Hence, we have to look at the second derivative of z at z = z*. We obtain

(45)

which shows that if Δ(z) = 0 at a point, then it must increase at that point and hence can never go negative.

We obtain the equation for the path in the usual way, wherein one eliminates time to obtain a relationship between x and z.9,10 We have dz/dx=(dz/dt)(dt/dx) and using Eqs. (12) we obtain

(46)

Using Eq. (40) and taking into account variable mass we obtain

(47)

Equation (47) is general. For our case, we have

(48)

and substituting into Eq. (47), we obtain

(49)

where Fzvz can be interpreted as the power. This shows that energy is not conserved although it may be conserved over a time interval.

We now show that Snell's law follows from conservation of momentum in the horizontal direction. Consider the usual horizontal two-medium situation with respective velocities c1 and c2. As we have shown, momentum in the horizontal direction is conserved and hence for the two medium case we have px(1) = px(2), where px(1) and px(2) are the horizontal components of the momenta in media 1 and 2, respectively. Using Eqs. (2) and (39), we have

(50)

But because we are considering a horizontally stratified medium where the speed is only a function of z we have that

(51)

where the angle θ is measured from the horizontal. Hence, from Eq. (50),

(52)

giving

(53)

which is Snell's law for angles θ measured from the horizontal.

As usual with mechanics problems, the formulation that is used depends on the circumstances of the particular problem. We have found that the use of the velocity equations [Eqs. (12)] is the simplest from an analytic point of view. In Eqs. (12), η is obtained from the initial conditions, η=vx(z0)/2c2(z0). The general approach is to first solve the dz/dt equation in Eq. (12),

(54)

This gives z(t) which is then substituted into the dx/dt equation

(55)

to give

(56)

As an example consider the case where speed is a linear function of depth, c(z) = a + bz. The velocity equations are then

(57)
(58)

These equations can be solved exactly, and we give here only the final result,

(59)

and

(60)

where β is a constant determined by the initial conditions

(61)

We note that it follows that

(62)

This is a useful relation in manipulating the above equations. For the energy and its rate of change, one obtains

(63)
(64)

We have presented equations of motion for the velocity and acceleration of a ray in a medium with variable index of refraction. One can use these equations to not only calculate the ray path, which could alternatively be calculated by other means, such as the Bellhop algorithm15 and Fermat's principle, but also to obtain other information of interest. For example, one could obtain the response of a time-varying source as a function of delay time along the ray path. We have shown that Snell's law follows from conservation of momentum in the direction parallel to the interface, which is contrary to the usual historical particle view derivation of Snell's law.2 Although we have considered the important case of a horizontally stratified medium, the general case is important, that is, a medium described by an arbitrary speed c = c(x, y, z). We note that the forces given in Eqs. (1) do not suggest any possible symmetry between the x and z directions which would be required for such a case. However, in our equations for the Lagrangian and Hamiltonian, there is an indication of such a symmetry. One possibility is to take the mass and potential to be a functions of x,y and z, m(x,y,z) = 1/[2c2(x,y,z)] and φ(x,y,z)=(1/2)lnc(x,y,z). This suggests that our Lagrangian and Hamiltonian formulations might be appropriate for describing a general medium. These issues are currently being studied.

Work supported by the Office of Naval Research.

1.
A. G. D.
Watson
, “
Model sound channel with sinusoidal rays
,”
J. Acoust. Soc. Am.
40
,
1202
(
1966
).
2.
R.
Baierlein
,
Newton to Einstein: The Trail of Light
(
Cambridge University Press
,
Cambridge, UK
,
1992
).
3.
A. B.
Shvartsburg
and
A. A.
Maradudin
,
Waves in Gradient Metamaterials
(
World Scientific
,
Singapore
,
2013
).
4.
J. W. S.
Rayleigh
, “
On reflection of vibrations at the confines of two media between which the transition is gradual
,”
Proc. London Math. Soc.
11
,
51
56
(
1880
).
5.
M. A.
Pedersen
, “
Ray theory applied to wide class of velocity functions
,”
J. Acoust. Soc. Am.
43
,
619
634
(
1968
).
6.
M. A.
Pedersen
,
D.
White
, and
D. W.
Johnson
, “
Generalized expansions of ray theory in terms of phase velocity
,”
J. Acoust. Soc. Am.
58
,
78
96
(
1975
).
7.
H.
Weinberg
, “
Application of ray theory to acoustic propagation in horizontally stratified ocean
,”
J. Acoust. Soc. Am.
58
,
97
109
(
1975
).
8.
K.
Stewart
, “
Ray acoustical model of the ocean using a depth/sound-speed. Profile with a continuous first derivative
,”
J. Acoust. Soc. Am.
38
,
339
347
(
1965
).
9.
H.
Goldstein
,
Classical Mechanics
(
Addison-Wesley
,
Boston, MA
,
1950
).
10.
L. D.
Landau
and
E. M.
Lifshitz
,
Mechanics
(
Pergamon Press
,
Oxford, UK
,
1960
).
11.
C. P.
Pesce
, “
The application of Lagrange equations to mechanical systems with mass explicitly dependent on position
,”
J. Appl. Mech.
70
,
751
756
(
2003
).
12.
C. P.
Pesce
,
E. A.
Tannuri
, and
L.
Casetta
, “
The Lagrange equations for systems with mass varying explicitly with position: Some applications to offshore engineering
,”
J. Braz. Soc. Mech. Sci. Eng.
28
,
496
504
(
2006
).
13.
L.
Cveticanin
and
I.
Kovacic
, “
On the dynamics of bodies with continual mass variation
,”
J. Appl. Mech.
74
,
810
815
(
2007
).
14.
L.
Cveticanin
, “
Conservation laws in systems with variable mass
,”
J. Appl. Mech.
60
,
954
958
(
1993
).
15.
M. B.
Porter
and
Y.
Liu
, “Finite element ray tracing,” in
Theoretical and Computational Acoustics Vol 2
, edited by
D.
Lee
and
M. H.
Schultz
(
World Scientific Publishing
,
Singapore
,
1994
), pp.
947
956
.