How does one prove the following integral
\begin{equation} \int_0^1\frac{\ln2-\ln\left(1+x^2\right)}{1-x}\,dx=\frac{5\pi^2}{48}-\frac{\ln^22}{4} \end{equation}
Wolfram Alpha and Mathematica can easily evaluate this integral. This integral came up in the process of finding the solution this question: Evaluating $\displaystyle\sum_{n=1}^{\infty} (-1)^{n-1}\frac{H_{2n}}{n}$. There are some good answers there but avoiding this approach. I have been waiting for a day hoping an answers would be posted using this approach, but nothing shows up. The integral cannot be evaluated separately since each terms doesn't converge. I tried integration by parts but the problem arises when substituting the bounds of integration.
I would appreciate if anyone here could provide an answer where its approach using integral only preferably with elementary ways.
I will share two other possible methods that I happen to know of to compute this integral.
Differentiation under the Integral Sign:
Denote $$\mathcal{I}(a)=\int^1_0\frac{-2x\ln(1-ax)}{1+x^2}{\rm d}x$$ Differentiating yields \begin{align} \mathcal{I}'(a) =&\int^1_0\frac{2x^2}{(1+x^2)(1-ax)}{\rm d}x\\ =&-\frac{2}{1+a^2}\int^1_0\left(\frac{ax}{1+x^2}+\frac{1}{1+x^2}-\frac{1}{1-ax}\right) {\rm d}x\\ =&-\frac{a\ln{2}}{1+a^2}-\frac{\pi}{2}\frac{1}{1+a^2}-\frac{2\ln(1-a)}{a(1+a^2)} \end{align} Integrating back, \begin{align} \mathcal{I}(1) =&\int^1_0\left(-\frac{a\ln{2}}{1+a^2}-\frac{\pi}{2}\frac{1}{1+a^2}-\frac{2\ln(1-a)}{a(1+a^2)}\right){\rm d}a\\ =&-\frac{1}{2}\ln^2{2}-\frac{\pi}{2}\arctan{1}+2{\rm Li}_2(1)-\int^1_0\frac{-2a\ln(1-a)}{1+a^2}{\rm d}a\\ =&\frac{5\pi^2}{24}-\frac{1}{2}\ln^2{2}-\mathcal{I}(1) \end{align} and a simple rearrangement yields $$\color{red}{\mathcal{I}(1)=\frac{5\pi^2}{48}-\frac{1}{4}\ln^2{2}}$$
Contour Integration:
Contour integration is, admittedly, an extremely inefficient method to tackle this integral. Nevertheless, I will post this approach purely for the fun of it.
Integrate $\displaystyle f(z)=\frac{\ln{2}-\ln(1+z^2)}{1-z}$ along a unit quarter circle in the first quadrant with indents at the pole $z=1$ and the branch point $z=i$. Both of the contributions from the indents tend to zero. Since the contour encloses no poles, $$\int^1_0\frac{\ln{2}-\ln(1+x^2)}{1-x}{\rm d}x+\left(\int_{\text{arc}}+\int_{\text{line}}\right)\frac{\ln{2}-\ln(1+z^2)}{1-z}{\rm d}z=0$$ Around the arc, \begin{align} \Re\int_{\text{arc}}\frac{\ln{2}-\ln(1+z^2)}{1-z}{\rm d}z =&\Re\int^\frac{\pi}{2}_0\frac{\ln{2}-\ln(1+e^{i2\theta})}{1-e^{i\theta}}ie^{i\theta}{\rm d}\theta\\ =&\frac{1}{2}\int^\frac{\pi}{2}_0\ln(\cos{\theta})\cot{\tfrac\theta 2}\ {\rm d}\theta-\frac{1}{2}\int^\frac{\pi}{2}_0\theta\ {\rm d}\theta\\ =&-\int^1_0\frac{2{\rm artanh}\ {t^2}}{t(1+t^2)}{\rm d}t-\frac{\pi^2}{16}\\ =&-\chi_2(1)+\frac{1}{4}\ln^2(1+t^2)\Bigg{|}^1_0-\int^1_0\frac{t\ln(1-t^2)}{1+t^2}-\frac{\pi^2}{16}\\ =&-\frac{3\pi^2}{16}+\frac{1}{4}\ln^2{2}-\frac{1}{2}\int^1_0\frac{\ln(1-t)}{1+t}{\rm d}t \end{align} Along the line segment on the imaginary axis, \begin{align} \Re\int_{\text{line}}\frac{\ln{2}-\ln(1+z^2)}{1-z}{\rm d}z =&\Re\int^0_1i\frac{\ln{2}-\ln(1-y^2)}{1-iy}{\rm d}y\\ =&\int^1_0\frac{y\ln{2}}{1+y^2}{\rm d}y-\int^1_0\frac{y\ln(1-y^2)}{1+y^2}{\rm d}y\\ =&\frac{1}{2}\ln^2{2}-\frac{1}{2}\int^1_0\frac{\ln(1-y)}{1+y}{\rm d}y \end{align} Hence we have $$\int^1_0\frac{\ln{2}-\ln(1+x^2)}{1-x}{\rm d}x=\frac{3\pi^2}{16}-\frac{3}{4}\ln^2{2}+\int^1_0\frac{\ln(1-x)}{1+x}{\rm d}x$$ For the sake of consistency only, I will use contour integration once again to evaluate the remaining integral though it can be computed easily with real methods. This time, integrate $\displaystyle g(z)=\frac{\ln(1-z)}{1+z}$ along a unit quarter circle with an indent at $z=1$. The contribution from the indent vanishes, hence leaving us with $$\int^1_0\frac{\ln(1-x)}{1+x}{\rm d}x+\left(\int_{\text{arc}}+\int_{\text{line}}\right)\frac{\ln(1-z)}{1+z}{\rm d}z=0$$ Around the arc, \begin{align} \Re\int_{\text{arc}}\frac{\ln(1-z)}{1+z}{\rm d}z =&\Re\int^\frac{\pi}{2}_0\frac{\ln(1-e^{i\theta})}{1+e^{i\theta}}ie^{i\theta}\ {\rm d}\theta\\ =&-\int^\frac{\pi}{4}_0\ln(2\sin{x})\tan{x}\ {\rm d}x-\frac{1}{4}\int^\frac{\pi}{2}_0\left(x-\pi\right)\ {\rm d}x\\ =&\frac{3\pi^2}{32}-\frac{1}{2}\ln^2{2}-\frac{1}{4}\underbrace{\int^1_0\frac{\ln{t}}{1+t}{\rm d}t}_{{\rm Li}_2(-1)}+\frac{1}{4}\int^1_0\frac{\ln(1+t)}{1+t}{\rm d}t\\ =&\frac{11\pi^2}{96}-\frac{3}{8}\ln^2{2}\\ \end{align} Along the line segment on the imaginary axis, \begin{align} \Re\int_{\text{line}}\frac{\ln(1-z)}{1+z}{\rm d}z =&\Re\int^0_1\frac{i\ln(1-iy)}{1+iy}{\rm d}y\\ =&-\int^1_0\frac{\arctan{y}}{1+y^2}{\rm d}y-\frac{1}{4}\int^1_0\frac{\ln(1+y)}{1+y}{\rm d}y\\ =&\left[-\frac{1}{2}\arctan^2{y}-\frac{1}{8}\ln^2(1+y)\right]^1_0\\ =&-\frac{\pi^2}{32}-\frac{1}{8}\ln^2{2} \end{align} Thus we have $$\int^1_0\frac{\ln(1-x)}{1+x}{\rm d}x=-\frac{\pi^2}{12}+\frac{1}{2}\ln^2{2}$$ and consequently, $$\color{red}{\int^1_0\frac{\ln{2}-\ln(1+x^2)}{1-x}{\rm d}x=\frac{5\pi^2}{48}-\frac{1}{4}\ln^2{2}}$$