In the given figure, D is the midpoint of side BC and AE ⊥ BC. If BC = a, AC = b, AB = c, ED = x, AD = p and AE = h, prove that
(i) b2=p2+ax+a24
(ii) c2=p2−ax+a24
(iii) (b2+c2)=2p2+12a2
(iv) (b2−c2)=2ax