On this page
If you can integrate, you can follow convolution. It sits behind blurred photos, dice totals and a shortcut with Laplace transforms, and it rests on one picture: flip one function, slide it across the other, and measure the overlap.
What is the convolution of two functions?
The convolution of f and g is (f*g)(x) = ∫ f(t) g(x − t) dt, integrated over the whole real line. It is the integral of the product of the two functions after one is reflected about the y-axis and shifted (Wikipedia: Convolution). Wolfram MathWorld says g must be mirrored before lagging it across f and integrating, and lists f*g = g*f among its properties, so the order does not matter (Wolfram MathWorld: Convolution).
Here t is the dummy variable you integrate over and x is the shift. Each x gives one number; together they make a new function of x.
How do you compute a convolution by flip and slide?
Draw f(t) on a t-axis.
Flip g about the vertical axis: g(t) becomes g(−t).
Slide the flipped copy by x to get g(x − t). A positive x moves it right.
Multiply f(t) by g(x − t) at every t and find the area under the product. That area is (f*g)(x).
Repeat for every x. For piecewise functions, the formula changes only at the values of x where an edge of one function crosses an edge of the other.
Worked example: why do two boxes make a triangle?
Let f and g both be the unit box: 1 for 0 ≤ t ≤ 1 and 0 elsewhere. After the flip and slide, g(x − t) equals 1 for x − 1 ≤ t ≤ x. The product f(t)g(x − t) is 1 only where the intervals [0, 1] and [x − 1, x] overlap, so (f*g)(x) is the length of that overlap.
x < 0: the boxes do not meet, so the value is 0.
0 ≤ x ≤ 1: the overlap is [0, x], length x.
1 ≤ x ≤ 2: the overlap is [x − 1, 1], length 2 − x.
x > 2: the boxes have passed each other, so the value is 0.
The result climbs in a straight line from 0 to a peak of 1 at x = 1, then falls back to 0 at x = 2: a triangle. At x = 0.6, the case drawn at the top of this page, the overlap is [0, 0.6] and the value is 0.6. Check: the triangle's area, ½ × 2 × 1 = 1, equals the area of f times the area of g.
Why is the density of a sum of independent random variables a convolution?
For Z = X + Y to equal z, if X takes the value t then Y must take z − t. Independence lets you multiply the two densities, and adding over every possible t gives f_Z(z) = ∫ f_X(t) f_Y(z − t) dt. The distribution of a sum of independent random variables is the convolution of their individual distributions (Wikipedia: Convolution of probability distributions).
So the box example is also a probability result. If X and Y are independent and uniform on [0, 1], then X + Y has the triangular density x on [0, 1] and 2 − x on [1, 2], the n = 2 case of the Irwin–Hall distribution. Dice work the same way: Wolfram MathWorld finds two-dice totals by reversing one die's probabilities and shifting them (Wolfram MathWorld: Convolution). A total of 7 comes from 6 of the 36 equally likely pairs, more than any other total.
What does the convolution theorem say?
The Fourier transform of a convolution is the product of the Fourier transforms: F{f*g} = F{f} · F{g} (Wikipedia: Convolution theorem). The same page says the theorem also holds for the Laplace transform, so L{f*g} = F(s)G(s). For functions that vanish for negative arguments, the convolution reduces to (f*g)(t) = ∫₀ᵗ f(τ) g(t − τ) dτ (Wolfram MathWorld: Convolution).
So a hard integral becomes a multiplication. Check it with f = g = 1 for t ≥ 0. Directly, ∫₀ᵗ 1 dτ = t. Through transforms, L{1} = 1/s, the product is 1/s², and 1/s² is the Laplace transform of t. Both routes agree.
How does convolution blur an image?
A greyscale image is a function of two variables: brightness at each pixel. Convolving it with a small kernel replaces each pixel by a weighted sum of its neighbours. With a 3 × 3 kernel of weights 1/9, each pixel becomes the average of its 3 × 3 neighbourhood, so sharp edges soften. Applying a Gaussian blur to an image is the same as convolving the image with a Gaussian function (Wikipedia: Gaussian blur).
For the ideas around convolution, browse the Fermi Concept Library, where each concept has its own lesson and its place in the map. For practice, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning, so you can see where each limit comes from.



