$$\int \frac{1}{2+\sin x+\cos x}dx.$$
My attempts:
- Let $y = \sin x+\cos x.\implies \frac{dy}{dx}=\cos x-\sin x=y'.$
$$\int \frac{1}{2+\sin x+\cos x}dx=\int\frac{1}{2+y}\frac{dy}{y'}.$$
And I tried to use the fact $(\ln x)'=1/x,$ but $(\ln(2+y))'=\frac{y'}{2+y}$ : the form doesn't match. So I think I've failed at this moment.
- Let $u=\sin x.\implies du=\cos x\ dx=\sqrt{1-u^2}dx.$
$$\int \frac{1}{2+\sin x+\cos x}dx=\int\frac{1}{2+u+\sqrt{1-u^2}}\frac{du}{\sqrt{1-u^2}}.$$
And it looks more uncomputable.
Both of my attempts are at a dead end. How to evaluate this integral? Any help would be appreciated.