Problem

Source: IMOC 2021 G8

Tags: geometry, tangent



Let $P$ be an arbitrary interior point of $\triangle ABC$, and $AP$, $BP$, $CP$ intersect $BC$, $CA$, $AB$ at $D$, $E$, $F$, respectively. Suppose that $M$ be the midpoint of $BC$, $\odot(AEF)$ and $\odot(ABC)$ intersect at $S$, $SD$ intersects $\odot(ABC)$ at $X$, and $XM$ intersects $\odot(ABC)$ at $Y$. Show that $AY$ is tangent to $\odot(AEF)$.