03 COMPUTATIONAL OPTICS / AN INTERACTIVE LESSON

A perfect lens.
Still a blurry image.

Two points become two overlapping patterns. Find out what makes them distinguishable—and why zooming in is only part of the story.

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

Computed intensity patterns of two incoherent point sources, overlapping into a luminous pair with faint diffraction rings.
WHAT A PERFECT LENS SEESTwo points. One finite aperture.

CONCEPTS IN THIS EPISODE

See this episode in the concept map ↓

E03 / WHY LEARN THIS?

Why does more magnification stop revealing detail?

You want to distinguish two nearby emitters in a microscope. Enlarging the image also enlarges their blur spots, so a bigger picture alone does not tell you whether the optics captured the separation. You need a way to connect the instrument to the information it records.

What you gain: Compare changes in numerical aperture and wavelength, distinguish optical resolution from display zoom, and judge which detail a measured image can support before attempting deconvolution.

BEFORE E03 / PREREQUISITES

Check your starting point.

Useful earlier lessons: E01, E02

Need a refresher? Open the recommended reading.

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

For the notebook: Use 2D arrays and FFTs; compare curves with the same units and normalization.
NumPy · The absolute basics for beginners ↗ · NumPy · Discrete Fourier Transform ↗

Developed in this lesson: Distinguish a two-point resolution criterion from a spatial-frequency cutoff. The Airy pattern and NA are introduced here.

Browse all prerequisites and learning resources →

Why even a perfect lens blurs.

Watch the story, then use the experiment below to change the aperture, wavelength, and point separation.

5:12 · E03 · The diffraction limitWatch on YouTube

The film’s logic, step by step.

Why does a perfect lens blur, and which missing details can computation recover?

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

    A point object becomes a finite spot

    Tiny emitting beads remain blurred even with an ideal lens. The task is to identify the physical origin of that blur, not a manufacturing defect.

  2. 0:25

    Build the image from point responses

    Independent emitters contribute shifted intensity PSFs. Their sum is a convolution, whose Fourier transform turns blur into frequency-by-frequency multiplication.

    Open the missing step →
  3. 1:20

    Derive the PSF from the finite pupil

    The pupil accepts only some plane-wave directions. Summing that limited field spectrum gives a finite amplitude spot; squaring it gives the intensity PSF.

    Open the missing step →
  4. 2:20

    Use a grating to ask which detail survives

    A stripe pattern needs collected diffraction orders to interfere. Tilting illumination can place two orders at opposite pupil edges, extending the accessible object frequencies.

    Open the missing step →
  5. 3:10

    Separate coherent and incoherent transfer

    Coherent imaging filters a field by the pupil. Incoherent imaging filters object intensity by the OTF, a pupil autocorrelation; its wider support has declining contrast.

    Open the missing step →
  6. 3:56

    Try inversion and encounter noise

    Dividing by a small OTF amplifies measurement noise. Regularization stabilizes frequencies that carry useful evidence, but a zero transfer value leaves a true measurement null space.

    Open the missing step →
  7. 4:42

    Keep the assumptions attached to the limit

    The PSF-convolution picture assumes a locally shift-invariant system. Resolution also depends on illumination, contrast, noise, and the criterion used; E04 explains the coherence distinction behind the two imaging models.

Unpack the difficult steps

Is the Fourier transform of the pupil already the PSF?

1:58 · Replay this part

hA = ℱ⁻¹{P}, hI = |hA|²
coherent: I = |hA ∗ Uobject|²
incoherent: I = hI ∗ O

The pupil P acts on field amplitudes. Its inverse transform gives the amplitude impulse response hA. The intensity PSF hI is its squared magnitude. For mutually incoherent emitters, cross terms average away and the object intensity O can be convolved with hI. For coherent illumination, convolve the complex field first, then square.

A clear circular pupil produces an Airy intensity pattern. Its first dark-ring radius is 0.61λ₀/NA, with NA = n sin θmax and λ₀ the vacuum wavelength. A slit or a 1D model has a different PSF shape and numerical constants.

Why does the incoherent cutoff double, and is that the same as Rayleigh resolution?

3:25 · Replay this part

fc,coherent = NA/λ₀
OTF(f) ∝ ∫ P(q + f)P*(q) dq
fc,incoherent = 2NA/λ₀

Use spatial frequency f in cycles per unit length here. If the pupil extends from −fc to +fc, two shifted copies can still overlap for shifts as large as 2fc. This difference-frequency support is why the incoherent OTF reaches twice as far. The overlap shrinks near the edge, so detectable contrast can disappear well before the mathematical cutoff.

The period λ₀/(2NA) describes the edge of this frequency support. Rayleigh’s 0.61λ₀/NA describes two equal, incoherent point sources for a circular pupil. These answer different questions. Oblique coherent illumination can shift which object frequencies enter the pupil, but it does not turn the coherent field transfer function into the incoherent OTF.

Why can sharpening recover some blur but not the missing band?

4:05 · Replay this part

Y(f) = H(f)O(f) + N(f)
Ô(f) = [H*(f) / (|H(f)|² + K(f))] Y(f)

Where H is small, direct division also divides the noise by a small number. The Wiener form above uses a noise-to-signal power ratio K to trade inverse gain for stability. It estimates information supported by the measurement and a statistical model; it does not measure new frequencies.

If H = 0, many objects differing only in that band produce the same data. A prior can choose one plausible object, and additional measurements can constrain the ambiguity. Distinguish such inference from uniquely recovering a detail present in this one image.

Explore the full experiment →

Every point leaves a footprint.

A point source is imaged as an Airy pattern: a bright central spot surrounded by faint rings. This is the lens’s point spread function, or PSF.

For independent glowing points, like fluorescent emitters, the intensities add. An extended object is a sum of these footprints: an intensity convolution, I = O ∗ h.

By the end, you can

  1. Predict how numerical aperture and wavelength change the PSF.
  2. Distinguish a two-point resolution criterion from a spatial-frequency cutoff.
  3. Explain why magnification and deconvolution cannot create missing measurements.
PREDICT BEFORE YOU TOUCH THE SLIDERS

Two emitters are 520 nm apart. Would you change the wavelength, the aperture, or the display zoom to make their optical images more distinguishable?

Change the optics.
Watch the overlap.

Start with one variable. Keep the others fixed.
All distances below are in object space.

TWO EQUAL, INCOHERENT POINT SOURCESLive calculation
5.00 μm field of viewIntensity scale: 0–2 · per-source peak = 1
RAYLEIGH SEPARATION516 nm
SEPARATION / RAYLEIGH1.01×
REFERENCE COMPARISONNear Rayleigh

A slice through both points

SumPoint 1Point 2
Linear intensity, even when the image above uses square-root contrast. Dashed vertical lines mark the true source positions.
TRY A CASE

What you are seeing: a noiseless, in-focus scalar model with a circular, aberration-free pupil. Each single-source PSF is normalized to unit peak, so this compares shape, not light collection or photon counts across NA. Rayleigh is a useful convention, not an abrupt boundary between possible and impossible measurements.

One lens. Two different questions.

TWO POINTS

How much do their images overlap?

dR ≈ 0.61 λ0 / NA

At the Rayleigh separation, the central peak of one Airy pattern lies at the first zero of the other. This convention applies here to two equally bright, mutually incoherent points.

A PERIODIC PATTERN

Which frequencies reach the image?

fc = 2 NA / λ0

The incoherent intensity transfer function reaches zero at this cutoff. Its reciprocal, λ0/(2 NA), is a limiting period—not the Rayleigh two-point distance. Contrast is already zero at the cutoff.

Where do the Airy pattern and the factor 0.61 come from?

For a circular pupil, the peak-normalized intensity PSF is

h(r) = [2 J₁(v) / v]²,   v = 2π NA r / λ0.

J₁ is the first-order Bessel function, and h(0) = 1 by its limit. Its first positive zero is v ≈ 3.831706. Dividing by 2π gives 0.609835. The two-point image is h(√((x − d/2)² + y²)) + h(√((x + d/2)² + y²)).

Fine detail loses contrast
before it disappears.

The same NA and wavelength from the experiment above drive this transfer function.

Send a stripe pattern through the lens.

For an incoherent sinusoidal object, the modulation transfer function (MTF) tells you what fraction of the input contrast survives.

Cutoff fc
2.36 cycles/μm
Selected frequency
1.18 cycles/μm
Contrast transmitted
39.1%

Only part of this pattern’s contrast survives.

At zero frequency the pattern is uniform; “contrast transmitted” denotes the transfer function’s DC limit.

Object · 80% input contrast
Image · 31.3% output contrast

Both strips span 4 μm and use the same linear gray scale. This example is an infinite sinusoid, not a finite cropped object.

See the transfer function and the coherent-imaging distinction

For this ideal circular pupil, H(ρ) = (2/π)[arccos ρ − ρ√(1 − ρ²)] for 0 ≤ ρ < 1, and H = 0 for ρ ≥ 1, where ρ = |f|/fc. H is real and nonnegative, so MTF = |H| = H.

For coherent illumination, the pupil instead filters the complex field with cutoff NA/λ0; intensity is taken afterward. Do not compare that field cutoff to an intensity cutoff without specifying the object and illumination. This experiment stays with incoherent emitters throughout.

Make the prediction
your own.

Try answering before opening the Python lab. Each answer comes with an explanation.

1. At fixed wavelength, doubling NA changes the Rayleigh separation by…
2. Increasing only display zoom makes two unresolved patterns…
3. Where H(f) = 0, dividing the measured spectrum by H can…

Your next experiment
is a few cells away.

The self-contained Python notebook reproduces the Airy profiles, builds a PSF from a pupil with an FFT, verifies the transfer function, and explores noisy deconvolution.

The notebook is publicly available on GitHub. Choose Open in Colab, sign in with your Google account, then select Runtime → Run all. No GitHub account, repository clone, GPU, or paid Colab plan is needed. To keep your edits, save a copy to your own Drive. You can also download the notebook for local Jupyter.

FROM APERTURE TO IMAGEPython / CPU
# An incoherent image is intensity convolution.
field_psf = np.fft.ifft2(pupil)
psf = np.abs(field_psf) ** 2
psf /= psf.sum()

otf = np.fft.fft2(psf)
image = np.fft.ifft2(
    np.fft.fft2(object_intensity) * otf
).real

The notebook makes the sampling, array layout, and periodic FFT boundary assumptions explicit.

Know what the model leaves out.

This is a scalar, monochromatic, shift-invariant model. It omits aberrations, vector polarization effects, defocus, finite emitters, detector pixel integration, and photon noise in the browser demo. High-NA behavior is illustrative; vector models may be needed for quantitative microscopy. The notebook introduces additive noise separately.

Video companion: watch the E03 film above (5:12).

Learning checks run locally in your browser. No answers are 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

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

In this episode

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

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