Solve $ \int_{-1}^{1} x^2 \,dx $ using u-substitution

calculus

How to solve $ \int_{-1}^{1} x^2 \,dx $ using u-substitution? Of course, I know how to solve this using the standard way ($\frac{x^3}{3}$) but when I use u-sub I get $u=x^2, du=2xdx$. For the new bounds in terms of $u$, I plug in $x =-1,1$ in $u=x^2$ and get $u=1,1$ for both bounds. I don't even compute the rest of the new integral in terms of u because no matter what, since the bounds are $1,1$, the integral computes to zero by the zero "width" rule (as called in my textbook). But this answer is incorrect.

I feel like I'm missing something huge.

Best Answer

Your question is incomplete without showing how you might even "compute the rest of the new integral in terms of $u$". I tried to point this out in the comments, but you haven't done so, so I will have to guess what you're thinking.

It's possible you mean something like:

$$u = x^2 \implies x = \begin{cases}\sqrt{u}, & \text{ if } x \geq 0 \\ -\sqrt{u}, & \text{ otherwise}\end{cases} \\ dx = \begin{cases}\frac{1}{2\sqrt{u}}\,du, & \text{ if } x \geq 0\\ -\frac{1}{2\sqrt{u}}\,du, & \text{ otherwise}\end{cases}$$

In other words, this substitution gives you

$$\int_{-1}^1 x^2 \,dx = \int_{-1}^0 x^2\,dx + \int_0^1 x^2\,dx = \int_{1}^0 u\left(-\frac{du}{2\sqrt{u}}\right) + \int_0^1 u\left(\frac{du}{2\sqrt{u}}\right)$$ which if we want, we can recombine to $$\int_0^1\sqrt{u}\,du$$ but we still don't get $0$.