Ain’t so convoluted
What’s a convolution, you ask? If you have two functions and
, the convolution of f and g, is defined as
where u is the dummy variable of integration.
The notation is also used to denote the convolution of f and g, although I’ll be using the former notation. Note that the convolution of f and g is itself a function of x. That is,
Here’s one way to visualize the convolution. If you have two functions f and g with respect to the dummy variable, what the convolution actually does is,
STEP 1: “Flips” one of the functions about the y-axis. For example, to
STEP 2: Shifts it by an amount x. ie, to
STEP 3: “Slides” along the u-axis by keeping u fixed, and allowing x to vary all the way from
to
. The value of the convolution at some point
, is
So, if you consider the convolution integral, the value of the product , and hence
is zero when the two functions do not intersect. However, when the two functions do intersect, the value of the convolution at that point will be the integral of the product over the entire overlapping region (where the product is non-zero), and this value is simply the area of the overlapping region.
You can see detailed animated illustrations of this idea at Wolfram’s MathWorld.
Another useful way of thinking about the convolution of two functions, is by the concept of a functional. We can consider as a functional of the function
. That is, for every given function
, there will be a corresponding value of
. So, to calculate the value of
at some point
, we still need to know the entire function
.
There are useful properties associated with convolution. For example, convolutions are
(i) Commutative
So, it doesn’t matter which function you flip.
(ii) Associative
(iii) Distributive
Convolution theorem:
The convolution theorem is immensely useful to calculate fourier transforms and find fourier pairs. It states that, if and
,
It’s an interesting result that the fourier transform of the convolution of two functions, is the product of the corresponding fourier transforms of the individual functions. This means that a convolution in the normal domain, becomes a product in the fourier domain and vice-versa
It’s actually easy to prove this useful result. For, if the convolution of two functions is given as
Then the fourier transform of h(x) is
Since x is a dummy variable, set , while holding u constant, so that the integral reduces to
We can apply this theorem to find various convolutions. Here’s an example.
(i) Convolution with a delta function
Let
We’re now interested in the convolution of f with a shifted delta function,
To find this, let’s apply the convolution theorem. We know that and
. Therefore
And taking the inverse fourier transform of , we find that
is
. Notice that f(x) is shifted by an amount a.
Finally, I’ll discuss one more property I’ll need to use before I move on to a part of what I’m currently working on, which is the application of fourier analysis in interferometry and diffraction. This property is the derivative of fourier transforms.
If, ,
and therefore,
which you can easily check this, by use of the Leibniz rule. This property of fourier transforms is useful in solving linear PDE’s.
All original work on this blog is licensed under a
You can look at the convolution from another perspective.
Let f(x) be a physical quantity to be measured; faced with a limitation on the accuracy of the measuring device, you associate a “resolution function ” g(y) with the measurement made. Now your observed value h(u) is a convolution of the true distribution f(x) and the resolution function g(y) evaluated at x-u . the term g(x-u)du is representative of the probability that h(x) ->f(u) as u->x . evidently, if your resolution function is the dirac delta function, then the observed distrbution is always the true distribution.
chiru
July 1, 2007 at 2:11 pm
Yeah, and in fact, that was to be a part of my next post
To add a physical example to what you said, consider the situation where we are trying to measure some light spectrum with a spectrometer. Now, if we measure a monochromatic source of light with the spectrometer, ideally the spectrometer should show a “spike” or a delta function only at that frequency.
However, since the spectrometer isn’t ideal, you’d see something like a steep gaussian function rather than a single infinte spike. So, if we “feed” a single delta function
to the spectrometer, we get an output of the form
, which is the impulse response of the system. (or the “resolution function” of the system as you called it)
Now, let’s measure a whole spectrum with our spectrometer. Let
be the actual intensity vs frequency spectrum we need to measure. First, by the property of the delta function, we have
So, if feed this actual distribution to our spectrometer, the output function will be,
Now the impulse response function is linear. That is,
Since the integral can be written as a reimann sum, we have
Which is nothing but the convolution of the “true” spectrum
with the resolution or the impulse response function, as you pointed out in your comment.
parseval
July 1, 2007 at 3:48 pm
Sweet explanation, thanks
nb
October 10, 2007 at 2:12 am