A Byte of PhysicsLogo

Diffraction

Diffraction is what a finite opening does to a wave. A narrow aperture does not simply pass through a smaller beam; it changes the angular pattern because different parts of the opening contribute with different phases. Computationally, this is an aperture-to-pattern transform problem with sampling limits.

Think like a programmer

Store the aperture function, wavelength, observation geometry, grid spacing, normalization, and transform convention. Refine the aperture sample grid before trusting a reported minimum or peak position. A graph without its sampling scale cannot demonstrate convergence.

Model checklist

Inputs
Aperture width or shape, wavelength, observation angle or screen position, grid spacing, and propagation approximation.
State
Sampled aperture amplitude and phase plus transform normalization.
Rule
Sum or transform contributions from the aperture to each observation direction.
Output
Relative intensity pattern, central-maximum width, and predicted minima.
Check
For a single slit, the central maximum is centred at zero angle and the first minimum moves predictably when aperture width changes.

For an ideal single slit of width a, the far-field intensity has the familiar form

\[I(\theta)=I_0\left(\frac{\sin\beta}{\beta}\right)^2,\qquad\beta=\frac{\pi a\sin\theta}{\lambda}\]

The first dark minima satisfy approximately

\[a\sin\theta=\pm\lambda\]

This is a far-field, scalar-wave result. It is useful as a reference fixture for a sampled Fourier-style model. Set the aperture array to a rectangle, compute its transform, square magnitude for intensity, and compare the first minimum against the analytic condition as the grid is refined.

const aperture = samples.map((x) => (Math.abs(x) <= width / 2 ? 1 : 0));
const intensity = spectrum.map((amplitude) => amplitude.real ** 2 + amplitude.imaginary ** 2);

Wave data sampler

Adjust amplitude and wavelength. The plotted line is a view of sampled displacement data; its speed is frequency divided by wave number.

Amplitude 1.0; wavelength 3.0 m; model speed 1.91 m/s.

The wave sampler supplies the amplitude and wavelength language. A diffraction calculation adds a spatial aperture array and sums phase-delayed contributions to each outgoing direction.

Try this experiment

Prediction: At fixed wavelength, halving an ideal slit width makes the central diffraction pattern wider.

Choose a wavelength and calculate the first-minimum angle for width a and a/2. Predict the direction of the change before calculating it, then state which far-field assumption the result relies on.

Where this model breaks

The formula assumes a scalar monochromatic wave, an ideal rectangular aperture, and far-field observation. It omits polarization, finite thickness, imperfect edges, near-field propagation, detector sampling, material effects, and camera exposure response.

Summary

Diffraction is a transform-shaped consequence of finite aperture data. Keep sampling and geometry visible, compare a numerical pattern with a known single-slit limit, and do not extend a far-field formula into every optical regime.

Glossary

Self-check

  1. Why must aperture sampling be recorded with a numerical diffraction pattern?
  2. How does narrower slit width change the ideal central maximum?
  3. Which analytic condition is a useful check on a sampled single-slit calculation?

Sources

Model contract

Treat the lesson as a small function before treating it as a fact to memorize. Give every value a unit, keep only the state needed for the next step, and make the output easy to inspect.

\[\text{observable output} = f(\text{inputs},\,\text{state})\]
Inputs
Quantities you set or measure, with units and useful bounds.
State
Values the program must retain to reproduce the next result.
Rule
The relationship or update that turns inputs and state into a result.
Check
A known limit, unit check, invariant, or measured result that can expose a bad model.

Implement the idea as a model

For Diffraction, write down the quantities you can control, the values your program must retain, and the result a reader could inspect. In Geometric and Wave Optics, the useful program is not the drawing: it is the smallest explicit model that makes a prediction you can test.

Guided experiment

Prediction: changing one declared input while holding the others fixed should change only the outputs that the model connects to that input. Choose one input, predict the direction of change, then check a limiting case such as zero, a symmetric arrangement, or a familiar low-speed or small-change approximation.

Where this model breaks

This lesson is a teaching model, not a complete simulator. Before using it outside the stated question, check which interactions, scales, uncertainties, boundary conditions, and measurement limits it leaves out.

Summary

Treat Diffraction as a contract: named inputs and units enter a rule, the rule produces an observable result, and a known limit or invariant checks whether the implementation deserves trust.

Glossary

  • Input: a measured value or chosen parameter supplied to a model.
  • State: the smallest set of values needed to continue or reproduce a model.
  • Validation: comparing an output with a known result, limit, invariant, or measurement.

Self-check

  1. Which values are inputs, and which values must remain state?
  2. What observable result would tell you the model is behaving as expected?
  3. Which assumption would you test first before applying the model to a real system?

Model review: turn Diffraction into a test

Compute aperture diffraction from sampled wave data with explicit normalization and refinement checks.

  1. Name the inputs and units that the geometric and wave optics model needs.
  2. Separate the state you must keep from values you can calculate when needed.
  3. Write one rule that maps the current state and inputs to an observable result.
  4. Choose a limiting case, unit check, invariant, or known result before trusting an output.
  5. State one assumption you would change before using this simplified model for a real decision.

Share to: