Let $f$ be a $\mathbb R \rightarrow \mathbb R$ continuous function such that : $\lim_ {x \to \pm \infty} f(x) \in \mathbb R$ and $\lim_ {x \to 0} f(x) \in \mathbb R$
How can one show that $f$ is bounded ? I get it "intuitively" but I cant show it rigorously
The fact that $\lim_{x\to0}f(x)\in\mathbb R$ is necessarily true: since $f$ is continuous that limit has to be $f(0)$.
Now, suppose that $f$ is unbounded. Then, for each $n\in\mathbb N$, there is a $x_n\in\mathbb R$ such that $\bigl\lvert f(x_n)\bigr\rvert\geqslant n$. The sequence $(x_n)_{n\in\mathbb N}$ is either bounded or unbounded and: