logo

Continuous but Not Differentiable Functions: Weierstrass Function 📂Analysis

Continuous but Not Differentiable Functions: Weierstrass Function

Theorem

1920px-WeierstrassFunction.svg.png

There exists a continuous function that cannot be differentiated anywhere.

Proof

Strategy: Consider continuous functions g1(x):=x1g_{1} (x) := | x - 1 | and g2(x):=x2g_{2} (x) := | x - 2 |. g1g_{1} is not differentiable at x=1x=1, and g2g_{2} is not differentiable at x=2x=2. (g1+g2)(g_{1} + g_{2}) is not differentiable at both points x=1x = 1 and x=2x = 2. In this way, if we construct G:=k=1gk\displaystyle G: = \sum_{k=1}^{\infty} g_{k}, then GG will not be differentiable at xNx \in \mathbb{N}. Of course, this is too differentiable in many places to be called a Weierstrass function. The actual Weierstrass function FF is made up of the sum of fkf_{k}, in which the points of non-differentiability rapidly increase while maintaining continuity.


  • Part 1. Continuity of FF

    f0(x):={x,0x<121x,12x<1 f_{0} (x) := \begin{cases} x &, 0 \le x < {{ 1 } \over { 2 }} \\ 1 - x &, {{1} \over {2}} \le x < 1 \end{cases}

    f0(x):=f0(x+1) f_{0} (x) := f_{0} (x + 1)

    Define a periodic function f0f_{0} like the above and then define fkf_{k} and FF as follows.

    fk(x):=f0(2kx)2k f_{k} (x) := {{ f_{0} ( 2_{k} x ) } \over { 2^{k} }}

    F(x):=k=0fk(x) F (x) := \sum_{k=0}^{\infty} f_{k} (x)

20190701_145128.png

fkf_{k} is continuous at R\mathbb{R} as shown in the figure above.

Weierstrass M-test: If there exists a sequence of positive numbers MnM_{n} for the sequence of functions {fn}\left\{ f_{n} \right\} and xEx \in E satisfying fn(z)Mn|f_{n}(z)| \le M_{n} and n=1Mn\displaystyle \sum_{n=1}^{\infty} M_{n} converges, then n=1fn\displaystyle \sum_{n=1}^{\infty} f_{n} absolutely converges and uniformly converges in EE.

Properties of Function Series: Let’s say EE uniformly converges in F:=k=1fk\displaystyle F := \sum_{k=1}^{ \infty } f_{k}. If fnf_{n} is continuous in x0Ex_{0} \in E, then FF is also continuous in x0Ex_{0} \in E.

Mn:=12n+1 \begin{align*} M_{n} := {{ 1 } \over { 2^{n+1} }} \end{align*}

If we say

fn(x)Mn | f_{n} (x) | \le M_{n}

n=0Mn=1 \sum_{n=0}^{\infty} M_{n} = 1

Hence, FF uniformly converges, and FF is continuous.

  • Part 2. Non-differentiability of FF

    Since FF has a period of 11, it suffices to show that it is not differentiable at [0,1)[ 0 , 1 ) to prove it is not differentiable at R\mathbb{R}. Suppose FF is differentiable at some x0[0,1)x_{0} \in [0,1).

    • Part 2-1. Divergence of k=0ck\displaystyle \sum_{k=0}^{\infty} c_{k}

      αn:=p2n \displaystyle \alpha_{n} := {{p} \over {2^{n} }}

      βn:=p+12n \displaystyle \beta_{n} := {{p+1} \over {2^{n} }}

      If set this way, it should be possible to choose pZp \in \mathbb{Z} for nNn \in \mathbb{N} so that x0[αn,βn)x_{0} \in [ \alpha_{n} , \beta_{n} ) holds. [αn,βn)[ \alpha_{n} , \beta_{n} ) is a length of 12n\displaystyle {{1} \over {2^{n}}} and includes x0x_{0} as shown in the next figure, being the (p+1)(p+1)st interval of [0,1)[0,1).

      20190702_104836.png

      As nn grows, [αn,βn)[ \alpha_{n} , \beta_{n} ) halves each time, and if we set

      [αn,βn][αk+1,βk+1] [ \alpha_{n} , \beta_{n} ] \subseteq [ \alpha_{k+1} , \beta_{k+1} ]

      Then, since [αk+1,βk+1][ \alpha_{k+1} , \beta_{k+1} ] only increases or decreases in fkf_{k}, it does so in an even smaller or equal interval of [αn,βn][ \alpha_{n} , \beta_{n} ]. Therefore, if we define ckc_{k} as

      ck:=fk(βn)fk(αn)βnαn c_{k} := {{ f_{k} ( \beta_{n} ) - f_{k} ( \alpha_{n} ) } \over { \beta_{n} - \alpha_{n} }}

      Then ckc_{k} must be either ck=1c_{k} = 1 or ck=1c_{k} = -1 regardless of nn. According to the Properties of Infinite Series, if ckc_{k} does not converge, then k=0ck\displaystyle \sum_{k=0}^{\infty} c_{k} must diverge. This can be shown in the same manner regardless of how nNn \in \mathbb{N} is given, hence it can be stated that k=0ck\displaystyle \sum_{k=0}^{\infty} c_{k} does not converge irrespective of nn.

    • Part 2-2. F(x0)=k=0ck\displaystyle F ' (x_{0}) = \sum_{k=0}^{\infty} c_{k}

      Assuming FF is differentiable at x0x_{0} and when nn \to \infty, then [αn,βn][x0,x0][ \alpha_{n} , \beta_{n} ] \to [x_{0} , x_{0}] thus

      F(x0)=limnF(βn)F(αn)βnαn F ' (x_{0}) = \lim_{n \to \infty} {{ F ( \beta_{n} ) - F ( \alpha_{n} ) } \over { \beta_{n} - \alpha_{n} }}

      Meanwhile, for knk \ge n, since fk(αn)=fk(βn)=0f_{k} ( \alpha_{n} ) = f_{k} ( \beta_{n} ) = 0, it is possible to express FF as a finite series like

      F(αn)=k=0fk(αn)=k=0n1fk(αn) F ( \alpha_{n} ) = \sum_{k=0}^{\infty} f_{k} ( \alpha_{n} ) = \sum_{k=0}^{n-1} f_{k} ( \alpha_{n} )

      F(βn)=k=0fk(βn)=k=0n1fk(βn) F ( \beta_{n} ) = \sum_{k=0}^{\infty} f_{k} ( \beta_{n} ) = \sum_{k=0}^{n-1} f_{k} ( \beta_{n} )

      Then

      k=0ck=limnk=0n1ck=limnk=0n1fk(βn)k=0n1fk(αn)βnαn=limnF(βn)F(αn)βnαn=F(x0) \begin{align*} \sum_{k=0}^{\infty} c_{k} =& \lim_{n \to \infty} \sum_{k=0}^{n-1} c_{k} \\ =& \lim_{n \to \infty} {{ \sum_{k=0}^{n-1} f_{k} ( \beta_{n} ) - \sum_{k=0}^{n-1} f_{k} ( \alpha_{n} ) } \over { \beta_{n} - \alpha_{n} }} \\ =& \lim_{n \to \infty} {{ F ( \beta_{n} ) - F ( \alpha_{n} ) } \over { \beta_{n} - \alpha_{n} }} \\ =& F ' ( x_{0} ) \end{align*}

Despite F(x0)=k=0ck\displaystyle F ' (x_{0}) = \sum_{k=0}^{\infty} c_{k} in Part 2-2, since k=0ck\displaystyle \sum_{k=0}^{\infty} c_{k} diverges as shown in Part 2-1, it contradicts the assumption.