$\int^1_{-1} \frac{1}{\sqrt{\lvert{2x-x^2}\rvert}} dx$
I'm getting stumped. The integral is improper because at 0 the function does not exist.
I am thinking of completing the square and doing a trig substitution. This doesn't seem right to me though, because of the absolute value function in the square root in the denominator. Anyway, once I complete the square, the denominator is $\sqrt{\lvert {1-(x-1)^2} \rvert} $
I'm confused how to proceed. I think I then split it up between (x-1)^2 -1 and 1-(x-1)^2 in two separate integrals. But I'm honestly very confused right now on how to proceed.
Since $2x-x^2<0$ on $(-1,0)$ it is $|2x-x^2|=x^2-2x$ on $(-1,0).$ Since $2x-x^2>0$ on $(0,1)$ it is $|2x-x^2|=x^2-2x$ on $(0,1).$ Thus
$$\int^1_{-1} \frac{1}{\sqrt{\lvert{2x-x^2}\rvert}} dx=\int^0_{-1} \frac{1}{\sqrt{x^2-2x}} dx+\int^1_{0} \frac{1}{\sqrt{2x-x^2}} dx.$$
Now,
$$\int\frac{1}{\sqrt{x^2-2x}}dx=\int\frac{1}{\sqrt{x}\sqrt{x-2}}dx\underbrace{=}_{x=t^2}\int \frac{2tdt}{t\sqrt{t^2-2}}= \int \frac{2dt}{\sqrt{t^2-2}}\\ =\ln(2(\sqrt{t^2-2}+t))=\ln(2(\sqrt{x-2}+\sqrt{x})).$$
Proceed in a similar way with the other integral.