What is sum of the roots of the equation $(\sin x+\cos x)^{(1+\sin 2x)}=2\quad$ where $x\in[-2\pi,4\pi]$ ?
We have $1+\sin 2x=\sin^2 x+\cos^2x+2\sin x\cos x=(\sin x+\cos x)^2$. so the equation is $$(\sin x+\cos x)^{(\sin x+\cos x)^2}=2$$ By taking $\sin x+\cos x=u$ we have $$u^{u^2}=2$$ By try and error I realized that $u=\pm\sqrt2$ are the answers , but I don't know how to solve the above equation mathematically to find out whether it has other answers or not.