I was evaluating $\displaystyle\int_0^1\frac{\ln(x)}{\sqrt{1-x}} dx$ using different method, given below. First I used $u = 1-x$ to get $\displaystyle\int_0^1\frac{\ln(1-x)}{\sqrt{x}} dx$
Try 1
Easily we can use parts integration to get:
$$I = 2 \sqrt{x} \ln(1-x) \biggr|_{0}^{1} + \int_{0}^{1} \frac{2\sqrt{x}}{1-x} dx$$
For last integral, I used $x = t^2$ to get:
$$\begin{align} \int_{0}^{1} \frac{2\sqrt{x}}{1-x} dx &= \frac{4t^2}{1-t^2} dt\\ & = 4 \int_0^1\left(-1+\frac{1}{1-t^2}\right) dt\\ & = -4t + 2 \ln\left(\frac{1+t}{1-t}\right) \end{align}$$
So we get
$$I = 2 \sqrt{x} \ln(1-x) - 4 \sqrt{x} + 2 \ln\left(\frac{1+\sqrt x}{1-\sqrt x}\right) \rvert_{0}^{1}\\ = \left.2\ln\left(\frac{(1-x)^{\sqrt x} (1+\sqrt{x})}{(1-\sqrt{x})}\right) \right|_0^1$$
which upon taking limits we get $4\ln(2)-4$.
Try 2
I tried series of $\ln(1-x)$ as its in domain.
$$I = -\int_0^1 \sum_{i=1}^{\infty} \frac{x^{\frac{2i-1}{2}}}{i} \\ = -2\sum_{1}^{\infty} \frac{1}{i(2i+1)} \\ = -2 \sum_{i=1}^\infty\left(\frac{1}{i}-\frac{2}{2i+1}\right)$$
But now I rearranged terms (illegal) to get $2 \ln(2)-4$ which my miss said is not correct. I am not able to use series here, how to correct this error that is without rearranging?
Also please supply more ways of solving. Note i am not in higher class so please dont expect me to understand complicated maths.
Let $$ f(x)=\sum_{1}^{\infty} \frac{1}{i(2i+1)}x^{2i+1}$$ and then $$ f(0)=0,f'(0)=0, f''(x)=2\sum_{1}^{\infty}x^{2i-1}=\frac{2x}{1-x^2}. $$ So $$ f(1)=\int_0^1\int_0^t\frac{2x}{1-x^2}dxdt\\ =\int_0^1\int_x^1\frac{2x}{1-x^2}dtdx\\ =2\int_0^1\frac{x}{1+x}dx=2(1-\ln2) $$ and hence $$I = -2\sum_{1}^{\infty} \frac{1}{i(2i+1)} \\ =-4(1-\ln2).$$