The Weierstrass Nowhere-Dense Ghost: A Dense of Non-Differentiability
Let be a continuous function. Define the set
to be the set of points where has infinite upper Dini derivative (informally, where "blows up" in difference quotients).
Question: Must be empty? Can be all of ? If so, give a clean reason why a generic continuous function satisfies , i.e., is nowhere differentiable.
More precisely: show that the set
is residual (comeager) in with the uniform norm. That is, contains a dense .
Hint: Think about what Baire category says about , and how to express "has a finite derivative at some point" as a countable union of closed sets.
Answer: Generic Continuous Function Is Nowhere Differentiable
Key Idea / Intuition
The space is a complete metric space, so Baire's theorem says it cannot be written as a countable union of nowhere-dense closed sets. The "bad" functions — those that are differentiable at even one point — can be expressed as exactly such a countable union. So "most" continuous functions (in the Baire category sense) are nowhere differentiable. Differentiability is the exception, not the rule.
Formal Proof / Solution
Step 1: Write the "differentiable somewhere" set as a countable union
A function has a finite right-derivative at some point if and only if there exist integers such that , where
Informally: is the set of functions that have a bounded difference quotient of size for all small steps at some point . Any function differentiable at some point belongs to .
Step 2: Each is closed in
Suppose uniformly and each , witnessed at points . By compactness, along a subsequence. Then for any :
(using uniform convergence to swap limit and evaluation). So . Hence is closed.
Step 3: Each is nowhere dense
We show: every open ball in contains a function outside .
Given any and , we construct with and .
Take a piecewise-linear "sawtooth" perturbation with amplitude and slope for on intervals of width . Set . Then is close to , but at every point , there exists a small where the difference quotient of exceeds (the sawtooth spike dominates). So .
This shows has empty interior, i.e., is nowhere dense.
Step 4: Apply Baire Category
Since is complete, the Baire Category Theorem says:
Therefore its complement
is residual (comeager), a dense . Every is nowhere differentiable.
Conclusion
The nowhere-differentiable functions are not a curiosity — they form the vast majority of all continuous functions in the Baire category sense. Weierstrass's explicit example (1872) was just the first proof that such functions exist; Baire category tells us they're typical.
Source: Rudin, Real and Complex Analysis; also mathematical folklore / Banach 1931