Model
The model has plane, isotropic, nonmagnetic, homogeneous layers with sharp interfaces. The light is a monochromatic plane wave, and every film is treated as coherent. Fields use
E(r, t) = Re{E₀ exp[i(k·r − ωt)]}. An absorbing medium has N = n + iκ with κ ≥ 0, and each layer's normal wavenumber is
qj = √(Nj² − n₀² sin²θ₀), taking the root with Im q ≥ 0. The layer phase thickness is δj = (2π/λ₀) qj dj.
Tilted admittances are η = q (s) and η = N²/q (p).
The characteristic matrix of a layer maps the tangential fields at its back face to its front face:
[E; H]front = [[cos δ, −i sin δ/η], [−i η sin δ, cos δ]] · [E; H]back,
[B; C] = M₁M₂…ML[1; ηs], Y = C/B
r = (η₀ − Y)/(η₀ + Y), R = |r|², T = Re(ηs) |2η₀/(η₀B + C)|² / η₀, A = 1 − R − T
The −i signs follow from the exp(−iωt) convention. Macleod's textbook uses exp(+iωt) and writes +i. For p light the returned rp uses the Fresnel tool's basis êp = ŷ × k̂,
so rp = −(η₀ − Y)/(η₀ + Y) and rp = −rs at normal incidence. The power coefficients do not depend on that sign.
- λ₀
- vacuum wavelength (the medium wavelength is λ₀/n)
- N = n + iκ
- complex refractive index (constant, i.e. non-dispersive, in this tool)
- θ₀, n₀
- angle and (real) index of the incident medium; n₀ sin θ₀ is conserved in every layer
- δ
- phase thickness k₀ q d; Im δ > 0 means attenuation or evanescence across the layer
- η, Y
- tilted admittance of a medium; input admittance of the stack
- QWOT
- quarter-wave optical thickness: n d = λ_d/4
Derivation, and why a second (stable) algorithm is needed
Inside layer j the tangential field is E(z) = A eik₀qz + B e−ik₀qz, and H = η(A eik₀qz − B e−ik₀qz).
Solving for A and B at z = d and substituting at z = 0 gives the matrix above. Tangential E and H are continuous, so the layer matrices simply multiply.
In the incident medium E = 1 + r and H = η₀(1 − r) at the first interface. Their ratio fixes r = (η₀ − Y)/(η₀ + Y).
For an absorbing or evanescent layer, cos δ and sin δ grow like eIm δ/2. The matrix product mixes that growing part with a
decaying part that is 10−16 smaller. Precision is lost, and once Σ Im δ ≳ 700 the product overflows to NaN. (A 1 mm silver film has Im δ ≈ 4×10⁴ at 550 nm.)
The recursive Airy/Rouard method starts at the substrate and carries the reflection coefficient of everything behind each interface:
ρj = (rj,j+1 + ρj+1 e2iδj+1) / (1 + rj,j+1 ρj+1 e2iδj+1), rab = (ηa − ηb)/(ηa + ηb)
The only exponential that appears is eiδ, with |eiδ| ≤ 1, so the result stays finite for any thickness. This is the 2×2 form of a scattering-matrix method.
The same forward amplitudes give the internal field. In Auto mode the tool uses Abelès matrices while Σ|Im δ| < 20 and the recursion otherwise.
The “Abelès vs stable” readout compares the two algorithms over the whole spectrum. They agree to about 10⁻¹⁵ wherever both are stable.
Coherent or incoherent? Interference between the two faces of a layer survives only if the round-trip path 2nd cos θ is shorter than the source's coherence length,
and only if the thickness is uniform to a fraction of λ over the beam. A 1 mm glass window illuminated with a lamp or a spectrometer of 1 nm resolution fails both tests.
Its fringes, with period λ²/(2nD) ≈ 0.1 nm, are averaged away. The correct model then adds the multiply reflected substrate beams in intensity:
R = Rf + Tf² τ² Rb/(1 − Rf′Rbτ²), with τ = exp(−2k₀ Im qs D).
This formula is the exact phase average of the coherent result. Mixing the two, for example by adding amplitudes for some beams and intensities for others inside one film, is not a valid model.
Worked example: a six-period dielectric mirror
A mirror for 600 nm uses TiO₂ (n_H = 2.35) and MgF₂ (n_L = 1.38) quarter-wave layers on glass (nₛ = 1.52): air | (HL)⁶ H | glass.
The physical thicknesses are d_H = 600/(4·2.35) = 63.8 nm and d_L = 600/(4·1.38) = 108.7 nm.
- Each quarter-wave layer transforms an admittance Y into η²/Y. Working from the substrate: Y = (n_H/n_L)^{12} n_H²/nₛ = 594 × 3.633 = 2.16×10³.
- R = [(1 − Y)/(1 + Y)]² = 0.99815, so 99.8 % is reflected. There is no absorption, so T = 0.19 %.
- Stop band: Δg = (2/π) asin(0.97/3.73) = 0.1675. The edges are λ = 600/(1 ± 0.1675) = 514 nm and 721 nm, a width of 207 nm (34 % of λ₀).
- At 45° the stop band shifts to shorter λ, and the p band is narrower than the s band, because η_p = n/cos θ and η_s = n cos θ change the effective contrast in opposite ways. Check this on the angle and spectrum plots.
Load the Bragg (HL)ᴺH preset. The readouts show these numbers computed by the solver, which agree with the formulas to about 10⁻¹².