\(cos\left(x+\frac{\pi}{4}\right)=-\frac{\sqrt{2}}{2}\)
\(\Leftrightarrow\left[{}\begin{matrix}x+\frac{\pi}{4}=\frac{3\pi}{4}+k2\pi\\x+\frac{\pi}{4}=-\frac{3\pi}{4}+k2\pi\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=\frac{\pi}{2}+k2\pi\\x=-\pi+k2\pi\end{matrix}\right.\)
\(\Rightarrow x=\left\{\frac{\pi}{2};\pi\right\}\)