How do I prove a uniformly continuous function preserves Cauchy sequences?

Let $f$ be a uniformly continuous function on A of $\Bbb{R}$. How do I show that if $a_n$ is Cauchy, then $f(a_n)$ is Cauchy.

This is what I have worked on, but it does not quite make sense since I feel like I didn't really use the given condition that $f$ is uniformly continuous.

Let $\epsilon>0$, $f$ is uniformly continuous, so there exists$\delta>0$ st $|f(x)-f(y)|<\epsilon$ for $|x-y|<\delta$.

Since $a_n$ is Cauchy, there exists $N>0$ such that $|a_n-a_m|<\delta$ for $m,n>N$

Hence$|f(a_n)-f(a_m)|<\epsilon$ for $m,n>N$. So $f(a_n)$ is Cauchy


Solution 1:

Your proof looks good. You use uniform continuity to claim that for every $n,m>N$, $\vert f(a_n)-f(a_m)\vert<\epsilon$. If you only had continuity, $\delta$ would depend on $x$ and hence you couldn't claim that $\vert a_n-a_m\vert<\delta\Longrightarrow\vert f(a_n)-f(a_m)\vert<\epsilon$ for all $n,m>N$.

Additional comment

If $A$ is assumed to be closed, then uniform continuity is not necessary (only "pointwise" continuity). This is since if $A$ is closed, $(a_n)$ is guaranteed to converge to some $a\in A$. Then, $f$ will be continuous at $a$ and the proof can be modified accordingly without using uniform continuity.