Dirichlet Function¶
Definition¶
The Dirichlet function is the indicator function of the rational numbers, defined by
If the input is a rational number, the output of the Dirichlet function is otherwise, if the input is an irrational number, the output of the Dirichlet function is
Interpretation¶
The Dirichlet function provides a fundamental example of extreme irregularity. It sorts real numbers into rational and irrational ones, giving the value to the first kind and to the second.
The irregularity comes from how the two kinds are mixed: every interval with , however short, contains both rational and irrational numbers. So close to any point , the function takes both values and , and its values never settle down near . A sketch of the graph as two horizontal lines and is misleading: each of these "lines" has gaps between any two of its points.
The function is the indicator function of . Later it serves as the standard example of a function that is continuous at no point, and of a bounded function that is not Riemann integrable.
Key Results¶
- The Dirichlet function is discontinuous at every point.
- It is not Riemann integrable on any nondegenerate bounded interval.
Examples¶
- On any nondegenerate interval, rational and irrational inputs are densely interwoven, preventing continuity.
- Any neighbourhood contains points where the function value jumps between and
Prerequisites¶
Related Concepts¶
Sources¶
- Math I: Calculus · Lecture 4
Keywords: nowhere continuous function Symbols: element of, rational numbers
Last updated: 20 October 2026 03:02
Dirichlet FunctionIndicator FunctionIrrational NumberContinuityRiemann Integral