$\int x^2 \sqrt{1-x^2}dx =?$
I know how to solve this math but am facing a conceptual confusion.
If we substitute $x$ with $\sin\theta$ we can simply solve this problem but my confusion lies in the part $\sqrt{1-x^2}$. Putting $x=\sin\theta$ we can show this equals $\cos\theta$. But why is it $\cos\theta$ instead of $\pm\cos\theta$?. Why are we only considering the principal values of $\theta$? Why are we just simply pulling of any substituent of $x$ and restricting their values? How is it not violating any identity?
Pardon me for asking such type of question in this forum.
Edit: Using second approach as shown by sir Jose Carlos Santos I solved the integral in the following way.
$x=\sin\theta => dx=\cos\theta d\theta$
Now, $\int{x^2\sqrt{1-x^2} dx} $ $=\int{\sin^2\theta (-\cos\theta) \cos\theta d\theta} $ $= -\frac1 8 \int{(1-\cos4\theta) d\theta}$ $=-\frac1 8 [1-4\sin\theta\cos\theta(1-2\sin^2\theta)]+c $ $= -\frac 1 8 [\arcsin(x)+x\sqrt{1-x^2}(1-2x^2)]+c $
Where did I do wrong? There shouldn't have been a negative sign before $\arcsin(x)$