In mathematics, the Dirichlet function[1][2] is the indicator function \mathbf{1}_\Q of the set of rational numbers \Q over the set of real numbers \R, i.e. \mathbf{1}_\Q(x) = 1 for a real number x if x is a rational number and \mathbf{1}_\Q(x) = 0 if x is not a rational number (i.e. is an irrational number).
\mathbf 1_\Q(x) = \begin{cases}
1 & x \in \Q \\
0 & x \notin \Q
\end{cases}
It is named after the mathematician Peter Gustav Lejeune Dirichlet.[3] It is an example of a pathological function which provides counterexamples to many situations.
Periodicity
For any real number x and any positive rational number T, \mathbf{1}_\Q(x + T) = \mathbf{1}_\Q(x). The Dirichlet function is therefore an example of a real periodic function which is not constant but whose set of periods, the set of rational numbers, is a dense subset of \R.
See also
- Thomae's function, a variation that is discontinuous only at the rational numbers.
References
- ^
- ^ Dirichlet Function — from MathWorld
- ^ Lejeune Dirichlet, Peter Gustav (1829). "Sur la convergence des séries trigonométriques qui servent à représenter une fonction arbitraire entre des limites données". Journal für die reine und angewandte Mathematik. 4: 157–169. The function is defined on page 169