Foundations to Frontier
Tests
A. Mathematical Foundations › A10 Signal Processing

Convolution: Continuous and Discrete

Convolution is the operation that every LTI system performs: the output is the input smeared by the impulse response. This topic builds intuition through flip-and-slide, then covers the algebra (commutative, associative, distributive, identity δ), continuous and discrete forms, how widths and areas combine, why Gaussians stay Gaussian, the link to correlation and matched filtering, and the convolution theorem that makes long convolutions fast via the FFT. In the research exercise you build a radar pulse-compression receiver: a matched filter that pulls two closely spaced echoes out of noise.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Smearing a signal

Clap once in a big hall and you hear the clap, then a fading echo. That echo pattern is the hall’s impulse response. Now play music in the hall: every note gets its own copy of that echo, and all the copies overlap and add up. That overlapping-and-adding is convolution. Blurring a photo, smoothing sensor data, and the way a motor responds to commands are all convolutions.

Convolution = flip, slide, multiply, add
x:
h:
x(τ) · h(t − τ) dashed · product shadedy(t) = area of the shaded product
y(0.70) = 0.3829
To get y at time t, flip h, slide it to t, multiply pointwise with x, and add up the area. Box * box gives a triangle; anything * a decaying exponential is the response of a first-order system (smoothing with memory). The output length is the sum of the input lengths, and its area is the product of their areas.
Why engineers care

Digital filters, image blur and deblur, radar and sonar receivers, GNSS signal acquisition, and the convolutional layers of every perception network all compute convolutions. Knowing its properties tells you how filters combine, how widths add, and how to compute it a thousand times faster with the FFT.

📝 Quick check (Level 0)
0/3 answered
  1. 1. An echo pattern in a hall is like…
  2. 2. Blurring a photo is an example of…
  3. 3. Convolving with a single sharp spike (δ)…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Definitions

(x∗h)(t)=∫−∞∞x(τ)h(t−τ) dτ,(x∗h)[n]=∑kx[k]h[n−k](x * h)(t) = \int_{-\infty}^{\infty}x(\tau)h(t - \tau)\,d\tau,\qquad(x * h)[n] = \sum_kx[k]h[n - k]

Recipe: flip h, slide it by t, multiply with x, integrate (or sum).

Algebra

  • Commutative: x∗h=h∗xx * h = h * x.
  • Associative: (x∗h1)∗h2=x∗(h1∗h2)(x * h_1) * h_2 = x * (h_1 * h_2), so cascaded filters combine into one.
  • Distributive: x∗(h1+h2)=x∗h1+x∗h2x * (h_1 + h_2) = x * h_1 + x * h_2, so parallel filters add.
  • Identity x∗δ=xx * \delta = x, and x∗δ(t−t0)=x(t−t0)x * \delta(t - t_0) = x(t - t_0).

Sizes

Discrete lengths: Nx+Nh−1N_x + N_h - 1. Areas multiply: ∫(x∗h)=∫x⋅∫h\int(x * h) = \int x\cdot\int h.

📝 Quick check (Level 1)
0/3 answered
  1. 1. [1, 2, 3] * [1, 1] =
  2. 2. Convolving lengths 100 and 31 gives length…
  3. 3. Two filters in series are equivalent to one filter with impulse response…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

Shapes under convolution

  • Box * box = triangle, with width equal to the sum of the widths.
  • Gaussian * Gaussian = Gaussian, with variances adding: σ2=σ12+σ22\sigma^2 = \sigma_1^2 + \sigma_2^2. In probability, this is the density of a sum of independent variables.
  • Repeated convolution of any finite-variance kernel tends to a Gaussian (the CLT again).

Correlation and matched filtering

Cross-correlation (x⋆y)[n]=∑kx[k]y[k−n](x\star y)[n] = \sum_kx[k]y[k - n] is convolution with a flipped (and conjugated) yy. Correlating received data with a known template peaks where the template occurs. The matched filter h[n]=s∗[−n]h[n] = s^*[-n] maximizes output SNR in white noise.

Convolution theorem

F{x∗h}=X⋅H\mathcal F\{x * h\} = X\cdot H

Long convolutions are computed as FFT, multiply, inverse FFT in O(Nlog⁡N)O(N\log N) instead of O(NM)O(NM). Zero-pad to avoid circular wrap-around (a8-12).

🐍 Exercise 1: properties of convolution
Implement discrete convolution and check commutativity, associativity, distributivity and the δ identity. Approximate continuous convolution to get box * box = triangle and the variance-adding Gaussian rule, then locate a template by cross-correlation.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Gaussians with σ = 3 and σ = 4 convolve to σ =
  2. 2. The matched filter for signal s is…
  3. 3. The FFT speeds up convolution because…

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Commutativity

Substitute u=t−τu = t - \tau: ∫x(τ)h(t−τ)dτ=∫x(t−u)h(u)du\int x(\tau)h(t - \tau)d\tau = \int x(t - u)h(u)du. ∎

Variances add

If X⊥YX\perp Y, the density of X+YX + Y is fX∗fYf_X * f_Y, and Var⁡(X+Y)=Var⁡X+Var⁡Y\operatorname{Var}(X + Y) = \operatorname{Var}X + \operatorname{Var}Y. For Gaussians, the Fourier transform of a Gaussian is a Gaussian, and the product of two Gaussians in frequency is Gaussian. ∎

Matched filter is optimal

The output SNR at the peak is ∣∑h[k]s[−k]∣2σ2∑∣h∣2≤∑∣s∣2σ2\frac{\lvert\sum h[k]s[-k]\rvert^2}{\sigma^2\sum\lvert h\rvert^2}\le\frac{\sum\lvert s\rvert^2}{\sigma^2} by Cauchy–Schwarz, with equality iff h∝s∗[−k]h\propto s^*[-k]. ∎

Exercise 3.1: (1, 2) * (3, 4)

(1⋅3, 1⋅4+2⋅3, 2⋅4)=(3,10,8)(1\cdot3,\ 1\cdot4 + 2\cdot3,\ 2\cdot4) = (3, 10, 8).

📝 Quick check (Level 3)
0/3 answered
  1. 1. The matched filter's optimality is proved by…
  2. 2. (1, 2) * (3, 4) =
  3. 3. The density of a sum of independent variables is…

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

Pulse compression radar

Radars want long pulses (energy, range) and fine resolution (short pulses). A linear-FM chirp of duration T and bandwidth B does both. Correlating the echo with the transmitted chirp (the matched filter) compresses it to width ~1/B. The range resolution is c/(2B)=30c/(2B) = 30 m for B = 5 MHz, and the compression ratio is BT = 100. In the exercise two targets 150 m apart are buried in noise at −3.5 dB per-sample SNR, invisible in the raw data. After matched filtering both stand out at the correct delays, about 24 dB above the noise floor. GNSS receivers use the same trick to acquire satellites far below the noise.

🐍 Exercise 2 (research): chirp pulse compression
Generate a 20 µs, 5 MHz linear-FM chirp and simulate noisy echoes from two targets 150 m apart. Matched-filter the received signal, detect both delays, and relate the result to range resolution c/(2B) and compression ratio BT.

Convolution in AI, robotics and aerospace

  • Radar and sonar: pulse compression, synthetic aperture radar (SAR) imaging, and spaceborne altimetry.
  • Navigation: GNSS code correlation; template matching for terrain-relative navigation (Mars 2020 LVS).
  • Vision: CNNs learn convolution kernels; classical edge detection (Sobel) and Gaussian blur.
  • Estimation: the density of sums, i.e. error budgets, combines by convolution, so independent error variances add.

References

  1. A. Oppenheim, A. Willsky, S. H. Nawab (1997). Signals and Systems, 2nd ed. Prentice Hall. Ch. 2.
  2. M. Richards (2014). Fundamentals of Radar Signal Processing, 2nd ed. McGraw-Hill. Ch. 4, 8.
  3. G. Turin (1960). “An introduction to matched filters.” IRE Trans. Information Theory, 6(3).
  4. C. Cook, M. Bernfeld (1967). Radar Signals: An Introduction to Theory and Application. Academic Press.
  5. E. Kaplan, C. Hegarty (2017). Understanding GPS/GNSS: Principles and Applications, 3rd ed. Artech House.
  6. A. Johnson et al. (2017). “The Lander Vision System for Mars 2020 entry descent and landing.” AAS 17-038, AAS Guidance, Navigation and Control Conference.