Let k=k(O,r) and let k1(I,r1) touch BD, CD and k at P, R and Q, respectively. Let k2(J,r2) touch AD, CD at K, M and L, respectively. First, we shall prove that AB∥IJ, i.e. ABIJ is an isosceles trapezoid. Assume the contrary and set T=IJ∩AB. Then
TJIT⋅LOJL⋅QIOQ=r2r1⋅rr2⋅r1r=1
and, by the Menelaus theorem, the points T, Q and L are collinear.

Then TQ⋅TL=TB⋅TA. On the other hand, ABIJ is cocyclic which implies TB⋅TA=TI⋅TJ. It follows that TQ⋅TL=TI⋅TJ, i.e. QLJI is cocyclic. But ∦JLQ=∦IQL, i.e. QLJI is an isosceles trapezoid and then IJ∥QL, a contradiction. Hence AB∥IJ, i.e. r1=r2 and AK=BP (1).
Further, the generalized Ptolemy theorem (applied to A, B, Q and C) gives AB⋅CR+AC⋅BP=AP⋅BC. Since CR=CD−DR=CD−DP=CD−BD+BP and AP=AB−BP, we get
(2)BP=AB+BC+ACAB(BC+BD−CD)
Analogously,
(3)AK=AB+BC+ACAB(AC+AD−CD)
Finally, (1), (2) and (3) imply BC+BD=AC+AD which holds if and only if D is the tangent point of AB and the excircle to this side.