Hamiltonian optics

From testwiki
Revision as of 19:04, 23 October 2024 by imported>Johnjbarton (Also Hamilton's optico-mechanical analogy)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hamiltonian optics[1] and Lagrangian optics[2] are two formulations of geometrical optics which share much of the mathematical formalism with Hamiltonian mechanics and Lagrangian mechanics.

Hamilton's principle

Template:Main

In physics, Hamilton's principle states that the evolution of a system (q1(σ),,qN(σ)) described by N generalized coordinates between two specified states at two specified parameters σA and σB is a stationary point (a point where the variation is zero) of the action functional, or δS=δσAσBL(q1,,qN,q˙1,,q˙N,σ)dσ=0 where q˙k=dqk/dσ and L is the Lagrangian. Condition δS=0 is valid if and only if the Euler-Lagrange equations are satisfied, i.e., LqkddσLq˙k=0 with k=1,,N.

The momentum is defined as pk=Lq˙k and the Euler–Lagrange equations can then be rewritten as p˙k=Lqk where p˙k=dpk/dσ.

A different approach to solving this problem consists in defining a Hamiltonian (taking a Legendre transform of the Lagrangian) as H=kq˙kpkL for which a new set of differential equations can be derived by looking at how the total differential of the Lagrangian depends on parameter σ, positions qi and their derivatives q˙i relative to σ. This derivation is the same as in Hamiltonian mechanics, only with time t now replaced by a general parameter σ. Those differential equations are the Hamilton's equations Hqk=p˙k,Hpk=q˙k,Hσ=Lσ. with k=1,,N. Hamilton's equations are first-order differential equations, while Euler-Lagrange's equations are second-order.

Lagrangian optics

The general results presented above for Hamilton's principle can be applied to optics.[3][4] In 3D euclidean space the generalized coordinates are now the coordinates of euclidean space.

Fermat's principle

Template:Main

Fermat's principle states that the optical length of the path followed by light between two fixed points, A and B, is a stationary point. It may be a maximum, a minimum, constant or an inflection point. In general, as light travels, it moves in a medium of variable refractive index which is a scalar field of position in space, that is, n=n(x1,x2,x3) in 3D euclidean space. Assuming now that light travels along the x3 axis, the path of a light ray may be parametrized as s=(x1(x3),x2(x3),x3) starting at a point 𝐀=(x1(x3A),x2(x3A),x3A) and ending at a point 𝐁=(x1(x3B),x2(x3B),x3B). In this case, when compared to Hamilton's principle above, coordinates x1 and x2 take the role of the generalized coordinates qk while x3 takes the role of parameter σ, that is, parameter σ =x3 and N=2.

In the context of calculus of variations this can be written as[2] δS=δ𝐀𝐁nds=δx3Ax3Bndsdx3dx3=δx3Ax3BL(x1,x2,x˙1,x˙2,x3)dx3=0 where Template:Math is an infinitesimal displacement along the ray given by ds=dx12+dx22+dx32 and L=ndsdx3=n(x1,x2,x3)1+x˙12+x˙22 is the optical Lagrangian and x˙k=dxk/dx3.

The optical path length (OPL) is defined as S=𝐀𝐁nds=𝐀𝐁Ldx3 where n is the local refractive index as a function of position along the path between points A and B.

The Euler-Lagrange equations

The general results presented above for Hamilton's principle can be applied to optics using the Lagrangian defined in Fermat's principle. The Euler-Lagrange equations with parameter σ =x3 and N=2 applied to Fermat's principle result in Lxkddx3Lx˙k=0 with Template:Math and where L is the optical Lagrangian and x˙k=dxk/dx3.

Optical momentum

The optical momentum is defined as pk=Lx˙k and from the definition of the optical Lagrangian L=n1+x˙12+x˙22 this expression can be rewritten as pk=nx˙kx˙12+x˙22+x˙32=ndxkdx12+dx22+dx32=ndxkds

Optical momentum

or in vector form 𝐩=n𝐝𝐬ds=(p1,p2,p3)=(ncosα1,ncosα2,ncosα3)=n𝐞^ where 𝐞^ is a unit vector and angles α1, α2 and α3 are the angles p makes to axis x1, x2 and x3 respectively, as shown in figure "optical momentum". Therefore, the optical momentum is a vector of norm 𝐩=p12+p22+p32=n where n is the refractive index at which p is calculated. Vector p points in the direction of propagation of light. If light is propagating in a gradient index optic the path of the light ray is curved and vector p is tangent to the light ray.

The expression for the optical path length can also be written as a function of the optical momentum. Having in consideration that x˙3=dx3/dx3=1 the expression for the optical Lagrangian can be rewritten as L=nx˙12+x˙22+x˙32=x˙1nx˙1x˙12+x˙22+x˙32+x˙2nx˙2x˙12+x˙22+x˙32+nx˙3x˙12+x˙22+x˙32=x˙1p1+x˙2p2+x˙3p3=x˙1p1+x˙2p2+p3 and the expression for the optical path length is S=Ldx3=𝐩d𝐬

Hamilton's equations

Similarly to what happens in Hamiltonian mechanics, also in optics the Hamiltonian is defined by the expression given above for Template:Math corresponding to functions x1(x3) and x2(x3) to be determined H=x˙1p1+x˙2p2L

Comparing this expression with L=x˙1p1+x˙2p2+p3 for the Lagrangian results in H=p3=n2p12p22

And the corresponding Hamilton's equations with parameter σ =x3 and k=1,2 applied to optics are[5][6] Hxk=p˙k,Hpk=x˙k with x˙k=dxk/dx3 and p˙k=dpk/dx3.

Applications

It is assumed that light travels along the x3 axis, in Hamilton's principle above, coordinates x1 and x2 take the role of the generalized coordinates qk while x3 takes the role of parameter σ, that is, parameter σ =x3 and N=2.

Refraction and reflection

Template:Main If plane x1x2 separates two media of refractive index nA below and nB above it, the refractive index is given by a step function n(x3)={nAif x3<0nBif x3>0 and from Hamilton's equations Hxk=xkn(x3)2p12p22=0 and therefore p˙k=0 or pk=Constant for Template:Math.

An incoming light ray has momentum pA before refraction (below plane x1x2) and momentum pB after refraction (above plane x1x2). The light ray makes an angle θA with axis x3 (the normal to the refractive surface) before refraction and an angle θB with axis x3 after refraction. Since the p1 and p2 components of the momentum are constant, only p3 changes from p3A to p3B.

Refraction

Figure "refraction" shows the geometry of this refraction from which d=𝐩AsinθA=𝐩BsinθB. Since 𝐩A=nA and 𝐩B=nB, this last expression can be written as nAsinθA=nBsinθB which is Snell's law of refraction.

In figure "refraction", the normal to the refractive surface points in the direction of axis x3, and also of vector 𝐯=𝐩A𝐩B. A unit normal 𝐧=𝐯/𝐯 to the refractive surface can then be obtained from the momenta of the incoming and outgoing rays by 𝐧=𝐩A𝐩B𝐩A𝐩B=nA𝐢nB𝐫nA𝐢nB𝐫 where i and r are unit vectors in the directions of the incident and refracted rays. Also, the outgoing ray (in the direction of 𝐩B) is contained in the plane defined by the incoming ray (in the direction of 𝐩A) and the normal 𝐧 to the surface.

A similar argument can be used for reflection in deriving the law of specular reflection, only now with nA=nB, resulting in θA=θB. Also, if i and r are unit vectors in the directions of the incident and refracted ray respectively, the corresponding normal to the surface is given by the same expression as for refraction, only with nA=nB 𝐧=𝐢𝐫𝐢𝐫

In vector form, if i is a unit vector pointing in the direction of the incident ray and n is the unit normal to the surface, the direction r of the refracted ray is given by:[3] 𝐫=nAnB𝐢+((𝐢𝐧)nAnB+Δ)𝐧 with Δ=1(nAnB)2(1(𝐢𝐧)2)

If in<0 then −n should be used in the calculations. When Δ<0, light suffers total internal reflection and the expression for the reflected ray is that of reflection: 𝐫=𝐢2(𝐢𝐧)𝐧

Rays and wavefronts

From the definition of optical path length S=Ldx3 Sxk=Lxkdx3=dpkdx3dx3=pk

Rays and wavefronts

with k=1,2 where the Euler-Lagrange equations L/xk=dpk/dx3 with k=1,2 were used. Also, from the last of Hamilton's equations H/x3=L/x3 and from H=p3 above Sx3=Lx3dx3=dp3dx3dx3=p3 combining the equations for the components of momentum p results in 𝐩=S

Since p is a vector tangent to the light rays, surfaces S=Constant must be perpendicular to those light rays. These surfaces are called wavefronts. Figure "rays and wavefronts" illustrates this relationship. Also shown is optical momentum p, tangent to a light ray and perpendicular to the wavefront.

Vector field 𝐩=S is conservative vector field. The gradient theorem can then be applied to the optical path length (as given above) resulting in S=𝐀𝐁𝐩d𝐬=𝐀𝐁Sd𝐬=S(𝐁)S(𝐀) and the optical path length S calculated along a curve C between points A and B is a function of only its end points A and B and not the shape of the curve between them. In particular, if the curve is closed, it starts and ends at the same point, or A=B so that S=Sd𝐬=0

This result may be applied to a closed path ABCDA as in figure "optical path length" S=𝐀𝐁𝐩d𝐬+𝐁𝐂𝐩d𝐬+𝐂𝐃𝐩d𝐬+𝐃𝐀𝐩d𝐬=0

Optical path length

for curve segment AB the optical momentum p is perpendicular to a displacement ds along curve AB, or 𝐩d𝐬=0. The same is true for segment CD. For segment BC the optical momentum p has the same direction as displacement ds and 𝐩d𝐬=nds. For segment DA the optical momentum p has the opposite direction to displacement ds and 𝐩d𝐬=nds. However inverting the direction of the integration so that the integral is taken from A to D, ds inverts direction and 𝐩d𝐬=nds. From these considerations 𝐁𝐂nds=𝐀𝐃nds or S𝐁𝐂=S𝐀𝐃 and the optical path length SBC between points B and C along the ray connecting them is the same as the optical path length SAD between points A and D along the ray connecting them. The optical path length is constant between wavefronts.

Phase space

Template:Main

Figure "2D phase space" shows at the top some light rays in a two-dimensional space. Here x2=0 and p2=0 so light travels on the plane x1x3 in directions of increasing x3 values. In this case p12+p32=n2 and the direction of a light ray is completely specified by the p1 component of momentum 𝐩=(p1,p3) since p2=0. If p1 is given, p3 may be calculated (given the value of the refractive index n) and therefore p1 suffices to determine the direction of the light ray. The refractive index of the medium the ray is traveling in is determined by 𝐩=n.

2D phase space

For example, ray rC crosses axis x1 at coordinate xB with an optical momentum pC, which has its tip on a circle of radius n centered at position xB. Coordinate xB and the horizontal coordinate p1C of momentum pC completely define ray rC as it crosses axis x1. This ray may then be defined by a point rC=(xB,p1C) in space x1p1 as shown at the bottom of the figure. Space x1p1 is called phase space and different light rays may be represented by different points in this space.

As such, ray rD shown at the top is represented by a point rD in phase space at the bottom. All rays crossing axis x1 at coordinate xB contained between rays rC and rD are represented by a vertical line connecting points rC and rD in phase space. Accordingly, all rays crossing axis x1 at coordinate xA contained between rays rA and rB are represented by a vertical line connecting points rA and rB in phase space. In general, all rays crossing axis x1 between xL and xR are represented by a volume R in phase space. The rays at the boundary ∂R of volume R are called edge rays. For example, at position xA of axis x1, rays rA and rB are the edge rays since all other rays are contained between these two. (A ray parallel to x1 would not be between the two rays, since the momentum is not in-between the two rays)

In three-dimensional geometry the optical momentum is given by 𝐩=(p1,p2,p3) with p12+p22+p32=n2. If p1 and p2 are given, p3 may be calculated (given the value of the refractive index n) and therefore p1 and p2 suffice to determine the direction of the light ray. A ray traveling along axis x3 is then defined by a point (x1,x2) in plane x1x2 and a direction (p1,p2). It may then be defined by a point in four-dimensional phase space x1x2p1p2.

Conservation of etendue

Template:Main

Figure "volume variation" shows a volume V bound by an area A. Over time, if the boundary A moves, the volume of V may vary. In particular, an infinitesimal area dA with outward pointing unit normal n moves with a velocity v.

Volume variation

This leads to a volume variation dV=dA(𝐯𝐧)dt. Making use of Gauss's theorem, the variation in time of the total volume V volume moving in space is dVdt=A𝐯𝐧dA=V𝐯dV

The rightmost term is a volume integral over the volume V and the middle term is the surface integral over the boundary A of the volume V. Also, v is the velocity with which the points in V are moving.

In optics coordinate x3 takes the role of time. In phase space a light ray is identified by a point (x1,x2,p1,p2) which moves with a "velocity" 𝐯=(x˙1,x˙2,p˙1,p˙2) where the dot represents a derivative relative to x3. A set of light rays spreading over dx1 in coordinate x1, dx2 in coordinate x2, dp1 in coordinate p1 and dp2 in coordinate p2 occupies a volume dV=dx1dx2dp1dp2 in phase space. In general, a large set of rays occupies a large volume V in phase space to which Gauss's theorem may be applied dVdx3=V𝐯dV and using Hamilton's equations 𝐯=x˙1x1+x˙2x2+p˙1p1+p˙2p2=x1Hp1+x2Hp2p1Hx1p2Hx2=0 or dV/dx3=0 and dV=dx1dx2dp1dp2=Constant which means that the phase space volume is conserved as light travels along an optical system.

The volume occupied by a set of rays in phase space is called etendue, which is conserved as light rays progress in the optical system along direction x3. This corresponds to Liouville's theorem, which also applies to Hamiltonian mechanics. Template:Quote

Imaging and nonimaging optics

Template:Main

Figure "conservation of etendue" shows on the left a diagrammatic two-dimensional optical system in which x2=0 and p2=0 so light travels on the plane x1x3 in directions of increasing x3 values.

Conservation of etendue

Light rays crossing the input aperture of the optic at point x1=xI are contained between edge rays rA and rB represented by a vertical line between points rA and rB at the phase space of the input aperture (right, bottom corner of the figure). All rays crossing the input aperture are represented in phase space by a region RI.

Also, light rays crossing the output aperture of the optic at point x1=xO are contained between edge rays rA and rB represented by a vertical line between points rA and rB at the phase space of the output aperture (right, top corner of the figure). All rays crossing the output aperture are represented in phase space by a region RO.

Conservation of etendue in the optical system means that the volume (or area in this two-dimensional case) in phase space occupied by RI at the input aperture must be the same as the volume in phase space occupied by RO at the output aperture.

In imaging optics, all light rays crossing the input aperture at x1=xI are redirected by it towards the output aperture at x1=xO where xI=m xO. This ensures that an image of the input is formed at the output with a magnification m. In phase space, this means that vertical lines in the phase space at the input are transformed into vertical lines at the output. That would be the case of vertical line rA rB in RI transformed to vertical line rA rB in RO.

In nonimaging optics, the goal is not to form an image but simply to transfer all light from the input aperture to the output aperture. This is accomplished by transforming the edge rays ∂RI of RI to edge rays ∂RO of RO. This is known as the edge ray principle.

Generalizations

Above it was assumed that light travels along the x3 axis, in Hamilton's principle above, coordinates x1 and x2 take the role of the generalized coordinates qk while x3 takes the role of parameter σ, that is, parameter σ =x3 and N=2. However, different parametrizations of the light rays are possible, as well as the use of generalized coordinates.

General ray parametrization

A more general situation can be considered in which the path of a light ray is parametrized as s=(x1(σ),x2(σ),x3(σ)) in which σ is a general parameter. In this case, when compared to Hamilton's principle above, coordinates x1, x2 and x3 take the role of the generalized coordinates qk with N=3. Applying Hamilton's principle to optics in this case leads to δS=δ𝐀𝐁nds=δσAσBndsdσdσ=δσAσBL(x1,x2,x3,x˙1,x˙2,x˙3,σ)dσ=0 where now L=nds/dσ and x˙k=dxk/dσ and for which the Euler-Lagrange equations applied to this form of Fermat's principle result in LxkddσLx˙k=0 with k=1,2,3 and where L is the optical Lagrangian. Also in this case the optical momentum is defined as pk=Lx˙k and the Hamiltonian P is defined by the expression given above for N=3 corresponding to functions x1(σ), x2(σ) and x3(σ) to be determined P=x˙1p1+x˙2p2+x˙3p3L

And the corresponding Hamilton's equations with k=1,2,3 applied optics are Hxk=p˙k,Hpk=x˙k with x˙k=dxk/dσ and p˙k=dpk/dσ.

The optical Lagrangian is given by L=ndsdσ=n(x1,x2,x3)x˙12+x˙22+x˙32=L(x1,x2,x3,x˙1,x˙2,x˙3) and does not explicitly depend on parameter σ. For that reason not all solutions of the Euler-Lagrange equations will be possible light rays, since their derivation assumed an explicit dependence of L on σ which does not happen in optics.

The optical momentum components can be obtained from pk=nx˙kx˙12+x˙22+x˙32=ndxkdx12+dx22+dx32=ndxkds where x˙k=dxk/dσ. The expression for the Lagrangian can be rewritten as L=nx˙12+x˙22+x˙32=x˙1nx˙1x˙12+x˙22+x˙32+x˙2nx˙2x˙12+x˙22+x˙32+x˙3nx˙3x˙12+x˙22+x˙32=x˙1p1+x˙2p2+x˙3p3

Comparing this expression for L with that for the Hamiltonian P it can be concluded that P=0

From the expressions for the components pk of the optical momentum results p12+p22+p32n2(x1,x2,x3)=0

The optical Hamiltonian is chosen as P=p12+p22+p32n2(x1,x2,x3)=0

although other choices could be made.[3][4] The Hamilton's equations with k = 1, 2, 3 defined above together with P=0 define the possible light rays.

Generalized coordinates

As in Hamiltonian mechanics, it is also possible to write the equations of Hamiltonian optics in terms of generalized coordinates (q1(σ),q2(σ),q3(σ)), generalized momenta (u1(σ),u2(σ),u3(σ)) and Hamiltonian P as[3][4]

dq1dσ=Pu1du1dσ=Pq1dq2dσ=Pu2du2dσ=Pq2dq3dσ=Pu3du3dσ=Pq3P=𝐩𝐩n2=0 where the optical momentum is given by 𝐩=u1q1+u2q2+u3q3=u1q1q1q1+u2q2q2q2+u3q3q3q3=u1a1𝐞^1+u2a2𝐞^2+u3a3𝐞^3 and 𝐞^1, 𝐞^2 and 𝐞^3 are unit vectors. A particular case is obtained when these vectors form an orthonormal basis, that is, they are all perpendicular to each other. In that case, ukak/n is the cosine of the angle the optical momentum 𝐩 makes to unit vector 𝐞^k.

See also

References

Template:Reflist

  1. H. A. Buchdahl, An Introduction to Hamiltonian Optics, Dover Publications, 1993, Template:ISBN.
  2. 2.0 2.1 Vasudevan Lakshminarayanan et al., Lagrangian Optics, Springer Netherlands, 2011, Template:ISBN.
  3. 3.0 3.1 3.2 3.3 Template:Cite book
  4. 4.0 4.1 4.2 Roland Winston et al., Nonimaging Optics, Academic Press, 2004, Template:ISBN.
  5. Dietrich Marcuse, Light Transmission Optics, Van Nostrand Reinhold Company, New York, 1972, Template:ISBN.
  6. Rudolf Karl Luneburg,Mathematical Theory of Optics, University of California Press, Berkeley, CA, 1964, p. 90.