TExcelTAD
Home › Algebra › Equations Containing Radicals

Equations Containing Radicals

An equation with the unknown under a square root, such as x+6=x\sqrt{x + 6} = x, is solved by isolating the root and squaring both sides. Squaring is not an equivalent step, though: it can create extraneous roots, candidates that satisfy the squared equation but not the original one. This lesson shows the method, why the false roots appear, and why checking every candidate is part of the solution.

The method

  1. Isolate one radical on one side of the equation.
  2. Raise both sides to the power that removes it: square for   \sqrt{\;}, cube for   3\sqrt[3]{\;}.
  3. Solve the resulting equation.
  4. Check every candidate in the original equation and reject those that fail.

A first example with only one candidate:

3x−2+4=93x−2=5isolate: subtract 43x−2=25square both sidesx=9check: 27−2+4=25+4=9 ✓\begin{aligned} \sqrt{3x - 2} + 4 &= 9 \\ \sqrt{3x - 2} &= 5 && \text{isolate: subtract 4} \\ 3x - 2 &= 25 && \text{square both sides} \\ x &= 9 \\[1ex] &\text{check: } \sqrt{27 - 2} + 4 = \sqrt{25} + 4 = 9\ \checkmark \end{aligned}

Extraneous roots

x+6=xx+6=x2squarex2−x−6=0(x−3)(x+2)=0factorx=3orx=−2check x=3: 9=3 ✓check x=−2: 4=2, but the right side is −2 ×\begin{aligned} \sqrt{x + 6} &= x \\ x + 6 &= x^2 && \text{square} \\ x^2 - x - 6 &= 0 \\ (x - 3)(x + 2) &= 0 && \text{factor} \\ x = 3 \quad &\text{or} \quad x = -2 \\[1ex] &\text{check } x = 3{:}\ \sqrt{9} = 3\ \checkmark \\ &\text{check } x = -2{:}\ \sqrt{4} = 2,\ \text{but the right side is } {-2}\ \boldsymbol{\times} \end{aligned}

(Factoring a quadratic is covered in Solving by Factoring; here SymPy can confirm it.) So the only solution is x=3x = 3; x=−2x = -2 is extraneous. Where did it come from? Squaring makes positive and negative equal: 2=−22 = -2 is false, but 22=(−2)22^2 = (-2)^2 is true. The squared equation x+6=x2x + 6 = x^2 is the same as either x+6=x\sqrt{x + 6} = x or −x+6=x-\sqrt{x + 6} = x, and x=−2x = -2 is the solution of the second one. Remember that   \sqrt{\;} always means the non-negative root.

The picture makes it visible. The original equation asks where the line y=xy = x meets the curve y=x+6y = \sqrt{x + 6}. The squared equation also counts where the line meets the mirror curve y=−x+6y = -\sqrt{x + 6}:

python · try it yourself
import numpy as np
import matplotlib.pyplot as plt

xs = np.linspace(-6, 5, 400)
plt.figure(figsize=(6, 4))
plt.plot(xs, np.sqrt(xs + 6), label="y = √(x + 6)")
plt.plot(xs, -np.sqrt(xs + 6), "--", label="y = −√(x + 6)")
plt.plot(xs, xs, label="y = x")
plt.scatter([3, -2], [3, -2], color="black", zorder=3)
plt.axhline(0, color="gray", lw=0.5); plt.axvline(0, color="gray", lw=0.5)
plt.legend(); plt.title("x = 3 is real, x = −2 is extraneous")

for x in (3, -2):
    print(x, "original holds:", np.sqrt(x + 6) == x)
3 original holds: True
-2 original holds: False

The line meets the solid curve only at (3,3)(3, 3). The point (−2,−2)(-2, -2) lies on the dashed mirror curve, which squaring smuggled in.

A harder one

2x−1+2=x2x−1=x−2isolate2x−1=x2−4x+4square; (x−2)2 needs the full expansionx2−6x+5=0(x−1)(x−5)=0x=1:1+2=3≠1× extraneousx=5:9+2=5✓\begin{aligned} \sqrt{2x - 1} + 2 &= x \\ \sqrt{2x - 1} &= x - 2 && \text{isolate} \\ 2x - 1 &= x^2 - 4x + 4 && \text{square; } (x - 2)^2 \text{ needs the full expansion} \\ x^2 - 6x + 5 &= 0 \\ (x - 1)(x - 5) &= 0 \\[1ex] x = 1{:}\quad &\sqrt{1} + 2 = 3 \ne 1 && \boldsymbol{\times}\ \text{extraneous} \\ x = 5{:}\quad &\sqrt{9} + 2 = 5 && \checkmark \end{aligned}

Note: (x−2)2(x - 2)^2 is x2−4x+4x^2 - 4x + 4, not x2−4x^2 - 4 or x2+4x^2 + 4. Squaring a side means squaring the whole side, not each term.

When two radicals appear, isolate one, square, then isolate the remaining one and square again:

x+5−x=1x+5=1+xx+5=1+2x+x4=2xx=2,x=4check: 9−4=3−2=1 ✓\begin{aligned} \sqrt{x + 5} - \sqrt{x} &= 1 \\ \sqrt{x + 5} &= 1 + \sqrt{x} \\ x + 5 &= 1 + 2\sqrt{x} + x \\ 4 &= 2\sqrt{x} \\ \sqrt{x} &= 2,\quad x = 4 && \text{check: } \sqrt{9} - \sqrt{4} = 3 - 2 = 1\ \checkmark \end{aligned}

Cube roots do not create false roots

Cubing is reversible, because every real number has exactly one real cube root and (−a)3=−a3(-a)^3 = -a^3. So   3\sqrt[3]{\;} equations need no rejection step (still check for arithmetic slips):

x−23=−3x−2=−27x=−25\begin{aligned} \sqrt[3]{x - 2} &= -3 \\ x - 2 &= -27 \\ x &= -25 \end{aligned}

Checking with SymPy

SymPy's solve checks candidates itself and drops extraneous ones. Squaring first and solving the squared equation shows what the candidates were:

python · try it yourself
from sympy import symbols, Eq, solve, sqrt

x = symbols("x")
print("squared eq:", solve(Eq(x + 6, x**2), x))
print("original:  ", solve(Eq(sqrt(x + 6), x), x))
print("squared eq:", solve(Eq(2*x - 1, (x - 2)**2), x))
print("original:  ", solve(Eq(sqrt(2*x - 1) + 2, x), x))
print("two roots: ", solve(Eq(sqrt(x + 5) - sqrt(x), 1), x))
print("cube root: ", solve(Eq(x - 2, (-3)**3), x))   # cubed by hand
squared eq: [-2, 3]
original:   [3]
squared eq: [1, 5]
original:   [5]
two roots:  [4]
cube root:  [-25]

In software

Radical equations come from distance and physics formulas, where the square root is natural. The distance from (0,0)(0, 0) to (x,4)(x, 4) is x2+16\sqrt{x^2 + 16}; asking where that distance is 5 gives x2+16=25x^2 + 16 = 25 and x=±3x = \pm 3, and here both roots are real answers, two points on the line. Free-fall time t=2hgt = \sqrt{\frac{2h}{g}} solved for hh gives h=g⋅t22h = \frac{g \cdot t^2}{2}. Whenever code squares both sides of a condition to avoid a slow sqrt (comparing dx*dx + dy*dy < r*r instead of sqrt(...) < r), it relies on both sides being non-negative, which is exactly the condition that rules out extraneous roots.

Exercises

Exercise 1: One root

Solve 5x+1=6\sqrt{5x + 1} = 6.

Answer

x=7x = 7

Solution
5x+1=365x=35x=7check: 36=6 ✓\begin{aligned} 5x + 1 &= 36 \\ 5x &= 35 \\ x &= 7 && \text{check: } \sqrt{36} = 6\ \checkmark \end{aligned}

Exercise 2: Spot the extraneous root

Solve x+2=x−4\sqrt{x + 2} = x - 4 by squaring. Which candidate is extraneous?

Answer

x=7x = 7 is the solution; x=2x = 2 is extraneous.

Solution
x+2=x2−8x+16x2−9x+14=0(x−2)(x−7)=0x=2:4=2, right side 2−4=−2×x=7:9=3, right side 7−4=3✓\begin{aligned} x + 2 &= x^2 - 8x + 16 \\ x^2 - 9x + 14 &= 0 \\ (x - 2)(x - 7) &= 0 \\[1ex] x = 2{:}\quad &\sqrt{4} = 2,\ \text{right side } 2 - 4 = -2 && \boldsymbol{\times} \\ x = 7{:}\quad &\sqrt{9} = 3,\ \text{right side } 7 - 4 = 3 && \checkmark \end{aligned}

Exercise 3: No solution at all

Solve x−1+5=2\sqrt{x - 1} + 5 = 2.

Answer

No solution.

Solution

Isolating gives x−1=−3\sqrt{x - 1} = -3. A square root is never negative, so there is no solution; you can stop here. (Squaring anyway gives x=10x = 10, and the check 9+5=8≠2\sqrt{9} + 5 = 8 \ne 2 rejects it.)

Exercise 4: A checker in code

Write check(candidates) that tests each candidate in 3x+4=x\sqrt{3x + 4} = x and prints whether it is a real solution. Use the candidates from squaring: x2−3x−4=0x^2 - 3x - 4 = 0, so x=4x = 4 and x=−1x = -1.

Answer

4 passes, −1 fails (1=1≠−1\sqrt{1} = 1 \ne -1).

Solution
python · try it yourself
import math

def check(candidates):
    for x in candidates:
        ok = 3*x + 4 >= 0 and math.isclose(math.sqrt(3*x + 4), x)
        print(x, "solution" if ok else "extraneous")

check([4, -1])
4 solution
-1 extraneous

Test yourself

Why can squaring both sides of an equation create extraneous roots?

  1. Squaring is not allowed in algebra
  2. a2=b2a^2 = b^2 holds when a=−ba = -b as well as when a=ba = b
  3. Square roots are always negative
  4. SymPy introduces them

Solving x+12=x\sqrt{x + 12} = x gives the candidates x=4x = 4 and x=−3x = -3. What is the solution set?

  1. {4}\{4\}
  2. {−3}\{-3\}
  3. {4,−3}\{4, -3\}
  4. No solution

Which step needs no check for extraneous roots?

  1. Squaring both sides
  2. Raising both sides to the 4th power
  3. Cubing both sides
  4. Multiplying both sides by xx