Completing the Square Calculator
Convert quadratic expressions to vertex form and solve quadratic equations with step-by-step explanation. Learn the geometric meaning, master the technique, and understand why completing the square works.
Table of Contents
- 1What Is Completing the Square?
- 2The Geometric Meaning
- 3The General Formula
- 4Solving Quadratic Equations
- 5Step-by-Step Examples
- 6More Worked Examples
- 7Vertex Form and Graphing
- 8Deriving the Quadratic Formula
- 9Common Mistakes to Avoid
- 10Real-World Applications
- 11Practice Problems with Solutions
- 12Tips for Mastering the Technique
- 13Final Thoughts
Complete the Square
Enter the coefficients of a quadratic expression ax² + bx + c. The calculator will convert it to vertex form a(x − h)² + k and show each step. It will also solve the equation if you set it equal to zero.
Completing the Square – Complete Explanation
Completing the square is a fundamental algebraic technique that transforms a quadratic expression into a perfect square trinomial plus a constant. This process reveals the vertex of the parabola, provides a method for solving quadratic equations, and serves as the foundation for deriving the quadratic formula.
The Completed Square Form
For a quadratic ax² + bx + c: a(x − h)² + k where h = −b/(2a) and k = c − b²/(4a)
1. What Is Completing the Square?
Completing the square answers the question: "How can I rewrite a quadratic expression to expose its structure?" The technique involves adding and subtracting a carefully chosen constant to create a perfect square trinomial. This makes the quadratic's vertex, axis of symmetry, and roots immediately visible.
Key concepts:
- Perfect square trinomial: An expression like x² + 2px + p² that factors as (x + p)².
- Vertex form: The completed square form a(x − h)² + k directly shows the vertex (h, k).
- Solving tool: Completed square form allows solving quadratic equations by taking square roots.
- Geometric interpretation: The process literally "completes" a square in a geometric diagram.
2. The Geometric Meaning
Visualizing the Process
Consider x² + 6x as the area of an incomplete square:
x² + 6x
┌───┐ ┌─────────┐
│ │ │ │
│x² │ │ 6x │
│ │ │ │
└───┘ └─────────┘
To complete the square, add (6/2)² = 9:
┌───┬─────┐
│ │ │
│x² │ 3x │
│ │ │
├───┼─────┤
│ │ │
│3x │ 9 │
│ │ │
└───┴─────┘
Now the shape is a perfect square: (x + 3)²
The term "completing the square" comes from this geometric interpretation. You start with x² and bx, which form an incomplete square, and add (b/2)² to make it complete.
3. The General Formula
Completing the Square Formula
For ax² + bx + c: ax² + bx + c = a(x + b/(2a))² + (c − b²/(4a)) More commonly written as: a(x − h)² + k where: h = −b/(2a) k = c − b²/(4a)
Example: x² + 6x + 5
h = −6/2 = −3
k = 5 − 36/4 = 5 − 9 = −4
Therefore: x² + 6x + 5 = (x + 3)² − 4
4. Solving Quadratic Equations
Once a quadratic is in completed square form, solving the equation becomes straightforward — isolate the squared term and take square roots.
Solve x² + 6x + 5 = 0 Step 1: Complete the square: x² + 6x + 5 = (x + 3)² − 4 Step 2: Set equal to zero: (x + 3)² − 4 = 0 Step 3: Isolate the square: (x + 3)² = 4 Step 4: Take square roots: x + 3 = ±2 Step 5: Solve for x: x = −3 ± 2 x₁ = −1, x₂ = −5
5. Step-by-Step Examples
Example 1: Leading Coefficient of 1
Complete the square for x² + 8x + 12. Step 1: Take half of 8: 4 Step 2: Square it: 16 Step 3: Add and subtract 16: x² + 8x + 16 − 16 + 12 Step 4: Factor the perfect square: (x + 4)² − 16 + 12 Step 5: Combine constants: (x + 4)² − 4 Result: x² + 8x + 12 = (x + 4)² − 4 Vertex: (−4, −4)
Example 2: Leading Coefficient Not 1
Complete the square for 2x² + 8x + 5. Step 1: Factor out 2 from first two terms: 2(x² + 4x) + 5 Step 2: Half of 4 is 2; square it: 4 Step 3: Add and subtract 4 inside parentheses: 2(x² + 4x + 4 − 4) + 5 Step 4: Factor perfect square: 2[(x + 2)² − 4] + 5 Step 5: Distribute 2: 2(x + 2)² − 8 + 5 Step 6: Combine constants: 2(x + 2)² − 3 Result: 2x² + 8x + 5 = 2(x + 2)² − 3 Vertex: (−2, −3)
6. More Worked Examples
x² − 10x + 16:
Half of −10 is −5; square is 25.
x² − 10x + 25 − 25 + 16 = (x − 5)² − 9
3x² + 12x + 7:
Factor: 3(x² + 4x) + 7
Half of 4 is 2; square is 4.
3(x² + 4x + 4 − 4) + 7 = 3(x + 2)² − 12 + 7 = 3(x + 2)² − 5
x² − 3x + 1:
Half of −3 is −3/2; square is 9/4.
x² − 3x + 9/4 − 9/4 + 1 = (x − 3/2)² − 5/4
7. Vertex Form and Graphing
The completed square form a(x − h)² + k is called vertex form because it directly reveals the vertex of the parabola.
Reading the Vertex from Vertex Form
For y = a(x − h)² + k: Vertex: (h, k) Axis of symmetry: x = h Opens upward if a > 0 Opens downward if a < 0 The vertex is the minimum point if a > 0 or the maximum point if a < 0.
Example: y = 2(x − 3)² + 5
Vertex: (3, 5)
Axis of symmetry: x = 3
Opens upward (a = 2 > 0)
Minimum value: y = 5 at x = 3
8. Deriving the Quadratic Formula
Completing the square is the standard method for deriving the quadratic formula. Starting with the general quadratic ax² + bx + c = 0 and completing the square leads directly to the familiar formula.
Start with: ax² + bx + c = 0 Step 1: Divide by a: x² + (b/a)x + c/a = 0 Step 2: Move constant: x² + (b/a)x = −c/a Step 3: Complete the square by adding (b/(2a))²: x² + (b/a)x + (b/(2a))² = (b/(2a))² − c/a Step 4: Factor left side: (x + b/(2a))² = (b² − 4ac)/(4a²) Step 5: Take square roots: x + b/(2a) = ±√(b² − 4ac)/(2a) Step 6: Solve for x: x = [−b ± √(b² − 4ac)] / (2a) This is the quadratic formula!
9. Common Mistakes to Avoid
- Forgetting to factor out the leading coefficient: If a ≠ 1, you must factor it out first.
- Incorrect "half" calculation: Always take half of the coefficient of x, then square it.
- Forgetting to subtract what you added: When you add (b/2)² inside the parentheses, you must also subtract it (or adjust the constant).
- Distribution errors: When a ≠ 1, remember to distribute 'a' to the subtracted term.
- Sign errors with the vertex: If the form is (x + 3)², the vertex x-coordinate is −3, not +3.
- Losing track of the constant: The constant outside the parentheses must be combined carefully.
10. Real-World Applications
- Physics: Projectile motion equations are quadratics; completing the square finds maximum height and flight time.
- Engineering: Optimization problems often reduce to finding the vertex of a quadratic function.
- Architecture: Parabolic arches and curves are designed using vertex form.
- Economics: Supply and demand models use quadratic functions to find equilibrium points.
- Computer graphics: Bezier curves and parabolic splines use quadratic forms.
- Optimization: Many real-world optimization problems involve maximizing or minimizing quadratics.
11. Practice Problems with Solutions
Problem 1: Complete the square for x² + 12x + 20.
Solution: Half of 12 is 6; square is 36.
x² + 12x + 36 − 36 + 20 = (x + 6)² − 16
Problem 2: Complete the square for 4x² − 8x + 1.
Solution: Factor: 4(x² − 2x) + 1
Half of −2 is −1; square is 1.
4(x² − 2x + 1 − 1) + 1 = 4(x − 1)² − 4 + 1 = 4(x − 1)² − 3
Problem 3: Solve x² + 4x − 5 = 0 by completing the square.
Solution: x² + 4x = 5
Add 4: x² + 4x + 4 = 9
(x + 2)² = 9
x + 2 = ±3
x = −2 ± 3 → x₁ = 1, x₂ = −5
Problem 4: Find the vertex of y = 2x² − 8x + 7.
Solution: 2(x² − 4x) + 7
Half of −4 is −2; square is 4.
2(x² − 4x + 4 − 4) + 7 = 2(x − 2)² − 8 + 7 = 2(x − 2)² − 1
Vertex: (2, −1)
12. Tips for Mastering the Technique
- Always check if the leading coefficient is 1 first; if not, factor it out.
- Remember the pattern: half the coefficient, square it, add and subtract.
- Verify your answer by expanding the completed square form back to standard form.
- Use the formula h = −b/(2a) to check your vertex calculation.
- Practice with negative coefficients — they often cause sign errors.
- Connect the algebra to the geometry: visualize the square being completed.
13. Final Thoughts
Completing the square is more than just a technique — it's a gateway to understanding the structure of quadratic functions. It reveals the vertex, provides a solving method, and derives the quadratic formula. The geometric interpretation connects algebra to visual reasoning, making the process intuitive and memorable.
Master completing the square and you'll have a powerful tool for analyzing parabolas, solving quadratic equations, and understanding the deep relationships between algebraic forms and geometric representations. Use the calculator above to verify your work, but practice until the process becomes automatic. The ability to see the square within any quadratic expression is a skill that pays dividends throughout algebra and calculus.