I have to prove that $$ I=\int_{-1}^{1}\frac{\log(1+x)}{1+x^2}dx=\frac{\pi}{4}\log(2)-\sum_{n=0}^{\infty}\frac{(-1)^n}{(2n+1)^2} $$
I know that
$$ I_{+}=\int_{0}^{1}\frac{\log(1+x)}{1+x^2}dx=\frac{\pi}{8}\log(2) $$ and I can write $$ I= \int_{0}^{1}\frac{\log(1+x)}{1+x^2}dx+\int_{0}^{1}\frac{\log(1-x)}{1+x^2}dx $$
So I have only to evaluate $$I_{-}=\int_{0}^{1}\frac{\log(1-x)}{1+x^2}dx $$ Using the expansion of the logarithm valid in the range of integration I can also write $$I_{-}=-\sum_{n\geq1}\frac{1}{n}\int_{0}^{1}\frac{x^n}{1+x^2}dx $$ but then I can go any further because I can't find a simple solution that depend only on $n$ for the rational (and solvable) integral under the sum sign .
Maybe is simple to considerate instead of $ I_{-} $ the integral $\int_{0}^{1}\frac{\log(1-x^2)}{1+x^2}dx=I$ because it seems to me that $\int_{0}^{1}\frac{x^{2n}}{1+x^2}dx= \sum_{k=0}^{n-1} (\frac{(-1)^{n+k}}{2k+1} + \frac{\pi}{4}(-1)^n)$ but again I can go further.
Any help would be appreciated. Thanks
$$I_+=\int_0^1 \frac{\ln(1+x)}{1+x^2}dx=\frac{\pi}{8}\ln 2\ ;\quad I_-=\int_0^1 \frac{\ln(1-x)}{1+x^2}dx$$ $$I_--I_+=\int_0^1 \frac{\ln\left(\frac{1-x}{1+x}\right)}{1+x^2}dx\overset{(1-x)/(1+x)=t}=\int_0^1 \frac{\ln t}{1+t^2}dt$$ $$=\sum_{n=0}^\infty (-1)^n \int_0^1 t^{2n}\ln tdt=\sum_{n=0}^\infty \frac{(-1)^{n+\color{red}{1}}}{(2n+1)^2}=-G$$ $$\Rightarrow I_-=I_++I_--I_+=\frac{\pi}{8}\ln 2-G$$ Where $G$ is Catalan's constant.