As shown in the figure, the variable circle passes through the point A(a,b) and touches the x-axis at ponit P.
Let the other end of diameter of the circle through A be B(h,k).
So, centre of the circle is `C((h+a)/(2),(k+b)/(2))`
Radius of the circle,` CP=(AB)/(2)`
`implies |(k+b)/(2)|=(sqrt((h-a)^(2)+(k-b)^(2)))/(2)`
Squaring and simplifying, we get `(h-a)^(2)=4bk`.
Therefore, required equation of the locus is `(x-a)^(2)=4by`.