Lets suppose that $f:[a,\infty) \to \mathbb{R}$ is a Riemann integrable function and lets suppose that $$\lim_{x \to \infty} f(x) = l > 0$$ I am trying to prove that then $$\int_a^\infty f(x) \text{d}x=\infty$$ By hypothesis $f$ has limit $l > 0$ as $x \to \infty$, so we know that for all $\varepsilon>0$ exists $K_{\varepsilon} > 0$ such that for all $x \geq K_{\varepsilon}$ it is $f(x)>l-\varepsilon$.
Since by hypothesis $l > 0$ and for the arbitrarity of $\varepsilon>0$ we can choose $\varepsilon=l/2$; so we have the estime $f(x)>l/2$.
So it is
$$\int_a^\infty f(x) \text{d}x =\int_a^{K_\varepsilon} f(x) \text{d}x+\int_{K_\varepsilon}^\infty f(x) \text{d}x > \int_a^\infty \frac{l}{2} \text{d}x =\infty$$ Since the first integral on the right hand side is finite it does not influence the convergence, so we concentrate on the second integral; by the limit estimation we have that $$\int_{K_\varepsilon}^\infty f(x) \text{d}x > \int_{K_\varepsilon}^\infty \frac{l}{2} \text{d}x =\infty$$
So the integral is divergent.
Some questions:
1) is the context correct? I've assumed that "$f:[a,\infty)$ Riemann integrable" means that the only point we have to study is when $x \to \infty$ because of the unboundedness;
2) when I split the integral in two integrals I suppose that $a<K_\varepsilon$, can I do this? If yes, why?
3) is the proof correct in general? If not, where are the mistakes? If yes, how can I improve it?
Thanks.