I have to determine if the following integral converges/diverges. I know that the integral diverges, but I can't find a way to prove it.
$\displaystyle\int_1^{+\infty}\frac{1-\cos(x)}{\left(\sqrt{1+x^2}-1\right)\arctan\left(\sqrt{x}\right)}\,\mathrm dx$.
Since
$\left(\sqrt{1+x^2}-1\right)\arctan(\sqrt{x})\underset{x\to+\infty}{\sim}x\dfrac{\pi}{2}$
I can write the integral as
$\displaystyle\int_1^{+\infty}\frac{1-\cos(x)}{x\frac{\pi}{2}}\,\mathrm dx=\frac{2}{\pi}\int_1^{+\infty}\frac{1-\cos(x)}{x}\,\mathrm dx$
I'm trying to find a function $\,0\leqslant g(x)\,$ such that $\displaystyle\,\int_1^{+\infty}\!\!\!\!\!g(x)\,\mathrm dx\,$ is divergent and $\displaystyle\,\int_1^{+\infty}\!\!\!\!\!g(x)\,\mathrm dx\leqslant\int_1^{+\infty}\!\frac{1-\cos(x)}{x}\,\mathrm dx\;,$
or $\;g(x)\underset{x\to+\infty}{\sim}\dfrac{1-\cos(x)}{x}\,$
but I'm really struggling because of that cosine.
Any advice would be greatly appreciated!