Solving Quadratic Equations by Completing the Square
Enter the coefficients a, b, c of the quadratic equation ax² + bx + c = 0 to solve it by completing the square.
What Is the Completing the Square Method?
Completing the square is an algebraic technique used to solve quadratic equations of the form (where ). The central idea is to rewrite the equation so that the left‑hand side becomes a perfect square trinomial—an expression like . Once in this form, you can take the square root of both sides and solve for . This method always works for any quadratic, whether the coefficients are integers, fractions, or irrational numbers, and it provides a clear path to both real and complex solutions.
The process is also known as the complete the square formula, and it serves as a reliable alternative to the quadratic formula. Many quadratic equation solver tools rely on this method because it is systematic and easy to implement.
Why Is It Called "Completing the Square"?
The name comes from the step where we add a constant term to transform into a perfect square. Recall that . To match the first two terms , we set , so . The missing constant needed to complete the square is . By adding and subtracting this term, we create a perfect square trinomial.
Step‑by‑Step Procedure (The Completing the Square Formula)
We assume the quadratic is in standard form .
-
Make the leading coefficient 1 (if ): divide the entire equation by .
-
Move the constant term to the right side:
-
Complete the square on the left side. Take half of the coefficient of (which is ), square it, and add this value to both sides:
The left side now factors as:
-
Simplify the right side by combining the terms:
-
Solve by taking the square root of both sides. Consider the sign of the right‑hand side:
- If , there are two distinct real solutions: which simplifies to the familiar quadratic formula.
- If , one real solution (a double root): .
- If , no real solutions exist; the solutions are complex numbers.
When Should You Use Completing the Square?
The completing the square method is a universal solving quadratics by completing the square technique—it can handle any quadratic, even those with irrational coefficients or those that have no real roots. For many equations, especially those where the coefficient of is even, the method is faster and more elegant than applying the quadratic formula directly. It also has the advantage of revealing the vertex form of a parabola, making it a valuable tool in calculus and graphing.
Worked Examples
Example 1: A Perfect Square Already Present
Solve .
Notice that the left side is already a perfect square: . Taking the square root gives , so . This is a single (repeated) real root.
Example 2: Completing the Square with an Even Middle Coefficient
Solve .
Isolate the terms with :
Take half of the coefficient of (half of 6 is 3) and square it (9). Add 9 to both sides:
Take square roots: , so or .
Example 3: An Equation with No Real Solutions
Solve .
Rewrite: . Half of is ; its square is 1. Add 1 to both sides:
The right side is negative. Since no real number squared equals a negative number, the equation has no real solutions—it has two complex conjugate solutions instead.
Additional Tips
- When using an online quadratic equation solver that implements completing the square, the tool will typically display the intermediate steps shown here, making it easy to check your own work.
- The method is closely related to deriving the quadratic formula itself—in fact, applying the steps above to the general equation leads directly to .
- Mastering solving quadratics by completing the square gives you a deeper understanding of the structure of quadratic equations and prepares you for more advanced topics like conic sections.
FAQ
1. How does the completing the square method work?
The method rewrites a quadratic equation ax²+bx+c=0 into the form (x+d)²=e by adding and subtracting the term (b/(2a))². This creates a perfect square on the left side, allowing you to solve for x by taking the square root of both sides.
2. When should I use completing the square instead of the quadratic formula?
Completing the square always works and can be faster for equations with an even coefficient of x or when you need to derive the vertex form of a parabola. It also helps you understand the derivation of the quadratic formula itself.
3. What does it mean if the right side after completing the square is negative?
If the right side (e) is negative, the equation has no real solutions because a square cannot equal a negative number. The solutions are complex (involving imaginary numbers).
4. Can completing the square be used if the leading coefficient is not 1?
Yes. First divide the entire equation by the leading coefficient a to make it 1, then proceed with the standard steps. The formula adapts smoothly to this case.
5. What is the formula for completing the square?
For a monic quadratic x²+bx+c=0, the key step is x²+bx+(b/2)² = (x+b/2)². For the general form ax²+bx+c=0, after dividing by a, the added term is (b/(2a))².
How to Use
- Enter the coefficients a, b, and c of your quadratic equation ax² + bx + c = 0.
- The calculator automatically solves the equation using the completing the square method with step-by-step guidance.
- Review the solutions and detailed steps showing how each operation transforms the equation toward the final answer.