In a right triangle ABC, right-angled at B, D is a point on hypotenuse such that BD∼AC. If DP∼AB and DQ∼BC then prove that
(a) DQ2=DP.QC
(b) DP2=DQ.AP