I have a question to calculate the indefinite integral: $$\int \sqrt{1-x^2} dx $$ using trigonometric substitution.
Using the substitution $ u=\sin x $ and $du =\cos x\,dx $, the integral becomes: $$\int \sqrt{\cos^2 u} \, \cos u \,du = \int \|{\cos u}\| \cos u\, du $$
Q: (part a) At what point (if at all) is it safe to say that this is the equivalent of ? $$\int \cos^2 u\, du = \int \frac {1 + \cos 2u} {2} du$$ (this is easy to solve, btw).
In lectures, it was made abundantly clear that over certain intervals (eg $ 0 \le u \le \pi/2$) that $cos u$ is +ve and is safe to do so, but in the indefinite form, the same argument cannot be made (eg $ \pi/2 \le u \le n\pi$).
Q: (part b) Is it safe to declare it ok due to the nature of the original integral, which, using a sqrt() must return a +ve number? It could then be argued that it was the substitution which artificially added a -ve aspect...
Any suggestions on how to proceed?
PS: This is a 1st year calculus course and am revising for exams ;)
Since $x$ ranges from $-1$ to $1$, and you are using the substitution $x=\sin(u)$, you can make this substitution with $u\in[-\pi/2,\pi/2]$, and then $\cos(u)$ is unambiguously positive.