\(\Leftrightarrow cos6x-cos8x+2\left(1-cos4x\right)^2+\sqrt{3}sin6x=4-4cos4x\)
\(\Leftrightarrow cos6x-cos8x+2\left(1+cos^24x-2cos4x\right)+\sqrt{3}sin6x=4-4cos4x\)
\(\Leftrightarrow cos6x-cos8x+cos8x+3-4cos4x+\sqrt{3}sin6x=4-4cos4x\)
\(\Leftrightarrow cos6x+\sqrt{3}sin6x=1\)
\(\Leftrightarrow cos\left(6x-\dfrac{\pi}{3}\right)=\dfrac{1}{2}\)
\(\Leftrightarrow...\)