Example of a continuous but not uniformly continuous function $f:Y\to Y$ on a complete convex bounded subset $Y$ of a metric space $X$.

continuitymetric-spacesnormed-spacesreal-analysisuniform-continuity

Does there exist a function on a complete convex bounded subset of a metric space (or normed linear space) which is continuous but not uniformly continuous?

I have tried to find such function but observed that first I need to consider non-compact closed bounded and convex subset. Since there is the convexity condition, I looked into Banach spaces. However, since the closed unit ball of a finite-dimensional Banach space is complete bounded convex but compact at the same time, there is no hope of getting continuous function on the closed unit ball which is not uniformly continuous.

On the other hand, in infinite-dimensional spaces the only functions I am familiar with, are bounded linear operators. However, every bounded linear operator is uniformly continuous.

Please help me with this problem. A detailed answer will be of very much help. Thanks in advance!

Best Answer

Take $(Y,d)=(\mathbb R,\delta )$ where $$\delta (x,y):=\min\{|x-y|,1\},$$ and $f(x)=x^2$. Then $f$ is continuous on $\mathbb R$ (which is bounded and convex) but it's not uniformly continuous on $\mathbb R$.