[Math] A square inside an equilateral triangle

analytic geometryeuclidean-geometrygeometrytriangles

Given an equilateral triangle and a point $D$ on one of its sides, I need to construct a square $DEFG$ with the vertices $E, F$ lying on the other two sides of the triangle and $G$ somewhere inside it (see picture).

enter image description here

I know if $D$ is the midpoint of the respective side, the problem is easy, but how about the general case? Are there any solutions at all? Actually, my intuition says there should not be if $D$ is not quite close to the middle.

Furthermore, I have tried using analytic geometry but it quickly became messed up….so I wonder also if we can construct such a square with compass and ruler only.

Thanks in advance.

Best Answer

As $DF=DE\sqrt 2$ and the angle $\angle EDF=45^{\circ},$ the point $F$ is obtained from $E$ through the rotation composed with the homothety (common center $D$, angle and ratio as above).

Construct in this transformation the image of the side that should contain $E.$ Its intersection (if it exists) with the side that doesn't contain $D$ is $F.$ enter image description here