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