\(\sin\left(5x\right)+\sin\left(3x\right)+2\cos\left(x\right)=1+\sin\left(4x\right)\)
\(\Leftrightarrow2\sin\left(4x\right)\cos\left(x\right)-\sin\left(4x\right)+2\cos\left(x\right)-1=0\)
\(\Leftrightarrow\sin\left(4x\right)(2\cos\left(x\right)-1)+(2\cos\left(x\right)-1)=0\)
\(\Leftrightarrow(2\cos\left(x\right)-1)(\sin\left(4x\right)+1)=0\)
\(\Rightarrow\left[{}\begin{matrix}\cos\left(x\right)=\dfrac{1}{2}\\\sin\left(4x\right)=-1\end{matrix}\right.\)\(\Leftrightarrow\left[{}\begin{matrix}x=\pm\dfrac{\pi}{3}+k2\pi\\4x=\dfrac{-\pi}{2}+k2\pi\end{matrix}\right.\)\(\Leftrightarrow\left[{}\begin{matrix}x=\pm\dfrac{\pi}{3}+k2\pi\\x=\dfrac{-\pi}{8}+k\dfrac{\pi}{2}\end{matrix}\right.\)