CDBD⋅sin(∠A−∠ACD)sin(∠A−∠ABD)=cos∠Ccos∠B(♡)
Let R and Q be the intersections of the perpendicular bisectors of AC and AB with AB and AC, respectively. It is well-known that CR and BQ meet on OH. Let S be the concurrency point of CR and BQ. It is obvious that ∠A−∠ACD=180∘−∠DCS and ∠A−∠ABD=∠SBD. So by law of sines
sin∠DSCsin∠DSB=CDBD⋅sin∠DCSsin∠DBS=CDBD⋅sin(∠A−∠ACD)sin(∠A−∠ABD)(1)
and
sin∠OSCsin∠OSB=COBO⋅sin∠OCSsin∠OBS=cos∠Ccos∠B.(2)
From (1) and (2), (♡) follows.
Suppose that the circumcircle of triangle BXE intersects the lines AB and EF again at L and U, and the circumcircle of triangle CXF intersects the lines AC and EF again at K and V. Let AH and AD intersect EF and BC at J and G, respectively. We just need to show that JVJE=JUJF that is equivalent to EVJE=FUJF. Notice that
∠KXE=∠KXF−∠EXF=(180∘−∠ACD)−(180∘−∠A)=∠A−∠ACD.
Now by law of sines
EXEK=sin∠XKEsin∠KXE=sin∠XFCsin(∠A−∠ACD).
Similarly we have
FXFL=sin∠XEBsin(∠A−∠ABD).
Therefore,
FLEK=FXEX⋅sin∠XFCsin∠XEB⋅sin(∠A−∠ABD)sin(∠A−∠ACD)=sin∠FDAsin∠EDA⋅sin(∠A−∠ABD)sin(∠A−∠ACD)=CGBG⋅BDCD⋅sin(∠A−∠ABD)sin(∠A−∠ACD)=(♡)CGBG⋅cos∠Bcos∠C,(3)
On the other hand by Ceva's theorem
FLEK=BFFU⋅EFCEEV⋅EF=FUEV⋅CGBG⋅AEAF⟹(3)FUEV=AFAE⋅cos∠Bcos∠C=JFJE,
as desired.
■