Determine $$\int^{\infty}_1 \dfrac{1}{x^2+x} \mathrm d x$$
My work
We can use partial fraction decomposition to find that $\dfrac{1}{x(x+1)} = \dfrac{1}{x} - \dfrac{1}{x+1}$.
$\therefore \lim_{x \to \infty} \int_1^x \dfrac{1}{x^2+x} dx = \lim_{x \to \infty} \int_1^x \dfrac{1}{x} - \dfrac{1}{x+1} dx$
$= \lim_{x \to \infty} (\ln(|x|) - 0) - \lim_{x \to 0} (\ln(|x + 1|) + \ln(2))$
My understanding is that, since $\lim_{x \to \infty} \ln(|x|) = \infty$ and $\lim_{x \to \infty} \ln(|x + 1|) = \infty$, the integral should be divergent. However, the solutions suggest that the integral converges to $\ln(2)$?
I would greatly appreciate it if people could please take the time to explain where I am making an error.
Actually, it is easy to see that the integral must be convergent, since $1/x^2>1/(x^2+x)$ and $\int_1^{\infty} dx/x^2 = 1$. But one must be careful to only work with limits that exist: "$\infty-\infty$" is meaningless.
This is rather like the integral version of a telescoping series. Let's look at $$ \int_1^{M} \frac{dx}{x^2+x} = \int_1^{M} \frac{dx}{x} - \int_1^{M} \frac{dx}{1+x}. $$ Changing variables in the second gives $$ \int_1^{M} \frac{dx}{1+x} = \int_2^{M+1} \frac{dx}{x}, $$ so in fact, $$ \int_1^{M} \frac{dx}{x^2+x} = \int_1^2 \frac{dx}{x} - \int_M^{M+1} \frac{dx}{x}. $$ The first of these is of course $\log{2}$. The second tends to zero, since the integral is bounded by the maximum of the function multiplied by the length of the interval of integration, so in particular it is bounded by $1/M \to 0$ as $M \to \infty$. Hence the integral converges to $\log{2}$ as $M \to \infty$.
The same obviously works for $f(x)-f(x+a)$ for any $f$ that converges to $0$ as $x \to \infty$.