Given that:
$$I=\int_{0}^{\pi/2}\arctan\left(\sqrt{\sin(2x)\over \sin^2(x)}\right)\mathrm dx$$
and
$$J=\int_{0}^{\pi/2}\arctan\left(\sqrt{\sin(2x)\over \cos^2(x)}\right)\mathrm dx$$
Q1: How do we evaluate the closed for $I$?
Q2: Show that $I=J$.
Recall $$\arctan(x)+\arctan(y)=\arctan\left({x+y\over 1-xy}\right)$$
$$I+J=\int_{0}^{\pi/2}\arctan\left(\sqrt{2\cot x}+\sqrt{2\tan x}\right)dx$$
I am not sure what to do next...
Later on we notice that this integral has the same closed form given by @Jack D'aurizio
$$\int_{0}^{\pi/2}\arctan(2\tan^2x)\mathrm dx=\pi\arctan\left({1\over 2}\right)$$