I'm trying to prove that if the limit of continuous function $f$ is $0$ then the improper integral that goes from $0$ to infinity converges.
What I've done is say that for every $x > x_0$ then $\vert f(x) - 0\vert < E$ with $E>0$, then for all $x > x_0$, $f(x) < E$.
So if the integral of $E$ from $0$ to infinity converges then the integral of $f$ also does.
But is this true? Because now I'm thinking it isn't...
That is absolutely not true.
Take for instance (among so many other examples):
$$f(x)=\frac 1{x+1}.$$
Then
$$\int_0^\infty f=+\infty$$
so it is not convergent, but
$$\lim_{x\to\infty} f(x)=0.$$