If $f>0$ when does $I=\int_{a}^{\infty} f(x)dx$ converge/diverge? In particular:
(1) If $f$ is not decreasing, does that imply that $I$ diverges?
(2) If $f$ does not approach $0$ as $x\to\infty$ does that imply $I$ diverges?
EDIT: For (1) seems answer is no. I have a follow up question:
Now suppose also that $f$ is periodic and continuous.
(3) If the local maxima are not decreasing as $x\to\infty$, does that imply $I$ diverges? E.g. the local maxima for $\sin^2(x)$ is always $1$ and diverges.
(1) yes if $f$ is non-decreasing : since $f(x)\geq f(a)>0$ in particular, so $$\int_a^{\infty}f(x) dx \geq \int_a^{\infty}f(a) dx=f(a)\int_a^{\infty} dx=+\infty $$
But you can't know if $f$ is just not decreasing : for exemple $f(x)= 1_{x\geq1}\frac1{x^2}(2+\cos(x))$ is not decreasing but the integral converge...
(2) no : you can imagine $f(x)=\exp(-x^2)$ for all $x\in \mathbb{R}\setminus \mathbb{N}^*$ and $f(x)=x$ for all $x\in \mathbb{N}^*$ : then $$ \int_a^{\infty}f(x) dx = \int_a^{\infty}\exp(-x^2) dx <\infty $$ but $f$ does not tend to $0$....
(3) : no, you can use the same example I gave in (2)