Complete The Square
Enter the coefficients of your quadratic expression ax² + bx + c to convert it to vertex form a(x - h)² + k with detailed step-by-step work.
Try These Examples
Click any example to load it into the calculator.
What Is Completing The Square?
Completing the square is an algebraic technique for rewriting a quadratic expression from standard form ax² + bx + c into vertex form a(x - h)² + k.
This transformation reveals the vertex of the parabola at point (h, k), which is the parabola's minimum (if a > 0) or maximum (if a < 0) value. Vertex form makes graphing easier and is essential for understanding the geometry of quadratic functions.
The Process
The goal is to create a perfect square trinomial from the x² and x terms. Here are the steps:
- Factor out the leading coefficient a from the x² and x terms (but not the constant c)
- Take half of the new b coefficient (after factoring out a), then square it
- Add and subtract this value inside the factored expression
- Factor the perfect square trinomial into (x - h)² form
- Simplify by distributing a and combining constants to get a(x - h)² + k
Why It Matters
- Reveals the vertex — The point (h, k) is immediately visible in vertex form
- Makes graphing easier — Vertex form shows transformations from the basic parabola y = x²
- Derives the quadratic formula — Completing the square on ax² + bx + c = 0 yields the quadratic formula
- Solves optimization problems — Finding maximum or minimum values becomes straightforward
- Analyzes motion — In physics, projectile motion equations often benefit from vertex form
Example Walkthrough
Let's complete the square for x² + 6x + 5:
- Since a = 1, we don't need to factor anything out
- Take half of b: 6/2 = 3, then square it: 3² = 9
- Add and subtract 9: x² + 6x + 9 - 9 + 5
- Factor the perfect square: (x + 3)² - 9 + 5
- Simplify: (x + 3)² - 4
The vertex form is (x + 3)² - 4, which means the vertex is at (-3, -4). Notice that the sign of h is opposite to what appears in the parentheses.
When a ≠ 1
For 2x² + 12x + 10:
- Factor out a = 2 from the x² and x terms: 2(x² + 6x) + 10
- Take half of 6: 6/2 = 3, square it: 3² = 9
- Add and subtract 9 inside: 2(x² + 6x + 9 - 9) + 10
- Factor: 2((x + 3)² - 9) + 10
- Distribute: 2(x + 3)² - 18 + 10 = 2(x + 3)² - 8
The vertex is at (-3, -8).
Vertex Form vs Standard Form
| Form | Equation | Shows Clearly | Best For |
|---|---|---|---|
| Standard Form | ax² + bx + c | y-intercept (c), coefficients for expanding | Finding roots, basic arithmetic |
| Vertex Form | a(x - h)² + k | Vertex (h, k), axis of symmetry (x = h) | Graphing, finding max/min, transformations |
Common Mistakes
- Forgetting to factor out a first — When a ≠ 1, you must factor it out from the x² and x terms before completing the square on the simpler expression inside.
- Sign confusion with h — In vertex form a(x - h)² + k, the vertex x-coordinate is h, but the sign in the parentheses is opposite: (x - 3) means h = 3, (x + 3) means h = -3.
- Distributing a incorrectly — When you add/subtract (b/2a)² inside the factored expression, remember that distributing a back through means you're actually adding/subtracting a×(b/2a)² = b²/4a outside.
- Losing the constant term — Keep track of c throughout the process. It gets combined with the adjustment term at the end.
- Not simplifying fully — Always combine all constants outside the squared term to get the cleanest vertex form.
Frequently Asked Questions
What is completing the square?
Completing the square is a technique for rewriting a quadratic expression ax² + bx + c in the form a(x - h)² + k, called vertex form. This reveals the vertex (h, k) of the parabola and makes certain properties easier to see.
Why is vertex form useful?
Vertex form a(x - h)² + k immediately shows the vertex of the parabola at point (h, k), which is the maximum or minimum value. It also makes graphing easier and is essential for deriving the quadratic formula.
What are the steps to complete the square?
First, factor out the leading coefficient a from the x² and x terms. Then take half of the new b coefficient, square it, and add/subtract that value inside the factored expression. Finally, simplify to get a(x - h)² + k form.
How do you find the vertex from vertex form?
In vertex form a(x - h)² + k, the vertex is at point (h, k). Note that the sign of h is opposite to what appears in the parentheses: (x - 3)² gives h = 3, while (x + 3)² gives h = -3.
What if the leading coefficient a is not 1?
Factor out the leading coefficient a from just the x² and x terms (not the constant c). Complete the square on the simplified expression inside, then distribute a back through and simplify the constants outside.
Can you complete the square with negative coefficients?
Yes. The process is the same. If a is negative, factor it out first. The vertex form will still be a(x - h)² + k, but with a negative value for a, meaning the parabola opens downward.
How is completing the square used to derive the quadratic formula?
Start with ax² + bx + c = 0, complete the square to get a(x + b/2a)² = (b² - 4ac)/4a, then solve for x by taking the square root of both sides. This yields the quadratic formula x = (-b ± √(b² - 4ac)) / 2a.
Does this calculator store my data?
No. All calculations run entirely in your browser using JavaScript. No data is sent to any server, and nothing is stored.
Privacy & Limitations
- All calculations run entirely in your browser -- nothing is sent to any server.
- Results are computed using standard formulas and should be verified for critical applications.
Related Tools
- Midpoint Calculator -- Find the midpoint between two points in 2D or 3D
- Binary Calculator -- Perform binary arithmetic and bitwise operations with multi-base display
- Inequality Solver -- Solve linear and quadratic inequalities with step-by-step solutions
- Random Number Generator -- Generate random numbers within a range
Related Tools
View all toolsGCD & LCM Calculator
Find the greatest common divisor and least common multiple
Random Number Generator
Generate random numbers within a range
Factoring Calculator
Factor polynomials and trinomials step by step showing GCF, difference of squares, and AC method
Bayes Theorem Calculator
Calculate conditional probabilities using Bayes' theorem with visual probability tree diagram
Midpoint Calculator
Find the midpoint between two points in 2D or 3D
Diamond Problem Solver
Find two numbers from their product and sum using the diamond method
Completing The Square Calculator FAQ
What is completing the square?
Completing the square is a technique for rewriting a quadratic expression ax² + bx + c in the form a(x - h)² + k, called vertex form. This reveals the vertex (h, k) of the parabola and makes certain properties easier to see.
Why is vertex form useful?
Vertex form a(x - h)² + k immediately shows the vertex of the parabola at point (h, k), which is the maximum or minimum value. It also makes graphing easier and is essential for deriving the quadratic formula.
What are the steps to complete the square?
First, factor out the leading coefficient a from the x² and x terms. Then take half of the new b coefficient, square it, and add/subtract that value inside the factored expression. Finally, simplify to get a(x - h)² + k form.
How do you find the vertex from vertex form?
In vertex form a(x - h)² + k, the vertex is at point (h, k). Note that the sign of h is opposite to what appears in the parentheses: (x - 3)² gives h = 3, while (x + 3)² gives h = -3.
What if the leading coefficient a is not 1?
Factor out the leading coefficient a from just the x² and x terms (not the constant c). Complete the square on the simplified expression inside, then distribute a back through and simplify the constants outside.
Can you complete the square with negative coefficients?
Yes. The process is the same. If a is negative, factor it out first. The vertex form will still be a(x - h)² + k, but with a negative value for a, meaning the parabola opens downward.
How is completing the square used to derive the quadratic formula?
Start with ax² + bx + c = 0, complete the square to get a(x + b/2a)² = (b² - 4ac)/4a, then solve for x by taking the square root of both sides. This yields the quadratic formula x = (-b ± √(b² - 4ac)) / 2a.
Does this calculator store my data?
No. All calculations run entirely in your browser using JavaScript. No data is sent to any server, and nothing is stored.