ALGEBRA 2 • ONE-VARIABLE EQUATIONS & INEQUALITIES

Complete the Square to Find Solutions

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

Historical Context & Motivation

Long before anyone wrote equations with an x in them, ancient civilizations needed to solve problems that we now recognize as quadratic. Babylonian scribes, Egyptian engineers, and Greek geometers all wrestled with questions like: "What length and width give a rectangle with a fixed perimeter and a known area?" The technique they developed—completing the square—is one of the oldest algebraic methods still taught today, and it remains the foundation from which the quadratic formula is derived.

~1800 BCE
Babylonian Clay Tablets
Babylonian mathematicians solved quadratic-style problems by manipulating geometric areas on clay tablets. They essentially "completed" rectangles into squares to find unknown side lengths.
~300 BCE
Euclid's Elements
Euclid presented geometric propositions in Book II of the Elements that correspond to completing the square, though he expressed everything in terms of areas and line segments rather than algebra.
~825 CE
Al-Khwarizmi's Algebra
The Persian mathematician al-Khwarizmi wrote the first systematic algebra textbook. He explicitly described the method of completing the square to solve all types of quadratic equations, giving us the word algebra itself (from al-jabr).
1637
Descartes & Symbolic Algebra
René Descartes introduced modern algebraic notation, making it possible to write completing the square in the symbolic form we use today: transforming ax² + bx + c = 0 into (x − p)² = q.
Today
CCSS A-REI.4.a
The Common Core standard explicitly requires students to complete the square on any quadratic and to derive the quadratic formula from (x − p)² = q. This ancient technique is now a cornerstone of high school algebra.

So here is the central question this lesson answers: given a general quadratic equation like 2x² + 12x + 7 = 0, how do we systematically rewrite it in the form (x − p)² = q so that we can solve for x by simply taking a square root? And once we master that process for any specific equation, how does repeating it with letters instead of numbers give us the quadratic formula itself?

Core Principles & Definitions

Before diving into the procedure, you need a solid grasp of a few foundational ideas. Each one builds on what you already know from Algebra 1, so think of this section as connecting familiar concepts in a new way.

1

Perfect Square Trinomial

An expression of the form x² + 2dx + d² that factors neatly as (x + d)². Recognizing and creating these trinomials is the heart of completing the square.
2

Standard Form vs. Vertex Form

Standard form is ax² + bx + c. Vertex form is a(x − p)² + k. Completing the square converts one into the other, revealing the vertex of the parabola.
3

The "Half-and-Square" Rule

To complete x² + bx into a perfect square trinomial, take half of b and square it. Add (b/2)² to both sides of the equation to keep it balanced.
4

Leading Coefficient Must Be 1

If the coefficient of x² is not 1, you must divide every term by that coefficient first (or factor it out) before completing the square. This is a step many students forget.
5

Same Solutions Guarantee

Every algebraic step preserves the solution set. Adding the same value to both sides, factoring, and taking square roots (with ±) are all reversible operations, so (x − p)² = q has exactly the same solutions as the original equation.
KEY TAKEAWAY
Think of completing the square like building a puzzle. You have most of the pieces of a perfect square trinomial, but one piece is missing. The "half-and-square" rule tells you exactly which piece to add. Once the puzzle is complete, the expression folds into a single squared factor, making it straightforward to solve by taking a square root.

Visual Explanation — The Geometry of Completing the Square

The name "completing the square" is not a metaphor—it literally comes from geometry. Consider the expression x² + 6x. Geometrically, x² is a square with side length x, and 6x is a rectangle with sides x and 6. If you split that rectangle into two strips of width 3 and attach them to two sides of the square, you almost form a bigger square with side length (x + 3). The only missing piece is a tiny 3 × 3 square in the corner—that's the 9 you add to complete it.

The purple region is x². The two cyan strips together represent 6x (split into 3x + 3x). The dashed pink square (area 9) is the piece you add to complete the square, turning the whole figure into (x + 3)².

This geometric picture makes the algebra feel natural. Whenever you see x² + bx, imagine an x-by-x square with a rectangle of area bx attached to it. Split that rectangle in half, rearrange the two strips, and you will always need a square of area (b/2)² to fill the gap. That is the number you add to both sides of the equation.

Mathematical Framework — The Procedure Step by Step

Now let's formalize the technique. Suppose you have a general quadratic equation in standard form. The goal is to rewrite it so one side is a perfect square.

STANDARD FORM
ax² + bx + c = 0
where a, b, and c are real numbers with a ≠ 0.

The Completing-the-Square Algorithm

  1. Step 1 — Isolate the variable terms. Move the constant to the other side: ax² + bx = −c.
  2. Step 2 — Make the leading coefficient 1. Divide every term by a: x² + (b/a)x = −c/a.
  3. Step 3 — Compute (half the linear coefficient)². That's (b/(2a))² = b²/(4a²).
  4. Step 4 — Add that value to BOTH sides. x² + (b/a)x + b²/(4a²) = −c/a + b²/(4a²).
  5. Step 5 — Factor the left side. It's now (x + b/(2a))².
  6. Step 6 — Simplify the right side and solve. Combine fractions, then take the square root of both sides (remembering ±).
TARGET FORM
(x − p)² = q
where p = −b/(2a) and q = (b² − 4ac)/(4a²). The solutions are x = p ± √q.

Deriving the Quadratic Formula

If you carry out the six steps above on the general equation ax² + bx + c = 0 without substituting specific numbers, you derive the quadratic formula. After completing the square, you reach (x + b/(2a))² = (b² − 4ac)/(4a²). Taking the square root of both sides gives x + b/(2a) = ±√(b² − 4ac)/(2a). Subtracting b/(2a) from both sides yields the formula below.

QUADRATIC FORMULA
x = (−b ± √(b² − 4ac)) / (2a)
The expression under the radical, b² − 4ac, is called the discriminant. It determines whether the solutions are real or complex.
💡 Why This Derivation Matters
The quadratic formula is not a "magic" result—it is simply what you get when you complete the square on ax² + bx + c = 0 using letters instead of numbers. Understanding the derivation means you can always reconstruct the formula from scratch, even if you forget it on a test.

Detailed Breakdown — Completing the Square with Specific Numbers

Let's trace through two concrete examples side by side so you can see how the algorithm adapts. The first example has a leading coefficient of 1 (the simpler case), and the second has a leading coefficient other than 1. Pay attention to how each step maps to the general procedure from Section 4.

Both examples follow the same six-step process. Example A (amber) has a = 1, so Step 2 is trivial. Example B (emerald) requires dividing by 2 first, but otherwise the pattern is identical. Notice how the final form always looks like (x − p)² = q.

A few things to notice in both examples. First, the value you add to both sides is always the square of half the coefficient of x after the leading coefficient has been made 1. Second, the sign inside the squared binomial matches the sign of the linear term: +8x gives (x + 4), and +6x gives (x + 3). Third, the ± symbol in the final step is essential—without it, you would only find one of the two solutions.

⚠️ Common Pitfall
When the linear coefficient is odd (like x² + 5x), you'll get fractions: (5/2)² = 25/4. Don't panic—fractions are perfectly fine. In fact, the quadratic formula naturally produces fractions for most equations. Practice staying comfortable with them.

Worked Example — From Standard Form to Solutions

Let's work through one more example from start to finish with full detail. We will solve 3x² − 18x + 10 = 0 by completing the square.

Solve 3x² − 18x + 10 = 0 by Completing the Square
1
Step 1 — Move the Constant to the Right SideSubtract 10 from both sides to isolate the variable terms on the left.
3x² − 18x = −10
2
Step 2 — Divide Every Term by the Leading CoefficientThe leading coefficient is 3. Divide all terms by 3 so that x² has a coefficient of 1.
x² − 6x = −10/3
3
Step 3 — Compute (Half the Linear Coefficient)²The linear coefficient is −6. Half of −6 is −3. Squaring −3 gives 9. This is the value we need to add.
(−6/2)² = (−3)² = 9
4
Step 4 — Add 9 to Both SidesAdding 9 to the left side completes the perfect square trinomial. Adding 9 to the right side keeps the equation balanced.
x² − 6x + 9 = −10/3 + 9 = −10/3 + 27/3 = 17/3
5
Step 5 — Factor the Left Side as a Perfect Squarex² − 6x + 9 is the expansion of (x − 3)². Rewrite the left side in factored form.
(x − 3)² = 17/3
6
Step 6 — Take the Square Root of Both Sides and SolveApply the square root property, remembering the ± sign. Then isolate x by adding 3 to both sides. The exact solutions are below, and you can rationalize the denominator if desired: √(17/3) = √51/3.
x = 3 ± √(17/3) or equivalently x = 3 ± √51/3 (approximately x ≈ 5.38 or x ≈ 0.62)
Verification Tip
You can always check your work by plugging your solutions back into the original equation 3x² − 18x + 10 = 0. With a calculator, substituting x ≈ 5.38 should give a value very close to 0 (rounding errors aside). You can also verify by using the quadratic formula with a = 3, b = −18, c = 10 and confirming you get the same answers.

Comparing Solving Methods — Strengths & Limitations

Completing the square is one of several strategies for solving quadratic equations. Understanding when each method shines—and where it struggles—will help you choose the most efficient approach for any given problem.

Comparison of quadratic solving methods
MethodBest Used When…Limitations
FactoringCoefficients are small integers and the trinomial factors easily (e.g., x² + 5x + 6).Many quadratics don't factor over the integers. Doesn't help when solutions are irrational or complex.
Completing the SquareYou need exact solutions, want to convert to vertex form, or are deriving the quadratic formula. Works on every quadratic.Can be tedious with messy fractions when a, b, or c are large or non-integer. Requires careful arithmetic.
Quadratic FormulaA reliable "catch-all" that works for every quadratic. Great when factoring is hard or impossible.Requires memorizing the formula. Gives less geometric insight than completing the square. Easy to make sign errors.
GraphingYou need approximate solutions or a visual overview of the parabola's behavior (vertex, axis of symmetry).Gives only approximate solutions (depends on graph precision). Cannot reveal exact irrational or complex roots.
KEY TAKEAWAY
Completing the square is like having a Swiss Army knife: it may not always be the fastest tool, but it's the most versatile. It solves equations, reveals the vertex of a parabola, and even proves the quadratic formula. Think of factoring as a shortcut that works when you're lucky with nice numbers, the quadratic formula as a shortcut that always works once you memorize it, and completing the square as the underlying engine that powers them all.

Connection to Advanced Theory — The Discriminant & Complex Numbers

Completing the square does more than solve specific equations—it opens the door to deeper ideas you will encounter later in Algebra 2 and precalculus. The most important of these is the discriminant, the expression b² − 4ac that appears under the radical in the quadratic formula. Because the quadratic formula is derived from completing the square, understanding the square-completion process helps you see why the discriminant controls the nature of solutions.

The discriminant determines solution type
Discriminant ValueWhat It Means for (x − p)² = qNumber & Type of Solutions
b² − 4ac > 0q is positive, so √q is a real number.Two distinct real solutions
b² − 4ac = 0q = 0, so (x − p)² = 0 ⟹ x = p.One repeated real solution (double root)
b² − 4ac < 0q is negative, so √q involves i = √(−1).Two complex (non-real) solutions

Looking ahead, completing the square also appears when you study conic sections (circles, ellipses, parabolas, hyperbolas) in Algebra 2 and precalculus, because the equations of these curves involve squared terms that need to be rewritten in standard form. In calculus, completing the square is used to simplify certain integrals. The technique you are learning right now will keep paying dividends throughout your mathematical career.

Practice Problems

Test your understanding with the following five problems, arranged from conceptual to challenging. Try each one on your own before reading the answer.

PROBLEM 1CONCEPTUAL
When completing the square on x² + 10x, what value must you add to create a perfect square trinomial? Explain why using the "half-and-square" rule.
PROBLEM 2BASIC CALCULATION
Solve x² + 6x − 7 = 0 by completing the square. Express your answers as exact values.
PROBLEM 3INTERMEDIATE
Solve 2x² − 12x + 5 = 0 by completing the square. Write the equation in (x − p)² = q form and then find the solutions.
PROBLEM 4APPLIED
A ball is launched upward from a 4-foot platform. Its height in feet after t seconds is h(t) = −16t² + 32t + 4. Use completing the square to rewrite h(t) in vertex form a(t − p)² + k, and determine the maximum height the ball reaches and when it reaches that height.
PROBLEM 5CRITICAL THINKING
Starting from ax² + bx + c = 0 (with a ≠ 0), carry out the completing-the-square process using only the letters a, b, and c. Show each step and derive the quadratic formula x = (−b ± √(b² − 4ac)) / (2a). Explain why the discriminant b² − 4ac determines whether solutions are real.

Lesson Summary

Completing the square is an algebraic technique that transforms any quadratic equation in standard form (ax² + bx + c = 0) into the equivalent (x − p)² = q form, which can be solved by taking a square root. The six-step process begins by isolating the variable terms, making the leading coefficient 1, then applying the half-and-square rule to create a perfect square trinomial on one side of the equation. Geometrically, you are literally completing a square shape by adding the missing corner piece.

When the same process is carried out on the general equation ax² + bx + c = 0 using letters, it produces the quadratic formula: x = (−b ± √(b² − 4ac)) / (2a). The expression b² − 4ac, called the discriminant, tells you whether solutions are real or complex. Completing the square is not just one method among many—it is the foundational method from which the quadratic formula is derived, and it appears again in conic sections, calculus, and beyond.

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