1
-0
0
1
0
-0
0
1
0
-0
0
0
1
-0
0
1
0
-0
0
1
0
-0
0
0
The Completing the Square Calculator transforms any quadratic expression ax² + bx + c into its equivalent vertex form a(x − h)² + k. This powerful algebraic technique reveals the vertex of the parabola, its axis of symmetry, and the extreme value of the function—all in one elegant rewrite.
Completing the square is one of the most important algebraic techniques taught in secondary mathematics. It serves as the foundation for deriving the quadratic formula, understanding conic sections, and performing integral transforms in calculus. By rewriting a quadratic in vertex form, you gain immediate geometric insight: the vertex (h, k) tells you exactly where the parabola reaches its maximum or minimum, while the coefficient a determines whether it opens upward or downward and how “wide” or “narrow” it is.
The technique works by manipulating the expression $$ax^2 + bx + c$$ into the form $$a(x - h)^2 + k$$. The key insight is that \((x - h)^2 = x^2 - 2hx + h^2\), so you choose \(h\) to match the linear coefficient and then adjust the constant term accordingly. Specifically, $$h = -\frac{b}{2a}$$ and $$k = c - \frac{b^2}{4a}$$.
In practical applications, completing the square appears in many contexts beyond solving equations. In optimization, converting an objective function to vertex form immediately reveals its optimum. In statistics, completing the square is used to derive the normal distribution’s probability density function. In physics, it simplifies energy expressions in harmonic oscillator problems. In computer graphics, it converts general conic equations to standard forms for rendering.
This calculator also provides the roots of the equation ax² + bx + c = 0 when they exist as real numbers, since the vertex form makes the solution transparent: setting \(a(x - h)^2 + k = 0\) gives \(x = h \pm \sqrt{-k/a}\), which only has real solutions when \(-k/a \geq 0\). This is equivalent to the discriminant \(\Delta = b^2 - 4ac \geq 0\).
For students, seeing the step-by-step transformation from standard form to vertex form builds deep algebraic fluency. For professionals, the calculator provides instant conversion that would otherwise require careful arithmetic—particularly useful when working with messy decimal coefficients from real-world data fitting or regression analysis.
Understanding completing the square also lays the groundwork for more advanced techniques: completing the square in multiple variables is essential for classifying quadratic forms, diagonalizing symmetric matrices, and analyzing multivariable optimization problems in higher mathematics and machine learning.
Given $$ax^2 + bx + c$$, the goal is to express it as $$a(x - h)^2 + k$$.
Step 1: Factor out \(a\) from the first two terms:
$$a\left(x^2 + \frac{b}{a}x\right) + c$$
Step 2: Take half the coefficient of \(x\) inside the parentheses, then square it:
$$\left(\frac{b}{2a}\right)^2 = \frac{b^2}{4a^2}$$
Step 3: Add and subtract this value inside the parentheses:
$$a\left(x^2 + \frac{b}{a}x + \frac{b^2}{4a^2} - \frac{b^2}{4a^2}\right) + c$$
Step 4: Rewrite as a perfect square plus a constant:
$$a\left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a} + c$$
Therefore: $$h = -\frac{b}{2a}, \quad k = c - \frac{b^2}{4a}$$
The vertex form \(a(x - h)^2 + k\) immediately reveals the vertex at \((h, k)\).
The output h is the x-coordinate of the vertex (axis of symmetry), and k is the y-coordinate (the minimum if a > 0, or the maximum if a < 0). Together they define the vertex form: a(x − h)² + k. If the discriminant is non-negative, x&sub1; and x&sub2; are the roots where the parabola crosses the x-axis.
Inputs
Results
x² + 6x + 5 = (x + 3)² − 4 = (x − (−3))² + (−4). Vertex at (−3, −4). Roots: x = −1 and x = −5.
Inputs
Results
2x² − 12x + 22 = 2(x − 3)² + 4. Vertex at (3, 4). Discriminant < 0, so no real roots—the parabola sits entirely above the x-axis.
Completing the square is the algebraic process of rewriting a quadratic expression ax² + bx + c as a(x − h)² + k, where (h, k) is the vertex. The name comes from literally “completing” a partial square expression to make it a perfect square trinomial.
It reveals the vertex and axis of symmetry of a parabola, provides a method to derive the quadratic formula, helps solve quadratic equations, converts circles/ellipses to standard form, and simplifies integrals in calculus.
In a(x − h)² + k: a determines the direction and width (a > 0 opens up, a < 0 opens down), h is the x-coordinate of the vertex (axis of symmetry), and k is the y-coordinate (minimum or maximum value).
The process still works. Factor out a from the quadratic and linear terms first, complete the square inside the parentheses, then distribute a back. The result is a(x − h)² + k with h = −b/(2a) and k = c − b²/(4a).
Yes. Setting a(x − h)² + k = 0, you get (x − h)² = −k/a, so x = h ± √(−k/a). This only yields real solutions when −k/a ≥ 0, which is equivalent to the discriminant b² − 4ac ≥ 0.
The quadratic formula is derived by applying completing the square to the general equation ax² + bx + c = 0. The vertex form leads directly to x = −b/(2a) ± √(b² − 4ac)/(2a), which is exactly the quadratic formula.
Geometrically, converting to vertex form is equivalent to translating the standard parabola y = ax² so that its vertex moves from the origin to the point (h, k). The vertex form makes the translation explicit.
Yes, as long as a ≠ 0, every quadratic ax² + bx + c can be rewritten in vertex form a(x − h)² + k. The conversion is always possible and always unique.
A perfect square trinomial is an expression of the form (x + m)² = x² + 2mx + m². The key property is that the constant term equals the square of half the linear coefficient. Completing the square creates such a trinomial from any quadratic.
In integral calculus, completing the square transforms integrands like 1/(ax² + bx + c) into forms amenable to inverse trigonometric substitutions. It is also used in Laplace transforms and in deriving the Gaussian integral.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Quadratic Formula Calculator
Algebra Calculators - Equation Solvers
Cubic Equation Calculator
Algebra Calculators - Equation Solvers
System of Equations Calculator
Algebra Calculators - Equation Solvers
Elimination Method Calculator
Algebra Calculators - Equation Solvers
Substitution Method Calculator
Algebra Calculators - Equation Solvers
Simultaneous Equations Calculator
Algebra Calculators - Equation Solvers