OPTICSIN 5 MINUTES

E01 / AN INTERACTIVE OPTICS LESSON

A field spreads.
Its plane waves do not.

Follow a slit field into space by changing the representation: separate its directions, advance their phases, and add them back.

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 ↓

E01 / WHY LEARN THIS?

Where will the light go after this plane?

You know the field just after a slit or a phase mask, but the detector sits farther away. Predicting its image means following diffraction and phase through space. The same problem appears when refocusing a hologram or checking whether a designed optic produces its intended pattern.

What you gain: Build a propagation tool that later lessons reuse, predict how aperture, wavelength, and distance change a field, and recognize when a surprising pattern comes from the numerical grid.

BEFORE E01 / PREREQUISITES

Check your starting point.

This is the first lesson in the course.

  • Complex amplitudes and phase. Read a wave as A exp(iφ) and intensity as |u|².Used here: The propagation factor changes each component's phase and, for evanescent components, its amplitude.
  • Fourier transforms and convolution. Interpret a Fourier transform as a change from position to spatial-frequency components.Used here: Each component represents one transverse wavevector.
  • Matrices, eigenvectors, and modes. Recognize a basis expansion and Av = λv.Used here: The film describes plane waves as eigenfunctions of free-space propagation.
Need a refresher? Open the recommended reading.

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

For the notebook: Use complex arrays and FFT frequency bins; keep physical sample spacing separate from array indices.
NumPy · The absolute basics for beginners ↗ · NumPy · Discrete Fourier Transform ↗

Developed in this lesson: Build the angular-spectrum propagator and test its sampling and propagation limits.

Browse all prerequisites and learning resources →

The angular spectrum method

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

5:07 · E01 · The angular spectrum methodWatch on YouTube ↗

The film’s logic, step by step.

How can a field on one plane determine the diffraction pattern on another?

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

    Start with the pattern we want to predict

    A slit produces bright and dark bands. Predicting them requires the field, including phase, rather than a picture of its brightness alone.

  2. 0:23

    Encode phase as a rotating arrow

    Wavelength fixes k = 2π/λ. Complex exponentials turn a phase advance into multiplication, making propagation easier to express.

  3. 1:27

    Find which directions the wave equation permits

    Substitute a plane wave into Helmholtz: kx² + kz² = k². Once the transverse frequency kx is known, the forward kz is fixed.

  4. 2:12

    Decompose the field into these simple waves

    Linearity allows solutions to be added. The Fourier transform finds how much of each transverse plane wave is present in the input.

    Open the missing step →
  5. 2:56

    Propagate each component independently

    A plane wave keeps its transverse shape and gains exp(ikz z). Changing to this basis makes propagation diagonal; the inverse transform adds the advanced waves back together.

    Open the missing step →
  6. 3:35

    Handle the components outside the k-circle

    For |kx| > k, kz is imaginary. The outgoing solution decays with distance, so very fine spatial structure is rapidly lost away from the object.

    Open the missing step →
  7. 4:00

    Turn the diagonal operator into an FFT recipe

    FFT → multiply by the transfer function → inverse FFT. Sampling and padding now decide whether the numerical field faithfully represents the continuous one.

    Open the missing step →
  8. 4:47

    State what “exact” means

    The continuous propagator solves the homogeneous scalar Helmholtz equation without a small-angle approximation. A finite FFT still has numerical errors, and vector or material effects require a richer model.

Unpack the difficult steps

Why does a Fourier transform turn positions into directions?

2:32 · Replay this part

At z = 0, the function exp(ikx x) is a transverse phase pattern. Extending it into space as exp[i(kx x + kz z)] makes a plane wave. Its wavefront normal points along (kx, kz), so kx/k = sin θ. The transform is therefore a list of complex amplitudes indexed by propagation direction, with additional evanescent components outside |kx| ≤ k.

Ũ(kx) = ∫ U(x,0)e^(−ikx x) dx
U(x,z) = ℱ⁻¹{Ũ(kx)e^(ikz z)}

The coefficients are amplitudes with phases; their squared magnitudes alone cannot reconstruct U. Plane waves are useful because each is an eigenfunction of propagation in a uniform medium, not because the physical beam consists of isolated rays.

Why choose decay, and does every evanescent wave die within one wavelength?

3:35 · Replay this part

kz = iα, α = √(kx² − k²) > 0
e^(ikz z) = e^(−αz), decay length = 1/α

For an outgoing field in the source-free half-space z > 0, choose the branch that stays bounded away from the source. The other branch grows without bound. The decay length depends on kx: just above the cutoff it can be much longer than λ; far above it, much shorter. The film’s wavelength-scale description is a useful scale estimate, not a universal bound.

The sampling condition also depends on the frequencies you need. To represent transverse frequencies up to kx,max, require Δx < π/kx,max. Resolving evanescent detail can therefore demand spacing finer than λ/2.

Why do padding and propagation distance matter if the formula is exact?

4:24 · Replay this part

A discrete Fourier transform treats the sampled window as one period of an endlessly repeated field. A diffracting beam that leaves one edge can reappear at the opposite edge. Padding gives the beam more empty space before those periodic copies overlap; it does not restore frequencies lost by coarse sampling.

Longer propagation also makes the transfer-function phase vary more rapidly across frequency samples. Check convergence by enlarging the window and refining the grid independently. The paraxial sampling crossover discussed in E02 is a guide for choosing a propagator, not proof that every angular-spectrum computation below it is accurate.

Explore the full experiment →

What to notice first.

A slit removes part of an incident wave. Immediately after the opening, the field is bright in a narrow strip. Farther away, bright and dark bands appear outside that strip. Straight rays alone cannot explain the pattern: contributions from different parts of the opening interfere.

Write one monochromatic field as U(x) = A(x)eiφ(x). A complex number is an arrow: its length is amplitude, its angle is phase. The physical electric field is the real part of this slowly described amplitude multiplied by e−iωt. A camera averages the rapid oscillation and records a quantity proportional to |U|². Consequently, equal intensities do not imply equal fields.

A plane wave has a particularly simple transverse profile, eikₓx. Its phase increases by kₓ radians per unit distance in x. A Fourier transform tells us how much of each such profile is present. These coefficients are complex amplitudes, so we must retain their phases when rebuilding the field.

k = 2π/λ   ·   kₓ = 2πfₓ   ·   kₓ² + k_z² = k²

The last relation is the scalar Helmholtz equation evaluated on a plane wave. It links a transverse frequency to a longitudinal propagation constant. For a propagating component, sin θ = kₓ/k. Thus a spatial-frequency plot is also a map of propagation directions.

By the end, you can

  1. Interpret a Fourier coefficient as a plane-wave amplitude.
  2. Predict how wavelength, aperture width, and distance change diffraction.
  3. Separate physical evanescent decay from numerical aliasing and wrap-around.

PREDICT BEFORE YOU CHANGE A CONTROL

Keep the wavelength fixed. If you halve the slit width, will the distant central band become narrower or wider? Explain before moving a control.

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: Scalar, monochromatic propagation in homogeneous free space. The slit is a 1D field invariant in the omitted direction. No vector polarization, material boundary scattering, detector averaging, or noise is modeled. FFT windows are periodic.

  1. Start at z = 0 and confirm that the output reproduces the input slit. Then advance z while watching both the intensity and complex-field plots.
  2. Compare widths 2 μm and 1 μm at the same distance. A narrower opening requires a broader range of transverse frequencies; their interference spreads farther.
  3. Use the narrow-slit preset, then compare padded and original windows at long distance. Change only padding: it changes the numerical boundary, not the physical slit.

Propagation becomes multiplication.

In homogeneous space, the plane-wave components evolve independently. Moving forward by z multiplies one coefficient by H = eik_zz. The spatial field changes shape because different directions acquire different phases, even though each individual plane wave keeps its shape.

U(x,z) = F−1{ F[U(x,0)] · eiz√(k²−kₓ²) }

When |kₓ| exceeds k, take k_z = i√(kₓ²−k²), choosing the branch that decays away from the source. The multiplier is then a decreasing real exponential. This is an evanescent component, not a propagating wave that has been stopped by an aperture. Recovering it by backward exponential amplification would be extremely sensitive to noise.

For small angles, expand the square root: k_z ≈ k − kₓ²/(2k). That is the Fresnel approximation. It can be excellent for narrow angular spectra but does not represent the evanescent branch. Switching the model is a physical approximation; increasing the grid size is a numerical refinement. The notebook lets you vary these independently.

The FFT adds an implicit boundary condition.

A discrete FFT describes a periodically repeated window. If the diffracted field reaches the edge, it can re-enter from the opposite side. Zero padding separates the copies. Padding does not create higher spatial resolution: the sample spacing still sets the Nyquist frequency. To include the entire propagating band at normal scalar sampling, Δx ≤ λ/2 is sufficient; evanescent structure can require still smaller spacing.

For a spectrum containing only propagating components, |H| = 1, so the discrete field norm is conserved. A slit also contains evanescent frequencies, whose squared amplitudes decay. The power ratio on this page refers to the complete FFT grid, not just the visible central crop, and is an intensity norm rather than a rigorous vector-field flux measurement.

Make a prediction before checking the explanation.

Can you explain the change?

1. At fixed wavelength, halving a slit’s width generally makes its far-field central band…
2. Doubling zero padding at fixed pixel spacing primarily…
3. For an evanescent component propagated forward, H is…

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. Compare two widths. Predict the ratio of far-field angular widths, then measure their first minima or central-band widths.
  2. Separate numerical errors. Change padding and sample spacing independently. Explain which fixes wrap-around and which extends Nyquist.
  3. Test an eigenfunction. Propagate a single Fourier-grid plane wave and compare it with its analytic phase factor.
Compare your reasoning

Compare two widths

Halving the slit width doubles the ideal far-field angular scale; a finite-distance pattern need not obey the far-field estimate exactly.

Separate numerical errors

Padding separates periodic replicas; smaller pixels represent higher spatial frequencies. Neither replaces checking convergence.

Test an eigenfunction

A grid-aligned plane wave keeps its transverse shape. Its coefficient gains e^(i k_z z), and its norm stays constant when k_z is real.

Optional deeper extension

Build a 2D propagator, compare exact and paraxial transfer functions on the same grid, and repeat with smaller pixels and larger padding.

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.

Scalar, monochromatic propagation in homogeneous free space. The slit is a 1D field invariant in the omitted direction. No vector polarization, material boundary scattering, detector averaging, or noise is modeled. FFT windows are periodic.

Video companion: watch the E01 film above (5:07).

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

In this episode

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

In this episode

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

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

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Eigenmodes & resonance

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

In this episode

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