Definition of Convolution

224 Views Asked by At

I am currently studying calculus, but I am stuck with the definition of convolution in terms of constructing the mean of a function. Suppose we have 2 functions, f and g. We want to create the mean of f for each x, interpreting g(t) as the “weight” of f(t). Then, the mean of f for each x would be given by the integral:

$ \int_{-\infty}^{\infty} f(x) \cdot g(x-t) , dt $,

This expression differs from the common definition of convolution.

I'm having trouble understanding why we utilize the conventional definition of convolution in cases like these.

2

There are 2 best solutions below

1
On

The mean of a function $f(x)$ over the interval $a<x<b$ can be calculated as

$$\frac{1}{b-a} \int\limits_a^b f(x) \, dx=\frac{1}{b-a} \int\limits_{-\infty }^{\infty } f(x)\, (\theta (x-a)-\theta (x-b)) \, dx\tag{1a}$$ $$=\frac{1}{b-a} \int\limits_{-\infty }^{\infty } f(x)\, (\theta (b-x)-\theta (a-x)) \, dx\tag{1b}$$

where $\theta(x)$ is the Heaviside step function, whereas convolution is normally defined as

$$(f * g)(y)=\int\limits_{-\infty}^\infty f(x)\, g(y-x)\, dx\,\tag{2}.$$

Note that formula (1b) above is equivalent to

$$\frac{1}{b-a}\, ((f * \theta)(b)-(f * \theta)(a))\tag{3}.$$

0
On

If $g$ is nonnegative and $\int_{-\infty}^{+\infty}g(x)\,dx = 1$, then for each $x$, the convolution $$ (f * g)(x) = \int_{-\infty}^{+\infty} f(t) g(x-t)\;dt $$ is a weighted mean of the values of $f$. Perhaps this is what you want.


A nice example of this is where $g$ is a Gaussian density, $$ g(x) = \frac{1}{a\sqrt{2\pi}}e^{-x^2/(2a^2)} . $$ Then the convolution $f * g$ is a "smoothed" version of $f$.