\(cos3x=sin\left(x+\dfrac{\pi}{4}\right)\)
\(\Leftrightarrow cos3x=cos\left(\dfrac{\pi}{4}-x\right)\)
\(\Leftrightarrow\left[{}\begin{matrix}3x=\dfrac{\pi}{4}-x+k2\pi\\3x=-\dfrac{\pi}{4}+x+k2\pi\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=\dfrac{\pi}{16}+\dfrac{k\pi}{2}\\x=-\dfrac{\pi}{8}+k\pi\end{matrix}\right.\)
Pt\(\Rightarrow cos3x=cos[\dfrac{\pi}{2}-(x+\dfrac{\pi}{4})]\)
\(\Rightarrow\left[{}\begin{matrix}3x=\dfrac{\pi}{2}-(x+\dfrac{\pi}{4})+k2\pi\\3x=-\dfrac{\pi}{2}+\left(x+\dfrac{\pi}{4}\right)+k2\pi\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}4x=\dfrac{\pi}{4}+k2\pi\\2x=-\dfrac{\pi}{4}+k2\pi\end{matrix}\right.\)\(\Rightarrow\left[{}\begin{matrix}x=\dfrac{\pi}{16}+k2\pi\\x=-\dfrac{\pi}{8}+k2\pi\end{matrix}\right.\)(k\(\in\)Z)