Mathwords logoMathwords

Nowhere Differentiable Function — Definition, Formula & Example

A nowhere differentiable function is a function that has no derivative at any point of its domain. You cannot draw a tangent line anywhere on its graph. The famous examples are continuous, so the graph is unbroken but jagged at every scale.

A function f:I→Rf: I \to \mathbb{R} on an interval II is nowhere differentiable if, for every x0∈Ix_0 \in I, the limit lim⁡h→0f(x0+h)−f(x0)h\lim_{h \to 0} \frac{f(x_0 + h) - f(x_0)}{h} fails to exist as a finite real number. Continuity is not part of the definition. The Dirichlet function, which is discontinuous everywhere, qualifies trivially. The term is interesting mainly for continuous functions, such as the Weierstrass function.

Key Formula

T(x)=∑n=0∞s(2nx)2n,s(x)=distance from x to the nearest integerT(x) = \sum_{n=0}^{\infty} \frac{s(2^n x)}{2^n}, \qquad s(x) = \text{distance from } x \text{ to the nearest integer}
Where:
  • T(x)T(x) = The Takagi (blancmange) function. It is continuous on all of ℝ and differentiable nowhere.
  • s(x)s(x) = The sawtooth function: the distance from xx to the nearest integer, so 0≤s(x)≤120 \le s(x) \le \tfrac{1}{2}
  • nn = Index of the term, starting at 0. Each term is half as tall and twice as fast as the one before.

Worked Example

Problem: Let T(x)=∑n=0∞s(2nx)2nT(x) = \sum_{n=0}^{\infty} \dfrac{s(2^n x)}{2^n}, where s(x)s(x) is the distance from xx to the nearest integer. This is the Takagi (blancmange) function. Show that TT is continuous and that TT has no derivative at x=0x = 0.
Step 1: Each term satisfies 0≤s(2nx)/2n≤12⋅2−n0 \le s(2^n x)/2^n \le \tfrac{1}{2} \cdot 2^{-n}, and these bounds form a convergent geometric series. By the Weierstrass M-test, the series converges uniformly. A uniform limit of continuous functions is continuous, so TT is continuous. At x=0x = 0, every term is 0.
T(0)=0T(0) = 0
Step 2: Take h=2−mh = 2^{-m} for a positive integer mm. When n≥mn \ge m, the number 2nh=2n−m2^n h = 2^{n-m} is an integer, so that term is 0. When n<mn < m, 2n−m≤122^{n-m} \le \tfrac{1}{2}, so s(2n−m)=2n−ms(2^{n-m}) = 2^{n-m}. Each of the first mm terms therefore equals 2−m2^{-m}.
T(2−m)=∑n=0m−12n−m2n=m⋅2−mT(2^{-m}) = \sum_{n=0}^{m-1} \frac{2^{n-m}}{2^n} = m \cdot 2^{-m}
Step 3: Divide by h=2−mh = 2^{-m}. With m=4m = 4 the difference quotient is 4. With m=10m = 10 it is 10. As h→0+h \to 0^+, the difference quotients grow without bound, so they cannot approach a finite limit.
T(2−m)−T(0)2−m=m→∞\frac{T(2^{-m}) - T(0)}{2^{-m}} = m \to \infty
Answer: TT is continuous, but T′(0)T'(0) does not exist, because the difference quotients grow without bound. Takagi showed in 1903 that the same failure happens at every real xx. The Weierstrass function is the other classic example.

Why It Matters

In 1872 Weierstrass presented such an example to the Berlin Academy. It overturned the belief that a continuous curve must be smooth except at isolated corners, and it pushed real analysis toward rigorous epsilon-delta proofs. Today the same behavior appears in Brownian motion, which models stock prices and particle diffusion: its paths are continuous but, with probability 1, nowhere differentiable. That is why stochastic calculus needs Itô's rules instead of the ordinary chain rule.

Common Mistakes

Mistake: Assuming a continuous function must be differentiable at most points, failing only at a few corners like ∣x∣|x| at 00.
Correction: Continuity says nothing about slopes. The Weierstrass function is continuous and has no derivative anywhere. In 1931 Banach showed that, in the sense of Baire category, most continuous functions on [0,1][0,1] are nowhere differentiable. Always check the difference-quotient limit directly.

Related Terms