Consider an acute triangle $ABC$ with \[\angle ACB=45^\circ\,.\]Let $BCED$ and $ACFG$ be squares lying outside triangle $ABC$. Prove that the midpoint of segment $DG$ coincides with the circumcenter of triangle $ABC$.
Source: 2017 Polish Junior Math Olympiad First Round
Tags: geometry
Consider an acute triangle $ABC$ with \[\angle ACB=45^\circ\,.\]Let $BCED$ and $ACFG$ be squares lying outside triangle $ABC$. Prove that the midpoint of segment $DG$ coincides with the circumcenter of triangle $ABC$.