Problem

Source: Turkey JBMO TST 2024 P1

Tags: geometry



In the acute-angled triangle $ABC$, $P$ is the midpoint of segment $BC$ and the point $K$ is the foot of the altitude from $A$. $D$ is a point on segment $AP$ such that $\angle BDC=90$. Let $(ADK) \cap BC=E$ and $(ABC) \cap AE=F$. Prove that $\angle AFD=90$.