solve cos(x)-cos(2x)=sin(3x)