Solving Quadratic Equations by Completing the Square

Algebra 2Module 3: Quadratic FunctionsAdvanced Math

Learn solving quadratic equations by completing the square step by step with worked examples you can follow. Then practise with 22 instant-feedback questions. Free Algebra 2 lesson from Mr Ahmed Hamouda.

Master the Square Root Property, completing the square, vertex form, and projectile motion

Key Concepts

🔑 Square Root Property

To solve a quadratic equation in the form x² = n, take the square root of each side.

For any number n ≥ 0: if x² = n, then x = ±√n

Example: x² = 121 → x = ±√121 = ±11
⚠ Watch Out! Always include the ± symbol before the radical. Both the positive and negative roots are solutions.

🔑 Completing the Square

To complete the square for the expression x² + bx:

  1. Find one half of b, the coefficient of x: compute b/2
  2. Square the result from Step 1: compute (b/2)²
  3. Add the result of Step 2 to x² + bx: x² + bx + (b/2)² = (x + b/2)²
x² + bx + (b/2)² = (x + b/2)²

🔑 Vertex Form of a Quadratic Function

Any quadratic in standard form can be rewritten in vertex form by completing the square.

Standard Form

y = ax² + bx + c

Vertex Form

y = a(x - h)² + k
Vertex: (h, k)
  • If a > 0 → parabola opens up, vertex is a minimum
  • If a < 0 → parabola opens down, vertex is a maximum
  • Axis of symmetry: x = h

🔑 Projectile Motion

The height h(t) of an object at time t is modeled by:

h(t) = -½gt² + vt + h₀

g = 9.8 m/s² or 32 ft/s² (gravity)
v = initial velocity
h₀ = initial height

The vertex gives the maximum height and the time it occurs.

🔑 Solving by Completing the Square (when a ≠ 1)

  1. Divide every term by a (the coefficient of x²)
  2. Move the constant to the right side
  3. Add (b/2)² to both sides
  4. Factor the left side as a perfect square
  5. Apply the Square Root Property
  6. Solve for x

Key Figures

Figure 1 — why it is called completing the square
x 3 x 3 x² 3x 3x 9 The three blue pieces x² + 3x + 3x = x² + 6x The dashed corner you must add is (6/2)² = 9 Now it is a full square (x + 3)² side = x + 3
The name is literal. Lay out x² + 6x as area: one x-by-x square and the 6x split into two 3-by-x strips, one on each side. That shape is a square with a bite missing from the corner, and the missing piece is exactly 3 by 3 = 9. Adding it finishes the square, whose side is x + 3. This is where (b/2)² comes from: you halve b so the strips are equal, and the corner is that half squared.
Figure 2 — vertex form tells you where the parabola moved
−2 2 4 6 −4 −2 2 4 (2, −5) h = 2 right k = 5 down y = x² y = (x − 2)² − 5 is the same curve as y = x² − 4x − 1
Completing the square converts y = x² − 4x − 1 into y = (x − 2)² − 5, and the second version is readable at a glance: take the basic parabola y = x² and slide it 2 right and 5 down. That lands the vertex at (2, −5). Watch the sign trap — (x − 2)² moves the curve to the right, and the −5 sitting outside moves it straight down.

Worked Examples

Solve x² − 4x + 4 = 25 using the Square Root Property.
x² − 4x + 4 = 25Original equation
(x − 2)² = 25Factor left side
x − 2 = ±√25Square Root Property
x − 2 = ±5√25 = 5
x = 2 + 5 = 7 OR x = 2 − 5 = −3Add 2 to each side
Solution Set: {−3, 7}
Solve x² + 24x + 144 = 192 using the Square Root Property.
x² + 24x + 144 = 192Original equation
(x + 12)² = 192Factor
x + 12 = ±√192Square Root Property
x + 12 = ±8√3√192 = 8√3
x = −12 ± 8√3Subtract 12
⚠ Note: 192 is NOT a perfect square, so roots are irrational.
Exact: x = −12 − 8√3 ≈ −25.86    or    x = −12 + 8√3 ≈ 1.86
Solve 2x² − 92x + 1058 = −72 using the Square Root Property.
2x² − 92x + 1058 = −72Original equation
x² − 46x + 529 = −36Divide each side by 2
(x − 23)² = −36Factor
x − 23 = ±√(−36)Square Root Property
x − 23 = ±6i√(−36) = 6i
x = 23 ± 6iAdd 23 to each side
⚠ Complex Roots: When the right side is negative after applying the Square Root Property, roots are complex (involve i = √(−1)).
x = 23 + 6i   and   x = 23 − 6i
Find c so that x² − 7x + c is a perfect square trinomial. Write as a perfect square.
b = −7Identify b
b/2 = −7/2 = −3.5Step 1: Find half of b
(−3.5)² = 12.25Step 2: Square it
c = 12.25Step 3: That's the value of c
x² − 7x + 12.25 = (x − 3.5)²
Solve x² + 18x − 4 = 0 by completing the square.
x² + 18x − 4 = 0Original equation
x² + 18x = 4Add 4 to each side
b/2 = 9   →   (b/2)² = 81Complete the square
x² + 18x + 81 = 4 + 81 = 85Add 81 to both sides
(x + 9)² = 85Factor
x + 9 = ±√85Square Root Property
x = −9 ± √85Subtract 9
Solution Set: {−9 − √85, −9 + √85}
Solve 4x² − 12x − 27 = 0 by completing the square.
4x² − 12x − 27 = 0Original equation
x² − 3x − 27/4 = 0Divide each side by 4
x² − 3x = 27/4Add 27/4 to each side
b/2 = −3/2   →   (b/2)² = 9/4Complete the square
x² − 3x + 9/4 = 27/4 + 9/4 = 36/4 = 9Add 9/4 to both sides
(x − 3/2)² = 9Factor
x − 3/2 = ±3Square Root Property
x = 3/2 + 3 = 9/2    OR    x = 3/2 − 3 = −3/2Solve for x
Solution Set: {−3/2, 9/2}
Solve 3x² − 72x + 465 = 0 by completing the square.
3x² − 72x + 465 = 0Original equation
x² − 24x + 155 = 0Divide by 3
x² − 24x = −155Subtract 155
x² − 24x + 144 = −155 + 144 = −11Add (−24/2)² = 144
(x − 12)² = −11Factor
x − 12 = ±√(−11) = ±i√11Square Root Property
x = 12 ± i√11Add 12
x = 12 + i√11   and   x = 12 − i√11
Write y = −x² − 12x − 9 in vertex form.
y = −x² − 12x − 9Original function
y = −(x² + 12x) − 9Factor out −1 from x terms
y = −(x² + 12x + 36) − 9 + 36Add (12/2)² = 36 inside; compensate outside
y = −(x + 6)² + 27Simplify
⚠ Key: When a ≠ 1, after factoring out a, balance the equation: adding (b/2)² inside the parentheses means adding a·(b/2)² outside.
Vertex Form: y = −(x + 6)² + 27    Vertex: (−6, 27) — maximum
Consider y = 3x² − 12x + 5. Find vertex form, axis of symmetry, and classify vertex.
y = 3x² − 12x + 5Original
y = 3(x² − 4x) + 5Factor out 3
y = 3(x² − 4x + 4) + 5 − 12Add (−4/2)² = 4 inside; subtract 3·4 = 12 outside
y = 3(x − 2)² − 7Simplify
Vertex Form: y = 3(x − 2)² − 7
Vertex: (2, −7) — minimum (a = 3 > 0)
Axis of Symmetry: x = 2

Interactive Grapher

Enter values and click Plot to see the parabola.

Try It Yourself

Work each one on paper first, then reveal. Problems 4 and 6 are the full method — the rest build up to it.

Problem 1

Solve (x − 3)² = 49.
1x − 3 = ±7Square Root Property — keep the ±
2x = 3 + 7 = 10  or  x = 3 − 7 = −4Add 3 to each side, taking both branches
x = 10 or x = −4
Check: (10 − 3)² = 49 ✓ and (−4 − 3)² = (−7)² = 49 ✓

Problem 2

Solve x² = 45. Give the exact answer in simplest radical form.
1x = ±√45Square Root Property
2√45 = √(9 · 5) = 3√5Pull out the largest perfect square factor
x = ±3√5 ≈ ±6.71
Do not write √45 ≈ 6.7 and stop when the question asks for an exact answer. 3√5 is exact; 6.71 is rounded.

Problem 3

What number completes the square for x² + 10x, and what does the expression factor to?
1b = 10, so b/2 = 5Halve the coefficient of x
2(b/2)² = 25Square that half — this is the corner piece in Figure 1
Add 25: x² + 10x + 25 = (x + 5)²
Check by expanding: (x + 5)² = x² + 10x + 25 ✓. Notice the number inside the bracket is always b/2, never b.

Problem 4

Solve x² − 6x + 2 = 0 by completing the square. Give exact answers.
1x² − 6x = −2Move the constant to the right side
2(−6/2)² = 9Find the completing number
3x² − 6x + 9 = −2 + 9Add 9 to both sides — this is the step people forget
4(x − 3)² = 7Factor the perfect square
5x − 3 = ±√7Square Root Property
x = 3 ± √7, so x ≈ 5.65 or x ≈ 0.35
Adding to one side only changes the equation into a different one. Whatever completes the square on the left must also be added on the right.

Problem 5

Write y = x² + 8x + 11 in vertex form and state the vertex.
1(8/2)² = 16The completing number
2y = (x² + 8x + 16) − 16 + 11Add 16 and subtract 16 — here we cannot add to “both sides”, so we keep the total unchanged
3y = (x + 4)² − 5Factor, then combine −16 + 11
y = (x + 4)² − 5, vertex (−4, −5), a minimum since a > 0
Two checks: expanding gives x² + 8x + 16 − 5 = x² + 8x + 11 ✓, and the formula x = −b/2a = −8/2 = −4 confirms the vertex's x-coordinate. Note the vertex is (−4, −5), not (4, −5) — the bracket reads (x − h).

Problem 6

Write y = 2x² − 12x + 7 in vertex form and state the vertex. (Careful — a ≠ 1.)
1y = 2(x² − 6x) + 7Factor 2 out of the x-terms only
2(−6/2)² = 9Complete the square inside the bracket
3y = 2(x² − 6x + 9) − 18 + 7Adding 9 inside a bracket multiplied by 2 really adds 18, so subtract 18 outside
4y = 2(x − 3)² − 11Factor and combine
y = 2(x − 3)² − 11, vertex (3, −11), a minimum
The a ≠ 1 trap: subtracting only 9 instead of 18. The 9 sits inside a bracket that is multiplied by 2, so it contributes 2 × 9 = 18 to the expression, and 18 is what must come back out. Check by expanding: 2(x² − 6x + 9) − 11 = 2x² − 12x + 18 − 11 = 2x² − 12x + 7 ✓

📝 Practice Quiz — 15 Questions

Lesson 3-5: Completing the Square & Vertex Form

📝 Test your understanding