Sub topic 8
The Square Root Method
Assume you can solve linear equations, simplify square roots, and recognize perfect squares. You should also know that squaring and taking a square root are inverse operations.
The square root method solves a quadratic equation by isolating a squared expression. It works especially well when the equation can be written as
\[ (x+h)^2=k. \]
After isolating the square, take the positive and negative square roots:
\[ x+h=\pm\sqrt{k}. \]
The symbol \(\pm\) means that both signs must be used.
Isolate the squared expression
Consider:
\[ (x-3)^2=25. \]
Take the square root of both sides:
\[ x-3=\pm\sqrt{25}. \]
Since \(\sqrt{25}=5\),
\[ x-3=\pm5. \]
Solve the two resulting linear equations:
\[ x-3=5 \quad\text{or}\quad x-3=-5. \]
Therefore,
\[ x=8 \quad\text{or}\quad x=-2. \]
The two solutions are symmetric around \(x=3\), the value that makes the squared expression zero.
Use the method when a coefficient is present
The squared expression may be multiplied by a constant. First divide to isolate it.
Solve:
\[ 2(x+1)^2=18. \]
Divide both sides by \(2\):
\[ (x+1)^2=9. \]
Take both square roots:
\[ x+1=\pm3. \]
Solve each equation:
\[ x+1=3 \Rightarrow x=2, \]
\[ x+1=-3 \Rightarrow x=-4. \]
Thus the solutions are \(x=2\) and \(x=-4\).
The same process works with a negative coefficient, but dividing may change the sign:
\[ -3(x-2)^2=-12. \]
Dividing by \(-3\) gives
\[ (x-2)^2=4. \]
Then
\[ x-2=\pm2, \]
so \(x=4\) or \(x=0\).
Interpret the right side
The value of \(k\) determines the type of real solution.
| Equation form | Real solutions |
|---|---|
| \((x+h)^2=k\), where \(k>0\) | Two solutions |
| \((x+h)^2=0\) | One repeated solution |
| \((x+h)^2=k\), where \(k<0\) | No real solutions |
A square cannot be negative for a real number. For example,
\[ (x+4)^2=-9 \]
has no real solution. If complex numbers are allowed, then \(\sqrt{-9}=3i\), giving \(x=-4\pm3i\). In a real-number algebra course, report no real solutions.
Common errors
- Do not write \(x+h=\sqrt{k}\) and ignore the negative root.
- Do not take the square root before isolating the squared expression.
- Keep parentheses when the entire binomial is squared.
- Check both answers in the original equation, especially when fractions or negative coefficients are involved.
import math
def square_root_method(a, h, k):
"""Solve a * (x + h)^2 = k over the real numbers."""
if a == 0:
raise ValueError("The coefficient a must not be zero.")
rhs = k / a
if rhs < 0:
return ()
root = math.sqrt(rhs)
solutions = {-h - root, -h + root}
return tuple(sorted(solutions))
print(square_root_method(2, 1, 18)) # (-4.0, 2.0)
print(square_root_method(1, -2, 0)) # (2.0,)
print(square_root_method(1, 4, -9)) # ()The function models the form \(a(x+h)^2=k\). It divides by \(a\), checks whether the resulting right side is nonnegative, and then uses both signs of the square root.
Exercise
Solve \(5(x-1)^2=45\), and state how many real solutions the equation has.
Show answer
Divide by 5: \((x-1)^2=9\). Then \(x-1=\pm3\), so \(x=4\) or \(x=-2\). The equation has two real solutions.