Where is my argument that $\int_{-1}^{1} \sqrt{1-x^2}dx=0$ wrong?

$$\int_{-1}^{1} \sqrt{1-x^2}dx$$

I let $u = 1-x^2$, $x = (1-u)^{1/2}$

$du = -2x dx$

$$-\frac{1}{2}\int_{0}^{0} \frac{u^{1/2}}{(1-u)^{1/2}}du = 0$$ because $$\int_{a}^{a} f(x)dx = 0$$

But it isn't zero. Why?????


For $x \in [-1,0)$, you can't have $$ u = 1-x^2 \implies x = (1-u)^{1/2} $$ thus your change of variable is not valid over $[-1,0)$.

You would better write by parity $$ \int_{-1}^{1} \sqrt{1-x^2}dx=2\int_0^{1} \sqrt{1-x^2}dx $$ then use the given change of variable.


You may only do a u-substitution when it is bijective on your integration domain. You can solve this problem by breaking up your integral into $\int_{-1}^0$ and $\int_0^1,$ and using $x=-(1-u)^{1/2}$on the first integral, and $x=(1-u)^{1/2}$ on the second.