Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let $f:\mathbb R\to\mathbb R$ be continuous. Suppose $(x_n)_n$ and $(y_n)_n$ are sequences in $\mathbb R$ such that the sequence $(x_n-y_n)_n$ converges to $0$. Does this mean that the sequence $(f(x_n)-f(y_n))_n$ converges to $0$?

I feel like it is true, since the definition of continuity states that $f$ preserves limits of convergent sequences, but I do not know how to prove it.

share|cite|improve this question
Try thinking about continuous functions that are not uniformly continuous. Based on your remark, to find a counterexample you should make sure that $(x_n)$ and $(y_n)$ are not convergent sequences. – Jonas Meyer May 22 '12 at 15:46
@Jonas Meyer thank you for your help, I've just found a counterexample. – D. Didier May 22 '12 at 15:55

Try $f(x) = e^{x^2}$, with $y_n = n$, $x_n = n+\frac{1}{n}$. Then $(x_n-y_n) \to 0$, but $f(x_n)-f(y_n) = e^{n^2}(e^{2+\frac{1}{n^2}}-1)$, which is unbounded.

share|cite|improve this answer
$x^2$ works, too, & is a little easier. – Jonas Meyer May 22 '12 at 15:48
Didn't think of it! – copper.hat May 22 '12 at 15:49
  • The result is true is $f$ is uniformly continuous on $\Bbb R$.
  • But if it's not the case, we can find $\{x_n\}$ and $\{y_n\}$ which contradict this fact, using the definition of uniform continuity.
share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.