Dirichlet function
From HandWiki
Short description: Indicator function of rational numbers
In mathematics, the Dirichlet function[1][2] is the indicator function of the set of rational numbers over the set of real numbers , i.e. for a real number x if x is a rational number and if x is not a rational number (i.e. is an irrational number).
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.
Topological properties
- The Dirichlet function is nowhere continuous. We can prove this by reference to the definition of a continuous function to show that it violates the continuity properties at both rational and irrational arguments:
Its restrictions to the set of rational numbers and to the set of irrational numbers areProof
- If y is rational, then f(y) = 1. To show the function is not continuous at y, we need to find an ε such that no matter how small we choose δ, there will be points z within δ of y such that f(z) is not within ε of f(y) = 1. In fact, 1⁄2 is such an ε. Because the irrational numbers are dense in the reals, no matter what δ we choose we can always find an irrational z within δ of y, and f(z) = 0 is at least 1⁄2 away from 1.
- If y is irrational, then f(y) = 0. Again, we can take ε = 1⁄2, and this time, because the rational numbers are dense in the reals, we can pick z to be a rational number as close to y as is required. Again, f(z) = 1 is more than 1⁄2 away from f(y) = 0.