Completing the Square
Rewrite ax² + bx + c in vertex form a(x − h)² + k — exact fractions for the vertex, the axis of symmetry and every algebraic step.
Computed
The vertex form and the full working are shown below.
Vertex formexact
Vertex
(-3, -4)
Axis of symmetry
x = -3
Graph
Step-by-step solution
- 1
The quadratic
Rewrite the quadratic expression in vertex form a(x − h)² + k, reading off a = 1, b = 6 and c = 5.
- 2
Halve the x-coefficient and square it
Half of 6 is 3; squaring it gives 9. This is the number that completes the square inside the bracket.
- 3
Add inside the bracket, compensate outside
Adding 9 inside the bracket adds 9 to the whole expression (the bracket is multiplied by 1), so subtract 9 outside to keep everything unchanged.
- 4
Write the bracket as a perfect square
The bracket is a perfect square: x² + 6x + 9 = (x + 3)², which is (x − h)² with h = -3.
- 5
Vertex form, vertex and axis of symmetry
With h = -3 and k = -4 the vertex is (-3, -4) and the axis of symmetry is the vertical line x = -3.