Problem

Source: 2023 Israel TST Test 2 P3

Tags: TST, geometry



In triangle $ABC$ the orthocenter is $H$ and the foot of the altitude from $A$ is $D$. Point $P$ satisfies $AP=HP$, and the line $PA$ is tangent to $(ABC)$. Line $PD$ intersects lines $AB, AC$ at points $X,Y$ respectively. Prove that $\angle YHX = \angle BAC$ or $\angle YHX+\angle BAC= 180^\circ$.