Sub topic 8
The square root method
What this chapter assumes
You should already know how to write a quadratic in standard form, apply the zero product property, and recognize perfect squares such as 49 or x^2 + 6x + 9. You should also be comfortable with simplifying square roots and solving linear equations. This chapter covers equations that can be rearranged into the form (x + h)^2 = k. It also sets up the next chapter, where completing the square turns any quadratic into that form.
The core idea
The square root method solves an equation in which a squared expression is isolated on one side. If an expression squared equals a number, then the expression equals the positive or the negative square root of that number.
In symbols, for k ≥ 0:
- If u^2 = k, then u = √k or u = -√k.
- This is usually written u = ±√k.
Here u can be any expression, not only a single variable. For example, u could be x, x + 3, or 2x - 5.
Why there are two answers
The equation u^2 = 9 has two solutions because both 3 and -3 square to 9. You can see the same result with the zero product property:
- Move everything to one side: u^2 - 9 = 0.
- Factor as a difference of squares: (u - 3)(u + 3) = 0.
- Set each factor to zero: u = 3 or u = -3.
So the square root method is a shortcut for factoring a difference of squares. It also works when k is not a perfect square, and that is where factoring over the integers fails. For u^2 = 7, the factorization is (u - √7)(u + √7) = 0, and the method gives u = ±√7 directly.
Three steps
- Isolate the squared expression, so it is alone on one side.
- Take the square root of both sides, using ± on the number side.
- Solve the resulting linear equations for the variable.
Example 1: a bare square
Solve 3x^2 - 48 = 0.
- Isolate the square: 3x^2 = 48, so x^2 = 16.
- Take roots: x = ±√16 = ±4.
- The solutions are x = 4 and x = -4.
Example 2: a squared binomial
Solve (x - 2)^2 = 25.
- The square is already isolated.
- Take roots: x - 2 = ±5.
- Split into two linear equations: x - 2 = 5 gives x = 7, and x - 2 = -5 gives x = -3.
The solutions are x = 7 and x = -3.
A common error is to take the square root of each term and write x - 2 = ±√x... or to distribute the root across the subtraction. The square root applies to the whole side, and the side that holds the squared expression becomes just that expression.
Example 3: an irrational result
Solve (2x + 1)^2 = 12.
- Take roots: 2x + 1 = ±√12.
- Simplify the radical: √12 = 2√3, so 2x + 1 = ±2√3.
- Subtract 1 and divide by 2: x = (-1 ± 2√3) / 2.
The two solutions are x = (-1 + 2√3)/2 and x = (-1 - 2√3)/2. Approximately, these are 1.232 and -2.232.
Leave the answer in exact form unless the problem asks for a decimal. Keep ± attached to the radical term, and divide every term of the numerator by the coefficient of x. Writing -1 ± √3 would be wrong here, because the 2 must also divide the 2√3.
Cases that depend on the sign of k
The sign of the number on the right decides how many real solutions exist.
| Equation | Value of k | Real solutions |
|---|---|---|
| (x + 1)^2 = 9 | k > 0 | Two: x = 2 and x = -4 |
| (x + 1)^2 = 0 | k = 0 | One, repeated: x = -1 |
| (x + 1)^2 = -9 | k < 0 | None |
A real number squared is never negative, so (x + 1)^2 = -9 has no real solution. Do not write ±√-9 as a real answer. In a course limited to real numbers, you state that there are no real solutions.
When k = 0, the ± does not give two different values, because +0 and -0 are the same number. The single solution is called a repeated root, and it is the case where the equation is a perfect square trinomial set to zero, for example x^2 + 2x + 1 = 0.
Recognizing when the method applies
The method applies directly when the equation has a squared expression and no separate first-degree term. Two situations are common.
- The equation has the form ax^2 + c = 0 with b = 0. Isolate x^2 and take roots, as in Example 1.
- The equation has a perfect square on one side, such as x^2 + 6x + 9 = 4. Here the left side factors as (x + 3)^2, so you can write (x + 3)^2 = 4 and then x + 3 = ±2. The solutions are x = -1 and x = -5.
If the equation has an x term and the quadratic side is not a perfect square, the method does not apply yet. For x^2 + 6x + 5 = 0, you cannot take roots of both sides, because the left side is not a single squared expression. The next chapter shows how to add a number to both sides so that it becomes one.
Implementing the method in code
The function below solves (x + h)^2 = k for real x and returns the solutions in exact floating-point form. It handles the three cases from the table.
import math
def square_root_method(h, k):
"""Solve (x + h)^2 = k over the reals. Return a sorted tuple of solutions."""
if k < 0:
return () # no real solutions
root = math.sqrt(k)
# x + h = +root or x + h = -root
return tuple(sorted({-h + root, -h - root}))
print(square_root_method(-2, 25)) # (-3.0, 7.0)
print(square_root_method(1, 0)) # (-1.0,)
print(square_root_method(1, -9)) # ()The set {-h + root, -h - root} removes the duplicate when k = 0, which gives the repeated root a single entry. Floating-point square roots of non-perfect squares are approximate, so compare results with a tolerance such as math.isclose instead of ==.
Checking solutions
Substitute each solution into the original equation. For (x - 2)^2 = 25 with x = -3, the left side is (-3 - 2)^2 = (-5)^2 = 25, which matches the right side. With x = 7, it is 5^2 = 25, which also matches.
For irrational solutions, check by squaring: with x = (-1 + 2√3)/2, we have 2x + 1 = 2√3, and (2√3)^2 = 4 · 3 = 12, which matches the original right side.
Substitution into a correctly solved square root problem never produces extraneous solutions, because every step is reversible. A failed check means an arithmetic slip, most often a missing division of the whole numerator by the coefficient of x.
Common errors
- Dropping the ±, which loses one solution.
- Taking the square root before isolating the square. In 3x^2 - 48 = 0, you must divide by 3 first.
- Taking roots term by term, for example turning (x + 3)^2 = 16 into x + 3 = ±4 correctly but turning x^2 + 9 = 25 into x + 3 = ±5, which is false. The root applies to a whole side only when that side is a single squared expression.
- Splitting only part of a fraction: with x = (-1 ± 2√3)/2, the 2 divides both -1 and 2√3.
- Reporting a real answer for a negative k.
Exercises
Exercise
Solve 2(x + 4)^2 - 50 = 0 using the square root method, and check one solution.
Show answer
Isolate the square: 2(x + 4)^2 = 50, so (x + 4)^2 = 25. Take roots: x + 4 = ±5. Then x = 1 or x = -9. Check x = 1: 2(5)^2 - 50 = 50 - 50 = 0. Check x = -9: 2(-5)^2 - 50 = 0.
Exercise
Solve (3x - 1)^2 = 20. Give exact solutions in simplest form.
Show answer
Take roots: 3x - 1 = ±√20 = ±2√5. Add 1: 3x = 1 ± 2√5. Divide by 3: x = (1 ± 2√5)/3. The two solutions are (1 + 2√5)/3 and (1 - 2√5)/3.
Exercise
How many real solutions does x^2 - 10x + 25 = -4 have, and why?
Show answer
The left side factors as (x - 5)^2, so the equation is (x - 5)^2 = -4. A real number squared is never negative, so there are no real solutions.