I'm having a problem with substituting when it comes to trig functions.
The integral is:$$\int\sqrt{1+\sin(x)}dx$$
Substituting: $1+\sin(x) = u \implies \frac{d}{dx} u = \cos(x) \implies dx = \frac{1}{\cos(x)}du$
So now we have the integral: $$\int \frac{\sqrt{u}}{\cos(x)}du$$
So now the question is, what do I do with the $\frac{1}{\cos(x)}$? How can I substitute that with $u$?
Hint Write your integrand in the form $$\sqrt{\frac{(1+\sin(x))(1-\sin(x))}{1- \sin(x)}}=\frac{\pm\cos(x)}{\sqrt{1-\sin(x)}}$$ and substitute $$t=1-\sin(x)$$ then we get $$dt=-\cos(x)dx$$