Problem

Source: Croatia 1999 3rd Grade P1

Tags: geometry, rectangle



A triangle $ABC$ is inscribed in a rectangle $APQR$ so that points $B$ and $C$ lie on segments $PQ$ and $QR$, respectively. If $\alpha,\beta,\gamma$ are the angles of the triangle, prove that $$\cot\alpha\cdot S_{BCQ}=\cot\beta\cdot S_{ACR}+\cot\gamma\cdot S_{ABP}.$$