Suppose that $D$ is a bounded set (not necessarily interval). Is it always true that if $f : D\rightarrow R$ is uniformly continuous then $f$ is bounded? Prove or find counterexample.
This problem is left to think by my professor, and he thinks the answer to this question is different from the one Prove that if $f : D\rightarrow R$ is a uniformly continuous then $f$ is bounded.(I already know how to prove. Here D is a bounded interval)
And I am confused because I don't see any difference. Could you help me or give me some hint? Thanks!
Assuming $D$ is bounded in both questions (which I assume it is or the second would be false), there is no distinction between these two questions.
If we get rid of the word "uniformly" then the statement is no longer true. For example, let $D=(0,1)$ and let $f(x) = 1/x$. Then $Image(f) = (1,\infty)$, so f is unbounded.