Last verified · v1.0
Calculator · math
Completing The Square Calculator
Convert any quadratic ax^2 + bx + c to vertex form, find roots and discriminant by completing the square, with full step-by-step work.
Inputs
Result
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Is Completing the Square?
Completing the square is an algebraic technique that transforms a quadratic expression in standard form ax² + bx + c into vertex form a(x + h)² + k. This method reveals the parabola's vertex coordinates, simplifies root-finding, and provides the algebraic backbone for deriving the quadratic formula itself. According to West Texas A&M University College Algebra Tutorial 17, completing the square applies universally to every quadratic equation, including those whose trinomials do not factor over the integers — making it one of the most powerful and generalizable solution strategies in algebra.
The Completing the Square Formula
For the general quadratic equation ax² + bx + c = 0, the completed-square equivalent is:
a(x + b/(2a))² + (c − b²/(4a)) = 0
The quantity h = −b/(2a) gives the x-coordinate of the vertex (and the axis of symmetry), while k = c − b²/(4a) gives the y-coordinate. The expression Δ = b² − 4ac is the discriminant, which classifies the roots as real and distinct (Δ > 0), one repeated real root (Δ = 0), or complex conjugates (Δ < 0).
Step-by-Step Derivation
- Begin with ax² + bx + c = 0.
- Divide every term by a (valid since a ≠ 0): x² + (b/a)x + c/a = 0.
- Move the constant to the right side: x² + (b/a)x = −c/a.
- Add the square of half the linear coefficient, (b/(2a))², to both sides: x² + (b/a)x + b²/(4a²) = −c/a + b²/(4a²).
- Factor the left side as a perfect square: (x + b/(2a))² = b²/(4a²) − c/a.
- Multiply through by a to restore the original leading coefficient: a(x + b/(2a))² + (c − b²/(4a)) = 0.
Variable Definitions
- a — Leading coefficient of the x² term. Must be non-zero; dividing by a is the first algebraic step.
- b — Coefficient of the linear x term. Can be any real number, including zero.
- c — Constant term. Can be any real number, including zero.
- h = −b/(2a) — Horizontal shift; x-coordinate of the vertex and the equation's axis of symmetry.
- k = c − b²/(4a) — Vertical shift; y-coordinate of the vertex. Equals the minimum when a > 0 or maximum when a < 0.
- Δ = b² − 4ac — Discriminant; determines the number and type of solutions.
Worked Example
Solve 2x² + 8x + 6 = 0 (a = 2, b = 8, c = 6) by completing the square.
- Compute h = −8 / (2 × 2) = −2.
- Compute k = 6 − 64/8 = 6 − 8 = −2.
- Write vertex form: 2(x + 2)² − 2 = 0. The vertex is at (−2, −2).
- Solve: (x + 2)² = 1, so x + 2 = ±1, giving x = −1 or x = −3.
- Verify: 2(−1)² + 8(−1) + 6 = 2 − 8 + 6 = 0. Correct.
- Discriminant check: Δ = 64 − 48 = 16 > 0, confirming two distinct real roots.
Applications
- Graphing parabolas: Vertex form directly supplies the vertex coordinates for accurate sketching without a table of values.
- Deriving the quadratic formula: Completing the square on the general equation ax² + bx + c = 0 yields x = (−b ± √(b² − 4ac)) / (2a), the universal quadratic formula.
- Physics and engineering: Projectile height h(t) = −4.9t² + v0t + h0 is optimized by completing the square to find the exact time of maximum height without calculus.
- Circle equations: The general conic x² + y² + Dx + Ey + F = 0 converts to standard circle form (x − h)² + (y − k)² = r² by completing the square in both x and y.
- Optimization: Quadratic cost, profit, or area functions achieve their extreme value at the vertex, read directly from vertex form.
Methodology and Sources
This calculator implements the algebraic procedure documented in West Texas A&M University College Algebra Tutorial 17 and cross-validated against the procedural standards in the University of Wisconsin-Whitewater Methods for Solving Quadratic Equations. Step-by-step output format conforms to the algebraic reasoning benchmarks published in the California Mathematics Standards for Algebra, ensuring compatibility with K–12 and undergraduate curricula nationwide.
Reference