Consider the general equation a circle is given by
If the given circle is passing through two points, say and , then these points must satisfy the general equation of a circle. Now put these two points in the given equation of a 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 point from the center must be equal to the radius of the circle. By using the formula for distance between the point and the line, i.e.:
The radius of the circle in general form is , and using this value we get
Squaring both sides of the above equation we have
To evaluate the equation of the 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, and then put all this information into equation (i) to get the required circle.
An alternate way is that we assume that the required equation of a circle is
Since the circle passes through the points and , these points must satisfy the above equation of a circle. So we have
The given line touches the circle.
So the distance to the center of the circle from the given line must be equal to its radius, i.e.:
Now using the above equations (ii), (iii) and (v), we can find the values of and , and in equation (i) we get the required circle.