Evaluating $\int_0^1 \frac{x \arctan x \log \left( 1-x^2\right)}{1+x^2}dx$ I am trying to prove that
$$\int_0^1 \frac{x \arctan x \log \left( 1-x^2\right)}{1+x^2}dx = -\frac{\pi^3}{48}-\frac{\pi}{8}\log^2 2 +G\log 2$$
where $G$ is the Catalan's Constant. Numerically, it's value is $-0.199739$.
Using the substitution $x=\tan \theta$, it can be written as 
$$
\begin{align*}
I &= \int_0^{\frac{\pi}{4}}\theta \tan \theta \log(\cos 2\theta) d\theta-2\int_0^{\frac{\pi}{4}}\theta \tan \theta \log(\cos \theta)d\theta \end{align*}
$$
Can anyone suggest a good approach to evaluate it?
 A: A solution proposed by Cornel Ioan Valean
As also shown in this post, an immediate connection can be made with the integral in the current OP. So, integrating by parts, rearranging, and employing the needed results, we arrive at once at the desired closed form
$$\int_0^1 \frac{x \arctan(x) \log(1-x^2)}{1+x^2}\textrm{d}x=\frac{1}{2}\int_0^1 \left(\log\left(\frac{1+x^2}{2}\right)\right)' \arctan(x) \log(1-x^2)\textrm{d}x$$
$$=\frac{1}{2}\log(2)\underbrace{\int_0^1 \frac{\log(1-x^2)}{1+x^2}\textrm{d}x}_{\displaystyle \log(2)\pi/4-G}-\underbrace{\int_0^1 \frac{x\arctan(x) \log(2/(1+x^2))}{1-x^2}\textrm{d}x}_{\displaystyle \pi^3/192}-\frac{1}{2}\underbrace{\int_0^1\frac{\log(1-x^2)\log(1+x^2)}{1+x^2}\textrm{d}x}_{\displaystyle(\pi ^3+16 \log ^2(2)\pi  -96 \log (2) G)/32}=\log(2)G-\log^2(2)\frac{\pi}{8}-\frac{\pi^3}{48}.\tag1$$
The first remaining integral in $(1)$ may be viewed as a sums of two well-known classical (and trivial) integrals, one of them being a Putnam question, that is $\displaystyle\int_0^1 \frac{\log(1+x)}{1+x^2}\textrm{d}x=\frac{\pi}{8}\log(2)$.
The second resulting integral in $(1)$ is calculated magically here.
As regards the last integral in $(1)$, we have the simple (and magical) fact that
$$\int_0^1 \frac{\log(1-x^2)\log(1+x^2)}{1+x^2}\textrm{d}x$$
$$
=\lim_{b\to 0} \, \left(\frac{1}{16} \frac{\partial ^2}{\partial b^2}B\left(\frac{1}{4},b\right)-\frac{1}{16} \frac{\partial ^2}{\partial b^2}B\left(\frac{3}{4},b\right)\right)-\frac{1}{64} \left(\lim_{a\to \frac{1}{2}} \, \frac{\partial ^2}{\partial a^2}B\left(a,\frac{1}{2}\right)\right)$$
$$=\frac{1}{32} \left(\pi ^3+16 \pi  \log ^2(2)-96 \log (2) G\right).$$
A note: Observe that for the last integral it is enough to use the algebraic identity $ab=1/4 ((a + b)^2 - (a - b)^2)$, where $a=\log(1-x^2)$ and $b=\log(1+x^2)$. Thus, we have
$$\int_0^1 \frac{\log(1-x^2)\log(1+x^2)}{1+x^2}\textrm{d}x$$
$$=\frac{1}{4} \int_0^1 \left(\frac{\log ^2\left(1-x^4\right)}{1-x^4}-\frac{x^2 \log ^2\left(1-x^4\right)}{1-x^4}\right) \textrm{d}x-\frac{1}{4} \int_0^1 \frac{\displaystyle \log^2((1-x^2)/(1+x^2))}{1+x^2} \textrm{d}x,$$
where in the first integral we may let the variable change $x^4=y$, and in the second integral we may act in various ways, like letting $(1-x^2)/(1+x^2)=t^{1/2}$, which together lead us to the Beta function form above. So, a straightforward story essentially.
End of story
More details will be given in the sequel of (Almost) Impossible Integrals, Sums, and Series.
A: Expanding the inverse tangent in logarithms, writing $\frac{x}{1+x^2}=\Re\frac1{x-i}$, and expanding $\log(1-x^2)=\log(1-x)+\log(1+x)$, each of the resulting four indefinite integrals has a closed form. Each term is amenable to automatic integration, (an example), which means that after taking limits, slogging through simplifications and special values, such as those found here, the closed form can be computed.
For example, for the term above,
$$ \int_0^1\frac{\log(1-ix)\log(1-x)}{x-i}\,dx =
-\frac{K\pi }{4}-\frac{17 i \pi ^3}{384}-\frac{1}{2} i K \log2+\frac{13}{192} \pi ^2 \log2+\frac{3}{32} i \pi  (\log2)^2-\frac{(\log2)^3}{48}+3 \,\text{Li}_3({\textstyle\frac{1+i}{2}})-\frac{45 \zeta(3)}{32}.
$$
Now, the integrand of the integral in question is the real part of the sum
$$ \frac i2 \frac{\log(1-ix)\log(1-x)}{x-i} - \frac i2\frac{\log(1+i x)\log(1-x)}{x-i}+\frac i2\frac{\log(1-ix)\log(1+x)}{x-i}-\frac i2\frac{\log(1+ix)\log(1+x)}{x-i},
$$
where each term has a closed form for its integral, as above, in terms of $\pi$, $K$, $\log 2$ and $\text{Li}_3$.
After sufficient simplification, the integral of that sum is
$$\begin{aligned} &\int_0^1 \frac{\arctan x\log(1-x^2)}{x-i}\,dx = \\
&-\frac{1}{4} i K\pi -\frac{\pi ^3}{48}+\frac{1}{32} i \pi ^2 \log2-\frac{1}{8} \pi  (\log2)^2+K \log2+\frac{7}{32} i \zeta(3), \end{aligned}$$
of which the real part gives the answer
$$ -\frac{\pi ^3}{48}-\frac{1}{8} \pi  (\log2)^2+ K \log2$$
