solve cos(x - 2arcsin(z)) = 1 - 2z for z