I am trying to solve this integral: $$ \int\frac{\sin(x)}{\sqrt{\sin(2x)+2}} \, dx $$
In order to solve it, I think that the right technique to use is integration by substitution. Firstly I have converted $\sin(2x) = 2\sin(x)\cos(x)$ and after that I have changed $\cos(x) = 1 - \sin(x)^2$ and I have replaced $\sin(x) = t$ and the integral becomes $$ \int\dfrac{t}{1+t-t^3} \, dt $$ How should I continue?
Substitute $x=t+\frac\pi4$. Then
$$ \int\frac{\sin x}{\sqrt{\sin 2x+2}} \, dx = \frac1{\sqrt2}\int \frac{\sin t}{\sqrt{1+2\cos^2 t}}dt + \frac1{\sqrt2}\int \frac{\cos t}{\sqrt{3-2\sin^2 t}}dt\\ \hspace{10mm}=-\frac12\sinh^{-1}\sqrt2 \cos t +\frac12\sin^{-1}\sqrt{\frac23}\sin t+C $$