Continuous but Not Differentiable Functions: Weierstrass Function
📂AnalysisContinuous but Not Differentiable Functions: Weierstrass Function
Theorem

There exists a continuous function that cannot be differentiated anywhere.
Proof
Strategy: Consider continuous functions g1(x):=∣x−1∣ and g2(x):=∣x−2∣. g1 is not differentiable at x=1, and g2 is not differentiable at x=2. (g1+g2) is not differentiable at both points x=1 and x=2. In this way, if we construct G:=k=1∑∞gk, then G will not be differentiable at x∈N. Of course, this is too differentiable in many places to be called a Weierstrass function. The actual Weierstrass function F is made up of the sum of fk, in which the points of non-differentiability rapidly increase while maintaining continuity.
Part 1. Continuity of F
f0(x):={x1−x,0≤x<21,21≤x<1
f0(x):=f0(x+1)
Define a periodic function f0 like the above and then define fk and F as follows.
fk(x):=2kf0(2kx)
F(x):=k=0∑∞fk(x)

fk is continuous at R as shown in the figure above.
Weierstrass M-test: If there exists a sequence of positive numbers Mn for the sequence of functions {fn} and x∈E satisfying ∣fn(z)∣≤Mn and n=1∑∞Mn converges, then n=1∑∞fn absolutely converges and uniformly converges in E.
Properties of Function Series: Let’s say E uniformly converges in F:=k=1∑∞fk. If fn is continuous in x0∈E, then F is also continuous in x0∈E.
Mn:=2n+11
If we say
∣fn(x)∣≤Mn
n=0∑∞Mn=1
Hence, F uniformly converges, and F is continuous.
Part 2. Non-differentiability of F
Since F has a period of 1, it suffices to show that it is not differentiable at [0,1) to prove it is not differentiable at R. Suppose F is differentiable at some x0∈[0,1).
Part 2-1. Divergence of k=0∑∞ck
αn:=2np
βn:=2np+1
If set this way, it should be possible to choose p∈Z for n∈N so that x0∈[αn,βn) holds. [αn,βn) is a length of 2n1 and includes x0 as shown in the next figure, being the (p+1)st interval of [0,1).

As n grows, [αn,βn) halves each time, and if we set
[αn,βn]⊆[αk+1,βk+1]
Then, since [αk+1,βk+1] only increases or decreases in fk, it does so in an even smaller or equal interval of [αn,βn]. Therefore, if we define ck as
ck:=βn−αnfk(βn)−fk(αn)
Then ck must be either ck=1 or ck=−1 regardless of n. According to the Properties of Infinite Series, if ck does not converge, then k=0∑∞ck must diverge. This can be shown in the same manner regardless of how n∈N is given, hence it can be stated that k=0∑∞ck does not converge irrespective of n.
Part 2-2. F′(x0)=k=0∑∞ck
Assuming F is differentiable at x0 and when n→∞, then [αn,βn]→[x0,x0] thus
F′(x0)=n→∞limβn−αnF(βn)−F(αn)
Meanwhile, for k≥n, since fk(αn)=fk(βn)=0, it is possible to express F as a finite series like
F(αn)=k=0∑∞fk(αn)=k=0∑n−1fk(αn)
F(βn)=k=0∑∞fk(βn)=k=0∑n−1fk(βn)
Then
k=0∑∞ck====n→∞limk=0∑n−1ckn→∞limβn−αn∑k=0n−1fk(βn)−∑k=0n−1fk(αn)n→∞limβn−αnF(βn)−F(αn)F′(x0)
Despite F′(x0)=k=0∑∞ck in Part 2-2, since k=0∑∞ck diverges as shown in Part 2-1, it contradicts the assumption.
■