# pick out the uniformly continous function

Pick out the uniformly continuous function for $x \in (0,1)$

$$(1) \quad \quad\quad f(x)= \cos x \,\cos \frac {\pi}x$$

$$(2)\quad \quad \quad f(x) = \sin x \, \cos \frac {\pi}x$$

i was trying this question, i was think that $\sin x$ and $\cos x$ are periodic and continuous , so it is uniformly continuous function,, therefore from my point of both option 1 and option 2 both are true uniformly continuous. But i m not sure about my answer If anybody help me i would be very thankful to him thank

• Is it "$\cos (\pi/x)$" or "$(\cos\pi)/x$"?
– MPW
Aug 10, 2017 at 12:40
• I reformatted your post fairly heavily. Please check to see if I introduced any errors.
– lulu
Aug 10, 2017 at 12:43
• thanks a lots ,, everything is ok @ lulu Aug 10, 2017 at 12:47

In case (2) you can define it as $0$ for $x=0$. This turns it into a continuous function on $[0,1]$.
In fact, $\sin(x)\cos(\pi/x)$ is continuous on $(0,1]$ and $\lim_{x\to0^+}\sin(x)\cos(\pi/x)=0$.
In case (1), for $\epsilon=1/2$ we can find $x_n=\frac{1}{2k}$ and $y_n=\frac{1}{2k+1}$ which for $k$ large will have $|x_n-y_n|$ arbitrarily small, $\cos(x_n)$ and $\cos(y_n)$ very close to $1$, and $\cos(\pi/x_n)=1$ while $\cos(\pi/y_n)=-1$. Therefore $|\cos(x_n)\cos(\pi/x_n)-\cos(y_n)\cos(\pi/y_n)|>1/2=\epsilon$. Therefore, it is not uniformly continuous on $(0,1)$ or any neighborhood of $0$.