Taking the center of the fixed circle as origin the axes being perpendicular and parallel to the given line respectively, the equation of the given circle will be
x2+y2=r2.....1
and of the line x=a....2
Let center be (h,k). So its equation may be written as
x2+y2−2hx−2ky+c=0....3
Radius of 3 is √h2+k2−c
If 1 touches 3 , the distance between the centers must be equal to the sum of radii
So,
√h2+k2=√(h2+k2−c)+r......4
If 3 touches 2 length of perpendicular from (h,k) on 2 must be equal to the radius
h−a=√h2+k2−c......5
√h2+k2=h−a+r
h2+k2=h2+a2+r2−2ha+2rh−2ar
Locus is;-
y2=2r(r−a)+(a−r)2
which is a parabola