One idea, 4 fields

Convolution

The unifying principle

For two functions ff and gg, convolution is defined as

(fg)(t)=f(τ)g(tτ)dτ(f * g)(t) = \int_{-\infty}^{\infty} f(\tau)\, g(t - \tau)\, d\tau

and in the discrete case

(fg)[n]=k=f[k]g[nk].(f * g)[n] = \sum_{k=-\infty}^{\infty} f[k]\, g[n-k].

Three structural facts make this operation universal:

  1. The flip-and-slide. The argument g(tτ)g(t-\tau) reflects gg (ττ\tau \to -\tau) and shifts it by tt. As tt varies you sweep the kernel across ff.
  2. Commutativity & linearity. fg=gff*g = g*f, and * is bilinear. So "signal" and "kernel" are interchangeable, and superposition holds.
  3. The Convolution Theorem. Convolution becomes pointwise multiplication under the Fourier transform: F{fg}=F{f}F{g}.\mathcal{F}\{f*g\} = \mathcal{F}\{f\}\cdot\mathcal{F}\{g\}. This is why convolution is the natural operation for any linear time-invariant (LTI) system — it diagonalizes in the frequency basis.

Everything below is a special case of this one integral/sum.

How it shows up in each field

Maths — the analytic operation & probability sums

Convolution is a binary operation on functions turning the space L1(R)L^1(\mathbb{R}) into a commutative algebra (multiplication = *, no identity except the Dirac delta δ\delta, where fδ=ff*\delta = f).

Its sharpest probabilistic incarnation: if XX and YY are independent random variables with densities pX,pYp_X, p_Y, the density of their sum is

pX+Y(z)=(pXpY)(z)=pX(x)pY(zx)dx.p_{X+Y}(z) = (p_X * p_Y)(z) = \int p_X(x)\, p_Y(z-x)\, dx.

Physics — impulse response of linear systems

A physical LTI system (an RLC circuit, a damped oscillator, an optical lens) is fully characterized by its impulse response h(t)h(t): its output when kicked by δ(t)\delta(t). For any input x(t)x(t), the output is

y(t)=(xh)(t)=x(τ)h(tτ)dτ.y(t) = (x * h)(t) = \int x(\tau)\, h(t-\tau)\, d\tau.

AI-ML — the convolutional layer

A CNN layer convolves an input feature map with learned kernels. (Framework "convolution" is technically cross-correlation — no kernel flip — but the sliding-weighted-sum structure is identical.) In 2D:

(IK)[i,j]=mnI[i+m,j+n]K[m,n].(I * K)[i,j] = \sum_{m}\sum_{n} I[i+m,\, j+n]\, K[m,n].

The kernel KK is learned, and weight-sharing (same KK at every location) gives translation equivariance: shift the input, the output shifts identically. This is exactly LTI's time-invariance, spatialized.

Coding/CS — algorithms, polynomials & FFT

Discrete convolution is a core primitive. Polynomial multiplication is convolution of coefficient vectors:

(aixi)(bjxj)=n(kakbnk)xn=n(ab)[n]xn.\Big(\sum a_i x^i\Big)\Big(\sum b_j x^j\Big) = \sum_n \Big(\sum_k a_k b_{n-k}\Big) x^n = \sum_n (a*b)[n]\, x^n.

Naïvely O(N2)O(N^2); via the Convolution Theorem and FFT it drops to O(NlogN)O(N\log N): transform, pointwise-multiply, inverse-transform.

Why this bridge matters

  • Independence ⇄ multiplication. The probabilist's "sums of independent variables convolve" and the engineer's "Fourier turns convolution into multiplication" are the same theorem: MGFs/characteristic functions of independent sums multiply.
  • Impulse response = kernel = Green's function. The physicist's intuition — characterize a system by its response to a spike, then everything else follows by superposition — is exactly why a CNN filter is a learnable local feature detector.
  • Diagonalization insight transfers. Knowing convolution is "just multiplication in the eigenbasis" (Fourier/frequency domain) explains: why FFT accelerates polynomial multiply, why CNNs are cheap in frequency space, why filtering suppresses frequency bands, and why the CLT smooths toward Gaussians (repeated multiplication of characteristic functions).
  • Equivariance is portability. Translation-invariance in physics (LTI) → weight sharing in ML → shift-invariant filters in signal processing. One symmetry principle, four vocabularies.

Connections

#bridge

characteristic fn = FT

LTI = weight sharing

CLT ← iterated *

* → · in Fourier basis

Convolution
flip · slide · sum

Maths
f*g integral, prob. sums

Physics
impulse response / Green's fn

AI-ML
CNN kernels, equivariance

Coding/CS
polynomial mult, FFT

Connected notes