From first principles
Obtain refraction by varying the interface crossing point
In geometrical optics a ray between two specified points makes its travel time stationary against small changes of path. Take a flat interface between homogeneous transparent media with refractive indices \(n_1,n_2\), and light speed \(c/n_j\). Put the source a perpendicular distance \(h_1\) from the interface and the receiver a distance \(h_2\) beyond it. Their horizontal separation is \(D\). If the ray crosses at coordinate \(x\) measured from the source projection, its time is
Moving the crossing point increases one segment and decreases the other. At a stationary path their first-order contributions to travel time cancel.
The geometric fractions are the sines of the ray angles to the surface normal. Hence \(n_1\sin\theta_1=n_2\sin\theta_2\). A curved optical surface applies this same local relation using its own normal at each crossing point, redirecting a family of rays towards an image.
Background · Optical path length
Differences of this quantity determine phase delays in geometrical optics. For a pulse in a dispersive medium one must also account for group delay.
Derivation and applications
Calculate the apparent depth of a submerged point
A submerged mark appears closer to a flat water surface when viewed from air. How accurately does a single apparent depth describe rays reaching an eye with a wide pupil? Consider a point at depth \(h\) in a clear medium of refractive index \(n_1\). A plane boundary separates it from a second medium with index \(n_2\). Ignore diffraction and boundary curvature. A ray reaches the surface a horizontal distance \(x\) from the vertical through the mark. Its incidence angle \(\theta_1\) and exit angle \(\theta_2\) are measured from the normal.
Extend the emerging straight ray backwards until it crosses the original vertical. The crossing lies at a depth \(h_{\rm app}\) which depends on the ray chosen. Eliminating the horizontal distance and then using Snell's law shows how the cosines correct the familiar small-angle result.
For a small aperture, both cosines approach unity. To see the first error term let \(m=n_1/n_2\) and expand around normal incidence, measuring angles in radians.
For observation from a lower-index medium, rays farther from the normal cross at smaller apparent depths. As incidence approaches its critical angle, the emerging ray grazes the surface and the inferred crossing approaches the interface. A wide bundle therefore has a range of apparent axial origins.
Worked example
Focus on a mark below water
Change the inputs and investigate this derivation.
A mark lies 120 mm below water with \(n_1=4/3\) and \(n_2=1\). Near normal incidence the apparent depth is 90.0 mm. A ray entering the interface at 30.0° emerges with \(\sin\theta_2=2/3\), so \(\cos\theta_2=\sqrt5/3\). Its crossing is at \(90.0(0.7454/0.8660)=77.5\) mm. Restricting the rays admitted by the viewing optics therefore changes the focus of this mark.
Second application
Recover a refractive index with a narrow pupil
Change the inputs and investigate this derivation.
The lower surface of a 15.0 mm thick transparent slab appears 9.50 mm below its top surface in a near-normal air observation. The slab index is approximately \(15.0/9.50=1.58\). An internal incidence angle of 5.00° then gives a relative depth correction of \(-(1.58^2-1)(0.0873)^2/2=-0.0057\), or about 0.054 mm. This estimates the aperture-induced error against which the depth gauge resolution should be compared.
Try it · Apparent depth
Vary the physical parameters in the derived relation. Use the units and assumptions in the readout to connect the curves to the two worked examples. A parameter study can test the forward prediction; the same relation can then be inverted to infer a parameter from a measurement.
Travel time chooses a ray
A pulse travels from a point in air to a point in glass through a plane interface. A straight line minimises geometrical distance, but the pulse spends different times per metre in the two media. For a narrow-band wave in transparent, effectively nondispersive media, optical path length is \(\int n\,ds\). The ray connecting two fixed endpoints makes that integral stationary under small path variations. This description requires that the refractive index vary slowly on the scale of a wavelength within each material region and treats interfaces separately.
Let the crossing point slide horizontally by \(dx\). If the angles relative to the normal are \(\theta_1,\theta_2\), the length of the first segment changes by \(\sin\theta_1\,dx\) and that of the second by \(-\sin\theta_2\,dx\). Setting the first variation of optical path length to zero gives
The same condition follows from tangential phase matching. Stationarity gives the ray direction; the reflected and transmitted powers require the wave boundary conditions as well.
Follow field amplitude through the critical angle
Snell’s law determines transmitted direction by matching the tangential phase across an interface. It does not determine how much energy is reflected. For light incident from isotropic nonmagnetic index \(n_1\) onto index \(n_2\), take the electric field perpendicular to the plane of incidence. Continuity of tangential electric and magnetic fields gives
All amplitudes refer to the same tangential electric direction. Eliminating \(t_s\) yields
for propagating transmission in lossless media. The flux factor is essential: an electric amplitude larger than one need not imply transmitted power larger than the incoming power. At normal incidence from air into glass of index 1.50, \(r=-0.200\), \(t=0.800\), \(R=0.0400\) and \(T=0.960\).
Now send 500 nm light from the glass toward air at \(45^\circ\). Matching the tangential wavenumber gives
The outgoing normal wavenumber obeys \(k_z^2=k_0^2 n_2^2-k_\parallel^2\). Above the critical angle \(41.8^\circ\), choose \(k_z=i\kappa\) so fields decay into air. Here \(\kappa/k_0=\sqrt{1.50^2\sin^2 45^\circ-1}=0.354\), giving amplitude decay length \(1/\kappa=225\) nm and intensity decay length \(113\) nm. The reflection coefficient has unit magnitude and a phase shift. A single evanescent field in the lossless half-space carries no mean power normal to the interface even though its local electric amplitude is nonzero.
Practise on sheet 2 · Distinguish transmission amplitude, flux and penetration. Further reading · Delft University of Technology · Interactive Optics · Basic Electromagnetic and Wave Optics, “Properties of the Fresnel Coefficients” and “Total Internal Reflection and Evanescent Waves”.
Approximate a spherical refracting surface
Take light travelling from left to right. Put the surface vertex at zero and its centre of curvature at distance \(R\) to the right for a convex interface. A near-axis ray reaching height \(y\) from a real on-axis object a distance \(s\) to the left makes a small angle \(y/s\) to the axis. The normal through the centre makes angle approximately \(-y/R\). For a refracted ray directed to an image \(s'\) to the right, its angle is approximately \(-y/s'\). Small-angle Snell refraction applied to the signed differences between ray and normal gives
This sign convention takes positive object distance on the incoming side and positive image distance on the outgoing side. A negative solution for \(s'\) means that rays diverge after refraction but their backwards extensions intersect on the incoming side. The algebra therefore distinguishes a real screen image from a virtual image.
Combine two surfaces
For a thin lens in air, treat the image from the first surface as the object for the second. Since their vertices are taken at the same axial position, these intermediate signed distances have opposite signs. Adding the two surface equations eliminates the intermediate image term, leaving
A symmetric biconvex glass lens has \(R_1>0\) and \(R_2<0\), hence positive focal length. Rays from a distant object then converge approximately one focal length beyond the lens. The formula assumes thin geometry and paraxial rays. Wide beams can generate spherical aberration, and index dispersion makes the focal length wavelength dependent. Even a perfect paraxial lens forms a diffraction spot when its pupil is finite.
Place a detector and interpret a virtual image
A lens has \(n=1.50\), \(R_1=+0.20\) m and \(R_2=-0.20\) m, giving \(f=0.20\) m. An object at \(s=0.60\) m gives \(1/s'=5.00-1.67=3.33\) m⁻¹, hence a real image at 0.30 m. The central undeviated ray gives transverse magnification \(-s'/s=-0.50\). A 12 mm tall object therefore produces a 6 mm inverted image. In practice a screen scan locates its sharpest plane, and the measured magnification independently checks the distance convention.
Move the object to 0.15 m. The same lens now gives \(s'=-0.60\) m and magnification \(+4.0\). The eye behind the lens sees rays diverging as if from an upright image on the object side, while a screen placed 0.60 m behind the lens finds no sharp real image. As the object passes through the focal plane, the sign changes through infinite image distance. This limiting case is readily checked using a collimated output beam.
A real image can be tested by moving a diffuse screen through its predicted location and recording the sharpness. For a virtual image, extend at least two emerging ray directions backwards to locate their apparent origin. An observer’s eye lens can still create a real retinal image from those diverging rays.
Treat two separated lenses as a single optical system
A compound objective can have an effective focal length different from its back focal distance. Work in air with paraxial rays and two centred thin lenses separated by distance \(d\). Describe a ray by height \(y\) and small angle \(u\) relative to the optical axis. Free propagation sends \((y,u)\) to \((y+du,u)\) and a lens of focal length \(f\) sends it to \((y,u-y/f)\). These operations are linear, so their matrices can be multiplied in the order the ray encounters them.
For the first lens \(f_1\), a spacing \(d\) and second lens \(f_2\), the ray immediately after the second lens is \(M(y,u)\) with
For an initially parallel ray, its final angle is \(Cy\) where \(C\) is the lower-left entry. Define effective focal length \(f_{\rm eff}=-1/C\). Its ray height at the second lens is \(Ay\), where \(A=1-d/f_1\). After further distance \(s\) the height is \((A+sC)y\), so the back focal distance measured from the second lens is \(-A/C=A f_{\rm eff}\). Conflating the effective focal length with that physically measured clearance can place a detector incorrectly.
Locate the sensor in a compact two-lens assembly
Let \(f_1=100\) mm, \(f_2=-50.0\) mm and \(d=75.0\) mm. The total optical power is \(0.0100-0.0200+0.0150=0.00500\) mm⁻¹, giving \(f_{\rm eff}=200\) mm. The upper-left matrix entry is \(0.250\), so the back focal distance is only 50.0 mm. The sensor lies 125 mm behind the first lens even though the angular image scale corresponds to a 200 mm lens.
Trace a parallel ray entering 2.00 mm above the axis. The first lens sets its angle to \(-0.0200\) rad. Propagation over 75.0 mm reduces height to 0.500 mm. The diverging lens adds \(+0.0100\) rad, leaving \(-0.0100\) rad, so after another 50.0 mm the ray reaches the axis. If light instead arrives at a small field angle, focal-plane image displacement is \(f_{\rm eff}u\) in this ideal system: at \(u=1.00\) mrad that is 0.200 mm. In the zero-spacing limit powers add directly and the two focal distances coincide. When the total power instead tends to zero, a parallel incident beam exits parallel and no finite back focus exists.
For a further alignment check, reverse the propagation direction so that the diverging lens is encountered first. The equivalent focal length remains 200 mm because the expression for total power is symmetric in the two lenses. The back focal distance, however, now uses \(A=1-d/f_2=2.5\), giving 500 mm after the converging lens. A pair of lenses can therefore preserve its overall power when reversed while placing a collimated focus at a very different distance from the final glass surface. A measurement locating the two external focal points identifies this front–back asymmetry without having to inspect the lens curvatures.
Study the full derivation
From a slowly varying wave to a curved ray in a graded index · Optical fields, instruments and observations
A ray bends continuously in a glass whose index changes across its width. Derive where that ray equation comes from, predict the focusing length of a graded-index rod, and locate the points at which a smooth ray description ceases to determine an optical amplitude.