Fourier transform V - Convolution

Inspired by the previous example, we make the following definition:

Definition of the convolution product

Given two functions f and g defined on (−∞,∞), their convolution (or convolution product) is the function denoted f∗g defined by the integral formula

(f∗g)(t)=âˆĢ−∞∞f(t−x)g(x)dx,

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":

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 f(t)=e−t. We can fairly easily compute f∗Π:

(f∗Π)(t)=âˆĢ−∞∞e−(t−x)Π(x)dx=âˆĢ−1212e−t+xdx=[e−t+x]x=−12x=12=e−t+12−e−t−12=(e12−e−12)e−t.

So in this first example, the function f∗Π happens to be just a specific multiple of the function f. 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

(Π∗Π)(t)=âˆĢ−∞∞Π(t−x)Π(x)dx

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 t. Here is one solution. We first notice that Π(x) is only nonzero on the interval (−12,12), where it equals 1. So

(Π∗Π)(t)=âˆĢ−1/21/2Π(t−x)dx.

Now observe that

Π(t−x)={0,if t−x≤−1/21,if −1/2<t−x<1/20,if t−xâ‰Ĩ1/2

For t≤−1, we have t−x≤−1/2 for all x∈[−1/2,1/2]. In other words, the square Π(t−x) is entirely to the left of the interval [−1/2,1/2]. We therefore have

âˆĢ−1/21/2Π(t−x)dx=âˆĢ−1/21/20dx=0.

For −1<t<0, we have Π(t−x)=1 for x∈[−1/2,t+1/2] and Π(t−x)=0 for x∈(t+1/2,1/2]. In other words, the square Π(t−x) partially overlaps the interval [−1/2,1/2] from the left. We therefore have

âˆĢ−1/21/2Π(t−x)dx=âˆĢ−1/2t+1/21dx=t+1.

For 0≤t<1, we have Π(t−x)=0 for x∈[−1/2,t−1/2] and Π(t−x)=1 for x∈(t−1/2,1/2]. In other words, the square Π(t−x) partially overlaps the interval [−1/2,1/2] from the right. We therefore have

âˆĢ−1/21/2Π(t−x)dx=âˆĢt−1/21/21dx=1−t.

Finally, for tâ‰Ĩ1, we have t−xâ‰Ĩ1/2 for all x∈[−1/2,1/2]. In other words, the square Π(t−x) is entirely to the right of the interval [−1/2,1/2]. We therefore have

âˆĢ−1/21/2Π(t−x)dx=âˆĢ−1/21/20dx=0.

We've therefore shown that

(Π∗Π)(t)={0,if t≤−1t+1,if −1<t<01−t,if 0≤t<10,if tâ‰Ĩ1.

Thus, Π∗Π=Λ.

Method 2: Using the Fourier transform

Applying the Fourier transform, we see that

F(Π∗Π)=(FΠ)⋅(FΠ)=sinc⋅sinc=sinc2=FΛ.

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.,

F(f∗g)=(Ff)⋅(Fg).

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 sinc with itself. A direct approach is pretty gnarly:

(sinc∗sinc)(t)=âˆĢ−∞∞sinc(t−x)sinc(x)dx=âˆĢ−∞∞sin⁥(Ī€(t−x))Ī€(t−x)⋅sin⁥(Ī€x)Ī€xdx.

However, we would instead be very sneaky and notice

sinc∗sinc=(FΠ)∗(FΠ)=F(Π⋅Π)=FΠ=sinc,

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 f∗g as a "weighted averaging" of the values of g, where the exact weighting changes over time and is controlled by the function f. Indeed, in the integral formula

(f∗g)(t)=âˆĢ−∞∞f(t−x)g(x)dx,

we can view the integral as "adding up" the values of g(x), where each value is given the weight f(t−x). 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 t-slider across to see how the graphs of f(t−x) and g(x) would appear on an xy-plane, and the applet shades in the area under the product f(t−x)g(x) 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!

Suggested next notes


Fourier transform VI - Solving differential equations


  1. I should add proofs here at some point. â†Šī¸Ž

  2. This means I should add their proofs here at some point. â†Šī¸Ž