Completing The Square Works - Step by Step Algebra
Use this completing the square works calculator to rewrite any ax² + bx + c = 0 as a(x + b/2a)² + k, follow each step, and read the roots plus the discriminant.
Completing The Square Works
Results
What Is Completing The Square Works?
Completing the square works is a guided walk-through of the algebraic technique that rewrites any quadratic ax² + bx + c = 0 as a perfect square trinomial plus a constant, and from there isolates the variable to produce the roots. The method is general: it works for monic and non-monic quadratics, for perfect square trinomials, and for quadratics whose discriminant is positive, zero, or negative. This page makes the underlying identity explicit so you can follow each step instead of trusting the formula on faith.
- • Prove the method always works: Test several quadratics and confirm the same five steps produce a complete answer every time.
- • Learn the algebra visually: Watch b / 2a appear as the half that turns the left side into a perfect square, then read the roots.
- • Derive the quadratic formula from scratch: Run the derivation with a, b, c as symbols and see x = (-b ± √(b² - 4ac)) / (2a) appear as a special case.
- • Check homework or exam work: Type in the coefficients from a homework problem and compare each line to what you wrote, to catch sign errors in b / 2a or the added term.
Completing the square is one of two general methods for solving quadratics; the other is the quadratic formula. The two methods are equivalent because the formula is the final line of completing the square after the algebra has been carried out in full. Running the derivation makes that connection obvious, even for students who have only seen the formula handed to them.
The method shows up in calculus, statistics, and physics whenever a quadratic needs to be reorganised, for example when evaluating an integral, deriving the variance of a probability distribution, or moving a parabola into vertex form.
When you want a randomised set of problems to apply the method to, completing the square practice calculator generates fresh ax² + bx + c = d exercises and walks through each solution.
How Completing The Square Works
The calculator divides by a, moves the constant to the right, halves the linear coefficient, squares that value, recognises the perfect square, and takes square roots.
- a: Coefficient of x² in ax² + bx + c = 0. Must be non-zero.
- b: Coefficient of x. Half of b, divided by a, becomes the linear term inside the perfect square.
- c: Constant term. It is moved to the right side before the added term is computed.
- Added term (b / 2a)²: Square of half the linear coefficient. Adding it to both sides turns the left side into a perfect square trinomial.
- Discriminant b² - 4ac: Value under the radical that decides whether the equation has two real, one repeated, or two complex roots.
The same five steps work for every quadratic because (x + b/2a)² = x² + (b/a)x + (b/2a)² always absorbs the linear term once the constant is moved. The discriminant b² - 4ac appears naturally as the numerator of (b² - 4ac) / (4a²).
If the discriminant is positive, the right side is positive and the calculator takes a real square root for two distinct real roots. If it is zero, there is one repeated root at the vertex. If it is negative and the complex-roots toggle is on, the calculator reports h ± bi.
Worked example: x² - 3x - 4 = 0
Coefficients: a = 1, b = -3, c = -4
Added term: (-3 / 2)² = 2.25. Right side: (b² - 4ac) / 4a² = 6.25.
(x - 3/2)² = 25 / 4, so x = 4 or x = -1.
Discriminant 25, the trinomial is (x - 3/2)², and the roots are real. The vertex sits at x = 1.5.
According to Khan Academy, the identity (x + b/2a)² absorbs the linear term of ax² + bx + c for any real coefficients
Once the derivation ends, the final line of the method is the quadratic formula, and quadratic formula calculator lets you skip the algebra and jump straight to the two roots plus the vertex.
Key Concepts Behind Completing The Square
Four ideas make the method click: the identity that drives it, the added term, the discriminant sign, and the root split.
Perfect square identity
The identity (x + k)² = x² + 2kx + k² is the engine of the method. Choosing k = b / 2a absorbs the linear term and leaves k² as the value to add to both sides.
Added term (b / 2a)²
After dividing by a, the linear term is (b / a)x. Half of that coefficient is b / 2a, and squaring it gives the value (b / 2a)² that turns the left side into a perfect square trinomial.
Discriminant sign
The right-hand side value (b² - 4ac) / (4a²) carries the sign of the discriminant. Positive yields two real roots, zero yields one repeated root, negative yields two complex roots.
Real vs complex roots
A real square root only exists when the right side is non-negative. When the right side is negative, the calculator reports the roots as h ± bi, a matched complex conjugate pair.
Memorise (x + k)² = x² + 2kx + k² first. It is the only algebraic fact that completing the square relies on, and the same identity is reused in calculus.
The added term is the smallest number to add to x² + (b/a)x to make a perfect square. The method is constructive: it tells you which value to add, shows the resulting trinomial, and leaves the rest to the square root. That is why it always works, regardless of which real coefficients you start with.
If the right-hand side value comes back negative, the discriminant is the next thing to inspect, and discriminant calculator classifies the sign of b² - 4ac together with the matching root count.
How to Use This Completing The Square Works Calculator
Type the three coefficients of the quadratic, pick a precision, decide whether to show complex roots, and read the step by step result with the added term, perfect square trinomial, and roots.
- 1 Write the equation in standard form: Rearrange the quadratic as ax² + bx + c = 0 so the leading coefficient is on the left and the equation equals zero.
- 2 Enter coefficients a, b, and c: Type the numbers in front of x², x, and the constant. Watch the sign of b (b = -3 in x² - 3x - 4 is entered as -3).
- 3 Pick a precision: Choose how many decimal places to use. Default 4 is enough.
- 4 Choose whether to show complex roots: Switch the toggle on to print a ± bi for negative discriminants. Switch it off if you only care about real roots.
- 5 Read the added term and right side: The added term is (b / 2a)² and the right side is (b² - 4ac) / (4a²). Together they show the perfect square trinomial.
- 6 Use the roots and vertex to finish: Read the roots, note the discriminant, and combine with the vertex x = -b / 2a to sketch the parabola.
Trying 2x² + 4x - 6 = 0 returns added term 1, right side 4, discriminant 64, real roots x = 1 and x = -3, and vertex x = -1, enough to confirm 2(x + 1)² - 8 = 0.
When the added term makes the left side a perfect square trinomial, factoring trinomials calculator turns the result into a product of two linear factors in one step.
Benefits of Using This Completing The Square Works Calculator
Running the derivation step by step reinforces the algebra, surfaces sign errors quickly, and turns the method into a tool you can reuse for integrals, vertex form, and the quadratic formula.
- • See the method in action: Each step is written out, so the perfect square identity and the added term become concrete instead of abstract.
- • Catch sign errors early: If your paper says b / 2a = +1.5 but the calculator reports -1.5, you know which step to revisit.
- • Learn the quadratic formula naturally: The final line of the derivation is the quadratic formula, so the two methods stop feeling like separate topics.
- • Cover real, repeated, and complex roots: The same five steps work when the discriminant is positive, zero, or negative, which is the whole point of the method.
- • Reuse the result in calculus and physics: Vertex form a(x - h)² + k is the form for integrals, completing the square in probability, or the turning point of a projectile.
Across a homework set, the step by step view is the fastest way to turn a guess into a confirmed answer. The calculator also doubles as a self-check tool: type in textbook coefficients and confirm every line matches the textbook.
After the vertex form a(x - h)² + k is in hand, parabola calculator reads the focus, directrix, and axis of symmetry so the parabola is fully described.
Factors That Affect Completing The Square Results
The method always succeeds, but four conditions change how the result looks.
Sign of the leading coefficient a
When a is negative, the divide-by-a step flips the signs of b and c, and the vertex form opens downward. The roots themselves do not change.
Magnitude of b compared to a
The added term is (b / 2a)², so a very small a makes the added term large and the algebra numerically unstable.
Discriminant sign
Positive means the right side is positive and the roots are real. Zero means the right side is zero and the parabola touches the x-axis. Negative means the right side is negative and the roots are complex conjugates.
Complex-roots toggle
When the toggle is off, the calculator reports 'no real root' for negative discriminants. When on, it switches the output to h ± bi form for complex analysis or electrical engineering.
- • This tool accepts real coefficients only. Quadratics with complex coefficients use a different completion and are not covered.
- • The display rounds the added term, right side, discriminant, and roots to the chosen precision. The exact form is preserved in concept but not always in symbolic form on screen.
- • When a is extremely close to zero, the divide-by-a step amplifies rounding errors. Treat the result with caution.
The method always works for any real coefficients a, b, c with a ≠ 0, which is why the verdict at the bottom of the result panel is always the same line. A small change in b or c can flip the discriminant and move the result from two real roots to two complex roots.
According to Cuemath, completing the square always works because the identity (x + b/2a)² = x² + (b/a)x + (b/2a)² is true for every quadratic
Frequently Asked Questions
Q: Does completing the square always work for quadratic equations?
A: Yes. The identity (x + b/2a)² = x² + (b/a)x + (b/2a)² absorbs the linear term for every real a, b, c, so the method produces a complete answer even when the discriminant is negative and the roots are complex.
Q: How do you complete the square for ax^2 + bx + c = 0?
A: Divide by a, move c to the right side, take half of the linear coefficient and square it, add that value to both sides, recognise the left side as a perfect square trinomial, then take square roots and isolate x.
Q: What value do you add to both sides when completing the square?
A: You add the square of half the linear coefficient. After dividing by a the added value is (b / 2a)², and it is the smallest number that turns x² + (b/a)x into a perfect square trinomial.
Q: Can completing the square produce complex roots?
A: Yes. When b² - 4ac is negative, the right-hand side of (x + b/2a)² is negative, so no real number squared equals that value. The calculator reports the roots as h ± bi, which are always a complex conjugate pair.
Q: How is completing the square different from the quadratic formula?
A: The quadratic formula is the final line of completing the square. Running the derivation on this page makes the formula appear, so the two methods are the same algebra written in two different lengths.
Q: Why does completing the square work for every quadratic?
A: The method relies on the identity (x + k)² = x² + 2kx + k², which is true for any real k. Choosing k = b / 2a absorbs the linear term of ax² + bx + c, leaving a perfect square trinomial plus a constant.