General second-degree equation representing a circle. Coefficients of x² and y² must be equal and non-zero; no xy term.
Expand the standard form (x−h)2+(y−k)2=r2:
x2−2hx+h2+y2−2ky+k2=r2
Rearranging:
x2+y2−2hx−2ky+(h2+k2−r2)=0
Setting g=−h, f=−k, c=h2+k2−r2:
x2+y2+2gx+2fy+c=0
Conditions for a valid circle: A general second-degree equation ax2+bxy+cy2+dx+ey+f=0 represents a circle if and only if:
- Coefficient of x2 = coefficient of y2 (both equal, non-zero)
- The xy coefficient is zero (no rotation)
- g2+f2−c>0 (non-imaginary radius)