26

$f\colon(-1,1)\rightarrow \mathbb{R}$ is bounded and continuous does it mean that $f$ is uniformly continuous?

Well, $f(x)=x\sin(1/x)$ does the job for counterexample? Please help!

Myshkin
  • 35,974
  • 27
  • 154
  • 332
  • 1
    See also http://math.stackexchange.com/questions/1315555/an-example-of-a-bounded-continuous-function-on-0-1-that-is-not-uniformly-co – Martin Sleziak Feb 09 '16 at 16:24

3 Answers3

19

You're close: $$\sin\frac{1}{x+1}$$ is a counterexample to the statement.

asdf
  • 206
  • 2
  • 2
9

For continuity to lead to uniform continuity, domain has to be compact, and as you can see the domain is not compact here. Also, rightly $f(x)=\sin(\frac{1}{x+1}) $ serves as a counterexample.

Vishesh
  • 2,928
4

$\sin(x^2)$ is also a nice example and it's happening because it's not periodic.

  • 4
    This function is continuous on $[-1,1]$, so it is uniformly continuous there. A fortiori on $(-1,1)$. – Julien Apr 25 '13 at 16:37
  • Over the real line, this is, not on any bounded interval. – Pedro Apr 25 '13 at 16:39
  • 1
    This answer is wrong. Although its a nice counterexample to show that a bounded function on a closed, but unbounded interval is not necessarily uniformly continuous. – jodag Feb 28 '18 at 00:13