How to solve $\int \sqrt{1+\sin x}\, dx$?

294 Views Asked by At

It's easy to get this: $$\int \sqrt{1+\sin x}\, dx \\= \int \sqrt{ \sin^2{\frac{x}{2}} + \cos^2{\frac{x}{2}} + 2\sin{\frac{x}{2}}\cos{\frac{x}{2}}}\,\, dx \\ = \int \left | \sin{\frac{x}{2}} + \cos{\frac{x}{2}} \right |\, dx \\= \sqrt{2} \int \left | \sin{\left ( \frac{x}{2} + \frac{\pi}{4} \right )} \right |\, dx$$

So, in fact, my question is how to solve the integrate $\int \left | \sin x \right| dx $. Or how to deal with the integrate when have absolute in it?

2

There are 2 best solutions below

0
On BEST ANSWER

As zkutch has given how to calculate with absolute value here is another approach

To avoid confusion its better to do this we have $$\int \frac{\cos x}{\cos x}\sqrt{1+\sin x}dx=\int \frac{\cos x dx}{\sqrt{1-\sin x}}=-2\sqrt{1-\sin x}+C$$ Here in above integral i had put $1-\sin x=t$ which gave answer easily

0
On

Hint: $|\sin x|=(-1)^n \sin x$ for $\pi n \leqslant x < \pi (n+1)$, where $n=0, \pm 1,\pm2, \cdots$.

To keep antiderivative continuous in $x=\pi (n+1)$ you need to solve $$\left((-1)^{n+1}\cos x +C_n\right) \Big|_{x=\pi (n+1)}=\left((-1)^{n+2}\cos x +C_{n+1}\right)\Big|_{x=\pi (n+1)}$$ taking some $C=C_0$.