\(2cos2x+2cosx-\sqrt{2}=0\\ \Leftrightarrow2\left(2cos^2x-1\right)+2cosx-\sqrt{2}=0\\ \Leftrightarrow4cos^2x+2cosx-2-\sqrt{2}=0\\ \Leftrightarrow\left[{}\begin{matrix}cosx=\frac{\sqrt{2}}{2}\\cosx=-\frac{1+\sqrt{2}}{2}\left(l\right)\end{matrix}\right.\\ \Rightarrow x=\pm\frac{\pi}{4}+k2\pi,k\in Z\)