One period is an operator.
In a layered medium, a two-component vector holds the tangential electric and magnetic fields. A transfer matrix advances it through one layer. Multiplying layer matrices gives one unit cell, and raising that cell matrix to a power gives a finite stack. Boundary matching then determines reflection and transmission amplitudes.
A Bloch wave returns to the same field shape after one period, multiplied by eiK_BΛ. It is therefore an eigenvector of the unit-cell operator. For a lossless reciprocal two-component stack, the determinant is one, and its eigenvalues occur as reciprocal pairs.
cos(K_BΛ) = ½ tr M_period
If the half trace lies between −1 and 1, K_B is real and the Bloch factor has unit magnitude. Outside that interval, the solutions grow or decay across periods. The decaying solution describes penetration into a semi-infinite stop band. A finite mirror still transmits a small amount, and can show interference fringes outside the gap. Its reflectance is not simply a binary band diagram.
RCWA keeps a finite set of coupled orders.
A layer patterned across x couples Fourier components. Expanding its permittivity produces a matrix whose off-diagonal entries connect different diffraction orders. Diagonalizing that matrix finds the layer’s field modes. Boundary matching then connects incoming, reflected, internal, and transmitted amplitudes.
The optional notebook solves one lamellar layer for TE polarization using forward modes referenced at the entrance and backward modes referenced at the exit. This keeps evanescent propagation factors decaying, avoiding a matrix filled with huge growing exponentials. Power in an order includes its longitudinal wavevector factor; squared amplitude alone is insufficient when angles or refractive indices differ.
A truncated basis can conserve total power while distributing it incorrectly among orders. Increase the retained harmonics and compare individual efficiencies and complex amplitudes, as well as boundary residuals and total R + T. The exercise deliberately shows a low-order calculation with excellent conservation but appreciable diffraction error.