∠A=90∘∠B=45∘∠BAP=45∘⟹AP=BP⋯(1)∠ACP=45∘⟹AP=PC⋯(2)⟹AP=BP=CP
⟹2AP2=BP2+CP22(AD2−PD2)=BP2+CP22AD2=BP2+PD2+CP2+PD22AD2=(BP+PD)2−2BP.PD+(CP−PD)2+2BP.PD2AD2=BD2+CD2