solve a^2 + 2b^2 = 1, 1/2 = (2ab + b^2) / sqrt(b^2 + (a + b)^2/2)