Let $f$ be a real function which possesses an infinite set (of points) of singularities. I think about, for example to $$f(x)=\frac{1}{\cos(x)},$$ but just to give an example.
During the calculus class today we discussed about if it possible for a real function with an infinite set of points of singularities to be below a positive constant $c$ (to fox the ideas, we can say below $1$). Someone said that it would be enough to ask that $\lim_{x\to +\infty} f(x)<1$.
Actually I am not convinced about that because what prevents that $f$ has a singularity at infinity? I mean, about the example I wrote above, what does mean "$x\to +\infty$"? Do you have in mind any examples of real function with infinite singularities for which makes sense the writing "$x\to +\infty$" instead?
Thank you in advance.
Certainly it is not true that $\lim_{x \to \infty} \frac{1}{\cos(x)}$ exists; in particular the usual definition is that if the limit $L$ exists, then we must have for any $\epsilon > 0$, there is some bound $M$ such that $x > M \implies \left|\frac{1}{\cos(x)} - L\right| < \epsilon$. Since $\frac{1}{\cos(x)}$ takes on every value outside of $(-1, 1)$ on every interval $[x, x + 2\pi)$, this can't happen.
The issue is that one needs the set of singularities to be bounded; in particular consider a function like $$ f(x) = \frac{e^{-x^2}}{\sin(x^{-1})} $$
Away from $[-1, 1]$, this function is well defined, but it certainly has infinite singularities at $\pm (\pi n)^{-1}$ for $n \in \mathbb Z$. And yet we see that as $x \to \pm \infty$, $f(x) \to 0$.