Let r1,r2 (r1<r2) be the radii of the circles.
Since the two circles touch the coordinate axes,
Equations will be of the form x2+y2−2r(x+y)+r2=0
Since it passes through P≡(a,b),
∴a2+b2−2r(a+b)+r2=0
which is a quadratic equation in r.
⇒r1=a+b−√2ab, r2=a+b+√2ab
Now, the common chord equation is
S1−S2=0⇒x+y=a+b
For maximum length of common chord, common chord becomes diameter of the smaller circle,
i.e., (a+b−√2ab,a+b−√2ab) should lie on the common chord.
Putting the coordinates in chord equation, we get a+b=2√2ab
⇒a2+b2=6ab
Dividing LHS and RHS by b2,
(ab)2+1=6(ab)
⇒(ab)2−6(ab)+1=0
So, from sum of the roots of quadratic equation
k1+k2=6