Every thin-film calculation is built from one event repeated: a plane wave meets a flat boundary between two homogeneous media and splits into a reflected and a transmitted wave. Everything in this chapter follows from the continuity of the tangential components of and at that boundary (the Foundations), applied once. The algebra is short, and worth doing once in full, because the same two equations, with Bessel functions in place of exponentials, give Mie's coefficients for a sphere and the cylinder's.
Snell's law
A wave in medium 1 (index ) arrives at angle from the normal. Its field varies along the interface as , and the boundary conditions must hold at every , so the reflected and transmitted waves carry the same in-plane wavenumber . That alone fixes the directions:
and the reflected wave leaves at . The quantity is conserved through any stack of parallel layers, which is why a multilayer can be solved layer by layer at a single , and why an angle of incidence is best thought of as an in-plane wavenumber: every layer's normal wavenumber follows as , real or imaginary.
Two polarizations, two sets of coefficients
The field is split into the part polarized perpendicular to the plane of incidence (s, or TE, from the German senkrecht) and the part polarized in it (p, or TM). They do not mix at a planar interface, because the boundary conditions never couple a field component along to one in the plane. For s polarization, , and the tangential is (from ). Continuity of and of at gives, with the incident amplitude 1,
two equations for two unknowns. For p polarization the roles swap: is continuous, and the tangential . Solving both pairs,
Both have the same structure, in terms of a tilted admittance, for s and for p (up to the convention for ). That one observation is the whole thin-film theory in a nutshell: the transfer matrix carries nothing but these admittances from layer to layer.
The sign of . Two conventions are in use for the direction of the p-polarized electric field, and they differ in the sign of ; the expression above, in which at normal incidence, follows Byrnes (2016), whose transfer-matrix code PyStratify's planar engine extends. In the other convention (Born and Wolf) changes sign, so that at normal incidence. Nothing physical depends on the choice, but the phase of ellipsometry does, by 180°, and comparing two codes or a code with a paper starts with settling it.
Phases. For external reflection () below the Brewster angle, is negative: the s wave flips its phase by on reflection from a denser medium, the origin of the "half-wave loss" of elementary optics, while in this convention is positive and crosses zero at Brewster. Internal reflection reverses both signs.
Power coefficients
The reflected and incident waves travel in the same medium, so the reflectance is simply . The transmitted wave travels in a different medium at a different angle, and the ratio of the power flows normal to the interface carries the ratio of the admittances:
is a common mistake; it fails already at normal incidence between two dielectrics, where is not . The conjugates in matter only for absorbing media, where the Poynting vector of an inhomogeneous wave is not along the real part of the wavevector. With them, holds exactly for lossless media, which is the first of the Verification page's checks. At normal incidence both polarizations reduce to
4 % for glass in air, 31 % for silicon (), 1.3 % for a water surface.
Code
import numpy as np
from pystratify import planar
n = lambda wl: [1.0, 1.5] # incident medium, layers, substrate
d = [np.inf, np.inf] # thicknesses, µm
wl = 600 * 1e-3 # wavelength, µm
angles = 0 + 0.5 * np.arange(179) # degrees
R = {pol: np.array([planar.coh_tmm(pol, n(wl), d, np.radians(a), wl)['R'] for a in angles]) for pol in ('s', 'p')}
- agrees Brewster angle, arctan(n₂/n₁) (°): 56.5 against 56.31 ± 0.5 (closed form)
- agrees normal-incidence reflectance, ((n₂ − n₁)/(n₂ + n₁))²: 0.04 against 0.04 ± 10⁻⁶ (closed form)
The Brewster angle
vanishes where , which with Snell's law is : the reflected and transmitted directions are perpendicular. The dipoles driven in medium 2 oscillate along the transmitted , which is then exactly along the would-be reflected ray, and a dipole does not radiate along its own axis. This happens at
56.3° for glass in air, 75.6° for silicon. Light reflected at the Brewster angle is purely s-polarized, which is how polarizing sunglasses cut glare and how Brewster windows keep a laser cavity lossless for one polarization. For an absorbing medium never reaches zero; its minimum defines a pseudo-Brewster angle, which for metals lies near 70–80° and is where ellipsometers measure, because the phase difference between and changes fastest there.
Total internal reflection and the evanescent wave
From the dense side (), Snell's law has no real solution beyond the critical angle
41.8° for glass to air. There becomes imaginary: the transmitted field is , bound to the interface and decaying into medium 2 with
about a fifth of a wavelength a few degrees past the critical angle, growing without bound as . Both reflection coefficients have unit modulus, , so all the power returns; what is not zero is their phase, which differs between s and p and depends on the angle. That phase is a design quantity in its own right: the Fresnel rhomb turns linear into circular polarization with two total reflections at the angle where the s–p phase difference is 45°, with no birefringent material at all. The phase also varies with , and a beam of finite width, a superposition of plane waves with slightly different , is shifted sideways along the interface by a fraction of a wavelength on reflection: the Goos–Hänchen shift (1947), measured with a multiply reflecting glass block.
The evanescent field still reaches a fraction of a wavelength into the second medium, and it carries no power only as long as nothing is there to take it. A second dense medium brought that close lets light tunnel through (frustrated total reflection, the optical analogue of quantum tunnelling and the principle of the beam-splitter cube), a molecule there is excited (total-internal-reflection fluorescence microscopy), and a metal film couples it to surface plasmons, the principle of the Kretschmann configuration.
Code
import numpy as np
from pystratify import planar
n = lambda wl: [1.5, 1.0] # incident medium, layers, substrate
d = [np.inf, np.inf] # thicknesses, µm
wl = 600 * 1e-3 # wavelength, µm
angles = 0 + 0.5 * np.arange(179) # degrees
R = {pol: np.array([planar.coh_tmm(pol, n(wl), d, np.radians(a), wl)['R'] for a in angles]) for pol in ('s', 'p')}
- agrees onset of total reflection, arcsin(n₂/n₁) (°): 42 against 41.81 ± 0.5 (closed form)
- agrees internal Brewster angle, arctan(n₂/n₁) (°): 33.5 against 33.69 ± 0.5 (closed form)
Absorbing media and the branch of the square root
For an absorbing medium the index is complex, (time dependence , ), and so is . The angle then has no geometric meaning: the planes of constant phase and of constant amplitude in medium 2 are not parallel (an inhomogeneous wave), and the transmitted wave decays along whatever its direction. The square root has two branches, and the physical one is the wave that carries power away from the interface and decays into the medium, that is or, at the boundary of that condition, . A code that takes the principal square root blindly gets this wrong for some metals and for every evanescent wave beyond the critical angle in a weakly absorbing medium; Byrnes's implementation tests the branch explicitly, and PyStratify's planar engine inherits the test. Once the branch is right, every formula above holds unchanged for metals, for semiconductors above their band gap and for evanescent waves alike, which is why one engine serves a glass lens, a silver mirror and a surface-plasmon sensor.
Ellipsometry: the ratio of the two
The two Fresnel coefficients are rarely measured separately. An ellipsometer sends in light of known polarization and measures the polarization of the reflected light, that is the complex ratio
being the amplitude ratio and the phase difference. For a bare substrate inverts in closed form to the complex index,
which is how the optical constants of most materials in the databases were first obtained, and for a film on a substrate follows from the transfer matrix and is fitted for thickness and index (Azzam and Bashara). The calculator's Ψ and Δ are this ratio with the sign convention , which puts in the range ellipsometer software reports; the 180° difference between conventions is the one to remember when comparing with a paper.
References
- M. Born and E. Wolf, Principles of Optics, 7th ed. (Cambridge University Press, 1999), §1.5 and §14.2, doi:10.1017/CBO9781139644181
- J. D. Jackson, Classical Electrodynamics, 3rd ed. (Wiley, 1999), §7.3–7.4
- R. M. A. Azzam and N. M. Bashara, Ellipsometry and Polarized Light (North-Holland, 1977), ch. 4
- F. Goos and H. Hänchen, Ann. Phys. 436, 333 (1947), doi:10.1002/andp.19474360704
- S. J. Byrnes, Multilayer optical calculations, arXiv:1603.02720 (2016), https://arxiv.org/abs/1603.02720