I want to show that $$ \int_0^1 \frac{x}{x^2+1}\ln\left(\cos^2(\ln x)\right) dx= -\frac{\ln^2 2}{2}$$
I tried unsuccesfully to prove this result, but everything I tried failed. Integration by parts and substitution fail in most of the cases, since the integrand blows up to $-\infty$ infinitely many times, so the resulting integrals doesn't converge.
By substituting $x=e^{-t}$ one gets to prove that $$ \int_0^\infty \frac{e^{-t}}{\cosh t}\ln\left(\cos^2 t\right) dt=-\ln^2 2$$ which converges much quicker then the previous one, but has the same discontinuity problems.
How to tackle this problem?