Find out if the following improper integral converges absolutely, converges conditionally or diverges: $$\int_0^\infty \frac{\cos(x)}{\sqrt{x+1}+\sqrt{x}}\,dx.$$
I'm struggling to show that the integral converges conditionally (I already found that the original integral converges).
I tried to use comparison tests, but had no success. Here are a couple of my tries:
1) $$\int_0^\infty \left|\frac{\cos(x)}{\sqrt{x+1}+\sqrt{x}}\right|\,dx=\int_0^\infty\frac{\left|\cos(x)\right|}{\sqrt{x+1}+\sqrt{x}}\,dx\le\int_0^\infty\frac{dx}{\sqrt{x+1}+\sqrt{x}}\,dx;$$ this one didn't really helped me, since the last integral diverges.
2) $$\int_0^\infty \left|\frac{\cos(x)}{\sqrt{x+1}+\sqrt{x}}\right|\,dx=\int_0^\infty\frac{\left|\cos(x)\right|}{\sqrt{x+1}+\sqrt{x}}\,dx\ge\int_0^\infty\frac{\cos^2(x)}{\sqrt{x+1}+\sqrt{x}}\,dx;$$ this one seems that it might help, but I couldn't find a way to use it.
Any help would be appreciated,
Thanks
The integral converges by Dirichlet test.
To tackle the absolute convergence, note that $|\cos(x)|\geq \cos(x)^2=\frac{1+\cos(2x)}2$ and use Dirichlet again to conclude that you have the sum of a convergent and a divergent integral. Hence the integral with absolute values diverges.