Solve for x -2cos(x)^2+sin(x)+1=0