In mathematics and in particular, functional analysis, the convolution (German: Faltung) is a mathematical operator which takes two functions and and produces a third function that in a sense represents the amount of overlap between and a reversed and translated version of . A convolution is a kind of very general moving average, as one can see by taking one of the functions to be an indicator function of an interval.
The convolution of and is written . It is defined as the integral of the product of the two functions after one is reversed and shifted.
The integration range depends on the domain
on which the functions are defined.
In case of a finite integration range, and are often considered as cyclically extended so that the term does not imply a range violation. Of course, extension with zeros is also possible. The former case of periodic domains is sometimes called a cyclic convolution
, while the latter case of zero-extended or infinite domains is sometimes called a linear convolution
, especially in the discrete case below.
If and are two independent random variables with probability densities and , respectively, then the probability density of the sum is given by the convolution .
For discrete functions, one can use a discrete version of the convolution.
It is then given by
When multiplying two polynomials, the coefficients of the product are given by the convolution of the original coefficient sequences, in this sense (using extension with zeros as mentioned above).
Generalizing the above cases, the convolution can be defined for any two square-integrable functions defined on a locally compact topological group. A different generalization is the convolution of distributions.
The various convolution operators all satisfy the following properties:
- Note: This property would be lost were one function not reversed as described above.
Associativity with scalar multiplication:
for any real (or complex) number .
denotes the derivative
or, in the discrete case, the difference operator Df
) = f
+1) - f
where F f
denotes the Fourier transform
. This theorem also holds for the Laplace transform
Convolutions on Groups
If G is a suitable group endowed with a measure m (for instance, a locally compact Hausdorff topological group with the Haar measure) and if f and g are real or complex valued m-integrable functions of G, then we can define their convolution by
In this case, it is also possible to give, for instance, a Convolution Theorem, however it is much more difficult to phrase and requires representation theory
for these types of groups and the Peter-Weyl theorem
of Harmonic analysis
. It is very difficult to do these calculations without more structure, and Lie groups
turn out to be the setting in which these things are done.