<s>[INST] How find this integral $I=\int_{0}^{\frac{\pi}{2}}(\ln{(1+\tan^4{x})})^2\frac{2\cos^2{x}}{2-(\sin{(2x)})^2}dx$ 
Find the value:
$$I=\int_{0}^{\frac{\pi}{2}}(\ln{(1+\tan^4{x})})^2\dfrac{2\cos^2{x}}{2-(\sin{(2x)})^2}dx$$

I use computer have this  reslut
$$I=-\dfrac{4\pi}{\sqrt{2}}C+\dfrac{13\pi^3}{24\sqrt{2}}+\dfrac{9}{2}\dfrac{\pi\ln^2{2}}{\sqrt{2}}-\dfrac{3}{2}\dfrac{\pi^2\ln{2}}{\sqrt{2}}$$
where $C$ is Catalan constant.
My idea: let $$\tan{x}=t,\sin{2x}=\dfrac{2t}{1+t^2},dx=\dfrac{1}{1+x^2}$$
then
$$I=\int_{0}^{\infty}\ln^2{(1+t^4)}\dfrac{\dfrac{2}{1+t^2}}{2-\left(\dfrac{2t}{1+t^2}\right)^2}\cdot\dfrac{dt}{1+t^2}=\int_{0}^{\infty}\dfrac{\ln^2{(1+t^4)}}{(t^2-1)^2}dt$$
Then I can't.Thank you 
 [/INST] You have made a mistake with the denominator, which cannot be zero. See, $2-sin(2x)^2$ is always bigger or equal than $1$.
I think that the mistake was in expanding $2-(\frac{2t}{1+t^2})^2$: you have changed that initial $2$ for a $1$ and then completed the square.  Repeat that expansion slowly.
</s>