Algebra 1 (Common Core) • One-Variable Equations & Inequalities

Complete the Square to Find Solutions

Transform any quadratic equation into a perfect square to unlock its solutions and discover the quadratic formula.

Algebra illustration with a variable, function graph, and equality symbol
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

Solving equations where a variable is squared — like x² + 6x = 7 — has been a challenge that humans have tackled for thousands of years. Long before modern algebra existed, ancient civilizations found clever geometric methods to solve these problems. The technique we call completing the square has roots that stretch back to ancient Babylon, where scribes working on clay tablets figured out how to rearrange areas of rectangles into perfect squares.

The basic idea is beautifully simple: if you can rewrite a messy quadratic expression as a perfect square, you can solve it by taking a square root. This single insight eventually led to the discovery of the quadratic formula, one of the most famous formulas in all of mathematics.

~2000 BCE • Babylonian Clay Tablets

Babylonian scribes solved quadratic problems by rearranging areas of rectangles into squares. They used geometric reasoning, not symbols, but the core idea of completing the square was already there.

~300 BCE • Euclid's Elements

The Greek mathematician Euclid described geometric constructions equivalent to completing the square in his famous work, Elements, using line segments and areas.

~825 CE • Al-Khwarizmi's Algebra

The Persian mathematician al-Khwarizmi wrote a groundbreaking book on solving equations. His systematic method for completing the square gave us the word "algebra" itself (from the Arabic al-jabr).

1500s–1600s • Symbolic Algebra Emerges

European mathematicians like François Viète and René Descartes introduced modern symbolic notation (using x, +, =). This made it possible to write down the quadratic formula as we know it today.

Present Day • CCSS & Modern Curriculum

Completing the square is now a core skill in the Common Core State Standards (A-REI.4.a). Students learn to transform quadratic equations into the form (x − p)² = q and derive the quadratic formula from this form.

The central question this lesson addresses is: How can we rewrite any quadratic equation so that solving it becomes as simple as taking a square root? Answering this question will give you a powerful problem-solving technique and reveal where the quadratic formula comes from.

SECTION 2

Core Principles & Definitions

Before we dive into the method, let's make sure we're on the same page about the key ideas. A quadratic equation is any equation where the highest power of the variable is 2, like x² + 6x − 7 = 0 or 2x² − 8x + 3 = 0. A perfect square trinomial is a special expression that can be written as the square of a binomial — for example, x² + 6x + 9 is a perfect square trinomial because it equals (x + 3)².

1

Perfect Square Trinomial

An expression of the form x² + 2bx + b² that factors neatly as (x + b)². Recognizing this pattern is the key to completing the square.
2

Completing the Square

A method where you add a carefully chosen constant to both sides of an equation so that one side becomes a perfect square trinomial. This lets you rewrite the equation in the form (x − p)² = q.
3

The Form (x − p)² = q

The target form for completing the square. Once your equation looks like this, you can solve by taking the square root of both sides: x − p = ±√q, so x = p ± √q.
4

The Quadratic Formula

The formula x = (−b ± √(b² − 4ac)) / (2a), which is derived by completing the square on the general equation ax² + bx + c = 0. It works for every quadratic equation.
✦

KEY TAKEAWAY

Think of completing the square like building a jigsaw puzzle. You have most of the pieces for a perfect square (like x² + 6x), but one corner piece is missing. Completing the square means figuring out exactly which piece to add (in this case, 9) so the puzzle forms a complete picture: (x + 3)². Once the picture is complete, the solution becomes easy to see.

SECTION 3

Visual Explanation — The Geometry of Completing the Square

Completing the square has a beautiful geometric meaning. Imagine you have a square with side length x and a rectangle with dimensions x by 6. Their combined area is x² + 6x. The goal is to rearrange these shapes into a single, larger square. The diagram below shows how this works step by step.

Geometric View: Completing the Square for x² + 6xStep 1: Startx²xx6x6xArea = x² + 6xStep 2: Split the 6xx²3x33x3Split 6x into two 3x stripsStep 3: Complete!x²3x3x9x + 3x + 3Add 9 to complete the square!Area = (x + 3)² = x² + 6x + 9The missing corner piece has area (6/2)² = 3² = 9Take half of the x-coefficient, then square it!
The diagram shows how x² + 6x can be rearranged by splitting the 6x rectangle into two strips of 3x. These strips attach to two sides of the x² square, leaving a small 3 × 3 corner gap. Filling that gap with a pink square of area 9 completes the larger (x + 3)² square.

This geometric picture reveals the core rule of completing the square: take half of the coefficient of x, then square it. In our example, the coefficient of x is 6. Half of 6 is 3, and 3² = 9. That's exactly the area of the missing corner piece. This rule works every time, whether the numbers are neat or messy.

SECTION 4

Mathematical Framework — The Algebra Step by Step

Now let's translate the geometric idea into algebra. The method of completing the square turns any equation of the form x² + bx = c into the much friendlier form (x − p)² = q. Here are the key formulas.

PERFECT SQUARE PATTERN

x2+bx+(b/2)2=(x+b/2)2x² + bx + (b/2)² = (x + b/2)²

Start with x² + bx. The number you need to add is (b/2)², which is the square of half the coefficient of x. This creates a perfect square trinomial on the left that factors as (x + b/2)².

COMPLETING THE SQUARE — TARGET FORM

(x−p)2=q(x − p)² = q

Once you complete the square, your equation looks like this. From here, take the square root of both sides: x − p = ±√q, so x = p ± √q. The ± means there are usually two solutions.

The Five-Step Procedure

  1. Step 1: Move the constant term to the right side of the equation.
  2. Step 2: If the coefficient of x² is not 1, divide every term by that coefficient.
  3. Step 3: Take half of the coefficient of x, then square it. Add this value to both sides.
  4. Step 4: Factor the left side as a perfect square binomial (x + __)².
  5. Step 5: Solve by taking the square root of both sides, remembering the ± symbol.

Deriving the Quadratic Formula

One of the most powerful applications of completing the square is deriving the quadratic formula. Start with the general quadratic equation ax² + bx + c = 0. Divide by a to get x² + (b/a)x + c/a = 0. Move c/a to the right: x² + (b/a)x = −c/a. Now complete the square by adding (b/(2a))² to both sides. The left side becomes (x + b/(2a))². Simplify the right side and take the square root.

THE QUADRATIC FORMULA

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

Where a is the coefficient of x², b is the coefficient of x, and c is the constant. The expression b² − 4ac under the square root is called the discriminant — it tells you how many real solutions exist.

💡

Why the ± Matters

When you take the square root of both sides of (x − p)² = q, you must account for both the positive and negative roots. That's because both (3)² = 9 and (−3)² = 9. The ± symbol ensures you catch both solutions to the original equation.

SECTION 5

Step-by-Step Derivation of the Quadratic Formula

Let's walk through the full derivation of the quadratic formula by completing the square on the general equation. This is exactly what CCSS.A-REI.4.a asks you to understand. Follow the diagram below, which maps each algebraic step to its visual meaning.

Deriving the Quadratic Formula by Completing the SquareSTARTax² + bx + c = 0STEP 1: Divide by ax² + (b/a)x + c/a = 0STEP 2: Move constantx² + (b/a)x = −c/aSTEP 3: Add (b/(2a))² to both sidesx² + (b/a)x + b²/(4a²) = −c/a + b²/(4a²)STEP 4: Factor left, simplify right(x + b/(2a))² = (b² − 4ac) / (4a²)STEP 5: Take square rootx + b/(2a) = ± √(b² − 4ac) / (2a)RESULTx = (−b ± √(b² − 4ac)) / (2a)The quadratic formula is not a separate rule to memorize —it IS completing the square, done once for all quadratic equations.
This flowchart traces each step of deriving the quadratic formula. Notice how Step 3 is the key "completing" action — adding (b/(2a))² to both sides. The final result is the quadratic formula itself.

The critical insight in this derivation is that the right side simplifies to (b² − 4ac)/(4a²). The numerator, b² − 4ac, is called the discriminant. If the discriminant is positive, you get two real solutions. If it's zero, you get exactly one. If it's negative, there are no real solutions (the parabola doesn't cross the x-axis).

Discriminant ValueNumber of Real SolutionsWhat It Means Graphically
b² − 4ac > 0Two distinct real solutionsThe parabola crosses the x-axis at two points
b² − 4ac = 0One repeated real solutionThe parabola touches the x-axis at exactly one point (the vertex)
b² − 4ac < 0Zero real solutionsThe parabola floats entirely above or below the x-axis

The discriminant determines how many times the parabola meets the x-axis.

SECTION 6

Worked Example — Solving by Completing the Square

Let's solve a quadratic equation from start to finish using the method of completing the square. We'll work through every step carefully so you can use this process on your own.

Solve 2x² + 12x − 8 = 0 by completing the square

  1. 1

    Step 1 — Move the constant to the right side

    Add 8 to both sides to move the constant away from the x terms.
    2x² + 12x = 8
  2. 2

    Step 2 — Divide every term by the leading coefficient

    The coefficient of x² is 2. Divide both sides of the equation by 2 so that the x² coefficient becomes 1. This gives us: 2x²/2 + 12x/2 = 8/2.
    x² + 6x = 4
  3. 3

    Step 3 — Find and add the completing number

    Take the coefficient of x, which is 6. Divide it by 2 to get 3. Then square it: 3² = 9. Add 9 to both sides of the equation to keep it balanced.
    x² + 6x + 9 = 4 + 9 = 13
  4. 4

    Step 4 — Factor the left side as a perfect square

    The left side x² + 6x + 9 is now a perfect square trinomial. It factors as (x + 3)². We can verify: (x + 3)(x + 3) = x² + 3x + 3x + 9 = x² + 6x + 9. ✓
    (x + 3)² = 13
  5. 5

    Step 5 — Take the square root of both sides

    Apply the square root to both sides. Remember to include the ± symbol because both positive and negative values square to give 13.
    x + 3 = ±√13
  6. 6

    Step 6 — Isolate x

    Subtract 3 from both sides. Since √13 ≈ 3.606, the two solutions are approximately x ≈ −3 + 3.606 ≈ 0.606 and x ≈ −3 − 3.606 ≈ −6.606.
    x = −3 + √13 or x = −3 − √13
💡

Check Your Work!

You can always check your answers by substituting them back into the original equation. For x = −3 + √13: 2(−3 + √13)² + 12(−3 + √13) − 8 should equal 0. Plugging it in and simplifying confirms the solution works. Building this habit of checking will help you catch errors before they become problems on a test.

SECTION 7

Comparing Methods for Solving Quadratics

Completing the square is not the only way to solve quadratic equations. You may already know how to factor or how to use the quadratic formula. Each method has strengths and limitations. Understanding when to use each one makes you a more efficient problem-solver.

MethodBest When…Limitations
FactoringThe equation factors neatly with integer roots, like x² + 5x + 6 = (x + 2)(x + 3).Many quadratics don't factor neatly. Doesn't work well when solutions are irrational.
Completing the SquareYou want exact solutions. Also essential for rewriting equations in vertex form for graphing.Can involve messy fractions if the leading coefficient isn't 1. More steps than other methods.
Quadratic FormulaWorks for every quadratic equation, no exceptions. Great when factoring doesn't work.Requires memorization. Doesn't reveal vertex form directly. Can be slow for simple problems.
GraphingYou need a visual understanding or an approximate answer quickly.Only gives approximate solutions unless the roots happen to be integers. Requires a graphing tool.

Each method has its niche — completing the square is the most versatile and foundational.

✦

KEY TAKEAWAY

Think of these four methods like tools in a toolbox. Factoring is like a screwdriver — quick and elegant when it fits, but useless when it doesn't. The quadratic formula is like a power drill — it always works but takes setup. Completing the square is the master key — it's the method that generates the quadratic formula and also converts equations into vertex form for graphing. Learning it well unlocks everything else.

SECTION 8

Connection to Advanced Topics

Completing the square is not just a one-time trick. It's a foundational technique that appears again and again in higher mathematics. Understanding it deeply now will pay off when you encounter these more advanced topics.

What You Learn NowWhere It Leads
Rewriting x² + bx + c in the form (x − p)² + kVertex form of a parabola — In Algebra 2 and Precalculus, you'll use completing the square to find the vertex (highest or lowest point) of any parabola.
Deriving the quadratic formulaComplex numbers — When the discriminant is negative, the quadratic formula introduces imaginary numbers (i = √(−1)), which you'll study in Algebra 2.
Manipulating expressions algebraicallyConic sections — In Precalculus, you'll complete the square with both x and y terms to identify circles, ellipses, and hyperbolas.
Understanding the structure of quadraticsCalculus optimization — Finding maximum and minimum values of functions in calculus uses the same structural ideas.

Completing the square is a gateway skill for many advanced math topics.

The big picture is this: completing the square teaches you how to transform an equation into a more useful form. This idea of strategic transformation is at the heart of algebra, and it will serve you well in every math class you take from here on.

SECTION 9

Practice Problems

Test your understanding with these five problems. They start with a concept check and build up to a challenging critical-thinking question. Try each one on your own before looking at the answer.

Question 1: CONCEPTUAL

When completing the square for the expression x² + 10x, what number do you add to create a perfect square trinomial? Explain why.
Show answer
You add 25. The rule is to take half of the coefficient of x (which is 10), giving you 5, and then square it: 5² = 25. This works because x² + 10x + 25 = (x + 5)², a perfect square trinomial. Geometrically, the 25 represents the area of the missing corner square in the visual model.

Question 2: BASIC CALCULATION

Solve x² + 8x − 20 = 0 by completing the square.
Show answer
Move −20: x² + 8x = 20. Half of 8 is 4, and 4² = 16. Add 16 to both sides: x² + 8x + 16 = 36. Factor: (x + 4)² = 36. Take the square root: x + 4 = ±6. So x = −4 + 6 = 2 or x = −4 − 6 = −10. You can verify: (2)² + 8(2) − 20 = 4 + 16 − 20 = 0 ✓ and (−10)² + 8(−10) − 20 = 100 − 80 − 20 = 0 ✓.

Question 3: INTERMEDIATE

Solve 3x² − 18x + 15 = 0 by completing the square. Give exact answers.
Show answer
First, divide every term by 3: x² − 6x + 5 = 0. Move the constant: x² − 6x = −5. Half of −6 is −3, and (−3)² = 9. Add 9 to both sides: x² − 6x + 9 = −5 + 9 = 4. Factor: (x − 3)² = 4. Take the square root: x − 3 = ±2. So x = 3 + 2 = 5 or x = 3 − 2 = 1. The key step was dividing by 3 first so the x² coefficient became 1.

Question 4: APPLIED

A ball is thrown upward from a 5-foot platform. Its height in feet after t seconds is h = −16t² + 32t + 5. At what time(s) is the ball at a height of 21 feet? Use completing the square.
Show answer
Set h = 21: −16t² + 32t + 5 = 21, so −16t² + 32t − 16 = 0. Divide by −16: t² − 2t + 1 = 0. Notice this is already a perfect square: (t − 1)² = 0. So t − 1 = 0, meaning t = 1 second. There is only one solution, which means the ball reaches exactly 21 feet at one instant — this is actually the ball's maximum height! The discriminant is zero, confirming a single solution.

Question 5: CRITICAL THINKING

Starting from the general equation ax² + bx + c = 0 (where a ≠ 0), use the method of completing the square to derive the quadratic formula x = (−b ± √(b² − 4ac)) / (2a). Show every step clearly and explain each one.
Show answer
Divide by a: x² + (b/a)x + c/a = 0. Subtract c/a: x² + (b/a)x = −c/a. The coefficient of x is b/a; half of that is b/(2a); squaring gives b²/(4a²). Add b²/(4a²) to both sides: x² + (b/a)x + b²/(4a²) = −c/a + b²/(4a²). Factor the left: (x + b/(2a))² = (b² − 4ac)/(4a²). The right side uses a common denominator. Take the square root: x + b/(2a) = ±√(b² − 4ac)/(2a). Subtract b/(2a): x = (−b ± √(b² − 4ac)) / (2a). Each step preserves the equality, so this formula gives the same solutions as the original equation. This derivation shows that the quadratic formula is simply the result of completing the square on the most general quadratic equation.

SUMMARY

Lesson Summary

Summary

Completing the square is a method for transforming any quadratic equation into the form (x − p)² = q. The process has five key steps: move the constant, divide by the leading coefficient (if needed), add (b/2)² to both sides, factor the perfect square trinomial, and solve using the square root property (remembering ±). The geometric idea is beautifully simple: you're adding a missing corner piece to form a complete square.

When you apply this method to the general equation ax² + bx + c = 0, you derive the quadratic formula: x = (−b ± √(b² − 4ac)) / (2a). The discriminant (b² − 4ac) tells you how many real solutions exist — two, one, or none. Completing the square is the foundation that connects factoring, the quadratic formula, vertex form, and graphing into one unified framework. Mastering it now prepares you for conic sections, complex numbers, and calculus optimization in future courses.

Varsity Tutors • Algebra 1 • Complete the Square to Find Solutions