# Equation of Circle through Two Points and Line Passes through its Center

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 + {c_1} = 0$ passes through the centre $\left( { - g, - f} \right)$of the circle.

To evaluate the equation of required circle, we must the find values of $g,f,c$ from the above equation (i), (ii) and (iii) and put these in the first equation of circle. We can solve these three using the method of simultaneous equations.

Example: Find the equation of circle through two points$\left( {1,2} \right)$,$\left( {2,3} \right)$ and whose centre is on the straight line$x - y + 1 = 0$.
Solution: Consider the required equation of circle in general form as

We know that the given points $\left( {1,2} \right)$, $\left( {2,3} \right)$ lies on the circle and now put these points in the above equation of circle (A) becomes for these three points

Since the centre of the circle is $\left( { - g, - f} \right)$ and this centre lies on the given straight line, so that $\left( { - g, - f} \right)$ must satisfy the equation of line as

Now solving the equations (i), (ii) and (ii), using method of simultaneous equation and we the values of $f = - \frac{5}{2}$ ,$g = - \frac{3}{2}$ and $c = 8$
Now putting all these three values in the first equation (A), to get the required equation of circle passing through two points and its centre lies on the line.

Which is the required equation of circle.