Skip to content

Optics


Visible light is an electromagnetic wave with wavelength λ∼400–700 nm\lambda \sim 400\text{–}700\text{ nm}. This notes pages will separate optics into two parts: geometric optics and wave optics. Whether to treat it as rays or as waves depends on the size dd of the features it interacts with:

Theorem (Law of Reflection). At a smooth surface, the angle of incidence equals the angle of reflection, both measured from the normal, and the incident ray, reflected ray, and normal are coplanar:

θi=θr.\theta_i = \theta_r.

A plane mirror forms a virtual, upright image the same size as the object, located as far behind the mirror as the object is in front. The image is reversed front-to-back (which is why text appears mirror-flipped). Think of it like staring into your standard bathroom mirror.

Example. How tall must a vertical plane mirror be for you to see your whole body, and does the answer depend on how far you stand from it?

Let your eyes be at height EE and the top of your head at TT, feet at the floor (00). To see the top of your head, a ray must leave the head, reflect off the mirror, and reach your eye. By the law of reflection the reflection point lies exactly halfway in height between the head and the eye, at height (T+E)/2(T+E)/2. To see your feet, the ray reflects at height E/2E/2 (halfway between eye and floor). The mirror therefore only needs to span from E/2E/2 to (T+E)/2(T+E)/2, a length

T+E2−E2=T2=H2,\frac{T+E}{2}-\frac{E}{2}=\frac{T}{2}=\frac{H}{2},

where H=TH=T is your full height. The required length is half your height, and notice the horizontal distance to the mirror canceled completely — the reflection-point heights depend only on the heights of head, eye, and feet, not on how far away the mirror is. The mirror’s position (it must be hung with its bottom edge at E/2E/2) is what matters, not its distance.

Refraction is the phenomena where light bends when entering a different medium (substance).

Definition (Index of refraction). The index of refraction of a medium is defined as

n=cv,n = \frac{c}{v},

the ratio of the speed of light in vacuum to its speed in the medium (n≥1n \ge 1).

Crossing a boundary, the ray bends according to Snell’s law:

Theorem (Snell’s law). At a boundary between media of indices n1n_1 and n2n_2,

n1sin⁡θ1=n2sin⁡θ2.n_1\sin\theta_1 = n_2\sin\theta_2.

Going into a denser medium (larger nn), the ray bends toward the normal. Across the boundary the *requency stays fixed (it is set by the source), so the wavelength must change:

λmedium=λ0n.\lambda_{\text{medium}} = \frac{\lambda_0}{n}.

Example. A coin lies at depth dd at the bottom of a pool of water (index nn). Looking straight down, how deep does it appear?

A ray leaves the coin at a small angle θ1\theta_1 to the vertical inside the water and refracts to angle θ2\theta_2 in air, with nsin⁡θ1=sin⁡θ2n\sin\theta_1=\sin\theta_2. Trace two such rays back: to the eye they appear to diverge from a shallower point at apparent depth d′d'. If the rays emerge at horizontal distance xx from the point above the coin, then tan⁡θ1=x/d\tan\theta_1=x/d and tan⁡θ2=x/d′\tan\theta_2=x/d', so

d′d=tan⁡θ1tan⁡θ2.\frac{d'}{d}=\frac{\tan\theta_1}{\tan\theta_2}.

For near-normal viewing all angles are small, so tan⁡θ≈sin⁡θ\tan\theta\approx\sin\theta, and Snell gives sin⁡θ2=nsin⁡θ1\sin\theta_2=n\sin\theta_1. Hence

d′d=sin⁡θ1sin⁡θ2=1n⟹d′=dn.\frac{d'}{d}=\frac{\sin\theta_1}{\sin\theta_2}=\frac{1}{n} \quad\Longrightarrow\quad d'=\frac{d}{n}.

A pool of true depth 1.0 m1.0\text{ m} (n=1.33n=1.33) looks only 0.75 m0.75\text{ m} deep — which is why pools always seem shallower than they are. (Viewed at a steep angle the apparent depth shrinks further, since tan⁡\tan and sin⁡\sin diverge.)

When light travels from a denser to a less dense medium (n1>n2n_1 > n_2), Snell’s law has no solution once θ2\theta_2 would exceed 90∘90^\circ.

Definition (Critical angle). Define the critical angle as the angle where all the light is reflected back instead of refracting (total internal reflection (TIR)). The angle is given by:

sin⁡θc=n2n1,\sin\theta_c = \frac{n_2}{n_1},

This is how optical fibers trap light and why a diamond (n≈2.4n\approx 2.4, so θc≈24∘\theta_c \approx 24^\circ) sparkles. For a water–air boundary θc=48.6∘\theta_c=48.6^\circ; for a typical glass (n=1.5n=1.5) it is arcsin⁡(1/1.5)=41.8∘\arcsin(1/1.5)=41.8^\circ, which is why a 45∘45^\circ glass prism makes a perfect internal mirror in binoculars.

A thin lens has thickness small enough to neglect compared with the relevant distances. In the paraxial approximation, it obeys the thin-lens equation and magnification relation:

1f=1do+1di,m=−dido=hiho.\frac{1}{f} = \frac{1}{d_o} + \frac{1}{d_i}, \qquad m = -\frac{d_i}{d_o}=\frac{h_i}{h_o}.

hih_i and hoh_o are the heights of the image and the object, respectively. Note that a negative height/magnitude means the image is inverted.

Proof (Thin lens equation). Consider a converging thin lens at x=0x=0, a real upright object of height hoh_o at x=−dox=-d_o, and a real image of signed height hi<0h_i<0 at x=dix=d_i. Work with paraxial rays, close to the axis, and the same medium on both sides.

A ray through the optical center travels straight in the thin-lens approximation. Similar triangles on either side give

hiho=−dido.\frac{h_i}{h_o}=-\frac{d_i}{d_o}.

A second ray leaves the object parallel to the axis at height hoh_o. It refracts through the far focal point (f,0)(f,0). Its outgoing slope is −ho/f-h_o/f, so at the image plane,

hi=ho−hofdi,hiho=1−dif.h_i=h_o-\frac{h_o}{f}d_i,\qquad \frac{h_i}{h_o}=1-\frac{d_i}{f}.

Equate the two expressions for the height ratio:

−dido=1−dif⟹1f=1do+1di.-\frac{d_i}{d_o}=1-\frac{d_i}{f} \quad\Longrightarrow\quad \frac1f=\frac1{d_o}+\frac1{d_i}.

The construction used a real image, but signed distances extend the formula to virtual objects and images. For a real object on the incoming side, do>0d_o>0; a real image on the outgoing side has di>0d_i>0, and a virtual image on the incoming side has di<0d_i<0. Converging lenses have f>0f>0 and diverging lenses have f<0f<0.

Theorem (Lensmaker’s equation). A thin lens with refractive index nℓn_\ell surrounded on both sides by the same medium of index nmn_m has focal length

1f=(nℓnm−1)(1R1−1R2).\frac1f=\left(\frac{n_\ell}{n_m}-1\right) \left(\frac1{R_1}-\frac1{R_2}\right).

Take light to travel left to right. R1R_1 is the signed radius of the first surface and R2R_2 of the second. A radius is positive when that surface’s center of curvature lies to its right, and negative when it lies to its left. A plane surface has R=∞R=\infty and contributes zero.

For a biconvex glass lens in air, R1>0R_1>0 and R2<0R_2<0, so f>0f>0. For a biconcave lens, R1<0R_1<0 and R2>0R_2>0, giving f<0f<0. In air, use nm≈1n_m\approx1. The formula assumes spherical surfaces, negligible thickness, and small ray angles.

A thin lens is just two spherical surfaces back-to-back. Applying the single-surface formula twice and adding gives the lensmaker’s equation as a clean proof.

Proof (Lensmaker’s equation). A thin lens of index nn sits in air (nair=1n_{\text{air}}=1), with front surface radius R1R_1 and back surface R2R_2. Surface 1 (air →\to glass) images the object at sos_o to an intermediate image at si′s_i':

1so+nsi′=n−1R1.\frac{1}{s_o}+\frac{n}{s_i'}=\frac{n-1}{R_1}.

This intermediate image acts as the object for surface 2 (glass →\to air). For a thin lens the two surfaces coincide, so the object distance for surface 2 is −si′-s_i' (a real image behind surface 1 is a virtual object for surface 2). Thus

n−si′+1si=1−nR2.\frac{n}{-s_i'}+\frac{1}{s_i}=\frac{1-n}{R_2}.

Add the two equations; the ±n/si′\pm n/s_i' terms cancel:

1so+1si=(n−1) ⁣(1R1−1R2).\frac{1}{s_o}+\frac{1}{s_i}=(n-1)\!\left(\frac{1}{R_1}-\frac{1}{R_2}\right).

Comparing to the thin-lens form 1/so+1/si=1/f1/s_o+1/s_i=1/f identifies the focal length:

 1f=(n−1) ⁣(1R1−1R2) .\ \frac{1}{f}=(n-1)\!\left(\frac{1}{R_1}-\frac{1}{R_2}\right)\ .

The words convex and concave describe the shape; converging and diverging describe what the lens does to parallel rays in its surrounding medium.

Lens shapeCross-section ideaIn airSign of ffRay behavior
Biconvexthickest in the middleconverging++parallel rays meet at the far focal point
Plano-convexone flat side, one convex sideconverging++common simple positive lens
Positive meniscusone convex and one concave side, thicker in middleconverging++weaker/aberration-controlled positive lens
Biconcavethinnest in the middlediverging−-parallel rays spread as if from the near focal point
Plano-concaveone flat side, one concave sidediverging−-common simple negative lens
Negative meniscusone convex and one concave side, thinner in middlediverging−-weaker/aberration-controlled negative lens
Photographic-style illustration comparing biconvex, plano-convex, positive meniscus, biconcave, plano-concave, and negative meniscus lens shapes

Generated photographic illustration of the six lens shapes. The table describes their behavior when the lens index exceeds the surrounding medium’s index.

In ordinary air, a lens thicker in the middle is usually converging and a lens thinner in the middle is usually diverging. If the surrounding medium has a higher index than the lens, the behavior can reverse, because the lensmaker’s equation depends on the index contrast, not just the visual shape.

For ray tracing, we assume that light emits from an object as rays in every direction. However, to determine the position of the image, we only need to draw the three principal rays from the top of the object. When the outgoing rays meet, it forms the image. If the outgoing rays diverge, extend them backward with dashed lines; where the extensions meet is a virtual image (it would have existed there in the eyes of an observer).

For a converging (biconvex) lens:

  1. A ray parallel to the axis refracts through the far focal point.
  2. A ray through the near focal point emerges parallel to the axis.
  3. A ray through the center of a thin lens continues nearly straight.

For a diverging (biconcave) lens:

  1. A ray parallel to the axis refracts outward as if it came from the near focal point.
  2. A ray aimed toward the far focal point emerges parallel to the axis.
  3. A ray through the center of a thin lens continues nearly straight.

For a converging lens:

  • do>2fd_o>2f: real, inverted, reduced image between ff and 2f2f.
  • do=2fd_o=2f: real, inverted, same-size image at 2f2f.
  • f<do<2ff<d_o<2f: real, inverted, enlarged image beyond 2f2f.
  • do=fd_o=f: outgoing rays are parallel, so the image is at infinity.
  • do<fd_o<f: virtual, upright, enlarged image on the object side.

For a diverging lens with a real object, the image is always virtual, upright, reduced, and on the object side.

Example. An object sits 30 cm30\text{ cm} in front of a converging lens of focal length f=10 cmf = 10\text{ cm}. Use ray tracing first, then calculate the image location and magnification.

Since do=30 cm>2fd_o=30\text{ cm}>2f, the ray diagram should give a real, inverted, reduced image between ff and 2f2f on the far side. Now use the thin-lens equation:

1di=1f−1do=110−130=230,di=15 cm.\frac{1}{d_i} = \frac{1}{f} - \frac{1}{d_o} = \frac{1}{10} - \frac{1}{30} = \frac{2}{30}, \qquad d_i = 15\text{ cm}.

Since di>0d_i > 0, the image is real and on the far side of the lens. The magnification is

m=−dido=−1530=−0.5,m = -\frac{d_i}{d_o} = -\frac{15}{30} = -0.5,

so the image is inverted and half the object’s size — exactly the behavior of a camera or a projected slide.

For a system of lenses, work through them one at a time: the image of the first lens becomes the object of the second (a real image on the incoming side of the next lens counts as a positive object distance; an image that would form behind it is a virtual object with negative distance). The total magnification is the product, m=m1m2⋯m = m_1 m_2 \cdots.

Theorem (Fermat’s principle). Light travels between two points along the path that takes a stationary (usually minimum) time. This is why light sometimes won’t take a straight path from one point to another.

Proof (Snell’s Law, using Fermat’s principle). Light goes from point AA in medium 11 to point BB in medium 22, crossing the boundary at horizontal position xx. If AA is height aa above the boundary at horizontal 00, and BB is depth bb below at horizontal dd, the travel time is

t(x)=a2+x2v1+b2+(d−x)2v2.t(x) = \frac{\sqrt{a^2 + x^2}}{v_1} + \frac{\sqrt{b^2 + (d-x)^2}}{v_2}.

This can be derived from Pythagorean theorem and basic kinematics. Setting dt/dx=0dt/dx = 0,

xv1a2+x2−d−xv2b2+(d−x)2=0.\frac{x}{v_1\sqrt{a^2+x^2}} - \frac{d-x}{v_2\sqrt{b^2+(d-x)^2}} = 0.

The two fractions are equal to sin⁡θ1/v1\sin\theta_1/v_1 and sin⁡θ2/v2\sin\theta_2/v_2, so

sin⁡θ1v1=sin⁡θ2v2⟹n1sin⁡θ1=n2sin⁡θ2,\frac{\sin\theta_1}{v_1} = \frac{\sin\theta_2}{v_2} \quad\Longrightarrow\quad n_1\sin\theta_1 = n_2\sin\theta_2,

using n=c/vn = c/v. The law of reflection follows from the same principle with both points in one medium.

The index of refraction actually depends slightly on wavelength, n(λ)n(\lambda), with blue light (short λ\lambda) refracting more than red in most glass. This dispersion is why a prism spreads white light into a spectrum and why rainbows form (refraction + internal reflection + dispersion in water droplets).

When the index varies continuously rather than in a sharp jump, Snell’s law still applies across each infinitesimal layer, and the quantity nsin⁡θn\sin\theta (angle from the vertical) is conserved along the ray. The ray curves smoothly, always bending toward the region of higher nn: toward slower light. Applying Snell’s law to two nearby heights, a ray climbing through an index gradient turns through an angle ≈(1/n) (dn/dh)\approx (1/n)\,(dn/dh) per unit horizontal distance.

This is the physics of mirages. In the atmosphere n−1∝ρ∝P/Tn - 1 \propto \rho \propto P/T, so a temperature gradient bends light:

  • Over hot ground (desert road), the air is hottest at the bottom, so nn increases with height and rays bend upward. You see an inverted image of the sky on the ground — the shimmering “water” of an inferior mirage.
  • In a thermal inversion (cold air below warm, e.g. over cold water), nn decreases with height, rays bend down to follow the Earth’s curvature, and distant objects appear lifted above the horizon — a superior mirage.

If the downward bending is strong enough to match the Earth’s curvature, dn/dh=−n/Rdn/dh = -n/R, light rays literally orbit at constant height and you can see beyond the geometric horizon.

Before lenses, consider a single spherical refracting surface of radius RR separating media n1n_1 (object side) and n2n_2. This is the building block for the lensmaker’s equation. We use the real-is-positive convention: object distance so>0s_o>0 for a real object in front, image distance si>0s_i>0 for a real image on the far side, and R>0R>0 when the center of curvature is on the far (outgoing) side.

Proof (Single-surface refraction). Take a point object OO on the axis at distance sos_o in front of a surface with center of curvature CC at distance RR behind the vertex. A paraxial ray leaves OO, hits the surface at height hh, and refracts toward the image II at distance sis_i. Let α,β,γ\alpha,\beta,\gamma be the (small) angles the object ray, image ray, and surface normal (the radius) make with the axis, so

α≈hso,β≈hsi,γ≈hR.\alpha\approx\frac{h}{s_o},\qquad \beta\approx\frac{h}{s_i},\qquad \gamma\approx\frac{h}{R}.

The angle of incidence (from the normal) is θ1=α+γ\theta_1=\alpha+\gamma and the refraction angle is θ2=γ−β\theta_2=\gamma-\beta (exterior-angle geometry of the small triangles). Paraxial Snell, n1θ1=n2θ2n_1\theta_1=n_2\theta_2, gives

n1(α+γ)=n2(γ−β).n_1(\alpha+\gamma)=n_2(\gamma-\beta).

Substitute the angle expressions and divide by hh:

n1 ⁣(1so+1R)=n2 ⁣(1R−1si)⟹ n1so+n2si=n2−n1R .n_1\!\left(\frac{1}{s_o}+\frac{1}{R}\right)=n_2\!\left(\frac{1}{R}-\frac{1}{s_i}\right) \quad\Longrightarrow\quad \ \frac{n_1}{s_o}+\frac{n_2}{s_i}=\frac{n_2-n_1}{R}\ .

Example. A fish sits a distance p=20 cmp=20\text{ cm} from the near wall of a large spherical fishbowl of radius R=30 cmR=30\text{ cm} (water n1=1.33n_1=1.33, air n2=1.00n_2=1.00, glass thin enough to ignore). Where does the fish appear to an outside observer?

Light goes water →\to air, so n1=1.33n_1=1.33, n2=1.00n_2=1.00. The surface bulges toward the observer (outgoing side), and the center of curvature CC lies on the object (water) side, so by our convention R=−30 cmR=-30\text{ cm}. With so=20 cms_o=20\text{ cm},

1.3320+1.00si=1.00−1.33−30=−0.33−30=0.0110.\frac{1.33}{20}+\frac{1.00}{s_i}=\frac{1.00-1.33}{-30}=\frac{-0.33}{-30}=0.0110.

So 1.00/si=0.0110−0.0665=−0.05551.00/s_i=0.0110-0.0665=-0.0555, giving si=−18.0 cms_i=-18.0\text{ cm}. The negative sign means a virtual image on the object side: the fish appears about 18 cm18\text{ cm} behind the glass (closer than its true 20 cm20\text{ cm}), slightly magnified — which is why fish in round bowls look closer and bigger than they are.

A spherical mirror of radius RR has focal length

f=R2.f = \frac{R}{2}.

Object and image distances obey the thin lens equation (as described above).

Sign conventions (real-is-positive):

  • do>0d_o > 0 for a real object in front of the mirror.
  • di>0d_i > 0 for a real image (same side as object, in front); di<0d_i < 0 for a virtual image (behind).
  • f>0f > 0 for a concave (converging) mirror; f<0f < 0 for convex (diverging).
  • m>0m > 0 upright, m<0m < 0 inverted; ∣m∣>1\lvert m \rvert > 1 enlarged.

The reason a curved mirror focuses at all comes out cleanly for conic-section shapes, which have exact reflection properties:

  • An ellipse reflects every ray from one focus to the other focus.
  • A parabola reflects all rays parallel to its axis to a single focus (and vice versa) — the principle behind satellite dishes, headlights, and reflecting telescopes. A parabola is just an ellipse with its second focus sent to infinity, which is why parallel rays (a source at infinity) come to a point.
  • A hyperbola reflects rays aimed at one focus so they diverge as if from the other.

A spherical mirror only approximates a parabola near its axis; rays striking far from the axis miss the focus, an error called spherical aberration.


A ray passing through a prism of apex angle AA is bent through a total deviation δ\delta — the angle between the incoming and outgoing rays. Refraction at each face turns the ray, and the geometry of the two faces gives

δ=(θ1−r1)+(θ2−r2)=θ1+θ2−A,r1+r2=A,\delta=(\theta_1-r_1)+(\theta_2-r_2)=\theta_1+\theta_2-A, \qquad r_1+r_2=A,

where θ1,θ2\theta_1,\theta_2 are the external angles at the two faces and r1,r2r_1,r_2 the internal angles. (The relation r1+r2=Ar_1+r_2=A comes from the triangle formed by the two normals and the apex.)

Proof (Minimum deviation). As θ1\theta_1 varies, δ(θ1)\delta(\theta_1) has a minimum. At the minimum, dδ/dθ1=0d\delta/d\theta_1=0. Since δ=θ1+θ2−A\delta=\theta_1+\theta_2-A,

dδdθ1=1+dθ2dθ1=0⟹dθ2dθ1=−1.\frac{d\delta}{d\theta_1}=1+\frac{d\theta_2}{d\theta_1}=0 \quad\Longrightarrow\quad \frac{d\theta_2}{d\theta_1}=-1.

Differentiating Snell at each face (sin⁡θ1=nsin⁡r1\sin\theta_1=n\sin r_1, sin⁡θ2=nsin⁡r2\sin\theta_2=n\sin r_2) and the constraint r1+r2=Ar_1+r_2=A (so dr1=−dr2dr_1=-dr_2), one finds this is satisfied only for the symmetric ray:

θ1=θ2,r1=r2=A2.\theta_1=\theta_2,\qquad r_1=r_2=\frac{A}{2}.

Then δm=2θ1−A\delta_m=2\theta_1-A, so θ1=(A+δm)/2\theta_1=(A+\delta_m)/2, and Snell at the first face sin⁡θ1=nsin⁡r1\sin\theta_1=n\sin r_1 gives

 n=sin⁡ ⁣A+δm2sin⁡ ⁣A2 .\ n=\frac{\sin\!\frac{A+\delta_m}{2}}{\sin\!\frac{A}{2}}\ .

This symmetric, minimum-deviation configuration is how prism spectrometers measure nn precisely: rotate the prism until the deviated image stops moving and reverses.

For a thin prism (AA small), all angles are small, so sin⁡θ≈θ\sin\theta\approx\theta and the formula linearizes to n≈(A+δ)/2A/2=A+δAn\approx\dfrac{(A+\delta)/2}{A/2}=\dfrac{A+\delta}{A}, giving

δ=(n−1)A.\delta=(n-1)A.

A rainbow is sunlight refracting into a spherical raindrop, reflecting once off the back, and refracting out. The classic olympiad calculation finds the angle at which this light piles up.

Proof (Primary rainbow angle). A ray enters the drop at incidence angle ii, refracting to rr with sin⁡i=nsin⁡r\sin i=n\sin r. It bends by (i−r)(i-r) at entry, reflects off the back turning by (180∘−2r)(180^\circ-2r), and bends by (i−r)(i-r) again on exit. The total deviation is

D(i)=2(i−r)+(180∘−2r)=180∘+2i−4r.D(i)=2(i-r)+(180^\circ-2r)=180^\circ+2i-4r.

Light scattered by the drop bunches up at the angle where DD is stationary (rays near it all emerge in nearly the same direction — a caustic), so set dD/di=0dD/di=0:

dDdi=2−4drdi=0⟹drdi=12.\frac{dD}{di}=2-4\frac{dr}{di}=0 \quad\Longrightarrow\quad \frac{dr}{di}=\frac{1}{2}.

Differentiate Snell, cos⁡i=ncos⁡r drdi=n2cos⁡r\cos i=n\cos r\,\dfrac{dr}{di}=\dfrac{n}{2}\cos r, so 2cos⁡i=ncos⁡r2\cos i=n\cos r. Square and use n2cos⁡2r=n2−n2sin⁡2r=n2−sin⁡2in^2\cos^2 r=n^2-n^2\sin^2 r=n^2-\sin^2 i:

4cos⁡2i=n2−sin⁡2i=n2−(1−cos⁡2i)⟹3cos⁡2i=n2−1,4\cos^2 i=n^2-\sin^2 i=n^2-(1-\cos^2 i) \quad\Longrightarrow\quad 3\cos^2 i=n^2-1,  cos⁡i=n2−13 .\ \cos i=\sqrt{\frac{n^2-1}{3}}\ .

For water n=1.33n=1.33: cos⁡i=(1.769−1)/3=0.256=0.506\cos i=\sqrt{(1.769-1)/3}=\sqrt{0.256}=0.506, so i=59.6∘i=59.6^\circ, sin⁡r=sin⁡i/n=0.863/1.33=0.649\sin r=\sin i/n=0.863/1.33=0.649, r=40.4∘r=40.4^\circ. Then

Dmin⁡=180∘+2(59.6∘)−4(40.4∘)=137.5∘.D_{\min}=180^\circ+2(59.6^\circ)-4(40.4^\circ)=137.5^\circ.

The rainbow is seen at 180∘−Dmin⁡=42.5∘180^\circ-D_{\min}=42.5^\circ from the antisolar point — the familiar ≈42∘\approx 42^\circ primary bow.

Because nn is larger for blue light, blue deviates more (smaller rainbow angle), so red is on the outside, violet on the inside of the primary bow. The secondary bow comes from rays that reflect twice inside the drop, with deviation D=360∘+2i−6rD=360^\circ+2i-6r; minimizing gives a bow at ≈51∘\approx 51^\circ with reversed color order (red inside). Between the two bows, 42∘42^\circ–51∘51^\circ, very little light emerges from any drop — the noticeably darker band of sky known as Alexander’s dark band.

For paraxial rays, a ray at a plane is described by its height yy and slope θ\theta (small angle). Each optical element acts as a 2×22\times 2 matrix on the vector (yθ)\begin{pmatrix}y\\\theta\end{pmatrix}, and a whole system is the product of the element matrices (applied right-to-left, in the order light meets them).

  • Free propagation a distance dd: y→y+dθy\to y+d\theta, slope unchanged:
Mprop=(1d01).M_{\text{prop}}=\begin{pmatrix}1&d\\0&1\end{pmatrix}.
  • Thin lens of focal length ff: height unchanged, slope bent by −y/f-y/f:
Mlens=(10−1/f1).M_{\text{lens}}=\begin{pmatrix}1&0\\-1/f&1\end{pmatrix}.
  • Refraction at a curved surface (radius RR, n1→n2n_1\to n_2):
Msurf=(10n1−n2n2Rn1n2).M_{\text{surf}}=\begin{pmatrix}1&0\\[2pt]\dfrac{n_1-n_2}{n_2 R}&\dfrac{n_1}{n_2}\end{pmatrix}.

For a system matrix M=(ABCD)M=\begin{pmatrix}A&B\\C&D\end{pmatrix}, the imaging condition (all rays from an object point reconverge regardless of slope) is B=0B=0, and then AA is the magnification. The element CC gives the system focal length via C=−1/feffC=-1/f_{\text{eff}}.

For two thin lenses separated by distance dd, the matrix product gives the useful effective-focal-length result

1feff=1f1+1f2−df1f2.\frac{1}{f_{\text{eff}}}=\frac{1}{f_1}+\frac{1}{f_2}-\frac{d}{f_1f_2}.

Setting d=0d=0 gives the contact-lens rule 1/f=1/f1+1/f21/f=1/f_1+1/f_2.

The eye’s relaxed near point is 25 cm25\text{ cm}; angular magnification compares the angle an object subtends through the instrument to the angle it would subtend held at 25 cm25\text{ cm}.

  • Simple magnifier (object at the focal point, image at infinity): M=25 cmfM=\dfrac{25\text{ cm}}{f}.
  • Refracting telescope (objective fof_o, eyepiece fef_e, in afocal configuration): M=−fofeM=-\dfrac{f_o}{f_e} (the minus sign = inverted image).
  • Compound microscope (objective forms a real image at tube length LL, eyepiece magnifies it): M≈−Lfo⋅25 cmfeM\approx-\dfrac{L}{f_o}\cdot\dfrac{25\text{ cm}}{f_e}.

Wave optics rests on Huygens’ principle: every point on a wavefront acts as a source of secondary spherical wavelets, and the new wavefront is their envelope a moment later. This reproduces straight-line propagation, reflection, and refraction, and — crucially — explains why waves bend (diffract) around edges and through gaps.

Coherence. Interference fringes only appear if the two combining waves keep a stable phase relationship; such waves are called coherent. This is hard with ordinary light: even a single-frequency lamp’s phase wobbles randomly on nanosecond timescales, and two separate lamps never stay in step, so their interference term averages to zero and you see no fringes. The 19th-century fix was to illuminate the experiment through a tiny pinhole, so that the light reaching both slits originates from the same point and is automatically in phase with itself — good enough that even sunlight works. Lasers make this trivial today, since they emit highly coherent light. For the idealized problems below we assume perfect coherence, but in any real setup it is the first thing to check.

Two coherent sources (or one wavefront split by two slits a distance dd apart) produce alternating bright and dark fringes on a distant screen. For a screen far away, the path difference to a point at angle θ\theta is dsin⁡θd\sin\theta, giving

dsin⁡θ=mλ    (bright),dsin⁡θ=(m+12)λ    (dark),d\sin\theta = m\lambda \;\;(\text{bright}), \qquad d\sin\theta = (m+\tfrac12)\lambda \;\;(\text{dark}),

for integer mm. For small angles on a screen a distance LL away, the fringes are evenly spaced by

Δy=λLd.\Delta y = \frac{\lambda L}{d}.

Example. Light of wavelength λ=600 nm\lambda = 600\text{ nm} falls on two slits d=0.20 mmd = 0.20\text{ mm} apart, and the pattern is viewed on a screen L=1.5 mL = 1.5\text{ m} away. How far apart are adjacent bright fringes?

Solution. The fringe spacing is

Δy=λLd=(600×10−9)(1.5)0.20×10−3=4.5×10−3 m=4.5 mm.\Delta y = \frac{\lambda L}{d} = \frac{(600\times 10^{-9})(1.5)}{0.20\times 10^{-3}} = 4.5\times 10^{-3}\text{ m} = 4.5\text{ mm}.

Measuring this spacing is a standard way to determine an unknown wavelength.

When mirrors or lenses are in the way, computing path-length differences directly is a nightmare. The shortcut is that any image — real or virtual — can be treated as its own coherent point source, so you measure path differences starting from the images rather than tracing all the way back to the original object. (For a real image this follows from Fermat’s principle: every ray from object to image takes the same time, so they all arrive in phase and leave the image in phase.) Setups like Lloyd’s mirror or two slightly tilted mirrors reduce to an ordinary double slit whose two “slits” are the image sources — even though there is only one real light source. A useful caution: reflection adds a phase of π\pi, though it often cancels out when both images reflect the same way.

A beamsplitter sends light down two perpendicular arms to mirrors and recombines them. Moving one mirror by ΔL\Delta L changes that arm’s round-trip path by 2 ΔL2\,\Delta L, sweeping the central fringe through mm bright–dark cycles:

2 ΔL=mλ⟹ΔL=mλ2.2\,\Delta L=m\lambda \quad\Longrightarrow\quad \Delta L=\frac{m\lambda}{2}.

Each fringe that passes corresponds to a half-wavelength of mirror motion, so counting fringes measures very small displacements.

Inserting a gas cell of length ℓ\ell and changing its index by Δn\Delta n shifts the fringe count by

Δm=2ℓ Δnλ,\Delta m=\frac{2\ell\,\Delta n}{\lambda},

because the light passes through the cell twice.

Light reflecting off the top and bottom of a thin film of thickness tt and index nn interferes. Two subtleties decide the condition:

  1. The path difference inside the film is 2nt2nt (using the wavelength in the film).
  2. A reflection off a higher-index medium flips the phase by π\pi (half a wavelength); off a lower-index medium it does not.

For a film with a higher index than its surroundings on both sides (e.g. a soap film in air), only the top reflection flips, giving a net half-wavelength shift, so

2nt=(m+12)λ    (constructive),2nt=mλ    (destructive).2nt = (m+\tfrac12)\lambda \;\;(\text{constructive}), \qquad 2nt = m\lambda \;\;(\text{destructive}).

If instead there is a phase flip at both surfaces (or neither), the conditions swap. Always count the π\pi-shifts first — this is the most common place to go wrong.

Example. A camera lens (nglass=1.52n_{\text{glass}}=1.52) is coated with magnesium fluoride (n=1.38n=1.38) to suppress reflection at λ=550 nm\lambda=550\text{ nm} (green). Find the minimum coating thickness, and state the index that would give zero reflection.

Light reflects off air→\tocoating (1.00→1.381.00\to1.38, π\pi flip) and coating→\toglass (1.38→1.521.38\to1.52, also a π\pi flip). Both flip, so the flips cancel and destructive interference of the reflections requires the round-trip path to be a half-integer number of in-film wavelengths:

2nt=(m+12)λ.2nt=(m+\tfrac12)\lambda.

The minimum is m=0m=0:

t=λ4n=550 nm4(1.38)=99.6 nm≈100 nm.t=\frac{\lambda}{4n}=\frac{550\text{ nm}}{4(1.38)}=99.6\text{ nm}\approx 100\text{ nm}.

This is the standard quarter-wave coating, t=λ/(4n)t=\lambda/(4n). For the two reflected amplitudes to be equal (and thus cancel completely), the coating index should be the geometric mean of its neighbors:

ncoat=nair nglass=1.00×1.52=1.23.n_{\text{coat}}=\sqrt{n_{\text{air}}\,n_{\text{glass}}}=\sqrt{1.00\times1.52}=1.23.

MgF2_2 at 1.381.38 is the closest cheap, durable material — hence the faint purple sheen on coated lenses.

For Newton’s rings, where a plano-convex lens sits on a flat plate and makes a thin air gap, the reflected pattern has a dark center and dark-ring radii

rm=mλR,m=0,1,2,…,r_m=\sqrt{m\lambda R}, \qquad m=0,1,2,\dots,

where RR is the lens radius of curvature. This comes from t≈r2/(2R)t\approx r^2/(2R) and one reflection phase flip.

A wave passing through a single slit of width aa spreads out, producing a broad central maximum flanked by weaker side maxima. The minima occur at

asin⁡θ=mλ,m=1,2,3,…a\sin\theta = m\lambda, \qquad m = 1, 2, 3, \dots

(note: this is the condition for dark fringes, the opposite of the double-slit bright condition). The central maximum is twice as wide as the others, with angular half-width sin⁡θ≈λ/a\sin\theta \approx \lambda/a — narrower slits diffract more.

Example. A slit of width a=0.10 mma=0.10\text{ mm} is lit by λ=633 nm\lambda=633\text{ nm} (He–Ne laser); the pattern falls on a screen L=2.0 mL=2.0\text{ m} away. How wide is the central bright band?

The first minima sit at sin⁡θ=λ/a\sin\theta=\lambda/a, and for small angles y=Ltan⁡θ≈Lλ/ay=L\tan\theta\approx L\lambda/a. The central maximum spans from −y-y to +y+y, so its full width is

W=2Lλa=2(2.0)633×10−90.10×10−3=2.5×10−2 m=2.5 cm.W=2L\frac{\lambda}{a}=2(2.0)\frac{633\times10^{-9}}{0.10\times10^{-3}}=2.5\times10^{-2}\text{ m}=2.5\text{ cm}.

Note the central band is twice as wide as the side fringes (whose spacing is Lλ/aL\lambda/a), and it widens as the slit narrows — the hallmark of diffraction.

A diffraction grating with NN closely spaced slits of separation dd produces very sharp bright lines (principal maxima) wherever

dsin⁡θ=mλ.d\sin\theta = m\lambda.

Summing the NN equally spaced, equal-phase-step contributions as a geometric series gives the intensity

I(θ)∝sin⁡2 ⁣(N kΔr2)sin⁡2 ⁣(kΔr2),Δr=dsin⁡θ,I(\theta) \propto \frac{\sin^2\!\big(N\,\tfrac{k\Delta r}{2}\big)}{\sin^2\!\big(\tfrac{k\Delta r}{2}\big)}, \qquad \Delta r = d\sin\theta,

a set of tall, sharp principal maxima (where all slits are in phase, dsin⁡θ=mλd\sin\theta = m\lambda) separated by N−2N-2 faint secondary maxima. More slits make the principal maxima sharper and brighter, which is why gratings outperform double slits for measuring wavelengths and separating spectral lines.

The quality of a grating as a spectrometer is its resolving power — the ratio R=λ/ΔλR = \lambda/\Delta\lambda of a wavelength to the smallest wavelength difference it can split apart. Taking two lines to be just resolved when the maximum of one sits on the first minimum of the other (the Rayleigh criterion again) gives a strikingly simple result:

R=λΔλ=Nm,R = \frac{\lambda}{\Delta\lambda} = Nm,

the number of slits times the diffraction order. To resolve finer spectral detail you either illuminate more lines or work at a higher order.

Diffraction sets a fundamental limit on resolving two nearby point sources through an aperture of diameter DD. By the Rayleigh criterion, they are just resolvable when the center of one diffraction pattern falls on the first minimum of the other, at angular separation

θmin⁡=1.22 λD.\theta_{\min} = 1.22\,\frac{\lambda}{D}.

Bigger apertures (telescope mirrors, eye pupils) and shorter wavelengths give finer resolution.

Babinet’s principle states that an opaque obstacle and an aperture of the same shape produce identical diffraction patterns (away from the central beam). The argument is short: the aperture and the obstacle are complementary, so their amplitudes add up to the wave you’d get with no screen at all — a single bright forward spot and darkness elsewhere. At any point that would be dark, the two amplitudes must therefore be equal and opposite, hence equal in magnitude, so they give the same intensity.

The practical payoff is that you can analyze diffraction off a small object (a wire, a strand of fiber, a dust speck, a circular disk) by pretending it is a slit or hole of the same size. It is what lets a laser pointer aimed at a helical spring — or X-rays aimed at the double helix of DNA — reveal the structure’s spacing and pitch from the diffraction pattern alone.

Because light is a transverse wave, the orientation of its electric field — its polarization — matters. An ideal polarizer transmits only the field component along its axis. Unpolarized light passing through a polarizer loses half its intensity and emerges polarized.

For light already polarized at angle θ\theta to a polarizer’s axis, Malus’s law gives the transmitted intensity:

I=I0cos⁡2θ.I = I_0\cos^2\theta.

Example. Unpolarized light of intensity I0I_0 passes through three ideal polarizers with axes at 0∘0^\circ, 45∘45^\circ, and 90∘90^\circ. Find the transmitted intensity, and explain the surprise that removing the middle one blocks all the light.

After the first polarizer, unpolarized light is halved and polarized at 0∘0^\circ: I1=12I0I_1=\tfrac12 I_0. The second polarizer is at 45∘45^\circ to that:

I2=I1cos⁡245∘=12I0⋅12=14I0.I_2=I_1\cos^2 45^\circ=\tfrac12 I_0\cdot\tfrac12=\tfrac14 I_0.

The third is at 90∘90^\circ, i.e. 45∘45^\circ from the second’s axis:

I3=I2cos⁡245∘=14I0⋅12=I08.I_3=I_2\cos^2 45^\circ=\tfrac14 I_0\cdot\tfrac12=\frac{I_0}{8}.

So I0/8I_0/8 gets through. The surprise: with only the 0∘0^\circ and 90∘90^\circ polarizers (crossed), cos⁡290∘=0\cos^2 90^\circ=0 and nothing passes. Inserting the 45∘45^\circ polarizer in between re-projects the field onto an intermediate axis at each step, so neither projection is a full 90∘90^\circ — light leaks through. A polarizer is not a passive filter that only removes; it actively rotates the polarization onto its own axis.

Light can also be polarized by reflection. At Brewster’s angle the reflected ray is completely polarized (parallel to the surface), and this happens exactly when the reflected and refracted rays are perpendicular:

tan⁡θB=n2n1.\tan\theta_B = \frac{n_2}{n_1}.

For sunlight reflecting off water, θB=arctan⁡(1.33)=53.1∘\theta_B=\arctan(1.33)=53.1^\circ from the normal. The reflected glare is polarized parallel to the surface, which is why vertically oriented polarized sunglasses reduce it.


A quick decision tree for picking the right tool:

Common traps: