Find $\int\sqrt{\sin x+\cos x}\,dx $ I am trying to solve the question
$$
\int\sqrt{\sin x+\cos x}\,dx
$$
Is their any substitution by which I can get the answer.  I tried different substitution like i multiplied both numerator and denominator by $\sqrt{\sin x+\cos x} $ and uses sinx -cos x=t but getting complicated

Elliptic Integral of the Second Kind:
$$E(\varphi,k) = \int_0^\varphi \sqrt {1 - k^2(\sin\vartheta)^2}\, \mathrm d\vartheta$$

$$ I = \int \sqrt{\sin(x) + \cos(x)}\,dx$$
$$\sqrt[4]{2}\int \sqrt{\frac{1}{\sqrt{2}}\sin(x) + \frac{1}{\sqrt{2}}\cos(x)}\,dx$$
$$\sqrt[4]{2}\int \sqrt{\sin(x)\cos\left(\frac{\pi}{4}\right) + \cos(x)\sin\left(\frac{\pi}{4}\right)}\,dx$$
Set $u = \left(x + \frac{\pi}{4}\right) \to du = dx$
$$\sqrt[4]{2}\int \sqrt{\sin(u)}\,du$$
So the elliptic integral can also be written as
$$\int \sqrt{\sin(u)}\,du = \int \sqrt{1 - 2\sin^2\left(\frac{\pi}{4}-\frac{\pi}{2}\right)}\,du$$
$$-2\int\sqrt{1-2\sin^2(u)}$$
$$-2\,E(u\,|\,2) + C$$
$$-2\,E\left(\frac{\pi}{4} - \frac{u}{2}\,|\,2\right) + C$$
Back substitution $u = \left(x + \frac{\pi}{4}\right)$
$$-2\,E\left(\frac{\pi}{4} - \frac{\left(x + \frac{\pi}{4}\right)}{2}\,|\,2\right) + C$$
$$-2\,E\left(\frac{\pi}{8} - \frac{x}{2}\,|\,2\right) + C$$
$$-2\,E\left(\frac{1}{8}\left(\pi - 4x\right)\,|\,2\right) + C$$
Therefore

$$I = -2\sqrt[4]{2}\,E\left(\frac{1}{8}(\pi - 4x)\,|\,2\right) + C$$

