OPTICSIN 5 MINUTES

E05 / AN INTERACTIVE OPTICS LESSON

A camera loses phase.
A reference leaves clues.

Turn a phase difference into measurable fringes, recover a complex field from a sideband, and learn what iterative constraints can—and cannot—determine.

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 ↓

E05 / WHY LEARN THIS?

How can you recover what an intensity image hides?

A transparent sample can change optical thickness while barely changing in-focus brightness. Yet measuring that thickness or numerically refocusing the recorded light requires phase. A single intensity image generally leaves several possible fields consistent with the measurement.

What you gain: Use a reference wave to encode phase in measurable fringes, and identify the extra constraints needed for retrieval when no reference is available. Assess what a successful reconstruction actually establishes.

BEFORE E05 / PREREQUISITES

Check your starting point.

Useful earlier lessons: E01, E02, E04

  • Complex amplitudes and phase. Expand interference between a signal and a known reference field.Used here: The cross terms carry relative phase into a measured intensity.
  • Fourier transforms and convolution. Recognize that a linear phase ramp shifts a Fourier spectrum.Used here: An off-axis reference separates the hologram's sidebands.
Need a refresher? Open the recommended reading.

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

For the notebook: Select a Fourier sideband and alternate between complex amplitude and phase arrays.
NumPy · The absolute basics for beginners ↗ · NumPy · Discrete Fourier Transform ↗

Developed in this lesson: Recover a field with a reference and compare that route with reconstruction from intensity constraints.

Browse all prerequisites and learning resources →

Holography and the phase problem

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

5:05 · E05 · Holography and the phase problemWatch on YouTube ↗

The film’s logic, step by step.

How can intensity measurements reveal, or help design, a complex field?

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

    Identify the missing variable

    A transparent cell can change phase while barely changing intensity. A direct image therefore leaves many different complex fields compatible with the same measurement.

  2. 0:58

    Make phase interfere with a known reference

    The cross terms in |U + R|² depend on U’s phase relative to R. Holography converts that relative phase into intensity modulation the detector can record.

    Open the missing step →
  3. 1:32

    Tilt the reference to separate the terms

    A reference tilt supplies a spatial carrier. It shifts the two conjugate cross terms to opposite sides of the Fourier spectrum, away from the central intensity terms.

    Open the missing step →
  4. 1:48

    Crop, demodulate, and refocus

    Isolating one sideband recovers a complex field relative to the reference. With amplitude and phase available, E01’s propagation can refocus it numerically.

    Open the missing step →
  5. 2:35

    Replace the reference with constraints

    Without a reference, known amplitudes or supports in multiple planes constrain the missing phase. Gerchberg–Saxton alternates propagation with amplitude replacement.

    Open the missing step →
  6. 3:35

    Use the same loop to design a phase mask

    Replace a measured far-field amplitude by a desired one, and constrain the input amplitude. The resulting phase mask redistributes light toward the target, with feasibility and speckle limitations.

    Open the missing step →
  7. 4:09

    Check the two different failure modes

    Holography can fail when sidebands overlap or fringes are undersampled. Iterative retrieval can stagnate or fit an ambiguous solution even when the measured amplitudes agree.

  8. 4:43

    Connect measurement to fabrication

    Interference and constraints give two routes to phase. Once a numerical phase profile is designed, E06 asks how a real optical element can implement it.

Unpack the difficult steps

How can a slow detector measure an optical phase?

0:58 · Replay this part

I = |U|² + |R|² + UR* + U*R

The detector need not follow the optical carrier. If U and R have a stable relative phase, their common fast oscillation cancels in the cross term after optical-cycle averaging. Changing U’s phase relative to R changes the recorded brightness. An unknown phase common to both beams remains invisible.

A single on-axis intensity value is not enough to determine both amplitude and phase. Off-axis holography adds a spatial carrier and a bandwidth constraint; phase-shifting holography instead takes several known reference phases. Coherence, polarization overlap, and reference calibration determine whether the cross term can be used quantitatively.

Where does the “three times the bandwidth” rule come from?

2:02 · Replay this part

object support: |f| ≤ B
|U|² support: |f| ≤ 2B
sideband support: fc − B … fc + B
separation: fc − B > 2B; sampling: fc + B < fNyquist

Here B is a one-sided object-field bandwidth, not the full width 2B. Squaring the field makes a difference-frequency spectrum extending to ±2B. With an ideal plane reference, each cross-term island has half-width B and is centred at ±fc. Avoiding the central island requires fc > 3B; retaining the outer edge requires fc + B below the camera’s Nyquist frequency.

This is a conservative 1D support argument along the carrier direction. Real 2D spectra and nonuniform references need their actual supports checked. After cropping, shift the carrier back to zero and account for the known reference amplitude and phase; one sideband contains U times the conjugate reference, while the other contains its conjugate twin.

Why can alternating constraints work without guaranteeing the true phase?

2:55 · Replay this part

U ← Aknown · exp[i arg(U)]
Ũ ← Bknown · exp[i arg(Ũ)]

Each amplitude replacement enforces one measurement while retaining the current phase guess. Propagating between planes lets the other constraint change that phase indirectly. A fixed point can satisfy both amplitude constraints, but the constraint sets are nonconvex; stagnation and multiple solutions are possible.

Fourier magnitude alone is unchanged by global phase, translation, and conjugate inversion. Known support can remove some of these freedoms, but not the unobservable global phase or every possible ambiguity. Additional planes, overlapping measurements, and independent validation are stronger evidence than a small training residual alone.

Explore the full experiment →

What to notice first.

A camera usually records time-averaged intensity, not the complex amplitude U = A eiφ. Many fields therefore share the same camera image. A constant phase rotation changes U but not |U|². For a thin transparent sample, the phase delay is approximately φ = (2π/λ₀)Δn h, linking phase to optical thickness rather than absorption.

Holography introduces a known coherent reference R. Its interference with U makes the measurement sensitive to their relative phase. Expanding the measured intensity is the essential first step: it tells us which parts of the data contain the desired field.

|U + R|² = |U|² + |R|² + UR* + U*R

An untilted reference leaves these terms overlapping in frequency space. A tilted reference R = Arei2πf_cx shifts the two cross terms in opposite directions. The Fourier transform of the real hologram then contains a central background and two conjugate sidebands. Isolating one sideband can recover a complex field, even though the camera recorded only a real intensity.

The simulated object on this page is explicitly band-limited to radius B = 8 Fourier bins. This makes the sampling conditions testable rather than merely visual. The known reference fixes amplitude and phase conventions, so the displayed reconstruction error can be compared directly with the input field.

By the end, you can

  1. Expand a hologram into its background and interference terms.
  2. Choose a carrier and Fourier crop that isolate the desired field.
  3. Distinguish reference-based recovery from iterative phase retrieval and its ambiguities.

PREDICT BEFORE YOU CHANGE A CONTROL

A transparent object can change phase while leaving its in-focus intensity nearly uniform. What extra field would make that phase affect a camera reading?

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: Coherent, stable, monochromatic scalar fields and a known plane-wave reference. The browser uses a periodic, noiseless, explicitly band-limited object and integer-bin carriers. Real detectors add noise, finite pixels, nonuniform reference amplitude, and calibration errors.

  1. Use the isolated-sideband preset and compare the known and reconstructed phases. Check the numerical field error rather than judging the colours alone.
  2. Reduce the carrier until the sideband overlaps the central term. Keep the crop fixed and explain why translating the crop cannot remove mixed information.
  3. Restore the carrier and shrink the crop. Then increase the carrier toward Nyquist. Distinguish lost bandwidth from aliasing.

Separation and sampling have to hold together.

If U has bandwidth B, its intensity |U|² can extend to 2B. The sideband centred at f_c occupies approximately f_c ± B along the carrier direction. To separate it from the central term, use f_c > 3B. To keep it inside the sampled band, also require f_c + B < f_Nyquist. A real object with spectral tails needs margins rather than relying on exact compact support.

The reconstruction here selects the negative-carrier term UR*, translates it to zero frequency, takes an inverse FFT, and divides by the reference amplitude. Selecting the other island gives the conjugate field unless the convention is adjusted. An arbitrary global phase remains unobservable if the reference phase itself is unknown. Once a field is recovered, the propagation operator from E01 can numerically refocus it.

Without a reference, constraints do the work.

Phase retrieval starts from measurements such as a Fourier magnitude and assumptions such as a known spatial amplitude or support. Gerchberg–Saxton alternates between planes: propagate, replace the magnitude with the measured value while keeping phase, propagate back, and impose the other constraint.

U → F[U] → measured magnitude + current phase → F−1 → object constraint

Each projection satisfies one condition, but their combination is a nonconvex problem. A small residual does not automatically prove a unique or correct object. Depending on the experiment, shifts, conjugate inversion, or global phase can leave measurements unchanged. Multiple initializations can stagnate at different solutions. Additional distances, known references, or scanning diversity add information rather than merely iterations.

The same loop can design a phase-only hologram by replacing a measured magnitude with a desired output magnitude. That is a synthesis problem: the target may not be exactly reachable under a fixed input amplitude. The notebook reports residuals and compares starts instead of promising exact convergence.

Make a prediction before checking the explanation.

Can you explain the change?

1. Why tilt the reference?
2. Increasing the carrier without limit eventually…
3. A phase-retrieval run reaches a small magnitude residual. That guarantees…

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. Budget the spectrum. For B = 8 and Nyquist = 64 bins, identify a safe carrier interval and explain both bounds.
  2. Compare crops. Reconstruct with a crop smaller than, equal to, and larger than the object bandwidth.
  3. Test an ambiguity. Rotate a candidate field by a constant phase and compare its Fourier magnitude.
Compare your reasoning

Budget the spectrum

Use 24 < f_c < 56 bins before adding practical margins. The crop must contain B without admitting central or conjugate terms.

Compare crops

A small crop smooths the field. An unnecessarily large crop can collect unwanted terms; colour similarity is not a quantitative error test.

Test an ambiguity

The magnitude is unchanged. Phase-sensitive comparisons should align global phase when no known reference fixes it.

Optional deeper extension

Numerically refocus a recovered field, compare several Gerchberg–Saxton initializations, and design a phase-only two-spot hologram.

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.

Coherent, stable, monochromatic scalar fields and a known plane-wave reference. The browser uses a periodic, noiseless, explicitly band-limited object and integer-bin carriers. Real detectors add noise, finite pixels, nonuniform reference amplitude, and calibration errors.

Video companion: watch the E05 film above (5:05).

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

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

In this episode

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

In this episode

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

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