One of the method to find the integral $$\int\sqrt{1-\sin x}\ dx$$ is by multiplying by $\dfrac{1+\sin x}{1+\sin x}$ inside the root. Then, by using the identity $\sin^2x+\cos^2x=1$ , we get $$\int\dfrac{\sqrt{\cos^2x}}{\sqrt{1+\sin x}}\ dx$$
The next step is we remove the square with the root and using the substitution $u=\sin x$. My question is why ? Why don't we put an absolute value of $\cos x$? So, we have two answers. Is this situation always true in any similar situation in indefinite integrals?
Sorry, if my question is trivial. Thanks