Completing the Square to Solve Equations
Problem
Solve x²+6x+2=0 by completing the square. Animate building the perfect square geometrically.
Explanation
What is "completing the square"?
Completing the square rewrites as a perfect square minus a correction term. This lets you solve quadratics by taking a square root instead of using the formula.
Step-by-step solution: Solve
Step 1 — Move the constant to the right side:
Step 2 — Take half the coefficient of , then square it. Half of 6 is 3; . Add 9 to BOTH sides:
Step 3 — The left side is now a perfect square:
Step 4 — Take the square root of both sides (don't forget ±):
Step 5 — Solve for :
Step 6 — Check (using ): ✓
The geometric picture
"Completing the square" literally means building a square. You have an square and a rectangle. Cut the rectangle in half ( each) and attach to two sides of the square. You get an square minus the missing corner — that's the 9 you add.
Why learn this?
Completing the square is how the quadratic formula is derived, and it's essential for putting conics in standard form, vertex form of parabolas, and integration techniques in calculus.
Try it in the visualization
Adjust and . Watch the geometric square being built step by step. The parabola shifts to show the vertex form, and the roots appear on the x-axis.
Interactive Visualization
Parameters
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.