Between two interfaces a wave travels back and forth, picking up phase on each pass, and every reflection spawns another. Summing those multiple reflections term by term is possible for one layer (it gives the Airy formula of the Fabry–Pérot section) and impractical for twenty. The transfer matrix does the bookkeeping instead: in each layer the field is a forward and a backward wave, and a matrix carries either the two amplitudes or the two tangential fields from one side of the layer to the other. The Foundations chapter explains why such a matrix must exist for any stratified geometry; this section writes it out for films, the way Abelès did in 1950, and shows what it is good for.
The characteristic matrix of a layer
Take s polarization (p differs only in the admittance) and a layer of index and thickness at the in-plane wavenumber fixed by the incidence. Inside the layer the field is with , and the tangential magnetic field, in units that make the admittance of free space 1, is with the tilted admittance . Eliminate and between the values at the two faces, a distance apart, and the result is a matrix relation between the tangential fields themselves:
Abelès' characteristic matrix , with the phase thickness and, for p polarization, . Its determinant is 1 (it is a product of two matrices of unit Wronskian), its trace is , and it depends on the layer through and only: two numbers per layer per wavelength, which is why a stack of forty layers is no harder than one.
A stack and its admittance
The tangential fields are continuous at every interface, so what leaves the back of layer enters the front of layer unchanged, and the matrices of successive layers simply multiply. In the substrate there is only a transmitted wave, whose fields are in the ratio , so for layers on a substrate
is the admittance of the whole stack: seen from the incident medium of admittance , the coated substrate behaves exactly like a single surface of admittance , and the single-interface formulas of the Fresnel section apply to it:
This is the formulation of Macleod's book and of coating design in general, and its power is that can be followed layer by layer. Macleod's admittance locus plots in the complex plane as each layer is added: a lossless layer moves along a circle centred on the real axis, through an angle , and a design is a path from to the target (zero reflectance) or as far from it as possible (a mirror). A designer reads off from the diagram which layer to add next and how thick, which is how the classic antireflection and filter designs below were found long before computers.
The amplitude form: the field inside
The same physics can be written for the wave amplitudes instead of the fields, which is what Byrnes's code and PyStratify's planar engine do. Crossing an interface between media and maps the forward and backward amplitudes by an interface matrix built from the Fresnel coefficients, and crossing a layer by a diagonal propagation matrix:
The product relates the incident-medium amplitudes to the substrate's , so and . The two forms are equivalent (a change of basis in each layer), but the amplitude form hands over the forward and backward amplitudes in every layer as a by-product. From them the field at any depth,
is a one-line evaluation, and the power absorbed in layer is the difference of the Poynting flux through its two faces, the per-layer absorptance of the solar-cell section. The calculator's field profile and layer absorptances come from exactly these amplitudes.
Quarter waves and half waves
Two thicknesses make the characteristic matrix trivial at the design wavelength , at normal incidence:
- a half-wave layer (, ) has : it is absent, and the stack reflects as if it were not there (which is why the spacer of a bandpass filter is a half wave);
- a quarter-wave layer (, ) has and turns an admittance into : an admittance transformer, the optical quarter-wave line.
A single quarter-wave layer of index on a substrate therefore presents and gives
which vanishes for , 1.23 for glass in air. No durable material has so low an index; magnesium fluoride (1.38) comes closest, and leaves about 1.3 % instead of 4 %.
Code
import numpy as np
from pystratify import planar
n = lambda wl: [1.0, 1.38, 1.52] # incident medium, layers, substrate
d = [np.inf, 0.109, np.inf] # thicknesses, µm
lam = (400 + 2 * np.arange(201)) * 1e-3 # wavelength, µm
th = np.radians(0)
R, T = {}, {}
for pol in ('s', 'p'):
rows = [planar.coh_tmm(pol, n(wl), d, th, wl) for wl in lam]
R[pol], T[pol] = np.array([r['R'] for r in rows]), np.array([r['T'] for r in rows])
R_avg, T_avg = (R['s'] + R['p']) / 2, (T['s'] + T['p']) / 2 # unpolarized
- agrees reflectance minimum at the quarter-wave wavelength 4nd = 601.7 nm (nm): 602 against 601.68 ± 2 (closed form)
- agrees minimum reflectance ((n_s − n²)/(n_s + n²))²: 0.0126008 against 0.012601 ± 2×10⁻⁵ (closed form)
The minimum sits at and is broad, because changes slowly with . Two or three layers (the V-coat and the quarter–half–quarter design) broaden it further, and a graded index takes the idea to its limit in the moth-eye antireflection section.
Herpin's equivalent layer. Any symmetric combination of layers, say, has a characteristic matrix of the same form as a single layer, with an equivalent index and phase thickness that depend on wavelength (Herpin 1947; Macleod ch. 6). A combination of two available materials can therefore stand in for an index that no material offers, including the 1.23 above, and a periodic stack is a periodic repetition of one equivalent layer, which is the shortest route to the stop band of the Bragg mirror. The equivalent index becomes imaginary exactly inside the stop band.
Oblique incidence and absorbing layers
Nothing above assumes normal incidence or real indices. At an angle, shortens each layer's phase thickness, so every feature of a spectrum moves to shorter wavelengths as the coating is tilted, and the admittances of s and p separate, so the two polarizations respond differently (the p admittance grows with angle, the s admittance shrinks). In an absorbing layer is complex, and become hyperbolic, and the wave decays across the layer; the formulas stay valid, and is now positive.
Numerics: where the matrix overflows, and what to do
For a thick absorbing layer, or an evanescent one beyond the critical angle, contains a real exponential that grows without bound: 10 µm of a metal at visible wavelengths gives , beyond double precision. The characteristic matrix carries both and and overflows, and even before that the reflected amplitude is the small difference of two huge numbers. Three remedies are in use:
- Propagate only decaying waves. Byrnes's formulation orders the exponentials so that the growing one never
appears in a product that is later subtracted, and clamps a layer beyond which nothing returns as opaque; this is
what
pystratify.planardoes, and it is why the calculator can hold a millimetre of metal. - The scattering matrix. Instead of transfer matrices, combine the reflection and transmission matrices of sub-stacks with Redheffer's star product. Every quantity is then a reflection or transmission coefficient, bounded by one for a passive stack, and no exponential ever grows (Li 1996, who proved the stability). PyStratify's Verification page compares the planar engine with an independent scattering-matrix solver on lossy, oblique and opaque stacks to .
- Logarithmic amplitudes. Carry and rather than and , so that a factor is the number 700; this is how PyStratify's sphere and cylinder solvers stay stable to any thickness and order, as the multilayered sphere section describes.
The second trap is subtler: the branch of in an absorbing or evanescent layer. Taking the wrong sign makes the "forward" wave grow into the layer, and the error does not announce itself; it shows up as or as failing to vanish beyond the critical angle. The forward-decaying branch of the Fresnel section must be chosen in every layer, and the energy-conservation checks ( below and beyond the critical angle for lossless stacks) are the tests that catch a wrong branch.
References
- F. Abelès, Ann. Phys. (Paris) 12, 596 (1950), doi:10.1051/anphys/195012050596
- H. A. Macleod, Thin-Film Optical Filters, 3rd ed. (Institute of Physics Publishing, 2001), ch. 2–3
- M. Born and E. Wolf, Principles of Optics, 7th ed. (Cambridge University Press, 1999), §1.6, doi:10.1017/CBO9781139644181
- P. Yeh, Optical Waves in Layered Media (Wiley, 1988), ch. 5
- A. Herpin, C. R. Acad. Sci. Paris 225, 182 (1947)
- L. Li, J. Opt. Soc. Am. A 13, 1024 (1996), doi:10.1364/JOSAA.13.001024
- S. J. Byrnes, Multilayer optical calculations, arXiv:1603.02720 (2016), https://arxiv.org/abs/1603.02720