Analytic (Coordinate) Geometry

completing the square for a circle

Sometimes a circle arrives in disguise — written as something like x^2 + y^2 - 6x + 8y - 11 = 0, with the squared terms scattered and no center or radius in sight. Completing the square is the algebraic tidying that folds this expanded mess back into the standard form (x - h)^2 + (y - k)^2 = r^2, where the center and radius are plain to read.

The trick rests on the identity x^2 - 6x = (x - 3)^2 - 9: to turn x^2 - 6x into a perfect square you take half of the x-coefficient (-6/2 = -3), square it (9), and add then subtract it. Work the x-terms and y-terms separately. For x^2 + y^2 - 6x + 8y - 11 = 0: group as (x^2 - 6x) + (y^2 + 8y) = 11; complete each square, (x^2 - 6x + 9) + (y^2 + 8y + 16) = 11 + 9 + 16 — note that whatever you add on the left you must add on the right to keep the equation balanced; this gives (x - 3)^2 + (y + 4)^2 = 36. Now read off: center (3, -4), radius sqrt(36) = 6.

This is the standard way to extract the geometry from a 'general equation of a circle' x^2 + y^2 + Dx + Ey + F = 0. One honest check is built in: after completing the square the right-hand side must be positive to be a genuine circle. If it comes out zero, the 'circle' is a single point (radius 0); if it comes out negative, there are no real points at all — the equation describes an imaginary circle and graphs as nothing. Always read the sign of that final number.

Find the center and radius of x^2 + y^2 + 2x - 10y + 17 = 0. Group: (x^2 + 2x) + (y^2 - 10y) = -17. Complete: (x^2 + 2x + 1) + (y^2 - 10y + 25) = -17 + 1 + 25 = 9, so (x + 1)^2 + (y - 5)^2 = 9. Center (-1, 5), radius sqrt(9) = 3.

Half the coefficient, squared, added to both sides — then the center and radius fall out.

Add the same constants to both sides, or you change the equation. And after finishing, check the right side: positive gives a real circle, zero gives a single point, negative gives no real graph at all.

Also called
finding center and radius by completing the square化圓為標準式配方法