Completing the Square: Geometry of Algebra

April 12, 2026

Problem

Transform x²+6x+5 into (x+3)²−4. Show the geometric square-building process that makes this algebraic identity visual.

Explanation

What is completing the square?

Completing the square rewrites x2+bx+cx^2 + bx + c as (x+h)2+k(x + h)^2 + k — the vertex form. This reveals the vertex of the parabola and makes it easy to solve the equation.

Step-by-step: Transform x2+6x+5x^2 + 6x + 5 into vertex form

Step 1 — Focus on x2+6xx^2 + 6x. Take half the coefficient of xx: 6/2=36/2 = 3. Square it: 32=93^2 = 9.

Step 2 — Add and subtract 9 (adding zero in a clever way):

x2+6x+99+5x^2 + 6x + 9 - 9 + 5

Step 3 — The first three terms form a perfect square:

(x+3)29+5=(x+3)24(x + 3)^2 - 9 + 5 = (x + 3)^2 - 4

Result: x2+6x+5=(x+3)24x^2 + 6x + 5 = (x + 3)^2 - 4.

Vertex: (3,4)(-3, -4). The parabola opens upward with minimum at y=4y = -4.

Check: (x+3)24=x2+6x+94=x2+6x+5(x+3)^2 - 4 = x^2 + 6x + 9 - 4 = x^2 + 6x + 5

The geometric picture

x2+6xx^2 + 6x is an xx-by-xx square plus a 66-by-xx rectangle. Split the rectangle into two 33-by-xx pieces and attach to two sides of the square → you get an (x+3)(x+3)-by-(x+3)(x+3) square with a 3×33 \times 3 corner missing. Adding 9 fills the corner.

Why learn this?

Completing the square is used to: (1) derive the quadratic formula, (2) find the vertex of a parabola, (3) rewrite conic equations in standard form, (4) integrate certain expressions in calculus.

Try it in the visualization

Adjust bb and cc. The algebraic steps animate. The parabola shifts to show the vertex form. The geometric square-building visualization shows how the rectangle becomes a perfect square.

Interactive Visualization

Parameters

6.00
5.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day