Consider the general equation circle is given by

If the given circle is passing through two points, say, and , then these points must satisfy the general equation of circle. Now put these two points in the given equation of circle, i.e.

Also the given straight line touches the circle at one point as shown in the given diagram and it is clear from the diagram that the distance of a given form the center must be equal to the radius of the circle. By using the formula for distance between point and the line i.e.

But the radius of the circle in general form is , using this values we get

Squaring both sides of the above equation we have

To evaluate the equation of required circle, we must the find values of from the above equations (ii), (iii) and (v). We can solve these three using the method of simultaneous equations, then put all these in the equation (i) to get the required circle.

An alternate way is that we assume that the required equation of circle is

Since the circle passes through the points and , so these points must satisfy the above equation of circle, we have

Since the given line touches the circle.

So the distance of the center of the circle from the given line must be equal to its radius, i.e.

Now using the above equation (ii), (iii) and (v), we can find the values of and in the equation (i), we get the required circle.