\(\Leftrightarrow1+2sinx.cosx-\left(sinx+cosx\right)=0\)
\(\Leftrightarrow sin^2x+cos^2x+2sinx.cosx-\left(sinx+cosx\right)=0\)
\(\Leftrightarrow\left(sinx+cosx\right)^2-\left(sinx+cosx\right)=0\)
\(\Leftrightarrow\left(sinx+cosx\right)\left(sinx+cosx-1\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}sinx+cosx=0\\sinx+cosx=1\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}sin\left(x+\frac{\pi}{4}\right)=0\\sin\left(x+\frac{\pi}{4}\right)=\frac{1}{\sqrt{2}}\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x+\frac{\pi}{4}=k\pi\\x+\frac{\pi}{4}=\frac{\pi}{4}+k2\pi\\x+\frac{\pi}{4}=\frac{3\pi}{4}+k2\pi\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}x=-\frac{\pi}{4}+k\pi\\x=k2\pi\\x=\frac{\pi}{2}+k2\pi\end{matrix}\right.\)