Completing the Square Calculator

Convert quadratic equations from standard form (ax^2 + bx + c) to vertex form a(x - h)^2 + k using completing the square. See step-by-step solutions and graph the parabola.

Formula:a(x - h)^2 + k where h = -b/(2a), k = c - b^2/(4a)

Result

Vertex Form

(x + 3)^2 - 4

a(x - h)^2 + k

Vertex (h, k)(-3, -4)
Completing Value9
OpensUpward (minimum)

Enter Coefficients

For the equation ax^2 + bx + c

Your equation:

x^2 + 6x + 5

Vertex Form Result

Vertex Form

(x + 3)^2 - 4

Vertex (h, k)

(-3, -4)

h value

-3

k value

-4

Completing Value

9

Opens

Up

Solutions (Roots)

x_1

-1

x_2

-5

Parabola Graph

Vertex: (-3, -4)Axis of symmetry: x = -3

Step-by-Step Solution

1

Start with the standard form

x^2 + 6x + 5

2

Take half of 6 (the coefficient of x), which is 3

Half of 6 = 3

3

Square this value: 3^2 = 9

(3)^2 = 9

4

Add and subtract 9 inside the parentheses

(x^2 + 6x + 9 - 9) + 5

5

Rewrite as a perfect square

(x + 3)^2 - 4

6

The vertex form is a(x - h)^2 + k where h = -3 and k = -4

(x + 3)^2 - 4

Result

Vertex Form

(x + 3)^2 - 4

a(x - h)^2 + k

Vertex (h, k)(-3, -4)
Completing Value9
OpensUpward (minimum)

?How to Complete the Square

To complete the square for ax^2 + bx + c: 1) Factor out 'a' from the first two terms. 2) Take half of the coefficient of x (b/2a), square it ((b/2a)^2). 3) Add and subtract this value inside the parentheses. 4) Rewrite as a(x + b/2a)^2 + (c - b^2/4a). This converts to vertex form a(x - h)^2 + k, where vertex is at (h, k). For x^2 + 6x + 5: take half of 6 = 3, square it = 9, giving (x + 3)^2 - 4, vertex at (-3, -4).

What is Completing the Square?

Completing the square is an algebraic technique for converting a quadratic expression from standard form (ax^2 + bx + c) to vertex form (a(x - h)^2 + k). This method works by adding and subtracting a carefully chosen constant to create a perfect square trinomial. The technique reveals the vertex of a parabola directly and provides an alternative method for solving quadratic equations. It's also the foundation for deriving the quadratic formula.

Key Facts

  • Standard form: ax^2 + bx + c transforms to vertex form: a(x - h)^2 + k
  • Vertex (h, k): h = -b/(2a), k = c - b^2/(4a)
  • The value added inside is always (b/2a)^2 = b^2/(4a^2)
  • If a is not 1, factor it out first before completing the square
  • The vertex is the minimum point when a > 0, maximum when a < 0
  • Completing the square is used to derive the quadratic formula
  • It transforms a parabola equation to reveal its vertex directly
  • Also used to convert circles to standard form (x - h)^2 + (y - k)^2 = r^2

Frequently Asked Questions

Completing the square is an algebraic method that transforms a quadratic expression ax^2 + bx + c into vertex form a(x - h)^2 + k. This is done by adding and subtracting a specific value (b/2a)^2 to create a perfect square trinomial. The resulting form directly reveals the vertex of the parabola and makes it easy to solve or graph the equation.
Step 1: Start with ax^2 + bx + c. Step 2: If a is not 1, factor it from the first two terms. Step 3: Take half the coefficient of x (that is b/2a). Step 4: Square this value to get (b/2a)^2. Step 5: Add and subtract this inside the parentheses. Step 6: Rewrite as a perfect square plus a constant: a(x + b/2a)^2 + (c - b^2/4a).
Completing the square has many uses: (1) Finding the vertex of a parabola directly, (2) Solving quadratic equations without the quadratic formula, (3) Deriving the quadratic formula itself, (4) Converting circle equations to standard form (x-h)^2 + (y-k)^2 = r^2, (5) Simplifying integration problems in calculus, and (6) Understanding the geometric transformations of a parabola.
Standard form is ax^2 + bx + c where a, b, c are constants. Vertex form is a(x - h)^2 + k where (h, k) is the vertex. Standard form is easier for finding y-intercept (just c) and for polynomial operations. Vertex form is better for graphing since you can immediately see the vertex and the direction the parabola opens.
After completing the square, the equation is in the form a(x - h)^2 + k. The vertex is simply the point (h, k). For example, if you get 2(x - 3)^2 + 5, the vertex is (3, 5). Remember: the h value has the opposite sign of what appears in the parentheses (x - 3 means h = 3, not -3).
If a is not 1, factor it out from the x^2 and x terms first: ax^2 + bx + c = a(x^2 + (b/a)x) + c. Then complete the square inside the parentheses using (b/2a)^2. Remember that when you add (b/2a)^2 inside the parentheses, you are actually adding a times (b/2a)^2, so you must subtract a times (b/2a)^2 = b^2/4a outside.
Yes, completing the square can solve any quadratic equation, including those with complex solutions. After converting to vertex form a(x - h)^2 + k = 0, solve for x: (x - h)^2 = -k/a, then x = h plus or minus sqrt(-k/a). If -k/a is negative, the solutions involve imaginary numbers. This method is actually how the quadratic formula is derived.
The quadratic formula x = (-b plus or minus sqrt(b^2 - 4ac)) / 2a is derived by completing the square on the general equation ax^2 + bx + c = 0. Working through the steps algebraically with variables instead of numbers produces the formula. This is why the -b/2a term appears in both methods - it is the x-coordinate of the vertex.

Last updated: 2025-01-15