OPTICSIN 5 MINUTES

E07 / AN INTERACTIVE OPTICS LESSON

Repeat a structure.
Change the allowed waves.

Use momentum matching to find diffraction directions, then use a period’s transfer matrix to explain why a stack can reject a band of frequencies.

12–15-minute lesson · 25–30-minute Python lab
Prerequisites & recommended learning resources ↓

Computed illustration from this lesson’s numerical model.
COMPUTED FROM THE LESSON MODEL

CONCEPTS IN THIS EPISODE

See this episode in the concept map ↓

E07 / WHY LEARN THIS?

How does repetition select where light can travel?

Repeated grooves can separate wavelengths into different directions, while repeated layers can form a mirror over a band of wavelengths. Designing either device requires connecting one repeating unit to the waves supported by the whole structure.

What you gain: Use period and angle to find propagating diffraction orders, connect a layer stack to its reflection band, and distinguish a prediction of allowed directions from a prediction of how much power enters each direction.

BEFORE E07 / PREREQUISITES

Check your starting point.

Useful earlier lessons: E01, E06

  • Complex amplitudes and phase. Track phase gained over one period and distinguish a phase factor from attenuation.Used here: Bloch factors describe how a field repeats through a structure.
  • Matrices, eigenvectors, and modes. Multiply 2 × 2 matrices and interpret their eigenvalues.Used here: A period's transfer matrix determines its propagating and decaying solutions.
Need a refresher? Open the recommended reading.

Use the indicated sections for an unfamiliar idea, then return to this lesson.

For the RCWA extension, review Fourier harmonics and basis truncation; the notebook introduces boundary matching and efficiencies.

  • TU Delft · Fourier analysis ↗

    Use §4.1 for the transform pair, then §4.2.1–4.2.4 for linearity, scaling, shifts, and convolution. Consult §4.2.7 for two successive transforms.

For the notebook: Work with complex matrices and inspect convergence as the number of retained harmonics changes.
NumPy · The absolute basics for beginners ↗

Developed in this lesson: Connect grating directions, Bloch propagation, and band gaps; calculate diffraction efficiencies in the extension.

Browse all prerequisites and learning resources →

Gratings, Bloch waves, and band gaps

Watch the story, then use the experiment below to test the ideas yourself.

5:20 · E07 · Gratings, Bloch waves, and band gapsWatch on YouTube ↗

The film’s logic, step by step.

How does translational symmetry select optical directions and frequency bands?

Follow the film’s argument, then open an explanation where a step feels too fast. Times are approximate; select one to replay that part of the film.

Logic flow

  1. 0:00

    Ask how structure creates colour

    Grooves separate colours by direction; layered stacks reflect selected bands. Both effects can be understood by asking which waves the structure’s symmetry can connect.

  2. 0:21

    Start with a flat interface and conserved kx

    Continuous translation symmetry preserves tangential phase matching. Intersections with each medium’s k-circle give refraction; no propagating intersection gives an evanescent transmitted field.

  3. 1:20

    Replace continuous symmetry with a spatial period

    A periodic modulation supplies reciprocal vectors mK. Candidate outgoing waves now have kx,out = kx,in + mK; the dispersion relation determines which orders propagate.

    Open the missing step →
  4. 2:21

    Apply periodicity along propagation

    Bloch waves reproduce their shape after one period up to a phase. Folding the dispersion into one reciprocal cell identifies where forward and backward waves can couple.

    Open the missing step →
  5. 2:57

    Turn a crossing into a stop band

    Index contrast couples phase-matched counterpropagating waves near Bragg resonance. Their eigenfrequencies split, leaving a range without a propagating bulk Bloch mode.

    Open the missing step →
  6. 3:28

    Use RCWA to compute amplitudes, not only allowed directions

    Fourier orders couple through the permittivity profile. Solve the layer modes, match interfaces, and combine scattering matrices to obtain reflected and transmitted powers.

    Open the missing step →
  7. 4:16

    Converge the solver, then build a phase library

    Increase retained harmonics and check the response. A converged unit-cell sweep can map geometry to complex transmission, but a varying metasurface only borrows periodicity locally.

    Open the missing step →
  8. 4:49

    Use reflection to guide or store light

    Total internal reflection and Bragg reflection provide two confinement mechanisms. E08 adds the self-consistency condition that selects guided and resonant modes.

Unpack the difficult steps

Why does a grating add momentum, and when is only order zero left?

1:37 · Replay this part

t(x) = Σ tm e^(imKx), K = 2π/Λ
t(x)e^(ikx,in x) = Σ tm e^[i(kx,in + mK)x]
propagating order: |kx,in + mK| ≤ nout k₀

Multiplication by a periodic transmission shifts the input transverse frequency by each Fourier harmonic. The same momentum selection follows from periodic Maxwell boundary conditions even when a thin transmission mask is inadequate. Selection tells us where orders are allowed; their powers still require solving the electromagnetic response.

At normal incidence into an output medium of index nout, Λ < λ₀/nout excludes nonzero propagating orders on that side. Oblique incidence and a high-index substrate change this condition. Having only the zeroth propagating order does not by itself imply a uniform effective film: evanescent harmonics and resonances may still strongly control its transmission.

Does folding a dispersion curve create a band gap?

2:57 · Replay this part

E(z + Λ) = e^(iκΛ)E(z)
Bragg coupling: 2β ≈ mK

Folding only relabels equivalent wavevectors. With no periodic index contrast, the folded branches cross freely and no gap opens. A material modulation supplies the coupling between phase-matched forward and backward waves. The coupled standing-wave solutions have different field distributions in the high- and low-index regions, so their frequencies split.

Inside a stop band, the Bloch wavevector is complex and transmission decays with stack thickness. An infinite lossless stack has no propagating bulk solution in that band; a finite stack still tunnels some power and reflects less than one. Gap location and reflectivity also depend on incidence, polarization, layer thicknesses, and losses.

Why can a perfect unit-cell library still predict a lens poorly?

3:52 · Replay this part

RCWA solves a structure repeated periodically, retaining a finite set of Fourier harmonics. Converging that harmonic set makes the periodic problem accurate. It does not test the separate assumption that each cell in a varying lens behaves like an infinite array of identical neighbours.

Rapid geometry changes, strong near-field coupling, and resonant cells can violate that local approximation. Store both amplitude and phase, match the operating wavelength and polarization, and validate representative transitions or the assembled device with a larger-domain solver. Check harmonic convergence independently of this model comparison.

Explore the full experiment →

What to notice first.

A flat interface has no preferred transverse position. Its boundary conditions match the transverse phase variation on both sides, conserving kₓ. Combining kₓ = nk₀ sin θ with that conservation gives Snell’s law. If the transmitted medium has no real longitudinal wavevector for that kₓ, its transmitted field is evanescent.

A periodic interface has a weaker symmetry: it repeats after one period Λ. Its Fourier components occur at integer multiples of K = 2π/Λ. Multiplication by that periodic structure can shift a field’s transverse wavevector by mK, creating diffraction orders.

kₓ,m = kₓ,in + mK   ·   |kₓ,m| < n_out k₀

The second condition selects propagating transmitted orders. Equality is grazing incidence with zero normal flux. The browser uses air on both sides, but the notebook lets you distinguish the incident and exit indices. At normal incidence, higher transmitted orders disappear when Λ < λ₀/n_out; suppressing them on both sides requires considering both media.

This equation predicts directions, not power. Ridge shape, depth, material, and polarization determine how much light enters each allowed order. Equal line brightness in the direction diagram therefore carries no efficiency claim.

By the end, you can

  1. Determine which grating orders propagate in each medium.
  2. Connect a finite Bragg mirror to an infinite crystal’s Bloch gap.
  3. Distinguish energy conservation from convergence in a truncated RCWA calculation.

PREDICT BEFORE YOU CHANGE A CONTROL

If you shrink a grating’s period while keeping wavelength fixed, do more or fewer diffraction orders fit inside the propagating-wave circle?

Change one thing.
Follow what changes.

All plotted fields and curves are calculated from the stated model. Keep the other controls fixed while testing a prediction.

Model: The browser grating panel is kinematic only. The separate Bragg stack is lossless, normally illuminated, with equal layer thicknesses and exterior index 1.9. The optional RCWA model is a 1D lamellar, isotropic, lossless TE layer; it rejects exact cutoffs. TM and nonperiodic structures require additional treatment.

  1. Change the grating period and count orders. Tilt the input and watch positive and negative orders leave the allowed range at different settings.
  2. In the separate layer-stack experiment, reduce index contrast to zero. Explain both the reflectance curve and the disappearance of the Bloch attenuation band.
  3. Restore contrast and vary period count. Compare finite-stack reflection with the infinite-periodic gap condition.

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.

Make a prediction before checking the explanation.

Can you explain the change?

1. The grating equation alone determines…
2. For the lossless layer stack, |½ tr Mperiod| > 1 indicates…
3. An RCWA run has R + T = 1 to machine precision. Its individual orders are…

Your own computational experiment.

The standalone notebook builds the model in small steps, draws the results, and checks the calculation against independent predictions. It runs on CPU using NumPy, SciPy, and Matplotlib. No repository clone, GPU, or external dataset is needed.

In Colab, sign in with a Google account and select Runtime → Run all. Save a copy in Drive to retain edits. Saved notebook outputs and downloadable PNG figures provide a fallback if Colab’s output frame cannot load.

A short lab report

  1. Count orders. Predict the order count before changing wavelength, angle, or exit index.
  2. Build a mirror. Compare two and ten periods at fixed index contrast, then remove the contrast.
  3. Convergence audit. Report conservation, boundary residual, and changes in individual RCWA order powers.
Compare your reasoning

Count orders

Apply the propagation condition in the appropriate medium to every integer m; treat exact grazing separately.

Build a mirror

More periods strengthen finite-stack reflection in the same infinite-medium gap. No contrast removes the periodic scattering.

Convergence audit

A small residual or power-balance error alone does not bound truncation error. Retain more harmonics and compare complex t₀ as well.

Optional deeper extension

Implement a small single-layer TE-RCWA solver, compare uniform-film limits with Fresnel/Airy formulas, and increase the harmonic count until individual orders converge.

The notebook marks the extension clearly. Complete the core experiment and its checks first.

Instructor notes and assessment rubric ↗ · Model, setup, and reproducibility ↗

Know what the model leaves out.

The browser grating panel is kinematic only. The separate Bragg stack is lossless, normally illuminated, with equal layer thicknesses and exterior index 1.9. The optional RCWA model is a 1D lamellar, isotropic, lossless TE layer; it rejects exact cutoffs. TM and nonperiodic structures require additional treatment.

Video companion: watch the E07 film above (5:20).

Calculations and concept checks run locally in your browser. Quiz answers are not uploaded or stored.

Keep exploring from this episode.

Highlighted concepts appear in this episode. Select any concept to find related episodes.

In this episodeUnderstanding foundationCross-topic connection

Connections describe ideas, not a required episode order.

SELECTED CONCEPT

Complex field & phase

Keep amplitude and phase together to describe what light does before a detector measures intensity.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Fourier representation

In this episode

Describe a field by its spatial-frequency components. The same representation connects propagation, imaging, reconstruction, and design.

Other episodes with this concept

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Wave propagation

Follow a field through space by advancing its components and combining them again.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Interference & coherence

Connect field correlations to what survives a camera's averaging: interference, fringe visibility, and speckle.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Imaging & resolution

Use point responses and frequency transfer to understand which details an optical image can carry.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Holography & phase recovery

Recover information about an optical field using a reference or constraints on intensity measurements.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Phase control

Turn a desired phase profile into an optical element, then examine wrapping, quantization, and wavelength dependence.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Periodicity & band gaps

In this episode

Use repetition to connect diffraction directions, Bloch propagation, and frequency bands that a structure rejects.

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Eigenmodes & resonance

In this episode

Find field patterns adapted to an operator or structure. Related eigenvalue methods also describe Bloch waves and statistical coherent modes.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Sampling & discretization

Understand what changes when continuous fields become arrays: sampling limits, computational windows, and derivative approximations.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Maxwell & FDTD

Evolve coupled electric and magnetic fields on a grid, and test the accuracy of time steps and boundaries.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Adjoints & inverse design

Use a scalar objective and an adjoint calculation to find how every design parameter changes the result.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas