The abscissa and ordinates of the points A and B are the roots of the equations respectively.
Equation of circle with AB as diameter is
If roots of are
and
then
Similarly if roots of then
Now, the equation of the required circle is
Study 40% syllabus and score up to 100% marks in JEE