For all functions $f(x)$ that are positive and continuous everywhere in the real numbers. If $\lim\nolimits_{x\to \infty}f(x)=0$, is $\lim\nolimits_{x\to \infty}F(x)$ convergent for all possible $f(x)$? $F(x)$ denotes the indefinite integral of $f(x)$ centered at $0$.
I first thought so until I found a possible counterexample: $$ f(x) =\begin{cases} \frac{1}{x-2}+2 & \text{if }\; x<1,\\ \frac{1}{x} & \text{if }\; x\geq 1.\end{cases} $$
Edit: I would also like to know / possibly see a proof if my counterexample is actually valid or not.
A counterexample is $f(x) = \frac{1}{\sqrt{x^2+1}}$