# Equation of a Circle Given Two Points and Tangent Line

Consider the general equation circle is given by

If the given circle is passing through two points, say, $A\left( {{x_1},{y_1}} \right)$and $B\left( {{x_2},{y_2}} \right)$, 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 $ax + by + d = 0\,\,\,{\text{ - - - }}\left( {{\text{iv}}} \right)$ 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 $\left( { - g, - f} \right)$ 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 $r = \sqrt {{g^2} + {f^2} - c}$, 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 $g,f,c$ 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 $A\left( {{x_1},{y_1}} \right)$and $B\left( {{x_2},{y_2}} \right)$, so these points must satisfy the above equation of circle, we have

Since the given line $ax + by + d = 0\,\,\,{\text{ - - - }}\left( {{\text{iv}}} \right)$ touches the circle.
So the distance of the center of the circle from the given line $ax + by + d = 0$ must be equal to its radius, i.e.

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