Problem

Source: Estonia IMO TST 2019 p7

Tags: geometry, equal angles, altitudes



An acute-angled triangle $ABC$ has two altitudes $BE$ and $CF$. The circle with diameter $AC$ intersects the segment $BE$ at point $P$. A circle with diameter $AB$ intersects the segment $CF$ at point $Q$ and the extension of this altitude at point $Q'$. Prove that $\angle PQ'Q = \angle PQB$.