I have been asked to compute the integral $$\int_0^{\frac{\pi}{2}}\frac{\arctan(\sqrt{\tan(x)})}{\tan(x)}dx$$
I have been told that it converges, and we only need its value.
I tried the substitutions $ u=\tan(x)$, $\;\; v^2=\tan(x) $ . I thought about by parts integration, but it becomes more complicated.
I thank you in advance for an idea .