What is completing the square?
Completing the square is an algebraic technique for solving quadratic equations of the form ax² + bx + c = 0. It works by rewriting the quadratic expression as a perfect square trinomial, which makes it straightforward to isolate x.
The method converts the standard form ax² + bx + c into the vertex form a(x - h)² + k, where (h, k) is the vertex of the parabola. This transformation is useful not just for solving equations but also for graphing parabolas, finding maximum and minimum values, and deriving the quadratic formula itself.
Completing the square always works, regardless of whether the roots are rational, irrational, or complex. It is one of the most fundamental techniques in algebra.
How to complete the square
The process follows a systematic sequence of steps.
**Step 1 — Start with the standard form:** Write the equation as ax² + bx + c = 0.
**Step 2 — Divide by a:** If a is not 1, divide every term by a to get x² + (b/a)x + (c/a) = 0.
**Step 3 — Move the constant:** Rearrange so the constant is on the right side: x² + (b/a)x = -(c/a).
**Step 4 — Add the completing term:** Add (b/2a)² to both sides. This makes the left side a perfect square.
**Step 5 — Factor the perfect square:** The left side becomes (x + b/2a)².
**Step 6 — Take the square root:** Take the square root of both sides, remembering the ± symbol.
**Step 7 — Solve for x:** Isolate x to get the two solutions.
**The vertex form result:** After completing the square, the equation can be written as a(x - h)² + k = 0, where h = -b/(2a) and k = c - b²/(4a).
Vertex form and the vertex
The vertex form a(x - h)² + k reveals the vertex of the parabola directly. The vertex is the point (h, k).
- If a > 0, the parabola opens upward and the vertex is the minimum point. - If a < 0, the parabola opens downward and the vertex is the maximum point. - The axis of symmetry is the vertical line x = h.
The value of the discriminant b² - 4ac tells you about the roots: - Discriminant > 0: two distinct real roots (parabola crosses x-axis twice) - Discriminant = 0: one repeated real root (parabola touches x-axis once) - Discriminant < 0: two complex roots (parabola does not cross x-axis)
When to use completing the square
Completing the square is the preferred method in several situations:
- **Finding the vertex**: When you need the vertex of a parabola to graph it or find its minimum or maximum value. - **Deriving the quadratic formula**: The quadratic formula is derived by completing the square on the general form ax² + bx + c = 0. - **Conic sections**: Completing the square is essential for converting conic section equations into standard form. - **Complex roots**: It handles complex roots naturally, since you can take the square root of a negative number. - **Exact answers**: When you need exact answers rather than decimal approximations.
For simple factorable quadratics, factoring is faster. For equations with messy coefficients, the quadratic formula (which is derived from completing the square) may be more direct. However, completing the square builds deeper understanding of the structure of quadratic equations.
How to use
1. Enter the coefficient a (the x² coefficient). This must not be zero. 2. Enter the coefficient b (the x coefficient). This can be any number including zero. 3. Enter the coefficient c (the constant term). This can be any number including zero. 4. Click "Solve by Completing the Square" to see the full solution. 5. Review the step-by-step process to follow each transformation. 6. Use the example preset buttons to explore common quadratic equations. 7. Check the vertex form result and the vertex coordinates for graphing.
FAQs
Q: What if coefficient a is not 1? A: The calculator handles any non-zero value of a. It divides through by a in the first step to produce x² + (b/a)x + (c/a) = 0 before completing the square.
Q: What do complex roots mean? A: When the discriminant (b² - 4ac) is negative, there are no real solutions. The roots are complex numbers of the form p + qi, where i is the square root of -1. The parabola does not cross the x-axis.
Q: How does completing the square relate to the quadratic formula? A: The quadratic formula x = (-b ± √(b² - 4ac)) / (2a) is derived by completing the square on the general equation ax² + bx + c = 0. The two methods are mathematically equivalent.
Q: What is vertex form and why does it matter? A: Vertex form a(x - h)² + k makes it easy to identify the vertex (h, k) and the direction the parabola opens. It is useful for graphing, finding maximum or minimum values, and solving optimization problems.
Q: Can completing the square solve any quadratic? A: Yes. Unlike factoring, completing the square works for every quadratic equation, including those with irrational or complex roots.
Q: How precise are the results? A: The calculator uses standard floating point arithmetic. Results are displayed with up to 6 significant figures to avoid noise from floating point rounding.
Explore Similar Tools
Explore more tools like this one:
- Quadratic Roots Calculator — Solve quadratic equations (ax² + bx + c = 0) using the... - Vertex Form Calculator — Convert quadratic equations to vertex form and visualize... - Quadratic Equation Solver — Solve quadratic equations of the form ax² + bx + c = 0... - Interactive Graphing Calculator — Full-featured function grapher with zoom, pan, sliders,... - Square Root Calculator — Find the square root, cube root, or any n-th root of a...