Skip to content

The colors of a soap film

Posted on:

A soap film is a sheet of water between two layers of soap molecules, often thinner than a micrometer. A vertical film drains under gravity and is thinner at the top, so in white light it shows bands of color ordered by thickness. Newton watched them on bubbles kept under a glass cover (Opticks, Book II, Part I, Observation 17): colored rings formed at the top, widened and moved down as the water drained, and a black spot grew at the top before the bubble broke.

The color at thickness dd follows from two ingredients: the fraction of light the film reflects at each wavelength λ\lambda, and the three color-matching functions that the CIE (the International Commission on Illumination) uses to reduce a spectrum to a color. The first is a single cosine in 1/λ1/\lambda, so the color is a fixed white minus the cosine transform of the color-matching functions, evaluated at 2nd2nd, the extra optical path traveled by light reflected from the film’s back surface, where nn is the refractive index of water. The computed colors agree with the table of thicknesses that Newton compiled for them.

The reflected spectrum is a cosine

Consider light of wavelength λ\lambda that travels normal to the film, perpendicular to its two surfaces. Two beams return toward the eye. One is reflected by the front surface. The other crosses the film, is reflected by the back surface, and crosses the film again.

Light is an electromagnetic wave: an electric field and a magnetic field that oscillate together as the wave travels. The amplitude of a beam is the size of its electric field’s oscillation, and the brightness of the beam is proportional to the square of its amplitude. In the figure, each beam is labeled with its amplitude as a multiple of the incoming beam’s amplitude.

d 1 r t −rt −rtt′ ≈ −r air, index 1 front surface water, index n back surface air front-surface wave back-surface wave their sum, the reflected light τ direction of travel →

All the beams in the figure travel along the same line, normal to the film. They are drawn side by side so that each one can be labeled. The right half shows the two returning waves at one instant. The back-surface wave is the front-surface wave turned upside down, and it trails the front-surface wave by a distance τ\tau, derived below. The light that reaches the eye is the sum of the two waves.

How much each surface reflects. When light travels normal to a surface, its electric and magnetic fields both lie parallel to the surface. In a medium of refractive index nn, the amplitude of the magnetic field is proportional to nn times the amplitude of the electric field. Suppose a beam of amplitude 11 crosses a boundary from a medium of index n1n_1 into a medium of index n2n_2. It splits into a reflected beam of amplitude rr and a transmitted beam of amplitude tt. Maxwell’s equations require each field to take the same value on both sides of the boundary. For the electric field, this condition reads 1+r=t1 + r = t. The reflected beam travels in the opposite direction, so its magnetic field points the opposite way, and the condition for the magnetic field reads n1(1−r)=n2 tn_1(1 - r) = n_2\,t. Solving these two equations gives the Fresnel coefficients for normal incidence,

r=n1−n2n1+n2,t=2n1n1+n2.r = \frac{n_1 - n_2}{n_1 + n_2}, \qquad t = \frac{2n_1}{n_1 + n_2}.

In the soap film, the index is 11 for air and nn for water. At the front surface, light passes from air into water, so r=(1−n)/(1+n)r = (1-n)/(1+n) and t=2/(1+n)t = 2/(1+n). For n=1.33n = 1.33, r=−0.142r = -0.142. At the back surface, light passes from water into air. The two indices trade places, and the reflection coefficient becomes (n−1)/(n+1)=−r(n-1)/(n+1) = -r. The two reflections therefore have opposite signs. On its way out, the back-surface beam passes through the front surface from water into air, with transmission coefficient t′=2n/(1+n)t' = 2n/(1+n). This beam is transmitted, reflected and transmitted again, so it returns with amplitude

t (−r) t′  =  −r⋅4n(1+n)2  =  −r (1−r2).t\,(-r)\,t' \;=\; -r\cdot\frac{4n}{(1+n)^2} \;=\; -r\,(1 - r^2).

The last step uses (1+n)2−(1−n)2=4n(1+n)^2 - (1-n)^2 = 4n. For water, 1−r2=0.981 - r^2 = 0.98. From here on I approximate 0.98≈10.98 \approx 1, which changes the back-surface beam’s amplitude by 2%2\%, so the two returning beams have amplitudes rr and −r-r.

How far the second beam trails the first. The back-surface beam travels an extra distance 2d2d inside the water, where the wavelength shortens to λ/n\lambda/n. It therefore falls behind the front-surface beam by 2d/(λ/n)=τ/λ2d/(\lambda/n) = \tau/\lambda wavelengths, where

τ=2nd\tau = 2nd

is the optical path difference between the two beams. In air, where the wavelength is λ\lambda, this is a distance τ\tau, as in the figure. Each wavelength of delay is one full cycle of the oscillation, so the back-surface wave is shifted in its cycle by the angle φ=2πτ/λ\varphi = 2\pi\tau/\lambda. This angle is called the phase difference.

Two waves with different phases are added by writing each one as a complex number whose magnitude is the amplitude and whose angle is the phase, as in the Euler’s identity post. A shift by the angle φ\varphi multiplies the complex number by eiφe^{i\varphi}. The light reflected by the film therefore has amplitude

r−r eiφ  =  r (1−eiφ),φ=2πτλ.r - r\,e^{i\varphi} \;=\; r\,\big(1 - e^{i\varphi}\big), \qquad \varphi = \frac{2\pi\tau}{\lambda}.

The reflectance RR is the fraction of the incoming light that the film reflects. Brightness is proportional to the square of the amplitude, so RR is the squared magnitude of this complex number. Since ∣1−eiφ∣2=(1−cos⁡φ)2+sin⁡2φ=2−2cos⁡φ|1 - e^{i\varphi}|^2 = (1 - \cos\varphi)^2 + \sin^2\varphi = 2 - 2\cos\varphi,

R(λ)  =  2r2(1−cos⁡2πτλ)  =  4r2sin⁡2 ⁣(πτλ).R(\lambda) \;=\; 2r^2\Big(1 - \cos\frac{2\pi\tau}{\lambda}\Big) \;=\; 4r^2 \sin^2\!\Big(\frac{\pi\tau}{\lambda}\Big).

Taking n=1.33n = 1.33 constant across the visible band, r2=0.0201r^2 = 0.0201, so RR lies between 00 and 4r2=8.0%4r^2 = 8.0\%. In the wavenumber σ=1/λ\sigma = 1/\lambda, R=2r2(1−cos⁡2πστ)R = 2r^2(1 - \cos 2\pi\sigma\tau) is a single cosine with period 1/τ1/\tau. Light can also bounce back and forth inside the film several times before it leaves. Summing all of these reflections gives the exact Airy formula (Born and Wolf, §7.6). Its higher harmonics cos⁡(2πkστ)\cos(2\pi k\sigma\tau), for integers k≥2k \ge 2, shrink by a factor r2≈0.02r^2 \approx 0.02 from each kk to the next, and the two-beam formula stays within about 4%4\% of it.

Three numbers from a spectrum

For the CIE 1931 standard observer, light with spectral power P(λ)P(\lambda) is described by three tristimulus values

X=∫P xˉ dλ,Y=∫P yˉ dλ,Z=∫P zˉ dλ,X = \int P\,\bar x\,d\lambda, \qquad Y = \int P\,\bar y\,d\lambda, \qquad Z = \int P\,\bar z\,d\lambda,

where xˉ,yˉ,zˉ\bar x, \bar y, \bar z are the tabulated color-matching functions. Two lights with the same (X,Y,Z)(X, Y, Z) look identical to the standard observer, and since yˉ\bar y is the eye’s sensitivity to brightness, YY is the luminance. Light reflected by the film has P=SRP = SR for an illuminant with spectrum SS. I use D65, the CIE’s standard representation of average daylight (Newton viewed his bubbles “by Reflexion of the Skies when of a white Colour”), normalized so that a perfect reflector has the white point W=(0.950, 1, 1.089)W = (0.950,\ 1,\ 1.089). The sRGB standard specifies the 3×33 \times 3 matrix and the encoding curve that take (X,Y,Z)(X, Y, Z) to the color a screen displays.

The color is a cosine transform

Substitute RR into the three integrals and change variables to σ=1/λ\sigma = 1/\lambda. Define three weight curves on the wavenumber axis by

wx(σ) dσ  =  S(λ) xˉ(λ) dλ∫S yˉ dλ,w_x(\sigma)\,d\sigma \;=\; \frac{S(\lambda)\,\bar x(\lambda)\,d\lambda}{\int S\,\bar y\,d\lambda},

and wyw_y, wzw_z likewise, so that their integrals are the three components of WW. With w=(wx,wy,wz)w = (w_x, w_y, w_z), the tristimulus values of the film are

(XYZ) ⁣(d)  =  2r2(W−c^(τ)),c^(τ)=∫w(σ)cos⁡(2πστ) dσ,τ=2nd.\begin{pmatrix} X \\ Y \\ Z \end{pmatrix}\!(d) \;=\; 2r^2\big(W - \hat c(\tau)\big), \qquad \hat c(\tau) = \int w(\sigma)\cos(2\pi\sigma\tau)\,d\sigma, \qquad \tau = 2nd.

The vector c^(τ)\hat c(\tau) is the cosine transform (the real part of the Fourier transform) of the three weight curves, evaluated at the path difference.

The black film. At d=0d = 0 the cosine equals 11 at every wavelength, so c^(0)=W\hat c(0) = W and the film reflects nothing: the two reflections cancel exactly. For small dd, R(λ)≈4r2(πτ/λ)2R(\lambda) \approx 4r^2(\pi\tau/\lambda)^2 is proportional to 1/λ21/\lambda^2, so the first light reflected by a thin film is weighted toward short wavelengths. Its chromaticity, in the CIE coordinates (x,y)=(X,Y)/(X+Y+Z)(x, y) = (X, Y)/(X + Y + Z), is (0.266,0.281)(0.266, 0.281), bluer than the white point at (0.313,0.329)(0.313, 0.329). This bluish gray is the faint blue that Newton lists right after black. At d=10d = 10 nm the film reflects 0.18%0.18\% of the light, less than a tenth of the 2%2\% reflected by a single water surface but not zero, and Newton could see “the Images of some things (as of a Candle or the Sun) very faintly reflected” from the black spot.

The orders. The luminance Y=2r2(1−c^y(τ))Y = 2r^2\big(1 - \hat c_y(\tau)\big) is smallest when the wavelengths at the center of wyw_y are extinguished, that is, when τ\tau is a multiple of λˉ=554\bar\lambda = 554 nm, the reciprocal of the mean wavenumber of wyw_y. The computed minima are at d=207d = 207, 416416, 626626 and 837837 nm, spaced by λˉ/2n=208\bar\lambda/2n = 208 nm. With the middle of the spectrum removed, red and blue light remain, and these purple bands separate the orders: the second and third orders run through blue, green, yellow and red, and from the fourth order on, greens and pinks alternate and grow paler.

The widget evaluates the formula from the CIE tables at 55 nm steps: the reflectance with the products SxˉS\bar x, SyˉS\bar y, SzˉS\bar z dashed, the chromaticity diagram with the film’s path up to the current dd, and the color for every dd up to 2 μ2\ \mum.

d = 250 nm2nd = 665 nmcolor
Newton: 2nd-order indigo, 244 nm
reflectance R(λ) weights Sx̄, Sȳ, Sz̄ Newton's table (water)
Colors are drawn at 1/(4r²) times the true reflectance, so the brightest film shows as full white. The most saturated blues and greens lie outside sRGB and are clipped.

In the first order the peak of RR, at λ=2τ\lambda = 2\tau, moves from the ultraviolet into the visible band. At d=104d = 104 nm it sits at 553553 nm, RR stays above half its maximum across the band, and the film is white. The zero of RR at λ=τ\lambda = \tau enters the band at d=143d = 143 nm, which turns the film yellow and then red, and reaches the green at d=208d = 208 nm. The chromaticity path goes once around the white point in each of the first three orders. After that, it swings between the green and pink sides of the white point, at a distance that shrinks in every order after the second.

The colors fade to white

As dd grows, c^(τ)→0\hat c(\tau) \to 0 by the Riemann–Lebesgue lemma (the Fourier transform of an integrable function tends to zero at infinity), so a thick film reflects the illuminant’s own color at 2r2≈4%2r^2 \approx 4\%, the reflectance of two water surfaces whose reflections add without interfering. The cosine in RR has period 1/τ1/\tau in σ\sigma, and the visible band holds τ (1/380−1/780) nm−1\tau\,(1/380 - 1/780)\ \text{nm}^{-1} of its periods: 1.81.8 at d=0.5 μd = 0.5\ \mum and 5.45.4 at d=1.5 μd = 1.5\ \mum. A weight curve that spans several periods averages the cosine to nearly zero.

The widths of the weight curves set the rate of decay. Replacing wyw_y by a Gaussian with the same mean σˉ=1/λˉ\bar\sigma = 1/\bar\lambda and standard deviation ss gives

c^y(τ)  ≈  cos⁡(2πσˉτ)  e−2π2s2τ2,\hat c_y(\tau) \;\approx\; \cos(2\pi\bar\sigma\tau)\; e^{-2\pi^2 s^2 \tau^2},

the oscillation that produces the orders, under a Gaussian envelope. For the tabulated D65 and yˉ\bar y, s=0.136 μm−1s = 0.136\ \mu\text{m}^{-1}, and the envelope falls to 1/e1/e at τ=1/(2 πs)=1.65 μ\tau = 1/(\sqrt{2}\,\pi s) = 1.65\ \mum, a thickness of 0.62 μ0.62\ \mum. The modulus of the exact transform of the tabulated curve stays within 0.0320.032 of this envelope up to d=1.2 μd = 1.2\ \mum. The transform of a narrower weight curve would decay more slowly. This is the width trade-off of the Fourier transform from the Heisenberg post. Computed from the formula, the chromaticity stays within 0.030.03 of the white point for every d≥1.25 μd \ge 1.25\ \mum and within 0.010.01 for every d≥1.61 μd \ge 1.61\ \mum.

Newton’s table

Newton measured the rings of color in the thin film of air between two lenses pressed together, and compiled a table of the thickness “at which each Colour is most intense and specifick”, in millionths of an inch, for films of air, water and glass (Book II, Part II). Selected entries of his water column, converted at 25.425.4 nm per millionth of an inch, next to the computed color at that thickness:

orderNewton’s colorNewton (10⁻⁶ in)dd (nm)computed
1stwhite3⅞98
1styellow5⅓135
1stred6¾171
2ndviolet8⅜213
2ndblue10½267
2ndgreen11⅔296
3rdpurple15¾400
3rdgreen18⁹⁄₁₀480
4thgreen26½673
7thruddy white57¾1467

The brightest computed film, at 104104 nm, is Newton’s white of the first order at 9898 nm. His violet of the second order, at 213213 nm, sits next to the first luminance minimum at 207207 nm, and his last entry, the ruddy white of the seventh order at 14671467 nm, comes out as a pinkish white near the white point.

Newton also viewed the bubble obliquely (Observation 19). At angle θ\theta to the normal inside the film the path difference is 2ndcos⁡θ2nd\cos\theta, so a color seen at thickness dd at normal incidence appears where the film is d/cos⁡θd/\cos\theta thick. Snell’s law gives sin⁡θ≤1/n\sin\theta \le 1/n, so the largest factor, at grazing incidence, is n/n2−1=1.52n/\sqrt{n^2 - 1} = 1.52 for water. Newton’s ratio for his most oblique view: “By the best of my Observations it was between 15 and 15-1/2 to 10.”

The Michel-Lévy chart

A plate of a birefringent crystal between crossed polarizers, at 45°45° to them, transmits the fraction sin⁡2(πΓ/λ)\sin^2(\pi\Gamma/\lambda) of the polarized light, where the retardation Γ\Gamma is the optical path difference between the plate’s two polarizations. That is R/4r2R/4r^2 with Γ=τ\Gamma = \tau, so the strip in the widget is also the interference color chart that mineralogists use to identify minerals in thin section, with 2nd2nd as the retardation (for the same illuminant, and with the birefringence taken constant across the band). Sørensen (2013) recomputed that chart from first principles.

References



Next Post
The kaleidoscope in an elevator