solve cos(x) + x = 0