$ABCD$ is a square, $E$ is a midpoint of side $BC$, points $F$ and $G$ are on the diagonal $AC$ so that $|AF|=3\ \text{cm}$, $|GC|=4\ \text{cm}$ and $\angle{FEG}=45 ^{\circ}$. Determine the length of the segment $FG$.
How can I approach this problem, preferably without trigonometry?










$FG$">
Following solution uses no concept of concyclic or similar triangles, only rotation and Pythagoras theorem.
Let $O$ be a midpoint of a segment $AC$.
Rotate $G$ for $-90^{\circ}$ around $E$ to a new point $K$. This rotation takes $C$ to $O$ and $O$ to $B$, so $K$ is on a segment $BO$ (which is a part of diagonal $BD$)
Then $EK=EG$ so $E$ is on perpendicular bisector of $KG$. Since $\angle KEF = \angle FEG = 45^{\circ}$ line $EG$ is perpendicular bisector for $KG$ so $FK = FG = x$.
Since $ FO = {x+1\over 2}$ we can use Pythagoras theorem in triangle $\triangle FOK$:
$$ x^2 = 4^2+\Big({x+1\over 2}\Big)^2 \implies x=5$$