TITLE: How to prove that $\limsup _{n \rightarrow \infty} f(x_n) \geq f(\limsup _{n \rightarrow \infty} (x_n))$
QUESTION [7 upvotes]: We were given HW where it is asked to prove that, $\limsup_{n \rightarrow\infty} f(x_n) \geq f(\limsup_{n \rightarrow \infty} (x_n))$, for any bounded sequence $\{x_n\}$ and continuous function $f\colon\mathbb{R} \rightarrow \mathbb{R}$.
Could anyone give me a direction?
Thank you!

REPLY [4 votes]: We are given two inputs: $x_{n}$ is a bounded sequence which means that $\limsup x_{n} = a$ is finite and the fact that $f: \Bbb R \to \Bbb R$ is continuous. Since $x_{n}$ is bounded and $f$ is continuous the sequence $f(x_{n})$ is also bounded and hence $\limsup f(x_{n}) = A$ exists and is finite. We need to prove that $A \geq f(a)$.
We establish this by contradiction. Let us assume $A < f(a)$ and see where we are led to. Also let $2\epsilon = f(a) - A > 0$. Since $f$ is continuous at $a$ we know that there is a $\delta > 0$ such that $|f(x) - f(a)| < \epsilon$ whenever $|x - a| < \delta$. Since $a = \limsup x_{n}$ we know that $x_{n} < a + \delta$ for all sufficiently large values of $n$ and $x_{n} > a - \delta$ for infinitely many values of $n$. Hence there are infinitely many values of $x_{n}$ such that $|x_{n} - a| < \delta$ and hence for these values of $x_{n}$ we have $|f(x_{n}) - f(a)| < \epsilon$. Thus there are infinitely many values of $x_{n}$ for which $$f(a) - \epsilon < f(x_{n}) < f(a) + \epsilon$$ Now consider the fact that $A = \limsup f(x_{n})$ which implies that "$f(x_{n}) < A + \epsilon = f(a) - \epsilon$ for all sufficiently large values of $n$" and this clearly contradicts the previous inequality "$f(a) - \epsilon < f(x_{n})$ for infinitely many values of $n$"
We have the reached the contradiction needed for our goal. This means that $A \geq f(a)$.
Update: By the way this is a very good question (at least for me). I was aware of the fact that "continuity preserves limit operation" but never bothered to check how continuity impacts the limit superior and limit inferior. The proof above has enlightened me that continuity does not preserve $\limsup$ and $\liminf$ but rather gives them a different twist. +1 for OP.