A uniform continuous function which is not Hölder continuous

Solution 1:

As mentioned in the wiki entry, the function defined by $f(x)=\cases{{1\over \ln x},&$0<x\le 1/2$\cr \strut0, &$x=0$}$ is an example of a uniformly continuous function that is not Hölder continuous for any $\alpha>0$.

$f$ is continuous on $[0,1/2]$; and thus, since $[0,1/2]$ is compact, uniformly continuous on $[0,1/2]$.

But, $f$ is not Hölder continuous for any $\alpha>0$ at $x=0$. If it were, then there would exist positive $C$ and $\alpha$ such that $\bigl|0- {1\over \ln x}\bigr|\le C|x|^\alpha$ for all $0< x\le1/2$. But then, we would have $C|x|^\alpha |\ln x|\ge 1 $, which can't happen as $\lim\limits_{x\rightarrow0^+}C|x|^\alpha |\ln x|=0$.

According to the Wiki definition, $f$ is Hölder continuous for $\alpha=0$. That is, it is bounded. But one may extend $f$ to an unbounded, uniformly continuous function on $\Bbb R^+\cup\{0\}$ which is still not Hölder continuous at $x=0$.