Completing the Square

Summary

Completing the square rewrites a quadratic expression as a perfect square plus a constant. In analytic geometry it reveals centers and radii of circles and the standard forms of other conics.

Prerequisites

Polynomial algebra (expanding and factoring). Helpful: Polynomials and Rational Functions. Hub: Analytic Geometry.

Object / Concept

Given a monic quadratic in one variable,

x2+bx+c,

completing the square produces

x2+bx+c=(x+b2)2(b2)2+c.

For a leading coefficient a0 ,

ax2+bx+c=a[(x+b2a)2(b2a)2]+c.

Coordinate System

Usually the Cartesian plane or space, when rewriting equations such as x2+y2+Dx+Ey+F=0 .

Notation

Symbol Meaning
a,b,c coefficients of ax2+bx+c
(h,k) center after rewriting in completed-square form

Conditions / Assumptions

Equations

One variable (monic)

x2+bx=(x+b2)2(b2)2.

Circle general form

x2+y2+Dx+Ey+F=0

becomes, after completing the square in x and in y ,

(x+D2)2+(y+E2)2=D2+E24F4,

provided the right-hand side is positive (circle), zero (point), or negative (empty over the reals).

Procedure

  1. Group x terms (and y terms if present); move constants to the other side if solving/identifying.
  2. Factor out the leading coefficient of each quadratic variable if it is not 1 .
  3. Add and subtract (b2a)2 inside each group (or add the same quantity to both sides of an equation).
  4. Write each group as a square and simplify constants.
  5. Read off center, radius, or other geometric data.

Worked Example

Rewrite x2+y26x+4y3=0 and identify the circle.

x26x+y2+4y=3,(x26x+9)+(y2+4y+4)=3+9+4,(x3)2+(y+2)2=16.

Center (3,2) , radius 4 .

Common Mistakes

Connections

References

Completing the square for conics and quadratics is standard in OpenStax Precalculus analytic geometry material.[1]


  1. OpenStax, Precalculus 2e, Analytic Geometry / Quadratic Functions, https://openstax.org/details/books/precalculus-2e ↩︎