solve for c in (b - sqrt(c^2 + d^2 - a^2))^2 + (a - sqrt(c^2 + d^2 - b^2))^2 - (2d)^2=0