--- title: "Convolution theorem" firstLetter: "C" publishDate: 2021-02-22 categories: - Mathematics date: 2021-02-22T21:35:23+01:00 draft: false markup: pandoc --- # Convolution theorem The **convolution theorem** states that a convolution in the direct domain is equal to a product in the frequency domain. This is especially useful for computation, replacing an $\mathcal{O}(n^2)$ convolution with an $\mathcal{O}(n \log(n))$ transform and product. ## Fourier transform The convolution theorem is usually expressed as follows, where $\hat{\mathcal{F}}$ is the [Fourier transform](/know/concept/fourier-transform/), and $A$ and $B$ are constants from its definition: $$\begin{aligned} \boxed{ \begin{aligned} A \cdot (f * g)(x) &= \hat{\mathcal{F}}^{-1}\{\tilde{f}(k) \: \tilde{g}(k)\} \\ B \cdot (\tilde{f} * \tilde{g})(k) &= \hat{\mathcal{F}}\{f(x) \: g(x)\} \end{aligned} } \end{aligned}$$