Geometry Problem 316: Circular segments and Inscribed Squares

The figure shows a circle O with OC
perpendicular to chord AB. Squares DEFG and HMNP are inscribed
in each of the circular segments subtended by AB. If DG = a, HM =
b, and OC = x, prove that
.
.