\(cos^2x-sin2x-sin^2x=1\)
\(\Leftrightarrow1-sin^2x-2sinx.cosx-sin^2x=1\)
\(\Leftrightarrow sin^2x+sinx.cosx=0\)
\(\Leftrightarrow sinx\left(sinx+cosx\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}sinx=0\\tanx=-1\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=k\pi\\x=-\dfrac{\pi}{4}+k\pi\end{matrix}\right.\)