BREAKING NEWS
Dirac comb

## Summary

In mathematics, a Dirac comb (also known as shah function, impulse train or sampling function) is a periodic function with the formula

The graph of the Dirac comb function is an infinite series of Dirac delta functions spaced at intervals of T
${\displaystyle \operatorname {\text{Ш}} _{\ T}(t)\ :=\sum _{k=-\infty }^{\infty }\delta (t-kT)}$
for some given period ${\displaystyle T}$.[1] Here t is a real variable and the sum extends over all integers k. The Dirac delta function ${\displaystyle \delta }$ and the Dirac comb are tempered distributions.[2][3] The graph of the function resembles a comb (with the ${\displaystyle \delta }$s as the comb's teeth), hence its name and the use of the comb-like Cyrillic letter sha (Ш) to denote the function.

The symbol ${\displaystyle \operatorname {\text{Ш}} \,\,(t)}$, where the period is omitted, represents a Dirac comb of unit period. This implies[1]

${\displaystyle \operatorname {\text{Ш}} _{\ T}(t)\ ={\frac {1}{T}}\operatorname {\text{Ш}} \ \!\!\!\left({\frac {t}{T}}\right).}$

Because the Dirac comb function is periodic, it can be represented as a Fourier series based on the Dirichlet kernel:[1]

${\displaystyle \operatorname {\text{Ш}} _{\ T}(t)={\frac {1}{T}}\sum _{n=-\infty }^{\infty }e^{i2\pi n{\frac {t}{T}}}.}$

The Dirac comb function allows one to represent both continuous and discrete phenomena, such as sampling and aliasing, in a single framework of continuous Fourier analysis on tempered distributions, without any reference to Fourier series. The Fourier transform of a Dirac comb is another Dirac comb. Owing to the Convolution Theorem on tempered distributions which turns out to be the Poisson summation formula, in signal processing, the Dirac comb allows modelling sampling by multiplication with it, but it also allows modelling periodization by convolution with it.[4]

## Dirac-comb identity

The Dirac comb can be constructed in two ways, either by using the comb operator (performing sampling) applied to the function that is constantly ${\displaystyle 1}$ , or, alternatively, by using the rep operator (performing periodization) applied to the Dirac delta ${\displaystyle \delta }$ . Formally, this yields (Woodward 1953; Brandwood 2003)

${\displaystyle \operatorname {comb} _{T}\{1\}=\operatorname {\text{Ш}} _{T}=\operatorname {rep} _{T}\{\delta \},}$

where
${\displaystyle \operatorname {comb} _{T}\{f(t)\}\triangleq \sum _{k=-\infty }^{\infty }\,f(kT)\,\delta (t-kT)}$

and
${\displaystyle \operatorname {rep} _{T}\{g(t)\}\triangleq \sum _{k=-\infty }^{\infty }\,g(t-kT).}$

In signal processing, this property on one hand allows sampling a function ${\displaystyle f(t)}$  by multiplication with ${\displaystyle \operatorname {\text{Ш}} _{\ T}}$ , and on the other hand it also allows the periodization of ${\displaystyle f(t)}$  by convolution with ${\displaystyle \operatorname {\text{Ш}} _{T}}$  (Bracewell 1986). The Dirac comb identity is a particular case of the Convolution Theorem for tempered distributions.

## Scaling

The scaling property of the Dirac comb follows from the properties of the Dirac delta function. Since ${\displaystyle \delta (t)={\frac {1}{a}}\ \delta \!\left({\frac {t}{a}}\right)}$ [5] for positive real numbers ${\displaystyle a}$ , it follows that:

${\displaystyle \operatorname {\text{Ш}} _{\ T}\left(t\right)={\frac {1}{T}}\operatorname {\text{Ш}} \,\!\left({\frac {t}{T}}\right),}$

${\displaystyle \operatorname {\text{Ш}} _{\ aT}\left(t\right)={\frac {1}{aT}}\operatorname {\text{Ш}} \,\!\left({\frac {t}{aT}}\right)={\frac {1}{a}}\operatorname {\text{Ш}} _{\ T}\!\!\left({\frac {t}{a}}\right).}$

Note that requiring positive scaling numbers ${\displaystyle a}$  instead of negative ones is not a restriction because the negative sign would only reverse the order of the summation within ${\displaystyle \operatorname {\text{Ш}} _{\ T}}$ , which does not affect the result.

## Fourier series

It is clear that ${\displaystyle \operatorname {\text{Ш}} _{\ T}(t)}$  is periodic with period ${\displaystyle T}$ . That is,

${\displaystyle \operatorname {\text{Ш}} _{\ T}(t+T)=\operatorname {\text{Ш}} _{\ T}(t)}$

for all t. The complex Fourier series for such a periodic function is
${\displaystyle \operatorname {\text{Ш}} _{\ T}(t)=\sum _{n=-\infty }^{+\infty }c_{n}e^{i2\pi n{\frac {t}{T}}},}$

where the Fourier coefficients are (symbolically)
{\displaystyle {\begin{aligned}c_{n}&={\frac {1}{T}}\int _{t_{0}}^{t_{0}+T}\operatorname {\text{Ш}} _{\ T}(t)e^{-i2\pi n{\frac {t}{T}}}\,dt\quad (-\infty

All Fourier coefficients are 1/T resulting in

${\displaystyle \operatorname {\text{Ш}} _{\ T}(t)={\frac {1}{T}}\sum _{n=-\infty }^{\infty }\!\!e^{i2\pi n{\frac {t}{T}}}.}$

When the period is one unit, this simplifies to

${\displaystyle \operatorname {\text{Ш}} \ \!(x)=\sum _{n=-\infty }^{\infty }\!\!e^{i2\pi nx}.}$

Remark: Most rigorously, Riemann or Lebesgue integration over any products including a Dirac delta function yields zero. For this reason, the integration above (Fourier series coefficients determination) must be understood "in the generalized functions sense". It means that, instead of using the characteristic function of an interval applied to the Dirac comb, one uses a so-called Lighthill unitary function as cutout function, see Lighthill 1958, p.62, Theorem 22 for details.

## Fourier transform

The Fourier transform of a Dirac comb is also a Dirac comb. For the Fourier transform ${\displaystyle {\mathcal {F}}}$  expressed in frequency domain (Hz) the Dirac comb ${\displaystyle \operatorname {\text{Ш}} _{T}}$  of period ${\displaystyle T}$  transforms into a rescaled Dirac comb of period ${\displaystyle 1/T,}$  i.e. for

${\displaystyle {\mathcal {F}}\left[f\right](\xi )=\int _{-\infty }^{\infty }dtf(t)e^{-2\pi i\xi t},}$
${\displaystyle {\mathcal {F}}\left[\operatorname {\text{Ш}} _{T}\right](\xi )={\frac {1}{T}}\sum _{k=-\infty }^{\infty }\delta (\xi -k{\frac {1}{T}})={\frac {1}{T}}\operatorname {\text{Ш}} _{\ {\frac {1}{T}}}(\xi )~}$

is proportional to another Dirac comb, but with period ${\displaystyle 1/T}$  in frequency domain (radian/s). The Dirac comb ${\displaystyle \operatorname {\text{Ш}} }$  of unit period ${\displaystyle T=1}$  is thus an eigenfunction of ${\displaystyle {\mathcal {F}}}$  to the eigenvalue ${\displaystyle 1.}$

This result can be established (Bracewell 1986) by considering the respective Fourier transforms ${\displaystyle S_{\tau }(\xi )={\mathcal {F}}[s_{\tau }](\xi )}$  of the family of functions ${\displaystyle s_{\tau }(x)}$  defined by

${\displaystyle s_{\tau }(x)=\tau ^{-1}e^{-\pi \tau ^{2}x^{2}}\sum _{n=-\infty }^{\infty }e^{-\pi \tau ^{-2}(x-n)^{2}}.}$

Since ${\displaystyle s_{\tau }(x)}$  is a convergent series of Gaussian functions, and Gaussians transform into Gaussians, each of their respective Fourier transforms ${\displaystyle S_{\tau }(\xi )}$  also results in a series of Gaussians, and explicit calculation establishes that

${\displaystyle S_{\tau }(\xi )=\tau ^{-1}\sum _{m=-\infty }^{\infty }e^{-\pi \tau ^{2}m^{2}}e^{-\pi \tau ^{-2}(\xi -m)^{2}}.}$

The functions ${\displaystyle s_{\tau }(x)}$  and ${\displaystyle S_{\tau }(\xi )}$  are thus each resembling a periodic function consisting of a series of equidistant Gaussian spikes ${\displaystyle \tau ^{-1}e^{-\pi \tau ^{-2}(x-n)^{2}}}$  and ${\displaystyle \tau ^{-1}e^{-\pi \tau ^{-2}(\xi -m)^{2}}}$  whose respective "heights" (pre-factors) are determined by slowly decreasing Gaussian envelope functions which drop to zero at infinity. Note that in the limit ${\displaystyle \tau \rightarrow 0}$  each Gaussian spike becomes an infinitely sharp Dirac impulse centered respectively at ${\displaystyle x=n}$  and ${\displaystyle \xi =m}$  for each respective ${\displaystyle n}$  and ${\displaystyle m}$ , and hence also all pre-factors ${\displaystyle e^{-\pi \tau ^{2}m^{2}}}$  in ${\displaystyle S_{\tau }(\xi )}$  eventually become indistinguishable from ${\displaystyle e^{-\pi \tau ^{2}\xi ^{2}}}$ . Therefore the functions ${\displaystyle s_{\tau }(x)}$  and their respective Fourier transforms ${\displaystyle S_{\tau }(\xi )}$  converge to the same function and this limit function is a series of infinite equidistant Gaussian spikes, each spike being multiplied by the same pre-factor of one, i.e. the Dirac comb for unit period:

${\displaystyle \lim _{\tau \rightarrow 0}s_{\tau }(x)=\operatorname {\text{Ш}} ({x}),}$  and ${\displaystyle \lim _{\tau \rightarrow 0}S_{\tau }(\xi )=\operatorname {\text{Ш}} ({\xi }).}$

Since ${\displaystyle S_{\tau }={\mathcal {F}}[s_{\tau }]}$ , we obtain in this limit the result to be demonstrated:

${\displaystyle {\mathcal {F}}[\operatorname {\text{Ш}} ]=\operatorname {\text{Ш}} .}$

The corresponding result for period ${\displaystyle T}$  can be found by exploiting the scaling property of the Fourier transform,

${\displaystyle {\mathcal {F}}[\operatorname {\text{Ш}} _{T}]={\frac {1}{T}}\operatorname {\text{Ш}} _{\frac {1}{T}}.}$

Another manner to establish that the Dirac comb transforms into another Dirac comb starts by examining continuous Fourier transforms of periodic functions in general, and then specialises to the case of the Dirac comb. In order to also show that the specific rule depends on the convention for the Fourier transform, this will be shown using angular frequency with ${\displaystyle \omega =2\pi \xi :}$  for any periodic function ${\displaystyle f(t)=f(t+T)}$  its Fourier transform

${\displaystyle {\mathcal {F}}\left[f\right](\omega )=F(\omega )=\int _{-\infty }^{\infty }dtf(t)e^{-i\omega t}}$  obeys:
${\displaystyle F(\omega )(1-e^{i\omega T})=0}$

because Fourier transforming ${\displaystyle f(t)}$  and ${\displaystyle f(t+T)}$  leads to ${\displaystyle F(\omega )}$  and ${\displaystyle F(\omega )e^{i\omega T}.}$  This equation implies that ${\displaystyle F(\omega )=0}$  nearly everywhere with the only possible exceptions lying at ${\displaystyle \omega =k\omega _{0},}$  with ${\displaystyle \omega _{0}=2\pi /T}$  and ${\displaystyle k\in \mathbb {Z} .}$  When evaluating the Fourier transform at ${\displaystyle F(k\omega _{0})}$  the corresponding Fourier series expression times a corresponding delta function results. For the special case of the Fourier transform of the Dirac comb, the Fourier series integral over a single period covers only the Dirac function at the origin and thus gives ${\displaystyle 1/T}$  for each ${\displaystyle k.}$  This can be summarised by interpreting the Dirac comb as a limit of the Dirichlet kernel such that, at the positions ${\displaystyle \omega =k\omega _{0},}$  all exponentials in the sum ${\displaystyle \sum \nolimits _{m=-\infty }^{\infty }e^{\pm i\omega mT}}$  point into the same direction and add constructively. In other words, the continuous Fourier transform of periodic functions leads to

${\displaystyle F(\omega )=2\pi \sum _{k=-\infty }^{\infty }c_{k}\delta (\omega -k\omega _{0})}$  with ${\displaystyle \omega _{0}=2\pi /T,}$

and

${\displaystyle c_{k}={\frac {1}{T}}\int _{-T/2}^{+T/2}dtf(t)e^{-i2\pi kt/T}.}$

The Fourier series coefficients ${\displaystyle c_{k}=1/T}$  for all ${\displaystyle k}$  when ${\displaystyle f\rightarrow \operatorname {\text{Ш}} _{T}}$ , i.e.

${\displaystyle {\mathcal {F}}\left[\operatorname {\text{Ш}} _{T}\right](\omega )={\frac {2\pi }{T}}\sum _{k=-\infty }^{\infty }\delta (\omega -k{\frac {2\pi }{T}})}$

is another Dirac comb, but with period ${\displaystyle 2\pi /T}$  in angular frequency domain (radian/s).

As mentioned, the specific rule depends on the convention for the used Fourier transform. Indeed, when using the scaling property of the Dirac delta function, the above may be re-expressed in ordinary frequency domain (Hz) and one obtains again:

${\displaystyle \operatorname {\text{Ш}} _{\ T}(t){\stackrel {\mathcal {F}}{\longleftrightarrow }}{\frac {1}{T}}\operatorname {\text{Ш}} _{\ {\frac {1}{T}}}(\xi )=\sum _{n=-\infty }^{\infty }\!\!e^{-i2\pi \xi nT},}$

such that the unit period Dirac comb transforms to itself:

${\displaystyle \operatorname {\text{Ш}} \ \!(t){\stackrel {\mathcal {F}}{\longleftrightarrow }}\operatorname {\text{Ш}} \ \!(\xi ).}$

Finally, the Dirac comb is also an eigenfunction of the unitary continuous Fourier transform in angular frequency space to the eigenvalue 1 when ${\displaystyle T={\sqrt {2\pi }}}$  because for the unitary Fourier transform

${\displaystyle {\mathcal {F}}\left[f\right](\omega )=F(\omega )={\frac {1}{\sqrt {2\pi }}}\int _{-\infty }^{\infty }dtf(t)e^{-i\omega t},}$

the above may be re-expressed as

${\displaystyle \operatorname {\text{Ш}} _{\ T}(t){\stackrel {\mathcal {F}}{\longleftrightarrow }}{\frac {\sqrt {2\pi }}{T}}\operatorname {\text{Ш}} _{\ {\frac {2\pi }{T}}}(\omega )={\frac {1}{\sqrt {2\pi }}}\sum _{n=-\infty }^{\infty }\!\!e^{-i\omega nT}.}$

## Sampling and aliasing

Multiplying any function by a Dirac comb transforms it into a train of impulses with integrals equal to the value of the function at the nodes of the comb. This operation is frequently used to represent sampling.

${\displaystyle (\operatorname {\text{Ш}} _{\ T}x)(t)=\sum _{k=-\infty }^{\infty }\!\!x(t)\delta (t-kT)=\sum _{k=-\infty }^{\infty }\!\!x(kT)\delta (t-kT).}$

Due to the self-transforming property of the Dirac comb and the convolution theorem, this corresponds to convolution with the Dirac comb in the frequency domain.

${\displaystyle \operatorname {\text{Ш}} _{\ T}x\ {\stackrel {\mathcal {F}}{\longleftrightarrow }}\ {\frac {1}{T}}\operatorname {\text{Ш}} _{\frac {1}{T}}*X}$

Since convolution with a delta function ${\displaystyle \delta (t-kT)}$  is equivalent to shifting the function by ${\displaystyle kT}$ , convolution with the Dirac comb corresponds to replication or periodic summation:

${\displaystyle (\operatorname {\text{Ш}} _{\ {\frac {1}{T}}}\!*X)(f)=\!\sum _{k=-\infty }^{\infty }\!\!X\!\left(f-{\frac {k}{T}}\right)}$

This leads to a natural formulation of the Nyquist–Shannon sampling theorem. If the spectrum of the function ${\displaystyle x}$  contains no frequencies higher than B (i.e., its spectrum is nonzero only in the interval ${\displaystyle (-B,B)}$ ) then samples of the original function at intervals ${\displaystyle {\tfrac {1}{2B}}}$  are sufficient to reconstruct the original signal. It suffices to multiply the spectrum of the sampled function by a suitable rectangle function, which is equivalent to applying a brick-wall lowpass filter.

${\displaystyle \operatorname {\text{Ш}} _{\ \!{\frac {1}{2B}}}x\ \ {\stackrel {\mathcal {F}}{\longleftrightarrow }}\ \ 2B\,\operatorname {\text{Ш}} _{\ 2B}*X}$
${\displaystyle {\frac {1}{2B}}\Pi \left({\frac {f}{2B}}\right)(2B\,\operatorname {\text{Ш}} _{\ 2B}*X)=X}$

In time domain, this "multiplication with the rect function" is equivalent to "convolution with the sinc function" (Woodward 1953, p.33-34). Hence, it restores the original function from its samples. This is known as the Whittaker–Shannon interpolation formula.

Remark: Most rigorously, multiplication of the rect function with a generalized function, such as the Dirac comb, fails. This is due to undetermined outcomes of the multiplication product at the interval boundaries. As a workaround, one uses a Lighthill unitary function instead of the rect function. It is smooth at the interval boundaries, hence it yields determined multiplication products everywhere, see Lighthill 1958, p.62, Theorem 22 for details.

## Use in directional statistics

In directional statistics, the Dirac comb of period ${\displaystyle 2\pi }$  is equivalent to a wrapped Dirac delta function and is the analog of the Dirac delta function in linear statistics.

In linear statistics, the random variable ${\displaystyle (x)}$  is usually distributed over the real-number line, or some subset thereof, and the probability density of ${\displaystyle x}$  is a function whose domain is the set of real numbers, and whose integral from ${\displaystyle -\infty }$  to ${\displaystyle +\infty }$  is unity. In directional statistics, the random variable ${\displaystyle (\theta )}$  is distributed over the unit circle, and the probability density of ${\displaystyle \theta }$  is a function whose domain is some interval of the real numbers of length ${\displaystyle 2\pi }$  and whose integral over that interval is unity. Just as the integral of the product of a Dirac delta function with an arbitrary function over the real-number line yields the value of that function at zero, so the integral of the product of a Dirac comb of period ${\displaystyle 2\pi }$  with an arbitrary function of period ${\displaystyle 2\pi }$  over the unit circle yields the value of that function at zero.

## References

1. ^ a b c "The Dirac Comb and its Fourier Transform - DSPIllustrations.com". dspillustrations.com. Retrieved 2022-06-28.
2. ^ Schwartz, L. (1951), Théorie des distributions, vol. Tome I, Tome II, Hermann, Paris
3. ^ Strichartz, R. (1994), A Guide to Distribution Theory and Fourier Transforms, CRC Press, ISBN 0-8493-8273-4
4. ^ Bracewell, R. N. (1986), The Fourier Transform and Its Applications (revised ed.), McGraw-Hill; 1st ed. 1965, 2nd ed. 1978.
5. ^ Rahman, M. (2011), Applications of Fourier Transforms to Generalized Functions, WIT Press Southampton, Boston, ISBN 978-1-84564-564-9.