# Convolution theorem

In mathematics, the convolution theorem states that under suitable conditions the Fourier transform of a convolution of two functions (or signals) is the pointwise product of their Fourier transforms. More generally, convolution in one domain (e.g., time domain) equals point-wise multiplication in the other domain (e.g., frequency domain). Other versions of the convolution theorem are applicable to various Fourier-related transforms.

## Functions of a continuous-variable

Consider two functions $g(x)$  and $h(x)$  with Fourier transforms $G$  and $H$ :

{\begin{aligned}G(f)&\triangleq {\mathcal {F}}\{g\}(f)=\int _{-\infty }^{\infty }g(x)e^{-i2\pi fx}\,dx,\quad f\in \mathbb {R} \\H(f)&\triangleq {\mathcal {F}}\{h\}(f)=\int _{-\infty }^{\infty }h(x)e^{-i2\pi fx}\,dx,\quad f\in \mathbb {R} \end{aligned}}

where ${\mathcal {F}}$  denotes the Fourier transform operator. The transform may be normalized in other ways, in which case constant scaling factors (typically $2\pi$  or ${\sqrt {2\pi }}$ ) will appear in the convolution theorem below. The convolution of $g$  and $h$  is defined by:

$r(x)=\{g*h\}(x)\triangleq \int _{-\infty }^{\infty }g(\tau )h(x-\tau )\,d\tau =\int _{-\infty }^{\infty }g(x-\tau )h(\tau )\,d\tau .$

In this context the asterisk denotes convolution, instead of standard multiplication. The tensor product symbol $\otimes$  is sometimes used instead.

The convolution theorem states that:: eq.8

$R(f)\triangleq {\mathcal {F}}\{r\}(f)=G(f)H(f).\quad f\in \mathbb {R}$

(Eq.1a)

Applying the inverse Fourier transform ${\mathcal {F}}^{-1}$ , produces the corollary:: eqs.7, 10

Convolution theorem
$r(x)=\{g*h\}(x)={\mathcal {F}}^{-1}\{G\cdot H\},\quad {\text{where }}\displaystyle \cdot {\text{ denotes point-wise multiplication}}$

(Eq.1b)

The theorem also generally applies to multi-dimensional functions.

Multi-dimensional derivation of Eq.1

Consider functions $g,h$  in Lp-space $L^{1}(\mathbb {R} ^{n})$ , with Fourier transforms $G,H$ :

{\begin{aligned}G(f)&\triangleq {\mathcal {F}}\{g\}(f)=\int _{\mathbb {R} ^{n}}g(x)e^{-i2\pi f\cdot x}\,dx,\quad f\in \mathbb {R} ^{n}\\H(f)&\triangleq {\mathcal {F}}\{h\}(f)=\int _{\mathbb {R} ^{n}}h(x)e^{-i2\pi f\cdot x}\,dx,\end{aligned}}

where $f\cdot x$  indicates the inner product of $\mathbb {R} ^{n}$ :   $f\cdot x=\sum _{j=1}^{n}{f}_{j}x_{j},$    and   $dx=\prod _{j=1}^{n}dx_{j}.$

The convolution of $g$  and $h$  is defined by:

$r(x)\triangleq \int _{\mathbb {R} ^{n}}g(\tau )h(x-\tau )\,d\tau .$

Also:

$\iint |g(\tau )h(x-\tau )|\,dx\,d\tau =\int \left(|g(\tau )|\int |h(x-\tau )|\,dx\right)\,d\tau =\int |g(\tau )|\,\|h\|_{1}\,d\tau =\|g\|_{1}\|h\|_{1}.$

Hence by Fubini's theorem we have that $r\in L^{1}(\mathbb {R} ^{n})$  so its Fourier transform $R$  is defined by the integral formula:

{\begin{aligned}R(f)\triangleq {\mathcal {F}}\{r\}(f)&=\int _{\mathbb {R} ^{n}}r(x)e^{-i2\pi f\cdot x}\,dx\\&=\int _{\mathbb {R} ^{n}}\left(\int _{\mathbb {R} ^{n}}g(\tau )h(x-\tau )\,d\tau \right)\,e^{-i2\pi f\cdot x}\,dx.\end{aligned}}

Note that $|g(\tau )h(x-\tau )e^{-i2\pi f\cdot x}|=|g(\tau )h(x-\tau )|$  and hence by the argument above we may apply Fubini's theorem again (i.e. interchange the order of integration):

{\begin{aligned}R(f)&=\int _{\mathbb {R} ^{n}}g(\tau )\underbrace {\left(\int _{\mathbb {R} ^{n}}h(x-\tau )\ e^{-i2\pi f\cdot x}\,dx\right)} _{H(f)\ e^{-i2\pi f\cdot \tau }}\,d\tau \\&=\underbrace {\left(\int _{\mathbb {R} ^{n}}g(\tau )\ e^{-i2\pi f\cdot \tau }\,d\tau \right)} _{G(f)}\ H(f).\end{aligned}}

This theorem also holds for the Laplace transform, the two-sided Laplace transform and, when suitably modified, for the Mellin transform and Hartley transform (see Mellin inversion theorem). It can be extended to the Fourier transform of abstract harmonic analysis defined over locally compact abelian groups.

### Periodic convolution (Fourier series coefficients)

Consider $P$ -periodic functions $g_{_{P}}$  and $h_{_{P}},$  which can be expressed as periodic summations:

$g_{_{P}}(x)\ \triangleq \sum _{m=-\infty }^{\infty }g(x-mP)$    and   $h_{_{P}}(x)\ \triangleq \sum _{m=-\infty }^{\infty }h(x-mP).$

In practice the non-zero portion of components $g$  and $h$  are often limited to duration $P,$  but nothing in the theorem requires that. The Fourier series coefficients are:

{\begin{aligned}G[k]&\triangleq {\mathcal {F}}\{g_{_{P}}\}[k]={\frac {1}{P}}\int _{P}g_{_{P}}(x)e^{-i2\pi kx/P}\,dx,\quad k\in \mathbb {Z} ;\quad \quad {\text{integration over any interval of length }}P\\H[k]&\triangleq {\mathcal {F}}\{h_{_{P}}\}[k]={\frac {1}{P}}\int _{P}h_{_{P}}(x)e^{-i2\pi kx/P}\,dx,\quad k\in \mathbb {Z} \end{aligned}}

where ${\mathcal {F}}$  denotes the Fourier series integral.

• The pointwise product: $g_{_{P}}(x)\cdot h_{_{P}}(x)$  is also $P$ -periodic, and its Fourier series coefficients are given by the discrete convolution of the $G$  and $H$  sequences:
${\mathcal {F}}\{g_{_{P}}\cdot h_{_{P}}\}[k]=\{G*H\}[k].$

• The convolution:
{\begin{aligned}\{g_{_{P}}*h\}(x)\ &\triangleq \int _{-\infty }^{\infty }g_{_{P}}(x-\tau )\cdot h(\tau )\ d\tau \\&\equiv \int _{P}g_{_{P}}(x-\tau )\cdot h_{_{P}}(\tau )\ d\tau ;\quad \quad {\text{integration over any interval of length }}P\end{aligned}}

is also $P$ -periodic,[A] and is called a periodic convolution. The corresponding convolution theorem is:
${\mathcal {F}}\{g_{_{P}}*h\}[k]=\ P\cdot G[k]\ H[k].$

(Eq.2)

Derivation of Eq.2
{\begin{aligned}{\mathcal {F}}\{g_{_{P}}*h\}[k]&\triangleq {\frac {1}{P}}\int _{P}\left(\int _{P}g_{_{P}}(\tau )\cdot h_{_{P}}(x-\tau )\ d\tau \right)e^{-i2\pi kx/P}\,dx\\&=\int _{P}g_{_{P}}(\tau )\left({\frac {1}{P}}\int _{P}h_{_{P}}(x-\tau )\ e^{-i2\pi kx/P}dx\right)\,d\tau \\&=\int _{P}g_{_{P}}(\tau )\ e^{-i2\pi k\tau /P}\underbrace {\left({\frac {1}{P}}\int _{P}h_{_{P}}(x-\tau )\ e^{-i2\pi k(x-\tau )/P}dx\right)} _{H[k],\quad {\text{due to periodicity}}}\,d\tau \\&=\underbrace {\left(\int _{P}\ g_{_{P}}(\tau )\ e^{-i2\pi k\tau /P}d\tau \right)} _{P\cdot G[k]}\ H[k].\end{aligned}}

## Functions of a discrete variable (sequences)

By a derivation similar to Eq.1, there is an analogous theorem for sequences, such as samples of two continuous functions, where now ${\mathcal {F}}$  denotes the discrete-time Fourier transform (DTFT) operator. Consider two sequences $g[n]$  and $h[n]$  with transforms $G$  and $H$ :

{\begin{aligned}G(f)&\triangleq {\mathcal {F}}\{g\}(f)=\sum _{n=-\infty }^{\infty }g[n]\cdot e^{-i2\pi fn}\;,\quad f\in \mathbb {R} \\H(f)&\triangleq {\mathcal {F}}\{h\}(f)=\sum _{n=-\infty }^{\infty }h[n]\cdot e^{-i2\pi fn}\;.\quad f\in \mathbb {R} \end{aligned}}

The § Discrete convolution of $g$  and $h$  is defined by:

$r[n]\triangleq (g*h)[n]=\sum _{m=-\infty }^{\infty }g[m]\cdot h[n-m]=\sum _{m=-\infty }^{\infty }g[n-m]\cdot h[m].$

The convolution theorem for discrete sequences is:: p.60 (2.169)

$R(f)={\mathcal {F}}\{g*h\}(f)=\ G(f)H(f).$

(Eq.3)

### Periodic convolution

$G(f)$  and $H(f),$  as defined above, are periodic, with a period of 1. Consider $N$ -periodic sequences $g_{_{N}}$  and $h_{_{N}}$ :

$g_{_{N}}[n]\ \triangleq \sum _{m=-\infty }^{\infty }g[n-mN]$    and   $h_{_{N}}[n]\ \triangleq \sum _{m=-\infty }^{\infty }h[n-mN],\quad n\in \mathbb {Z} .$

These functions occur as the result of sampling $G$  and $H$  at intervals of $1/N$  and performing an inverse discrete Fourier transform (DFT) on $N$  samples (see § Sampling the DTFT). The discrete convolution:

$\{g_{_{N}}*h\}[n]\ \triangleq \sum _{m=-\infty }^{\infty }g_{_{N}}[m]\cdot h[n-m]\equiv \sum _{m=0}^{N-1}g_{_{N}}[m]\cdot h_{_{N}}[n-m]$

is also $N$ -periodic, and is called a periodic convolution. Redefining the ${\mathcal {F}}$  operator as the $N$ -length DFT, the corresponding theorem is:: p.548

${\mathcal {F}}\{g_{_{N}}*h\}[k]=\ \underbrace {{\mathcal {F}}\{g_{_{N}}\}[k]} _{G(k/N)}\cdot \underbrace {{\mathcal {F}}\{h_{_{N}}\}[k]} _{H(k/N)},\quad k\in \mathbb {Z} .$

(Eq.4a)

And therefore:

$\{g_{_{N}}*h\}[n]=\ {\mathcal {F}}^{-1}\{{\mathcal {F}}\{g_{_{N}}\}\cdot {\mathcal {F}}\{h_{_{N}}\}\}.$

(Eq.4b)

Under the right conditions, it is possible for this N-length sequence to contain a distortion-free segment of a $g*h$  convolution. But when the non-zero portion of the $g(n)$  or $h(n)$  sequence is equal or longer than $N,$  some distortion is inevitable.  Such is the case when the $H(k/N)$  sequence is obtained by directly sampling the DTFT of the infinitely long § Discrete Hilbert transform impulse response.[B]

For $g$  and $h$  sequences whose non-zero duration is less than or equal to $N,$  a final simplification is:

Circular convolution
$\{g_{_{N}}*h\}[n]=\ {\mathcal {F}}^{-1}\{{\mathcal {F}}\{g\}\cdot {\mathcal {F}}\{h\}\}.$

(Eq.4c)

This form is often used to efficiently implement numerical convolution by computer. (see § Fast convolution algorithms and § Example)

Derivations of Eq.4

A time-domain derivation proceeds as follows:

{\begin{aligned}{{\rm {DFT}}}\{g_{_{N}}*h\}[k]&\triangleq \sum _{n=0}^{N-1}\left(\sum _{m=0}^{N-1}g_{_{N}}[m]\cdot h_{_{N}}[n-m]\right)e^{-i2\pi kn/N}\\&=\sum _{m=0}^{N-1}g_{_{N}}[m]\left(\sum _{n=0}^{N-1}h_{_{N}}[n-m]\cdot e^{-i2\pi kn/N}\right)\\&=\sum _{m=0}^{N-1}g_{_{N}}[m]\cdot e^{-i2\pi km/N}\underbrace {\left(\sum _{n=0}^{N-1}h_{_{N}}[n-m]\cdot e^{-i2\pi k(n-m)/N}\right)} _{{\rm {DFT}}\displaystyle \{h_{_{N}}\}[k]\quad {\text{due to periodicity}}}\\&=\underbrace {\left(\sum _{m=0}^{N-1}g_{_{N}}[m]\cdot e^{-i2\pi km/N}\right)} _{{\rm {DFT}}\displaystyle \{g_{_{N}}\}[k]}\left({\rm {DFT}}\displaystyle \{h_{_{N}}\}[k]\right).\end{aligned}}

A frequency-domain derivation follows from § Periodic data, which indicates that the DTFTs can be written as:

${\mathcal {F}}\{g_{_{N}}*h\}(f)={\frac {1}{N}}\sum _{k=-\infty }^{\infty }\left({\rm {DFT}}\displaystyle \{g_{_{N}}*h\}[k]\right)\cdot \delta \left(f-k/N\right).\quad {\mathsf {(Eq.5a)}}$
${\mathcal {F}}\{g_{_{N}}\}(f)={\frac {1}{N}}\sum _{k=-\infty }^{\infty }\left({\rm {DFT}}\displaystyle \{g_{_{N}}\}[k]\right)\cdot \delta \left(f-k/N\right).$

The product with $H(f)$  is thereby reduced to a discrete-frequency function:

{\begin{aligned}{\mathcal {F}}\{g_{_{N}}*h\}(f)&=G_{_{N}}(f)H(f)\\&={\frac {1}{N}}\sum _{k=-\infty }^{\infty }\left({\rm {DFT}}\displaystyle \{g_{_{N}}\}[k]\right)\cdot H(f)\cdot \delta \left(f-k/N\right)\\&={\frac {1}{N}}\sum _{k=-\infty }^{\infty }\left({\rm {DFT}}\displaystyle \{g_{_{N}}\}[k]\right)\cdot H(k/N)\cdot \delta \left(f-k/N\right)\\&={\frac {1}{N}}\sum _{k=-\infty }^{\infty }\left({\rm {DFT}}\displaystyle \{g_{_{N}}\}[k]\right)\cdot \left({\rm {DFT}}\displaystyle \{h_{_{N}}\}[k]\right)\cdot \delta \left(f-k/N\right),\quad {\mathsf {(Eq.5b)}}\end{aligned}}

where the equivalence of $H(k/N)$  and $\left({\rm {DFT}}\displaystyle \{h_{_{N}}\}[k]\right)$  follows from § Sampling the DTFT. Therefore, the equivalence of (5a) and (5b) requires:

${\rm {DFT}}\displaystyle {\{g_{_{N}}*h\}[k]}=\left({\rm {DFT}}\displaystyle \{g_{_{N}}\}[k]\right)\cdot \left({\rm {DFT}}\displaystyle \{h_{_{N}}\}[k]\right).$

We can also verify the inverse DTFT of (5b):

{\begin{aligned}(g_{_{N}}*h)[n]&=\int _{0}^{1}\left({\frac {1}{N}}\sum _{k=-\infty }^{\infty }{\rm {DFT}}\displaystyle \{g_{_{N}}\}[k]\cdot {\rm {DFT}}\displaystyle \{h_{_{N}}\}[k]\cdot \delta \left(f-k/N\right)\right)\cdot e^{i2\pi fn}df\\&={\frac {1}{N}}\sum _{k=-\infty }^{\infty }{\rm {DFT}}\displaystyle \{g_{_{N}}\}[k]\cdot {\rm {DFT}}\displaystyle \{h_{_{N}}\}[k]\cdot \underbrace {\left(\int _{0}^{1}\delta \left(f-k/N\right)\cdot e^{i2\pi fn}df\right)} _{{\text{0, for}}\ k\ \notin \ [0,\ N)}\\&={\frac {1}{N}}\sum _{k=0}^{N-1}{\bigg (}{\rm {DFT}}\displaystyle \{g_{_{N}}\}[k]\cdot {\rm {DFT}}\displaystyle \{h_{_{N}}\}[k]{\bigg )}\cdot e^{i2\pi {\frac {n}{N}}k}\\&=\ {\rm {DFT}}^{-1}\displaystyle {\bigg (}{\rm {DFT}}\displaystyle \{g_{_{N}}\}\cdot {\rm {DFT}}\displaystyle \{h_{_{N}}\}{\bigg )}.\end{aligned}}

## Convolution theorem for inverse Fourier transform

There is also a convolution theorem for the inverse Fourier transform:

${\mathcal {F}}\{g*h\}={\mathcal {F}}\{g\}\cdot {\mathcal {F}}\{h\}$
${\mathcal {F}}\{g\cdot h\}={\mathcal {F}}\{g\}*{\mathcal {F}}\{h\}$

so that

$g*h={\mathcal {F}}^{-1}\left\{{\mathcal {F}}\{g\}\cdot {\mathcal {F}}\{h\}\right\}$
$g\cdot h={\mathcal {F}}^{-1}\left\{{\mathcal {F}}\{g\}*{\mathcal {F}}\{h\}\right\}$

## Convolution theorem for tempered distributions

The convolution theorem extends to tempered distributions. Here, $g$  is an arbitrary tempered distribution (e.g. the Dirac comb)

${\mathcal {F}}\{f*g\}={\mathcal {F}}\{f\}\cdot {\mathcal {F}}\{g\}$
${\mathcal {F}}\{\alpha \cdot g\}={\mathcal {F}}\{\alpha \}*{\mathcal {F}}\{g\}$

but $f=F\{\alpha \}$  must be "rapidly decreasing" towards $-\infty$  and $+\infty$  in order to guarantee the existence of both, convolution and multiplication product. Equivalently, if $\alpha =F^{-1}\{f\}$  is a smooth "slowly growing" ordinary function, it guarantees the existence of both, multiplication and convolution product.

In particular, every compactly supported tempered distribution, such as the Dirac Delta, is "rapidly decreasing". Equivalently, bandlimited functions, such as the function that is constantly $1$  are smooth "slowly growing" ordinary functions. If, for example, $g\equiv \operatorname {III}$  is the Dirac comb both equations yield the Poisson summation formula and if, furthermore, $f\equiv \delta$  is the Dirac delta then $\alpha \equiv 1$  is constantly one and these equations yield the Dirac comb identity.