Find the value of the constant $C$ for which the integral $$\int \limits_{0}^{\infty}\left (\dfrac{1}{\sqrt{x^2+4}}-\dfrac{C}{x+2}\right)dx$$ converges. Evaluate the integral for this value of $C$.
I have some difficulties with above problem. I know some methods such as $x+2 \sim x$ and $\sqrt{x^2+4}\sim x$ for $x \to \infty$. But I would like to see the rigorous proof.
Can anyone please show it?
Would very thankful for that.