So I'm revising for my final and I have encountered this problem that uses continuity and Cauchy sequences.
Let $f:D\rightarrow \Bbb{R}$ be continuous and let $(x_n)$ be a Cauchy sequence.
a) Give an example to show that $(f(x_n))$ isn't Cauchy
b) If $D$ is compact, then show that $(f(x_n))$ is Cauchy
For a I think I have an example, let $(x_n) = \dfrac{1}{n}$ and then let $f(x_n) = \dfrac{1}{x_n}$
But for the second part I'm a little stumped, I think I'm going to have to go from the definition of continuity to the the definition of a Cauchy sequence but can't get very far.
Hints: What is the relation between compactness and completeness? What is the relation between continuity and convergent sequences?