Tell if the following improper integral converges or not. $$\int_0^{+\infty} \dfrac{1}{x^2+7}\ \text{d}x$$
I know that a necessary but not sufficient condition is that $\lim_{x\to +\infty} f(x) = 0$. Here this holds, so the integral might converge.
Now, I thought of the comparison:
$$\int_0^{+\infty} \dfrac{1}{x^2+7}\ \text{d}x < \int_0^{+\infty} \dfrac{1}{x^2}\ \text{d}x$$
Since the second integral diverges, and the first one is $<$, it converges.
Is this method valid?
In this case, does noticing that $\lim_{x\to +\infty} f(x) = +\infty$ straightly tell me that the integral diverges instead?
– Heidegger Dec 16 '22 at 13:18