The length of common chord of the circles (x−a)2+y2 =a2 and x2+(y−b)2 = b2 is
2ab√a2+b2
Equation of common chord is ax−by = 0
Now length of common chord
= 2√r21−p21 = 2√r22−p22
Where r1 and r2 are radii of given circles and p1,p2 are the perpendicular distances from centres of circles to common chords.
Hence required length = 2√a2−a4a2+b2 = 2ab√a2+b2.