Thus the locus is:-
x2+y2=r2+((mh−k+c)2m2+1)+2r∣∣∣mh−k+c√m2+1∣∣∣
Let the circle be:
x2+y2=r2
and the line be:-
y=mx+c
Here distance of line from origin is greater than r
Let the centre of circle be (h,k). This circle is variable which touches the fixed circle. Let r be radius of variable circle.
So, distance of point (h,k) from origin is:-
√(h−0)2+(k−0)2=r+r−−−(1)
As r is equal to distance of (h,k) from (0,0), so,
r=∣∣∣mh−k+c√m2+1∣∣∣
substituting in (1)
√n2+k2=r+∣∣∣mh−k+c√m2+1∣∣∣
=n2+k2=r2+((mh−k+c)2m2+1)+2r∣∣∣mh−k+c√m2+1∣∣∣