The Cantor Function Is Continuous but Its Derivative Vanishes a.e. Yet It Climbs from 0 to 1
Let be the Cantor function (also called the Devil's Staircase): the unique non-decreasing, continuous function that is constant on each interval of (where is the Cantor set) and satisfies , .
(a) Show that for almost every .
(b) Yet is not constant. Explain why this does not contradict the fundamental theorem of calculus, and conclude:
Why does the usual FTC formula fail here?
Answer: Devil's Staircase: FTC Fails Without Absolute Continuity
Key Idea / Intuition
The Cantor function does all of its "climbing" on the Cantor set , which has Lebesgue measure zero. Off , the function is locally constant, so its derivative is zero โ yet the total rise is 1. The FTC in its standard Lebesgue form holds if and only if is absolutely continuous, and the Cantor function is the canonical example of a continuous, monotone function that is not absolutely continuous. Absolute continuity is exactly the extra condition that bridges "derivative zero a.e." with "function is constant."
Formal Proof / Solution
Part (a): a.e.
The complement of the Cantor set in is the open set
a countable union of open intervals (the removed middle thirds). By construction, is constant on each (e.g., on , etc.).
Therefore:
Since (the Cantor set has Lebesgue measure zero), the set has measure 1. Hence almost everywhere.
Part (b): Why FTC fails
Computing the integral:
yet .
So indeed .
Why is this not a contradiction?
The version of FTC that says
requires to be absolutely continuous on . Recall:
is absolutely continuous on if for every there exists such that for any finite collection of disjoint subintervals with , we have .
The Cantor function fails absolute continuity. Here is the intuition: you can cover by intervals of arbitrarily small total length (since ), yet the total variation of over those intervals is 1 โ all of 's increase happens there, no matter how small the cover.
More precisely, after stages of constructing , the remaining intervals each have length and together carry total oscillation . Taking : total length but total variation , violating absolute continuity.
The correct FTC for monotone functions (Lebesgue's theorem):
If is monotone on , then exists a.e., is integrable, and with equality if and only if is absolutely continuous.
The Cantor function saturates the inequality with a strict gap of .
Summary
| Property | Cantor function | |---|---| | Continuous? | โ Yes | | Monotone? | โ Yes (non-decreasing) | | a.e.? | โ Yes | | Absolutely continuous? | โ No | | FTC holds? | โ No () |
The Devil's Staircase is the canonical example that continuity + monotonicity + a.e. differentiability is strictly weaker than absolute continuity, and that the FTC genuinely requires absolute continuity as a hypothesis.
Source: Rudin, Real and Complex Analysis, Chapter 7; Stein & Shakarchi, Real Analysis, Chapter 3