I have to calculate this integral: $$\int_{13}^\infty \frac{x+1}{x^3+x} \, dx$$ Now the indefinite integral of the integral above: $$\arctan(x)+\ln(x)-\frac{1}{2}\ln(x^2+1)+C$$ which I have to calculate, so I could calculate the definite integral, is correct. I checked it on Wolfram Alpha. However Wolfram is also telling me that the value of the my definite integral is around: 0.07972. And that's the problem. More below.
Here is the indefinite integral, modified so I can just put the values 13 and $\infty$ in and get the result: $$\lim_{x\to \infty}\left(\arctan(x)+\ln(x)-\frac{1}{2}\ln(x^2+1)\right)-\left(\arctan(13)+\ln(13)-\frac{1}{2}\ln(13^2+1)\right)$$ However In the left part of the integral above (the one with limit), when I put infinity into both logarithms there, I'll get $$\ln(\infty) - \frac{1}{2}\ln(\infty^2+1)=\infty - \infty.$$ But from what I know from school, that is undefined expression. I also noticed, that if I'll ignore the infinities created by logarithms in the integral below, I'll get the exact same number, that is acording to Wolfram, the value of my integral.
So is this some special case, where I can says that $\infty - \infty = 0$ or is there more to it? Thanks for answers.
And sorry if you had hard time reading this, English isn't my mother tongue.
The antiderivative is correct, and
$$\arctan x+\log\frac x{\sqrt{x^2+1}}=\left(\arctan x+\log\sqrt{\frac{x^2}{x^2+1}}\right)\xrightarrow[x\to\infty]{}\frac\pi2+\log1=\frac\pi2$$
Now add to that all the other constants $\;\arctan 13\;$ and etc.