2·(c + d) = a·b --> d = a·b/2 - c
2·(a + b) = c·d
2·(a + b) = c·(a·b/2 - c)
c^2 - 1/2·a·b·c + 2·(a + b) = 0
--------------------------------------------------
c^2 - 1/2·a·b·c + 2·(a + b) = 0
c^2 - 1/2·a·b·c = - 2·(a + b)
c^2 - 1/2·a·b·c + (1/4·a·b)^2 = (1/4·a·b)^2 - 2·(a + b)
(c - 1/4·a·b)^2 = 1/16·a^2·b^2 - 2·(a + b)