For the right angled △ADB, as per the pythagoras theorem, AB2=AD2+BD2
=>(c)2=(h)2+(a−x)2
=>c2=h2+a2+x2−2ax
=>h2=c2−a2−x2+2ax -- (1)
Similarly,
For the right angled △ACD, as per the pythagoras theorem, AC2=AD2+CD2
=>b2=(h)2+(x)2 -- (2)
From, eq.(1) and eq.(2)
=>b2=c2−a2−x2+2ax+x2
=>b2=c2−a2+2ax
=>c2=a2+b2−2ax