We have,
ADE is a right angled triangle.
Therefore ,By Pythagoras theorem,
AE2+ED2=AD2
⇒AE2=AD2−ED2......(1)
Again, InΔAEB
AB2=AE2+BE2 ……. (2)
And now,
BE=BD−ED …… (3)
Substituting equation (2) and (3) in (1), we get,
AB2=AD2−ED2+(BD−ED)2
=AD2−ED2+BD2+ED2−2BD×ED
Now, BD=BC2(∴Dismidpoint)
Therefore,
AB2=AD2+BD2−2BD×ED
=AD2+(BC2)2−2(BC2)×ED
=AD2−BC×ED+BC24
Hence, this is the answer.