- Cantor function
In
mathematics , the Cantor function, named afterGeorg Cantor , is an example of a function that is continuous, but notabsolutely continuous .Definition
The Cantor function "c" : [0,1] → [0,1] is defined as follows:
#Express "x" in base 3. If possible, use no 1s. (This makes a difference only if the expansion ends in 022222... = 100000... or 200000... = 122222...)
#Replace the first 1 with a 2 and everything after it with 0.
#Replace all 2s with 1s.
#Interpret the result as a binary number. The result is "c"("x").For example:
* 1/4 becomes 0.02020202... base 3; there are no 1s so the next stage is still 0.02020202...; this is rewritten as 0.01010101...; when read in base 2, this is 1/3 so "c"(1/4) = 1/3.
* 1/5 becomes 0.01210121... base 3; the first 1 changes to a 2 followed by 0s to produce 0.02000000...; this is rewritten as 0.01000000...; when read in base 2, this is 1/4 so "c"(1/5) = 1/4.(It may be much easier to understand this definition by looking at the graph below than by grasping the algorithm.)
Properties
The Cantor function challenges naive intuitions about continuity and measure; though it is continuous everywhere and has zero derivative
almost everywhere , "c" goes from 0 to 1 as "x" goes from 0 to 1, and takes on every value in between. The Cantor function is the most frequently cited example of a real function that is uniformly continuous (and hence also continuous) but not absolutely continuous. It has noderivative at any member of theCantor set ; it is constant on intervals of the form (0."x"1"x"2"x"3..."x"n022222..., 0."x"1"x"2"x"3..."x"n200000...), and every point not in the Cantor set is in one of these intervals, so its derivative is 0 outside of the Cantor set. Extended to the left with value 0 and to the right with value 1, it is the cumulative probability distribution function of a random variable that is uniformly distributed on the Cantor set. This probability distribution has no discrete part, i.e., it does not concentrate positive probability at any point. It also has no part that can be represented by a density function; integrating any putativeprobability density function that is notalmost everywhere zero over any interval will give positive probability to some interval to which this distribution assigns probability zero. SeeCantor distribution . The Cantor function is the standard example of asingular function .Alternative definitions
Iterative construction
Below we define a sequence of functions "f"n on the interval that converges to the Cantor function.
Let "f"0("x") = "x".
Then "f""n"+1("x") will be defined in terms of "f""n"("x").
Let "f""n"+1("x") = 0.5 "f""n"(3"x") when 0 ≤ "x" ≤ 1/3.
Let "f""n"+1("x") = 0.5 when 1/3 ≤ "x" ≤ 2/3.
Let "f""n"+1("x") = 0.5 + 0.5 "f""n"(3 ("x" − 2/3)) when 2/3 ≤ "x" ≤ 1.
Observe that "f""n" converges to the Cantor function. Also notice that the choice of starting function does not really matter, provided "f"0(0) = 0 and "f"0(1) = 1 and "f"0 is bounded.
Fractal volume
The Cantor function is closely related to the
Cantor set . The Cantor set "C" can be defined as the set of those numbers in the interval [0, 1] that do not contain the digit 1 in their base-3 (triadic) expansion. It turns out that the Cantor set is afractal with (uncountably) infinitely many points (zero-dimensional volume), but zero length (one-dimensional volume). Only the D-dimensional volume (in the sense of a Hausdorff-measure) takes a finite value, where is the fractal dimension of "C". We may define the Cantor function alternatively as the D-dimensional volume of sections of the Cantor set:
Generalizations
Let
:
be the dyadic (binary) expansion of the real number 0 ≤ "y" ≤ 1 in terms of binary digits "b""k" = {0,1}. Then consider the function
:
For "z" = 1/3, the inverse of the function "x" = (2/3) "C"1/3("y") is the Cantor function. That is, "y" = "y"("x") is the Cantor function. In general, for any "z" < 1/2, "C""z"("y") looks like the Cantor function turned on its side, with the width of the steps getting wider as "z" approaches zero.
Minkowski's question mark function visually loosely resembles the Cantor function, having the general appearance of a "smoothed out" Cantor function, and can be constructed by passing from a continued fraction expansion to a binary expansion, just as the Cantor function can be constructed by passing from a ternary expansion to a binary expansion. The question mark function has the interesting property of having vanishing derivatives at all rational numbers.References
* [http://www.cut-the-knot.org/do_you_know/cantor.shtml Cantor Set and Function] at
cut-the-knot External links
* [http://demonstrations.wolfram.com/CantorFunction/ Cantor Function] by Douglas Rivers,
The Wolfram Demonstrations Project .
*
Wikimedia Foundation. 2010.