# Convolution theorem

In mathematics, the convolution theorem states that under suitable conditions the Fourier transform of a convolution of two signals is the pointwise product of their Fourier transforms. In other words, convolution in one domain (e.g., time domain) equals point-wise multiplication in the other domain (e.g., frequency domain). Versions of the convolution theorem are true for various Fourier-related transforms. Let ${\displaystyle f}$ and ${\displaystyle g}$ be two functions with convolution ${\displaystyle f*g}$. (Note that the asterisk denotes convolution in this context, not standard multiplication. The tensor product symbol ${\displaystyle \otimes }$ is sometimes used instead.)

If ${\displaystyle {\mathcal {F}}}$ denotes the Fourier transform operator, then ${\displaystyle {\mathcal {F}}\{f\}}$ and ${\displaystyle {\mathcal {F}}\{g\}}$ are the Fourier transforms of ${\displaystyle f}$ and ${\displaystyle g}$, respectively. Then

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

where ${\displaystyle \cdot }$ denotes point-wise multiplication. It also works the other way around:

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

By applying the inverse Fourier transform ${\displaystyle {\mathcal {F}}^{-1}}$, we can write:

${\displaystyle f*g={\mathcal {F}}^{-1}{\big \{}{\mathcal {F}}\{f\}\cdot {\mathcal {F}}\{g\}{\big \}}}$

and:

${\displaystyle f\cdot g={\mathcal {F}}^{-1}{\big \{}{\mathcal {F}}\{f\}*{\mathcal {F}}\{g\}{\big \}}}$

The relationships above are only valid for the form of the Fourier transform shown in the Proof section below. The transform may be normalized in other ways, in which case constant scaling factors (typically ${\displaystyle 2\pi }$ or ${\displaystyle {\sqrt {2\pi }}}$) will appear in the relationships above.

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.

This formulation is especially useful for implementing a numerical convolution on a computer: The standard convolution algorithm has quadratic computational complexity. With the help of the convolution theorem and the fast Fourier transform, the complexity of the convolution can be reduced from ${\displaystyle O\left(n^{2}\right)}$ to ${\displaystyle O\left(n\log n\right)}$, using big O notation. This can be exploited to construct fast multiplication algorithms, as in Multiplication algorithm § Fourier transform methods.

### Proof

The proof here is shown for a particular normalization of the Fourier transform. As mentioned above, if the transform is normalized differently, then constant scaling factors will appear in the derivation.

Let ${\displaystyle f,g}$ belong to the Lp-space ${\displaystyle L^{1}(\mathbb {R} ^{n})}$. Let ${\displaystyle F}$ be the Fourier transform of ${\displaystyle f}$ and ${\displaystyle G}$ be the Fourier transform of ${\displaystyle g}$:

{\displaystyle {\begin{aligned}F(\nu )&={\mathcal {F}}\{f\}(\nu )=\int _{\mathbb {R} ^{n}}f(x)e^{-2\pi ix\cdot \nu }\,dx,\\G(\nu )&={\mathcal {F}}\{g\}(\nu )=\int _{\mathbb {R} ^{n}}g(x)e^{-2\pi ix\cdot \nu }\,dx,\end{aligned}}}

where the dot between ${\displaystyle x}$ and ${\displaystyle \nu }$ indicates the inner product of ${\displaystyle \mathbb {R} ^{n}}$. Let ${\displaystyle h}$ be the convolution of ${\displaystyle f}$ and ${\displaystyle g}$

${\displaystyle h(z)=\int _{\mathbb {R} ^{n}}f(x)g(z-x)\,dx.}$

Also

${\displaystyle \iint |f(x)g(z-x)|\,dz\,dx=\int \left(|f(x)|\int |g(z-x)|\,dz\right)\,dx=\int |f(x)|\,\|g\|_{1}\,dx=\|f\|_{1}\|g\|_{1}.}$

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

{\displaystyle {\begin{aligned}H(\nu )={\mathcal {F}}\{h\}&=\int _{\mathbb {R} ^{n}}h(z)e^{-2\pi iz\cdot \nu }\,dz\\&=\int _{\mathbb {R} ^{n}}\int _{\mathbb {R} ^{n}}f(x)g(z-x)\,dx\,e^{-2\pi iz\cdot \nu }\,dz.\end{aligned}}}

It should be noted that ${\displaystyle |f(x)g(z-x)e^{-2\pi iz\cdot \nu }|=|f(x)g(z-x)|}$ and hence by the argument above we may apply Fubini's theorem again (i.e. interchange the order of integration):

${\displaystyle H(\nu )=\int _{\mathbb {R} ^{n}}f(x)\left(\int _{\mathbb {R} ^{n}}g(z-x)e^{-2\pi iz\cdot \nu }\,dz\right)\,dx.}$

Substituting ${\displaystyle y=z-x}$ yields ${\displaystyle dy=dz}$. Therefore

${\displaystyle H(\nu )=\int _{\mathbb {R} ^{n}}f(x)\left(\int _{\mathbb {R} ^{n}}g(y)e^{-2\pi i(y+x)\cdot \nu }\,dy\right)\,dx}$
${\displaystyle =\int _{\mathbb {R} ^{n}}f(x)e^{-2\pi ix\cdot \nu }\left(\int _{\mathbb {R} ^{n}}g(y)e^{-2\pi iy\cdot \nu }\,dy\right)\,dx}$
${\displaystyle =\int _{\mathbb {R} ^{n}}f(x)e^{-2\pi ix\cdot \nu }\,dx\int _{\mathbb {R} ^{n}}g(y)e^{-2\pi iy\cdot \nu }\,dy.}$

These two integrals are the definitions of ${\displaystyle F(\nu )}$ and ${\displaystyle G(\nu )}$, so:

${\displaystyle H(\nu )=F(\nu )\cdot G(\nu ),}$

QED.

### Convolution theorem for inverse Fourier transform

A similar argument, as the above proof, can be applied to the convolution theorem for the inverse Fourier transform;

${\displaystyle {\mathcal {F}}^{-1}\{f*g\}={\mathcal {F}}^{-1}\{f\}\cdot {\mathcal {F}}^{-1}\{g\}}$
${\displaystyle {\mathcal {F}}^{-1}\{f\cdot g\}={\mathcal {F}}^{-1}\{f\}*{\mathcal {F}}^{-1}\{g\}}$
${\displaystyle f*g={\mathcal {F}}{\big \{}{\mathcal {F}}^{-1}\{f\}\cdot {\mathcal {F}}^{-1}\{g\}{\big \}}}$

and:

${\displaystyle f\cdot g={\mathcal {F}}^{-1}{\big \{}{\mathcal {F}}\{f\}*{\mathcal {F}}\{g\}{\big \}}}$

### Functions of discrete variable sequences

By similar arguments, it can be shown that the discrete convolution of sequences ${\displaystyle x}$ and ${\displaystyle y}$ is given by:

${\displaystyle x*y=\scriptstyle {\rm {DTFT}}^{-1}\displaystyle {\big [}\scriptstyle {\rm {DTFT}}\displaystyle \{x\}\cdot \ \scriptstyle {\rm {DTFT}}\displaystyle \{y\}{\big ]},}$

where DTFT represents the discrete-time Fourier transform.

An important special case is the circular convolution of ${\displaystyle x}$ and ${\displaystyle y}$ defined by ${\displaystyle x_{N}*y,}$ where ${\displaystyle x_{N}}$ is a periodic summation:

${\displaystyle x_{N}[n]\ {\stackrel {\text{def}}{=}}\sum _{m=-\infty }^{\infty }x[n-mN].}$

It can then be shown that:

{\displaystyle {\begin{aligned}x_{N}*y&=\scriptstyle {\rm {DTFT}}^{-1}\displaystyle {\big [}\scriptstyle {\rm {DTFT}}\displaystyle \{x_{N}\}\cdot \scriptstyle {\rm {DTFT}}\displaystyle \{y\}{\big ]}\\&=\scriptstyle {\rm {DFT}}^{-1}\displaystyle {\big [}\scriptstyle {\rm {DFT}}\displaystyle \{x_{N}\}\cdot \scriptstyle {\rm {DFT}}\displaystyle \{y_{N}\}{\big ]},\end{aligned}}}

where DFT represents the discrete Fourier transform.

The proof follows from DTFT#Periodic data, which indicates that ${\displaystyle \scriptstyle {DTFT}\displaystyle \{x_{N}\}}$ can be written as:

${\displaystyle \scriptstyle {\rm {DTFT}}\displaystyle \{x_{N}\}(f)={\frac {1}{N}}\sum _{k=-\infty }^{\infty }\left(\scriptstyle {\rm {DFT}}\displaystyle \{x_{N}\}[k]\right)\cdot \delta \left(f-k/N\right)}$

The product with ${\displaystyle \scriptstyle {\rm {DTFT}}\displaystyle \{y\}(f)}$ is thereby reduced to a discrete-frequency function:

${\displaystyle \scriptstyle {\rm {DTFT}}\displaystyle \{x_{N}\}\cdot \scriptstyle {\rm {DTFT}}\displaystyle \{y\}={\frac {1}{N}}\sum _{k=-\infty }^{\infty }\scriptstyle {\rm {DFT}}\displaystyle \{x_{N}\}[k]\cdot \underbrace {\scriptstyle {\rm {DTFT}}\displaystyle \{y\}(k/N)} _{\scriptstyle {\rm {DFT}}\displaystyle \{y_{N}\}[k]}\cdot \delta \left(f-k/N\right)}$ (also using Sampling the DTFT).

The inverse DTFT is:

{\displaystyle {\begin{aligned}(x_{N}*y)[n]&=\int _{0}^{1}{\frac {1}{N}}\sum _{k=-\infty }^{\infty }\scriptstyle {\rm {DFT}}\displaystyle \{x_{N}\}[k]\cdot \scriptstyle {\rm {DFT}}\displaystyle \{y_{N}\}[k]\cdot \delta \left(f-k/N\right)\cdot e^{i2\pi fn}df\\&={\frac {1}{N}}\sum _{k=-\infty }^{\infty }\scriptstyle {\rm {DFT}}\displaystyle \{x_{N}\}[k]\cdot \scriptstyle {\rm {DFT}}\displaystyle \{y_{N}\}[k]\cdot \int _{0}^{1}\delta \left(f-k/N\right)\cdot e^{i2\pi fn}df\\&={\frac {1}{N}}\sum _{k=0}^{N-1}\scriptstyle {\rm {DFT}}\displaystyle \{x_{N}\}[k]\cdot \scriptstyle {\rm {DFT}}\displaystyle \{y_{N}\}[k]\cdot e^{i2\pi {\frac {n}{N}}k}\\&=\scriptstyle {\rm {DFT}}^{-1}\displaystyle {\big [}\scriptstyle {\rm {DFT}}\displaystyle \{x_{N}\}\cdot \scriptstyle {\rm {DFT}}\displaystyle \{y_{N}\}{\big ]},\end{aligned}}}

QED.

### Convolution theorem for Fourier series coefficients

Two convolution theorems exist for the Fourier series coefficients of a periodic function:

• The first convolution theorem states that if ${\displaystyle f}$ and ${\displaystyle g}$ are in ${\displaystyle L^{1}([-\pi ,\pi ])}$, the Fourier series coefficients of the 2π-periodic convolution of ${\displaystyle f}$ and ${\displaystyle g}$ are given by:
${\displaystyle [{\widehat {f*_{2\pi }g}}](n)=2\pi \cdot {\widehat {f}}(n)\cdot {\widehat {g}}(n),}$ [nb 1]
where:
{\displaystyle {\begin{aligned}\left[f*_{2\pi }g\right](x)\ &{\stackrel {\mathrm {def} }{=}}\int _{-\pi }^{\pi }f(u)\cdot g[{\text{pv}}(x-u)]\,du,&&{\big (}{\text{and }}\underbrace {{\text{pv}}(x)\ {\stackrel {\mathrm {def} }{=}}\arg \left(e^{ix}\right)} _{\text{principal value}}{\big )}\\&=\int _{-\pi }^{\pi }f(u)\cdot g(x-u)\,du,&&\scriptstyle {\text{when }}g(x){\text{ is 2}}\pi {\text{-periodic.}}\\&=\int _{2\pi }f(u)\cdot g(x-u)\,du,&&\scriptstyle {\text{when both functions are 2}}\pi {\text{-periodic, and the integral is over any 2}}\pi {\text{ interval.}}\end{aligned}}}
• The second convolution theorem states that the Fourier series coefficients of the product of ${\displaystyle f}$ and ${\displaystyle g}$ are given by the discrete convolution of the ${\displaystyle {\hat {f}}}$ and ${\displaystyle {\hat {g}}}$ sequences:
${\displaystyle \left[{\widehat {f\cdot g}}\right](n)=\left[{\widehat {f}}*{\widehat {g}}\right](n).}$