In
mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, the Dirichlet function is the
indicator function
In mathematics, an indicator function or a characteristic function of a subset of a set is a function that maps elements of the subset to one, and all other elements to zero. That is, if is a subset of some set , one has \mathbf_(x)=1 if x\i ...
1
Q or
of the set of
rational numbers
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ra ...
Q, i.e. if ''x'' is a rational number and if ''x'' is not a rational number (i.e. an
irrational number
In mathematics, the irrational numbers (from in- prefix assimilated to ir- (negative prefix, privative) + rational) are all the real numbers that are not rational numbers. That is, irrational numbers cannot be expressed as the ratio of two inte ...
).
It is named after the mathematician
Peter Gustav Lejeune Dirichlet
Johann Peter Gustav Lejeune Dirichlet (; 13 February 1805 – 5 May 1859) was a German mathematician who made deep contributions to number theory (including creating the field of analytic number theory), and to the theory of Fourier series and ...
. It is an example of
pathological function which provides counterexamples to many situations.
Topological properties
- The Dirichlet function is
nowhere continuous
In mathematics, a nowhere continuous function, also called an everywhere discontinuous function, is a function that is not continuous at any point of its domain. If ''f'' is a function from real numbers to real numbers, then ''f'' is nowhere c ...
.
Its restrictions to the set of rational numbers and to the set of irrational numbers are constants
Constant or The Constant may refer to:
Mathematics
* Constant (mathematics), a non-varying value
* Mathematical constant, a special number that arises naturally in mathematics, such as or
Other concepts
* Control variable or scientific const ...
and therefore continuous. The Dirichlet function is an archetypal example of the Blumberg theorem
In mathematics, the Blumberg theorem states that for any real function f : \R \to \R there is a dense subset D of \mathbb such that the restriction of f to D is continuous.
For instance, the restriction of the Dirichlet function (the indica ...
.
- The Dirichlet function can be constructed as the double pointwise limit of a sequence of continuous functions, as follows:
for integer ''j'' and ''k''. This shows that the Dirichlet function is a Baire class 2 function. It cannot be a Baire class 1 function because a Baire class 1 function can only be discontinuous on a
meagre set
In the mathematical field of general topology, a meagre set (also called a meager set or a set of first category) is a subset of a topological space that is small or negligible in a precise sense detailed below. A set that is not meagre is calle ...
.
Periodicity
For any real number ''x'' and any positive rational number ''T'', 1
Q(''x'' + ''T'') = 1
Q(''x''). The Dirichlet function is therefore an example of a real
periodic function
A periodic function is a function that repeats its values at regular intervals. For example, the trigonometric functions, which repeat at intervals of 2\pi radians, are periodic functions. Periodic functions are used throughout science to des ...
which is not
constant but whose set of periods, the set of rational numbers, is a
dense subset of R.
Integration properties
- The Dirichlet function is not Riemann-integrable on any segment of R whereas it is bounded because the set of its discontinuity points is not