I'm a bit lost on the technique in this problem and could use some insight. When do we have to change the limits?
$$\int_0^1 \sqrt{x-x^2} dx$$
completing the square gives me:
$$\int \sqrt{-x^2 +x - \frac{1}{4} + \frac{1}{4} } dx$$
$$\int \sqrt{-(x-\frac{1}{2})^2 + \frac{1}{4}} dx$$
$$ \int \sqrt{-u^2 + \frac{1}{4}} du$$
$$\int \sqrt{\frac{1}{4} - u^2} du$$'
Is trig sub the best way to go?
if $u = \frac{1}{2} \sin \theta$ then $du = \frac{1}{2} \cos \theta d \theta$
$$ = \int \sqrt{\frac{1}{4} - \frac{1}{4} \sin^2\theta} \frac{1}{2} cos \theta d \theta$$
$$ \int \frac{1}{2} cos \theta \frac{1}{2} cos \theta d \theta$$
$$\frac{1}{4} \int cos^2 \theta d \theta$$
using half angle identity I eventually get:
$$ \frac{1}{4} \int \frac{1}{2} ( 1 + cos(2 \theta)) d \theta$$
$$\frac{1}{8} \int (1 + cos(2 \theta) d \theta$$
$$ \frac{1}{8} ( \theta + \frac{1}{2} sin 2 \theta)$$
Where do I go from here? I'm a bit lost as to what to do with the u sub and how to get back to x from here.
I would recommend changing the limits every time we substitute. Here, that leads to $$\int_{-1/2}^{1/2}\sqrt{\frac14-u^2}\,du$$ ($u=x-\frac12$ runs from $0-\frac12$ to $1-\frac12$) $$\frac14\int_{-\pi/2}^{\pi/2}\cos^2\theta d\theta$$ ($u=\frac12\sin\theta$, so since $\sin\theta$ runs from $-1$ to $1$, $\theta$ runs from $-\frac{\pi}{2}$ to $\frac{\pi}{2}$) $$\left[\frac18\left(\theta+\frac12\sin(2\theta)\right)\right]_{\theta=-\pi/2}^{\theta=\pi/2} = \left(\frac{\pi}{16}+0\right)-\left(-\frac{\pi}{16}+0\right) = \frac{\pi}{8}$$ If you do it that way, there's no need to go back -- we just evaluate the integral right there.
Definite integrals have more tools we can use than indefinite integrals. Even at the basic calculus level you're at, symmetry comes up a lot -- the integral of an odd function from $-a$ to $a$ is zero, for example. If we turn a definite integral problem into an indefinite integral problem and then only convert back at the very end, we lose access to those tools. So then, it makes sense to always bring the limits along and convert them when substituting in an indefinite integral problem.
No, the best way to go is to not calculate any antiderivatives at all. Once you reach that first line I wrote down (the same point you were at when writing this line, plus the limits), recognize it as the area of a semicircle of radius $\frac12$. From that, we immediately conclude the result $\frac12\pi\left(\frac12\right)^2=\frac{\pi}{8}$.
That is, of course, not something we could ever have done with an indefinite integral.