Can you explain the absolute value sign when integrating $\int_{-1}^{1}dx \int_{0}^{x^2} \sqrt{x^2-y} dy$? I'm doing homework on the following integral:
$$\int_{-1}^{1}dx \int_{0}^{x^2} \sqrt{x^2-y} dy$$
And here is the answer:

I try to think about it, but I couldn't answer why there is an absolute value sign in the third expression at $x^3$. Can somebody explain it for me why? Thank you! :D

Let's compute $\int_0^{x^2} \sqrt{x^2 - y} \, dy$. Applying the substitution $u = x^2 - y$, we have $du = -dy$ and hence
$$ \int_0^{x^2} \sqrt{x^2 - y} \, dy = -\int_{x^2}^0 \sqrt{u} \, du = \int_0^{x^2} \sqrt{u} \, du = \left[ \frac{2}{3}  u^{\frac{3}{2}} \right]^{u=x^2}_{u=0} = \frac{2}{3} \left( (x^2)^{\frac{1}{2}} \right)^3 = \frac{2}{3} |x|^3. $$
