Solve for x -cos(x)+cos(2x)=0