MathematicsAlgebraMedium

Completing the Square

Also known as:perfect square methodvertex form conversion

Completing the square is an algebraic technique for transforming a quadratic expression ax² + bx + c into the vertex form a(x − h)² + k by adding and subtracting a carefully chosen constant. This method reveals the vertex of a parabola directly and is used to derive the quadratic formula, solve quadratic equations, and convert conic section equations to standard form. It is a foundational technique in algebra, calculus (completing the square for integration), and analytic geometry.

Key Formula

ax² + bx + c = a(x + b/(2a))² − (b²−4ac)/(4a)

LaTeX: ax^2 + bx + c = a\left(x + \frac{b}{2a}\right)^2 - \frac{b^2 - 4ac}{4a}

SymbolMeaningUnit
acoefficient of x²dimensionless
bcoefficient of xdimensionless
cconstant termdimensionless
hx-coordinate of vertex: h = −b/(2a)dimensionless
ky-coordinate of vertex: k = c − b²/(4a)dimensionless

Worked Example

Problem

Solve 2x² − 8x + 3 = 0 by completing the square.

Solution

Step 1: Divide through by 2: x² − 4x + 3/2 = 0. Step 2: Move constant: x² − 4x = −3/2. Step 3: Add (−4/2)² = 4 to both sides: x² − 4x + 4 = −3/2 + 4 = 5/2. Step 4: Write as perfect square: (x − 2)² = 5/2. Step 5: Take square roots: x − 2 = ±√(5/2) = ±√10/2. Step 6: Solve: x = 2 ± √10/2.

Answer

x = 2 ± √10/2 ≈ 2 ± 1.581, so x ≈ 3.581 or x ≈ 0.419

Steps for Completing the Square (Monic Quadratic x² + bx + c)

StepActionExpression After StepNotes
1Write quadraticx² + bx + cCoefficient of x² must be 1
2Move constantx² + bx = −cIsolate x terms
3Add (b/2)² to both sidesx² + bx + (b/2)² = −c + (b/2)²Creates perfect square
4Factor left side(x + b/2)² = −c + b²/4Perfect square trinomial
5Solve for xx + b/2 = ±√(−c + b²/4)Take square root both sides
6Isolate xx = −b/2 ± √(b²/4 − c)Final solutions

Interactive Tools

Desmos

Graph parabolas in vertex form to visualize completing-the-square results.

Open Tool

Khan Academy — Completing the Square

Step-by-step lessons and exercises on completing the square.

Open Tool

Wolfram Alpha

Verify vertex form conversions and solutions by entering quadratic expressions.

Open Tool
Geometric illustration of completing the square by adding a corner to form a full square

Wikimedia Commons, CC BY-SA

Related Terms

The phrase "completing the square" is a literal geometric description: adding a smaller square region to an L-shaped figure to complete a larger square. The method was known to ancient Babylonian mathematicians (c. 2000 BCE) and was formalised algebraically by the Persian mathematician al-Khwarizmi in his 9th-century work "Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala."

algebraquadraticvertex-formparabolasolving-equationsal-khwarizmi