Let us denote ∠BAC=α, ∠CBA=β and ∠ACB=γ.

From ∠APB=β+γ and ∠BPC=γ+α we get
∠CPA=360∘−∠APB−∠BPC=360∘−β−γ−α=α+β.
If ∠PBA=x, then ∠BAP=180∘−∠APB−∠PBA=180∘−β−γ−x=α−x, so ∠PAC=∠BAC−∠BAP=α−(α−x)=x.
Analogously we get ∠ACP=γ−x, ∠PCB=x and ∠CBP=β−x.
Applying the sine rule to the triangles ABP and BCP we get
sinx∣AP∣=sin(β+γ)∣AB∣=sinα∣AB∣andsinx∣BP∣=sin(γ+α)∣BC∣=sinβ∣BC∣,
wherefrom due to sinα:sinβ=∣BC∣:∣AC∣ we get
∣AP∣∣BP∣=∣AB∣sinβ∣BC∣sinα=∣AB∣⋅∣AC∣∣BC∣⋅∣BC∣,
which finally leads to
\frac{|AC| \cdot |BP|}{|BC|} = \frac{|BC| \cdot |AP|}{|AB|}.