MicDZ's Blog

Waves, Phasors, and Signals — The Math of Interference and Diffraction

Waves, Phasors, and Signals — The Math of Interference and Diffraction

, ,

Oct. 21, 2025


1.  Introduction

Have you ever wondered why noise-canceling headphones work? Or how a tiny hologram can contain a 3D image? Or even just why you see shimmering rainbow patterns on a soap bubble?

The answer to all of these is wave interference and diffraction. These are fundamental concepts in physics, but today I want to look at them through a different lens: the lens of signal processing. It turns out that the propagation of a wave is one of the most elegant and powerful signal processing systems in the universe.

2.  The Wave as a Complex Signal

In signal processing and physics, we describe a simple wave using complex exponentials, thanks to Euler’s formula: eiθ=cos(θ)+isin(θ)e^{i\theta} = \cos(\theta) + i\sin(\theta).

We can represent a wave ψ\psi at a position r\mathbf{r} and time tt as:

ψ(r,t)=Aei(ωtkr+ϕ0)\psi(\mathbf{r}, t) = A e^{i(\omega t - \mathbf{k} \cdot \mathbf{r} + \phi_0)}

Let’s break this down:

  • AA is the amplitude (the wave’s “strength”).
  • ei()e^{i(\dots)} is the phasor. This is the magic part. It’s a vector on the complex plane (a “clock hand”) that rotates.
  • ω\omega is the angular frequency (how fast it oscillates in time).
  • k\mathbf{k} is the wave vector (its direction of travel and spatial frequency, where k=2π/λ|\mathbf{k}| = 2\pi/\lambda).
  • ϕ0\phi_0 is the initial phase.

For the rest of this post, we’ll mostly ignore the time part (eiωte^{i\omega t}) since it’s common to all waves from the same source. We’ll just focus on the complex amplitude (the spatial part):

ψ(r)=Aei(krϕ0)\psi(\mathbf{r}) = A e^{-i(\mathbf{k} \cdot \mathbf{r} - \phi_0)}

Think of this ψ(r)\psi(\mathbf{r}) as a single complex number for every point in space. Its magnitude AA is the amplitude, and its angle eiϕe^{-i\phi} is its phase.

Propagation is just a phase shift. As a wave travels from a source at r0\mathbf{r}_0 to a point P\mathbf{P}, it covers a distance d=Pr0d = |\mathbf{P} - \mathbf{r}_0|. This journey “rotates” the phasor. The wave at P\mathbf{P} is:

ψ(P)=A0deikd\psi(\mathbf{P}) = \frac{A_0}{d} e^{-ikd}

(The A0/dA_0/d shows the amplitude decaying with distance dd, and k=2π/λk = 2\pi/\lambda).

The key takeaway: Propagation = Phase Rotation.

3.  Interference: The Superposition Problem

Interference is the simplest case. It’s just what happens when two or more waves meet at the same point. The math is simple: you just add them. This is the Principle of Superposition.

Let’s model the classic double-slit experiment. We have two tiny sources (slits) at r1\mathbf{r}_1 and r2\mathbf{r}_2. We want to know the total wave ψtotal\psi_{total} at an observation point P\mathbf{P} on a screen.

  1. Wave 1 (from slit 1): Propagates a distance d1=Pr1d_1 = |\mathbf{P} - \mathbf{r}_1|.

    ψ1(P)=A1eikd1\psi_1(\mathbf{P}) = A_1 e^{-ikd_1}

  2. Wave 2 (from slit 2): Propagates a distance d2=Pr2d_2 = |\mathbf{P} - \mathbf{r}_2|.

    ψ2(P)=A2eikd2\psi_2(\mathbf{P}) = A_2 e^{-ikd_2}

(We’ll assume A1A2=AA_1 \approx A_2 = A for simplicity, as the distances are similar).

The total wave at P\mathbf{P} is the sum of these two complex numbers:

ψtotal(P)=ψ1(P)+ψ2(P)=A(eikd1+eikd2)\psi_{total}(\mathbf{P}) = \psi_1(\mathbf{P}) + \psi_2(\mathbf{P}) = A(e^{-ikd_1} + e^{-ikd_2})

What we actually see (the brightness or intensity) is the magnitude squared of this complex number, I=ψtotal2I = |\psi_{total}|^2.

I(P)A(eikd1+eikd2)2=A2eikd1+eikd22=A2(eikd1+eikd2)(eikd1+eikd2)=A2(2+eik(d1d2)+eik(d1d2))=A2(2+2cos(k(d1d2)))=4A2cos2(k(d1d2)2)\begin{aligned} I(\mathbf{P}) &\propto |A(e^{-ikd_1} + e^{-ikd_2})|^2\\ & = A^2 |e^{-ikd_1} + e^{-ikd_2}|^2 \\ & = A^2 (e^{ikd_1} + e^{ikd_2})(e^{-ikd_1} + e^{-ikd_2}) \\ & = A^2 (2 + e^{ik(d_1 - d_2)} + e^{-ik(d_1 - d_2)}) \\ & = A^2 (2 + 2\cos(k(d_1 - d_2))) \\ & = 4A^2 \cos^2\left(\frac{k(d_1 - d_2)}{2}\right) \end{aligned}

So, this simplifies to:

I(P)4A2cos2(k(d1d2)2)I(\mathbf{P}) \propto 4A^2 \cos^2\left(\frac{k(d_1 - d_2)}{2}\right)

The intensity depends on the cosine of the difference in path lengths (d1d2d_1 - d_2).

  • If the path difference d1d2d_1 - d_2 is a whole number of wavelengths (nλn\lambda), the phases align (kΔd=2πnk\Delta d = 2\pi n), the waves add up, and we get a bright spot (constructive interference).
  • If the path difference is a half-wavelength ((n+1/2)λ(n+1/2)\lambda), the phases are opposite (kΔd=π(2n+1)k\Delta d = \pi(2n+1)), the waves cancel out, and we get a dark spot (destructive interference).

Interference is nothing more than the addition of complex phasors, where their relative angles are set by the propagation delay (path length difference).

4.  Diffraction: Interference on a Grand Scale

Diffraction is interference from a continuous number of sources.

Instead of two discrete slits, imagine a single wide aperture (like a single slit, a circular hole, or any shape). The Huygens-Fresnel Principle states that every single point inside that aperture AA acts as a new source of waves.

To find the wave ψ(x,y)\psi(x, y) at a point P=(x,y)\mathbf{P}=(x,y) on our screen, we can’t just add two waves. We have to integrate (sum up) the contributions from every point r=(x,y)\mathbf{r}' = (x', y') in the aperture.

Let the aperture’s transmission be described by an “input signal” A(x,y)A(x', y') (e.g., A=1A=1 inside the slit, A=0A=0 outside). The propagation from (x,y)(x', y') to (x,y)(x, y) on a screen at distance LL introduces a distance d=L2+(xx)2+(yy)2d = \sqrt{L^2 + (x-x')^2 + (y-y')^2}.

The total wave at the screen is as follows:

ψ(x,y)=apertureA(x,y)eikdddxdy\psi(x, y) = \iint_{aperture} A(x', y') \frac{e^{-ikd}}{d} dx' dy'

This integral is the heart of wave propagation. In signal processing terms:

  • A(x,y)A(x', y') is the input signal.
  • ψ(x,y)\psi(x, y) is the output signal.
  • h(x,y;x,y)=eikddh(x,y; x',y') = \frac{e^{-ikd}}{d} is the system’s impulse response (or propagator).

The propagation of the wave is a linear system that “processes” the aperture function.

5.  The Big Reveal: Diffraction IS the Fourier Transform

If we make a very common approximation—that the screen is far away (the Fraunhofer approximation)—the math simplifies beautifully.

In this far-field limit, the distance dd in the phase term can be approximated as:

dL+(xx)2+(yy)22LLxx+yyL+d \approx L + \frac{(x-x')^2 + (y-y')^2}{2L} \approx L - \frac{xx' + yy'}{L} + \dots

Plugging this into our integral and dropping some constant phase/amplitude factors (which just dim or shift the whole pattern), we get:

ψ(x,y)apertureA(x,y)eikL(xx+yy)dxdy\psi(x, y) \propto \iint_{aperture} A(x', y') e^{-i \frac{k}{L} (xx' + yy')} dx' dy'

We can define new spatial frequency coordinates:

  • kx=kxL=2πxλLk_x = \frac{kx}{L} = \frac{2\pi x}{\lambda L}
  • ky=kyL=2πyλLk_y = \frac{ky}{L} = \frac{2\pi y}{\lambda L}

Substituting these in, our diffraction pattern ψ\psi as a function of these new coordinates is:

Ψ(kx,ky)A(x,y)ei(kxx+kyy)dxdy\Psi(k_x, k_y) \propto \iint A(x', y') e^{-i(k_x x' + k_y y')} dx' dy'

This is the 2D Fourier Transform.

This is a profound result:

The wave pattern you see from a far-away aperture (diffraction) is the Fourier Transform of the aperture’s shape.

  • A wide single slit (A(x)A(x') is a rect function) produces a sinc function pattern (sinc(x)=sin(x)/x\text{sinc}(x) = \sin(x)/x).

  • A tiny circular hole (A(r)A(r) is a circ function) produces an Airy disk (a Bessel function), which is why stars look like blurry spots, not perfect points, in a telescope.

5.1.  What it all means:

  • Propagation = Signal Processing: Wave propagation acts like a physical computer that calculates the Fourier Transform.
  • Interference: This is just the linear addition of complex signals.
  • Diffraction: This is the result of a “propagation filter” being applied to an “input aperture signal,” which, in the far-field, is the Fourier Transform.

This math is why signal processing techniques are not just for audio and images, but are fundamental to describing reality itself. The next time you see sunlight filter through a narrow gap, you’re not just seeing light—you’re seeing a Fourier Transform computed by nature.

, , — Oct. 21, 2025