<s>[INST] Solve the following equation: $\sqrt {\sin x - \sqrt {\cos x + \sin x} } = \cos x$ Solve the following equation: 
\begin{array}{l}{\sqrt{\sin x-\sqrt{\cos x+\sin x}}=\cos x} \\ \text{my try as follows:}\\{\sin x-\sqrt{\cos x+\sin x}=\cos ^{2} x} \\ {\sin x-\cos ^{2} x=\sqrt{\cos x+\sin x}} \\ {\sin ^{2} x+\cos ^{4} x-2 \sin x \cos ^{2} x=\cos x+\sin x} \\ {\sin ^{2} x+\cos ^{4} x-2 \sin x \cos ^{2} x-\cos x-\sin x=0} \\ {\sin ^{2} x+\cos ^{4} x-2 \sin x\left(1-\sin ^{2} x\right)-\cos x-\sin x=0} \\{\sin ^2}x + {\left( {1 - {{\sin }^2}x} \right)^2} - 2\sin x\left( {1 - {{\sin }^2}x} \right) - \cos x - \sin x = 0\\ {\sin ^{2} x+\sin ^{4} x-2 \sin ^{2} x+1-2 \sin x+2 \sin ^{3} x-\cos x-\sin x=0} \\ {\sin ^{4} x+2 \sin ^{3} x-\sin ^{2} x-3\sin x-\cos x+1=0}\end{array}
Now i think it gets more complicated , any help would be appreciated 
 [/INST] It can be seen that the radical of the form $\sqrt{x-\sqrt{x+..}}$ is undefined for $x<1$. Since $\sin{x}$ is on the interval $[-1,1]$. This means that it is only defined for $x=\arcsin(1)$. Or generalizing this, we get;
$$x=2n\pi+\frac{\pi}{2}, \tag{for n ∈ Z}$$
</s>