<s>[INST] How can we tackle this integral $\int_{0}^{1}{2x^2-2x+\ln[(1-x)(1+x)^3]\over x^3\sqrt{1-x^2}}\mathrm dx=-1?$ Something is wrong with this integral (in terms of splitting  them out)

$$\int_{0}^{1}{2x^2-2x+\ln[(1-x)(1+x)^3]\over x^3\sqrt{1-x^2}}\mathrm dx=\color{blue}{-1}\tag1$$

My try:
Splitting the integral
$$\int_{0}^{1}{2x^2-2x\over x^3\sqrt{1-x^2}}\mathrm dx+\int_{0}^{1}{\ln[(1-x)(1+x)^3]\over x^3\sqrt{1-x^2}}\mathrm dx=I_1+I_2\tag2$$
Note that $I_1$ and $I_2$ diverge, so how can we tackle it as a whole?
 [/INST] You have to split as
$$
I=\int_0^1\frac{x^2/2+x+\log(1-x)}{x^3\sqrt{1-x^2}}+\int_0^1\frac{3x^2/2-3x+3\log(1+x)}{x^3\sqrt{1-x^2}}=\color{red}{I_1}+\color{blue}{I_2}
$$
Now we can calculate
$$
\color{red}{I_1}=-\sum_{n=3}^{\infty}\frac{1}{n}\int_0^1\frac{x^{n-3}}{\sqrt{1-x^2}}=-\frac{\sqrt{\pi}}{2}\sum_{n=3}^{\infty}\frac{1}{n}\frac{\Gamma\left(\frac n2-1\right)}{\Gamma\left(\frac n2-\frac12\right)}\underbrace{=}_{(1)}\\
-\frac{1}{16}\sum_{n=3}^{\infty}\frac{2^n}{n}\frac{\Gamma^2\left(\frac n2-1\right)}{\Gamma\left(n-1\right)}=-\frac12\int_0^1dtt\sum_{k=1}^{\infty}(2t)^k\frac{ \Gamma^2 \left(\frac k2\right)}{k!}\underbrace{=}_{(2)}\\
\int_0^1dtt\arcsin(t)(\pi+\arcsin(t))=\color{red}{-\frac{1}{4}+\frac{3\pi^2}{16}}
$$
where we have used Legendre's duplication formula in $(1)$ and the results from this nice question in $(2)$ (the last integration is trivial after employing $t=\sin(q)$ so i spare it here).
Playing exactly the same game with $I_2$ we obtain
$$
\color{blue}{I_2}=-3\int_0^1dtt\arcsin(t)(\pi-\arcsin(t))=\color{blue}{-\frac{3}{4}-\frac{3\pi^2}{16}}
$$
or

$$
I=\color{red}{I_1}+\color{blue}{I_2}=-1
$$

</s>