assume $f(x)$ is continuous on $[0,\infty)$ and that $\lim_{x \to \infty}f(x)=L > 0$ How would you prove that $\int_0^\infty f(x) \, dx$ diverges?
I know that since $\lim_{x \to \infty}f(x)=L$ then $f(x) \leq L$ However from here I have no idea how to show that $\lim_{b \to \infty}\int_0^b f(x) \, dx$ does not exist.
I think I've got it by definition of the limit f $L-\frac L 2 < f(x)<L+\frac L 2$ so from there $0\leq L-\frac{L}{2} \leq f(x)$ and so by the integral comparison test since $\int_0^\infty L-\frac L 2 \, dx$ diverges then $\int_0^\infty f(x) \, dx$ diverges
By definition of limit there exist $x_M$ such that $\forall x>x_M \quad f(x)>L-\epsilon=L_M>0$ thus
$$\displaystyle \int_{0}^{+\infty}f(x) \text{ d}x>\displaystyle \int_{x_M}^{+\infty}L_M \text{ d}x=+\infty$$