I'm trying to solve this problem.
Let $ f $ be a convex function such that $ f: \mathbb R\rightarrow \mathbb R. $ Prove that $$ \lim_{x\rightarrow +{\infty}}f(x) $$ and $$\lim_{x\rightarrow -{\infty}} f(x) $$ always exists. If those limits are both finite, it is true that $ f$ is a constant function?
Thank you for the help!
Since $f$ is convex, given $s < t < u$, we have $$ \frac{f(t) - f(s)}{t - s} \le \frac{f(u) - f(s)}{u - s} \le \frac{f(u) - f(t)}{u - t} $$
If $f$ is constant, the limits exist.
If not, suppose $f(s) < f(t)$. Letting $u \rightarrow + \infty$ in the first inequality, we get $\lim_{x \rightarrow +\infty} f(x) = +\infty$. Now, suppose $f(t) > f(u)$. Letting $s \rightarrow - \infty$ in the second inequality, we get $\lim_{x \rightarrow -\infty} f(x) = +\infty$.
Now, assume both limits exist and are finite. Letting $u \rightarrow + \infty$ in the first inequality, we get $f(t) \le f(s)$ and letting $s \rightarrow - \infty$ in the second inequality, we get $f(t) \le f(u)$. So $f$ is both non-increasing and non-decreasing, i.e., constant.