We know that one form of the equation of the circle is:

then, if we know that 3 points are on the circle, we can use them to find a system of equation. First, for point (2,1) we have:

for point (-5,-6) we have:

finally, for point (9,-6), the equation is:

then, we have the following system of equations:

which has the solution:

therefore, the equation of the circle that passes through the points (2,1), (-5,-6), and (9,-6) is:
