Can someone intuitively explain what the convolution integral is?

I'm having a hard time understanding how the convolution integral works (for Laplace transforms of two functions multiplied together) and was hoping someone could clear the topic up or link to sources that easily explain it. Note: I don't understand math notation very well, so a watered-down explanation would do just fine. $$(f * g)(t) = \int_0^t f(\tau)g(t-\tau)\ \mathrm\tau$$ This is what my textbook has written. What do those lowercase t-like symbols represent (I haven't seen them before).

37.6k 9 9 gold badges 56 56 silver badges 128 128 bronze badges asked Dec 11, 2012 at 1:42 Bailor Tow Bailor Tow 575 4 4 gold badges 11 11 silver badges 22 22 bronze badges $\begingroup$ That's a greek letter called tau. It's just a variable here. $\endgroup$ Commented Dec 11, 2012 at 1:53

$\begingroup$ Lowercase t-like symbol is a greek letter "tau". Here it represents an integration (dummy) variable, which "runs" from lower integration limit, "0", to upper integration limit, "t". So, the convolution is a function, which value for any value of argument (independent variable) "t" is expressed as an integral over dummy variable "tau". $\endgroup$

Commented Dec 11, 2012 at 1:55

$\begingroup$ . and it's common to choose related names for related variables. Some other examples of letters that are often paired are $(z, \zeta)$, $(x, \xi)$, $(r, \rho)$, $(s, \sigma)$, $(w, \omega)$, $(a, \alpha)$, $(b, \beta)$, $(d, \delta)$, $(e, \epsilon)$. Also, the letters $\iota, \kappa, \lambda, \mu, \nu$ are often used in places where one might also tend to use $i, k, l, m, n$ respectively. All of the "strange" letters I've used here are from the Greek alphabet. $\endgroup$

Commented Dec 11, 2012 at 1:57 $\begingroup$ Maybe the animated gifs at Wikipedia will give you some ideas. $\endgroup$ Commented Dec 11, 2012 at 2:05

$\begingroup$ I'm late to the party, I know, but I recently stumbled across Terry Tao's explanation on mathoverflow. $\endgroup$

Commented Nov 10, 2015 at 21:46

6 Answers 6

$\begingroup$

Intuitively speaking when you are given two signals/or functions $f$ and $g$. You time reverese one of the signals, it doesnt matter which one, and shift it by a value of $t$ then you simply multiply and then sum the area under the intersection.

If you consider a function say function of $x$, then time reversal means inserting $-x$ wherever you see $x$ in this function.

Example:

Question1: Assume you have a function $f(x)$ that is $1$ if $x\in[0,1]$, and $0$ elsewhere then how should you plot $f(-x)$?

enter image description here

Question2: Assume you have $g(x)=f(x)$ is there any intersecting area between $f(x)$ and $g(x)$?

enter image description here

Question3: Now shift $g(-x)$ by $0.5$, that is to find $g(-x+0.5)$. How does it look like when you plot it?

enter image description here

Question4: Where does the intersecting region lie in this case $x\in?$ what is the are of the intersecting region? Answer: below white area$=0.5$ at $x=0.5$ shift.

enter image description here

Question5: If you select the shifting parameter not $0.5$ but all reals in $[0,2]$ what function should you get at the output? check $x=0.5$ and see $f*g(x)$ is $0.5$ as found at step 4

enter image description here

EDIT: You define convolution integral in $[0,t]$ for bounded signals. The integral limits depend on where your signal is non-zero.

If you have two signals as you suggested $f(t)=e^$ and $g(t)=e^$ then the first question: what is the relation between $a$ and $b$? are they positive? where is the function defined? For example when $a$ and $b$ are some positive terms then we have the following integral

clearly $\Omega=\mathbb$ is not possible because the integral does not converge.

answered Dec 11, 2012 at 2:33 Seyhmus Güngören Seyhmus Güngören 7,902 3 3 gold badges 27 27 silver badges 48 48 bronze badges

$\begingroup$ Can you use a more concrete example? For example, how can we find the convolution of $f(t) = \sin2t$ and $g(t) = e^t$ or $f(t) = e^$ and $g(t) = e^$ with $a \neq b$ in the second example? Or perhaps using the same theorem to find an inverse Laplace of $F(s) = \frac$? $\endgroup$

Commented Dec 11, 2012 at 2:36 $\begingroup$ please see the edit $\endgroup$ Commented Dec 11, 2012 at 3:10 $\begingroup$

I believe the convolution functions makes the most sense when you see it applied in probability theory.

Let X and Y be two random variables and f(X) and g(Y) be the probability distributions of the random variables.

Then the distribution of the sum of two random variables:

$$ (f*g)(t) = \int^t_0 f(-\tau)g(\tau - t )d\tau $$

Why is this? Let us visualize the simple case of rolling dices. and X be the outcome of the first roll and Y be the outcome of the second roll. What is the distribution of the sum?

Since our distributions are discrete, $$ (f*g)(t) = \sum^t_ f(t)g(i-t) \quad t\in[2,12] $$ This basically translates to, sum up all probabilities such that it has this probability.

i.e. $$(f*g)(4)= \sum^4_ f(t)g(i-t) =f(1)g(3) + f(2)g(2)+ f(3)g(1) = 1/12 $$

Which is the answer we expect. We can also look at the question from a more physics point of view where it is a time reversed signals but I find this much more intuitive.

answered Dec 11, 2012 at 2:51 293 1 1 silver badge 8 8 bronze badges

$\begingroup$ Shouldn't that be $g(t-i)$? And why isn't the convolution integrand $f(\tau)g(t-\tau)$? $\endgroup$

Commented Aug 2, 2015 at 7:15

$\begingroup$ This result is proved in a "The Fourier Transform and its applications" lecture on YouTube: youtube.com/watch?v=LA4Uv6PMRTM $\endgroup$

Commented Dec 6, 2015 at 23:01 $\begingroup$

Consider the sequences $x_0, x_1, \dotsc$ and $y_0, y_1, \dotsc$.

Now, $$ \left( \sum_^n x_j \right) \left( \sum_^n y_j \right) = \sum_^n z_j, $$ where $$ z_j = \sum_^j x_k y_. $$

answered Dec 11, 2012 at 2:03 André Caldas André Caldas 6,131 23 23 silver badges 35 35 bronze badges $\begingroup$ The $j$ subindex on the RHS seems not be bound by anything. $\endgroup$ Commented Sep 26, 2016 at 16:10

$\begingroup$ @siamii: The $j$ is fixed on the LHS. For each $j$ you have one $z_j$. The RHS is how to calculate $z_j$. $\endgroup$

Commented Oct 2, 2016 at 3:51 $\begingroup$

If you want a broad overview, the convolution "blends" two functions together & is the expression of the amount of overlap of one function as it is shifted over another. The convolution takes two functions (& one of them may be a kernel). Writing one of them as a translation, multiply them together & they give you a new function that takes the best properties of both functions. If you take a kernel (as I mentioned above) the new function may have properties from that kernel. A good example would be from something I am interested in: Littlewood-Paley theory. When embarking on various LP constructions, we end up with LP operators such as

These have been defined by constructing a partition of unity (where we are constructing results locally & extending them globally) where $\Psi$ is a radial Schwartz function on $\mathbb^n$ with certain support properties.

Looking at the convolution, $\Delta_j(f)$ has properties that $f$ had as well as support properties passed onto it from $\Psi.$

answered Apr 25, 2015 at 14:31 user230715 user230715 $\begingroup$

Intuition for Convolution

A convolution is the amount of an overlap area of one function f as it is shifted over another function g at a given time offset.

Example using discrete valued functions

Let’s say we are transforming a certain function f(t) by passing it through a filter g(t) to get the output h(t):

 f(t) -> [ g(t) ] -> h(t) 

Say f(t) has the following values for t = [1, 2, 3, 4, 5] -> f(t) = [1, 2, 3, 4, 5], and

say g(t) has the following values for t = [1, 2, 3] -> g(t) = [3, 2, 1]

Now the question is what is the value of h(t) at a specified time t.

To find the value of h(t) at any time t, let's start with following -

Imagine flipping the f(t) with respect to time values, because that is what it looks like when it enters the filter [g(t)] 

Now let's start here,

 ->| start of time (t) [1, 2, 3] -> time f(t) = [5, 4, 3, 2, 1] g(t) = [3, 2, 1] 

To calculate the values of h(t), let’s line up the values of f(t) and pass them through the values of g(t)

 g(t) 3 2 1 f(t) 5 4 3 2 1 Total value 3  
 g(t) 3 2 1 f(t) 5 4 3 2 1 Total value 6 2  
 g(t) 3 2 1 f(t) 5 4 3 2 1 Total value 9 4 1  
 g(t) 3 2 1 f(t) 5 4 3 2 1 Total value 12 6 2  
 g(t) 3 2 1 f(t) 5 4 3 2 1 Total value 15 8 3  
 g(t) 3 2 1 f(t) 5 4 3 2 1 Total value 10 4  
 g(t) 3 2 1 f(t) 5 4 3 2 1 Total value 5  

Just by sliding to any t = n, we can find the value of h(t) by calculating the value of overlapped “area” at t = n.

Now the value h(t) = conv(g(t), h(t)) at any time t is as follows

 g(t) * f(t) = h(t) [3 2 1] * [1 2 3 4 5] = [3 8 14 20 26 14 5] | | | | | | | Time - - - - - - - - - > 1 2 3 4 5 6 7 

Note:

So far we have been doing a simple summation of terms as our functions are discrete. If we are dealing with continuous functions, the integral as a limit of a summation would come into play.

Credit: The above example is based on the Intuitive Guide to Convolution @ Better Explained

answered Sep 30, 2021 at 21:18 131 2 2 bronze badges $\begingroup$

This is quite late to the party but here is another (in my opinion very useful) way to look at the convolution integral: changing frames of reference in Quantum Mechanics.

Suppose I have a quantum particle $P_1$ whose location relative to a fixed observer $O$ is given by a probability distribution $p_1(x,t)$ (here $x$ is a real number, basically a coordinate on a line) such that given a set of locations $D$ on the line at a particular time $t_s$ the probability of finding the particle in the location $D$ is given by

To be concrete in our 1 dimensional example we might ask "what is the probability of finding the particle in the interval from $x=1$ to $x=5$ ?" and we would find this by evaluating

(for people with a physics background $p_1(x,t) = |\Psi_1(x,t)|^2$ ).

Now suppose I have another particle $P_2$ whose location relative to the fixed observer $O$ is given by a similar probability distribution $p_2(x,t)$ .

It is natural then to ask, what is the relative location of $p_2$ versus $p_1$ ? For example: "what is the probability that $p_2$ is 3 or more units to the left of $p_1$ at time $t_s$ ?". In classical mechanics this is easy to do, we just "subtract the frame of reference" but in quantum mechanics this is much trickier (I can elaborate on this if requested in the comments), our desired "frame of reference change" should work as below:

We are looking for a probability distribution function $R(x,t)$ such that if we have a relative space $D$ then

Gives the probability of $P_2$ and $P_1$ in that relative configuration at time $t_s$ . To be concrete we will use the example from earlier:

If we ask "What is the probability that $P_2$ is 3 or more units to the left of $P_1$ at time $t_s$ ?" then the answer to that must be $$ \int_<-\infty>^ R(x,t_s) dx $$

Now it turns out after all this set up that

Which is just a convolution. So here's yet another application/way to think about the convolution.