Course contentsShow
← Mathematics
Lesson 411 of 3,12111. Quadratic Equations and FunctionsFree lesson

Deriving the Quadratic Formula by Completing the Square

Derive the quadratic formula x = (-b ± √(b²-4ac))/(2a) by completing the square on ax² + bx + c = 0.

Deriving the Quadratic Formula by Completing the Square

What You'll Learn

You'll see exactly where the famous quadratic formula comes from by completing the square on the general quadratic equation.

The Core Idea

Instead of solving one specific quadratic equation like 3x² + 5x - 2 = 0, we're going to solve the equation with letters representing the coefficients: ax² + bx + c = 0. By completing the square on this general form, we'll derive a formula that works for every quadratic equation.

Step-by-Step Derivation

Start with the standard form:

ax² + bx + c = 0

Step 1: Subtract c from both sides:

ax² + bx = -c

Step 2: Divide everything by a (assuming a ≠ 0):

x² + (b/a)x = -c/a

Step 3: Complete the square. Take half of b/a, square it: (b/(2a))² = b²/(4a²). Add this to both sides:

x² + (b/a)x + b²/(4a²) = -c/a + b²/(4a²)

Step 4: The left side is now a perfect square trinomial:

(x + b/(2a))² = -c/a + b²/(4a²)

Step 5: Combine the right side over a common denominator 4a²:

(x + b/(2a))² = (-4ac + b²)/(4a²) = (b² - 4ac)/(4a²)

Step 6: Take the square root of both sides:

x + b/(2a) = ±√(b² - 4ac)/(2a)

Step 7: Subtract b/(2a) from both sides:

x = -b/(2a) ± √(b² - 4ac)/(2a)

Step 8: Combine into one fraction:

x = (-b ± √(b² - 4ac))/(2a)

Key Takeaway: The quadratic formula isn't magic—it's simply the result of completing the square on the general form ax² + bx + c = 0, giving us a single formula that solves any quadratic equation.