Inspired by the previous example, we make the following definition:
Definition of the convolution product
Given two functions and defined on , their convolution (or convolution product) is the function denoted defined by the integral formula
assuming this integral converges.
Before looking at some examples, here some basic properties of this operation that are fairly easy to verify[1] and which at least start to justify the name "convolution product":
This operation is commutative:
This operation is associative:
This operation "distributes across addition":
So even without the Fourier transform in the mix, it seems reasonable to think of convolution as a new type of product-like operation.
Examples
A first example
Let . We can fairly easily compute :
So in this first example, the function happens to be just a specific multiple of the function . But things aren't always so easy ...
A trickier example
We will show two different methods of computing the convolution of the rectangle function with itself.
Method 1: The direct approach
By definition we have
There are many ways to approach this integral, but no matter what we're going to need to consider cases based on the value of . Here is one solution. We first notice that is only nonzero on the interval , where it equals 1. So
Now observe that
For , we have for all . In other words, the square is entirely to the left of the interval . We therefore have
For , we have for and for . In other words, the square partially overlaps the interval from the left. We therefore have
For , we have for and for . In other words, the square partially overlaps the interval from the right. We therefore have
Finally, for , we have for all . In other words, the square is entirely to the right of the interval . We therefore have
We've therefore shown that
Thus, .
Method 2: Using the Fourier transform
Applying the Fourier transform, we see that
Applying the inverse transform to both sides then gives . (Technically, this only shows the two sides agree at those points where they are both continuous, but we won't worry about that.)
Handy properties of convolution
Our discovery of the convolution operation essentially proves that the Fourier transform exchanges convolution products for conventional products, i.e.,
Here are a few more, all of which are fairly straightforward to verify[2]:
In other words, both transforms exchange conventional product with convolution product. It's a perfect symmetry!
Using the Fourier transform to deduce another self-convolution identity
Suppose we wished to compute the convolution of the function with itself. A direct approach is pretty gnarly:
However, we would instead be very sneaky and notice
since one easily verifies that . The Fourier transform has let us completely dodge the integral and immediately arrive at the answer!
Two ways to think about convolution
Convolution might seem like a strange operation at first. It's certainly not the most intuitive way to combine two functions, and as the examples above illustrate, it's not usually a very quick thing to compute, either. So how should we think about it?
One option is to frame it entirely from the point of view of the Fourier transform and inverse transform. In that context, the convolution product is the "counterpart" operation to the conventional product when we perform a transform. For solving differential equations, this might be all we need.
Outside the context of the Fourier transform, you can also view the convolution as a "weighted averaging" of the values of , where the exact weighting changes over time and is controlled by the function . Indeed, in the integral formula
we can view the integral as "adding up" the values of , where each value is given the weight . You can get a better of sense of this integration if you mess around with some interactive online demos, such as the one below. At the top you can select some sample functions to convolve. You can then drag the -slider across to see how the graphs of and would appear on an -plane, and the applet shades in the area under the product as well as tracks the total value for that area on a black curve. Try setting both functions to our rectangle function and watch the triangle function appear as their convolution!