Integral $\int \frac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}} dx$ We have to evaluate the following integral:
$$\int \frac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}} dx$$
I tried this:
I multiplied both the numerator and denominator by $\sec x$
And substituted $\tan x = t$.
But after that I got stuck.
The book where this is taken from gives the following as the answer: $$\ln(1+t)-\frac14\ln(1+t^4)+\frac1{2\sqrt2}\ln\frac{t^2-\sqrt2t+1}{t^2+\sqrt2t+1}-\frac12\tan^{-1}t^2+c$$ where $t=\sqrt{\cot x}$

We rationalise the denominator to get $$I =\int \frac {\sin x-\sqrt {\cos x\sin x}}{\sin x-\cos x} dx $$ Writing everything in terms of $\cot x $, we get $$I =\int \mathrm{csc}^2 x\left(\frac {\sqrt {\cot x}-1}{\cot^3 x-\cot^2 x+\cot x-1}\right) dx $$ Now substituting $u=\cot x $ and further $v=\sqrt {u} $ gives us $$I = -\int\frac {2v }{v^5+ v^4 + v+1} dv $$ Performing a partial fraction decomposition we have $$I = \frac {2}{4-4\sqrt {2}}\int \frac {v +\sqrt {2}-1}{v^2 +\sqrt {2}v +1} dv  +\frac {2}{4+4\sqrt {2}}\int \frac {v-\sqrt {2}-1}{v^2-\sqrt {2 }v+1} dv+\int \frac {1}{1+v} dv =I_1 +I_2 +I_3$$ Hope you can take it from here. 
