Median AD is perpendicular to AC. From B, drawn BE perpendicular to CA produced. Then by geometry, we know that A is the mid-point of CE, so that CA=AE=b and if AD = y then BE = 2y.
cosC=ba/2=2ba ........(1)
cos(π−A)=b/c
∴cosA=−b/c .............(2)
∴cosAcosC=−2b2/ac ......(3)
Now we have to eliminate b2 from (3). Apply Pythagoras theorem on △sBEA and DAC.
4y2+b2=c2 (In △ BEA)
and y2+b2=a2/4 (In △ DAC)
or 4y2+4b2=a2.
Subtracting, we get 3b2=a2−c2
∴−b2=(c2−a2)/3
Putting in (3), we get cosAcosC=2(c2−a2)3ac