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$.
Problem
Source: 2023 Israel TST Test 2 P3
Tags: TST, geometry
23.03.2023 21:58
24.03.2023 02:06
Denote $K=EF\cap PD, G=EF\cap AD, R=EH\cap PD, Q=FH\cap PD$ and let $M$ be the mid-point of $AH$. We have $(A,H;G,D)-1 \implies DH.DA=DG.DM \implies \frac{DG}{DA}=\frac{DH}{DM}$ which means $HK\parallel PM$ since $PA\parallel EF$. $$-1=(A,H;G,D)=(Y,R;K,D) \text{and} (A,H;G,D)=(X,Q;K,D) \implies \angle RHD= \angle YHD \text{and} \angle XHD= \angle QHD $$Hence, we get $\angle XHB=\angle YHC \implies \angle BHC=\angle YHX$ as desired.
24.03.2023 04:21
Denote the reflection of $H$ over $BC$ as $E$, and the intersection of $(ABC), (D,DH)$ is $E,F$. $A'$ is the reflection of $A$ over perpendicular bisector of $BC$ and $PH$ meets $AA'$ at $K$. $\angle HFE=\frac{\pi}{2}$, so $A'$ is on $FH$. By easy angle chasing, $HK$ is perpendicular to $A'F$, so $H$ is the orthocenter of $\triangle A'KE$. $A'F \bot DK$ so $K$ lies on $DF$. $A,H,F,K$ lie on a circle which center is $P$. $F$ is the reflection of $H$ over $DP$. $\angle ACF=\angle AEF=\angle ADY=\angle YDF$, so $(D,C,Y,F) cyclic$ $F$ is the miquel point of $ABDYXC$, which kills the problem.
Attachments:

24.03.2023 11:02
To overcome configuration issues, assume that $X,Y$ lie on the rays $[AB , [AC$. Let the reflection of $B$ wrt. $D$ be $B'$ and define $C'$ similiarly. Delete points $X,Y$ in the problem and define $X=C'H \cap AB$, $Y=B'H \cap AC$. Claim 1: X,D,Y are collinear. Proof: Define $E$, $F$ the other feets of the altitudes. Notice that $$(Y,E;A,C)=(B',B;D,C)=\frac{BC}{B'C} \implies \frac{YA}{YC} = \frac{EA}{EC} \frac{BC}{B'C}$$Similiarly, $$\frac{XB}{XA} = \frac{FB}{FA} \frac{BC'}{BC}$$Multiplying these two toghether and using Menelaus finishes the proof. Now we want to show that $XY$ passes trough $P$, let $PH \cap BC = Q$ and $PA \cap BC = K$, this is equivalent to $$(Q,D;C',B') = (K,D;B,C)=\frac{AB^2}{AC^2} \frac{DC}{DB} \iff \frac{QC'}{QB'}=\frac{AB^2}{AC^2} \frac{DC^2}{DB^2}$$And since $\frac{CH}{BH} = \frac{AB}{AC} \frac{DC}{DB}$, we need to show that $PH$ is tangent to $(B'HC')$. Reflecting among the altitude, it boils down to the tangents to $(BHC)$ at $H$ and $(ABC)$ at $A$ being parallel, which is obvious angle chasing. $\blacksquare$
12.06.2024 16:12
Cute! Let $B',C'$ be the reflections of $B,C$ over $D$, redefine $X,Y$ as $X = \overline{HC' \cap AB}$ and $Y = \overline{HB' \cap AC}$, Claim 1: $X,D,Y$ are collinear.
Claim 2: `$P \in \overline{XDY}$
05.11.2024 12:15
Also a different solution sketch by bin_sherlo