We know that if a function $f: A \mapsto \mathbb{R}$, $A \subseteq \mathbb{R}$, is uniformly continuous on $A$ then, if $(x_n)$ is a Cauchy sequence in $A$, then $(f(x_n))$ is also a Cauchy sequence.

I would like an example of continuous function $g: A \mapsto \mathbb{R}$ such that for a Cauchy sequence $(x_n)$ in $A$, it is not true that $f(x_n)$ is a Cauchy sequence.

Thanks for your help.


Take $A=(0,1]$ with the usual metric and $f:(0,1]\to\Bbb R:x\mapsto \frac1x$; the sequence $$\left\langle \frac1n:n\in\Bbb Z^+\right\rangle$$ is Cauchy in $(0,1]$, but its image under $f$ is $\langle n:n\in\Bbb Z^+\rangle$, which is very far from being Cauchy in $\Bbb R$.