Algebra 2

Completing the Square & Quadratic Formula

You’ve seen quadratics in standard form: ax^2 + bx + c. But there’s another form that reveals the vertex directly — and the technique to get there is called completing the square. It’s also how the quadratic formula is derived.


Part 1: Standard Form — What Do a, b, c Control?

Start with the standard form and explore how each coefficient shapes the parabola:

a (curvature)1
-33
b (tilt)-2
-66
c (y-intercept)-3
-55
f(x)=1x2+2x+3f(x) = 1x^2 + -2x + -3
-8-6-4-22468-10-8-6-4-2246810x = -0.99x = 3(0.99, -4)
Try This

Notice how the coefficients work:

  • a controls the curvature: positive = opens up, negative = opens down
  • b shifts the vertex left and right (and up/down in a complex way)
  • c is where the parabola crosses the y-axis (set x = 0)

But finding the vertex from a, b, c isn’t obvious. That’s why we need vertex form!


Part 2: Vertex Form — The Clear Picture

The vertex form of a quadratic is:

f(x)=a(xh)2+kf(x) = a(x - h)^2 + k

Here, (h, k) is the vertex — the highest or lowest point. Let’s see it:

a (curvature)1
-33
h (vertex x)1
-55
k (vertex y)-4
-55
f(x)=1(x1)2+4f(x) = 1(x - 1)^2 + -4
-8-6-4-22468-10-8-6-4-2246810x = -0.99x = 3(0.99, -4)
Try This

Now the vertex is obvious! (h, k) is right there in the equation.

  • h slides the parabola left and right
  • k slides it up and down
  • a still controls the curvature

Compare this to standard form — the vertex is hidden in a, b, c but visible in h, k.


Part 3: Completing the Square — The Transformation

Here’s the step-by-step process. Starting from ax^2 + bx + c:

  1. Factor out a from the first two terms: a(x^2 + (b/a)x) + c
  2. Add and subtract (b/2a)^2 inside the parentheses
  3. Factor the perfect square trinomial
  4. Simplify to get a(x - h)^2 + k

The vertex is at:

h=00,k=cb20h = -\frac00, \quad k = c - \frac{b^2}0

Let’s verify this with our sliders. Set a, b, c and see the computed vertex:

a1
0.53
b4
-66
c1
-55
Standard: 1x2+4x+1\text{Standard: } 1x^2 + 4x + 1
h=42×1,k=1424×1h = -\frac{4}{2 \times 1}, \quad k = 1 - \frac{4^2}{4 \times 1}
-10-8-6-4-2246810-10-8-6-4-2246810(-2, -3)
Connection

The vertex formula h = -b/(2a) comes directly from completing the square. It’s not a separate thing to memorize — it’s a consequence of the algebra. Try a = 1, b = 4, c = 1. The vertex should be at h = -2, k = -3.


Part 4: The Discriminant — How Many Roots?

The discriminant determines how many times the parabola crosses the x-axis:

Δ=b24ac\Delta = b^2 - 4ac
a1
0.52
b2
-66
c-3
-55
Δ=224(1)(3)\Delta = 2^2 - 4(1)(-3)
-8-6-4-22468-8-6-4-22468x = -2.99x = 1(-0.99, -4)
Try This

Experiment with the discriminant:

  • Delta > 0: Two real roots — the parabola crosses the x-axis twice (try a=1, b=2, c=-3)
  • Delta = 0: One repeated root — the vertex touches the x-axis (try a=1, b=-2, c=1)
  • Delta < 0: No real roots — the parabola doesn’t reach the x-axis (try a=1, b=0, c=2)

The discriminant tells you the answer before you solve!


Part 5: The Quadratic Formula

Completing the square on the general equation ax^2 + bx + c = 0 gives us the quadratic formula:

x=b±b24ac0x = \frac{-b \pm \sqrt{b^2 - 4ac}}0

The discriminant (b^2 - 4ac) is right there under the square root — that’s why it determines the number of roots!

a1
0.53
b-1
-66
c-6
-55
x=(1)±(1)24(1)(6)2(1)x = \frac{-(-1) \pm \sqrt{(-1)^2 - 4(1)(-6)}}{2(1)}
-8-6-4-22468-10-8-6-4-2246810x = -1.98x = 3(0.51, -6.25)
Challenge

Challenge: Use the quadratic formula to solve these, then verify with the graph:

  1. x^2 - 5x + 6 = 0 (set a=1, b=-5, c=6)
  2. 2x^2 + 3x - 2 = 0 (set a=2, b=3, c=-2)
  3. x^2 + 2x + 5 = 0 (set a=1, b=2, c=5) — what happens?

For #3, the discriminant is negative. The quadratic formula gives complex numbers — the parabola never crosses the x-axis!


Wrapping Up

ConceptKey Idea
Standard formax^2 + bx + c — good for finding y-intercept
Vertex forma(x-h)^2 + k — reveals vertex (h,k) directly
Completing the squareTransforms standard to vertex form
Vertex locationh = -b/(2a), k = c - b^2/(4a)
Discriminantb^2 - 4ac tells you: 2 roots, 1 root, or 0 real roots
Quadratic formulax = (-b +/- sqrt(discriminant)) / (2a)

Completing the square isn’t just a technique — it’s the reason the quadratic formula works. Every time you use the formula, you’re doing completing the square in disguise.

Take the Quiz