TExcelTAD
Home › Basic Math & Pre-Algebra › Simplifying Radicals

Simplifying Radicals

A radical is in simplest form when no perfect square hides inside it. 72\sqrt{72} and 626\sqrt{2} are the same number, but 626\sqrt{2} is easier to compare, combine and reason about. This lesson shows how to pull square factors out, how to add and multiply radicals, and how to clear a root from a denominator.

Pull out perfect squares

The product rule ab=a⋅b\sqrt{ab} = \sqrt{a} \cdot \sqrt{b} lets you split off the largest perfect-square factor:

72=36⋅2=36⋅2=6250=25⋅2=5248=16⋅3=4345=9⋅5=35\begin{aligned} \sqrt{72} &= \sqrt{36 \cdot 2} = \sqrt{36} \cdot \sqrt{2} = 6\sqrt{2} \\ \sqrt{50} &= \sqrt{25 \cdot 2} = 5\sqrt{2} \\ \sqrt{48} &= \sqrt{16 \cdot 3} = 4\sqrt{3} \\ \sqrt{45} &= \sqrt{9 \cdot 5} = 3\sqrt{5} \end{aligned}

If you don't spot the largest square at once, use the prime factorization and pair up equal primes. Each pair leaves the root as a single factor:

360=2⋅2⋅2⋅3⋅3⋅5=2⋅2⋅3⋅3⋅2⋅5=2⋅3⋅10=610\begin{aligned} \sqrt{360} &= \sqrt{2 \cdot 2 \cdot 2 \cdot 3 \cdot 3 \cdot 5} \\ &= \sqrt{2 \cdot 2} \cdot \sqrt{3 \cdot 3} \cdot \sqrt{2 \cdot 5} \\ &= 2 \cdot 3 \cdot \sqrt{10} = 6\sqrt{10} \end{aligned}

The pairing method is easy to turn into code:

python · try it yourself
def simplify_sqrt(n):
    outside, inside = 1, 1
    p = 2
    while n > 1:
        count = 0
        while n % p == 0:
            n //= p
            count += 1
        outside *= p ** (count // 2)    # each pair comes out
        inside *= p ** (count % 2)      # a leftover stays in
        p += 1
    return outside, inside

for n in [72, 50, 48, 360, 98, 17, 400]:
    a, b = simplify_sqrt(n)
    print(f"√{n} = {a}√{b}" if b > 1 else f"√{n} = {a}")
√72 = 6√2
√50 = 5√2
√48 = 4√3
√360 = 6√10
√98 = 7√2
√17 = 1√17
√400 = 20

(A careful version would print 17\sqrt{17} instead of 1171\sqrt{17}, an easy improvement to try.)

SymPy simplifies radicals automatically and keeps them exact:

python · try it yourself
from sympy import sqrt, Rational

print(sqrt(72))
print(sqrt(360))
print(sqrt(8) + sqrt(18))
print(sqrt(Rational(5, 12)))
print(float(sqrt(72)))
6*sqrt(2)
6*sqrt(10)
5*sqrt(2)
sqrt(15)/6
8.48528137423857

Adding and subtracting

Radicals combine only when the part under the root is the same, like collecting like terms (3x+5x=8x3x + 5x = 8x):

32+52=8273−3=632+3cannot be combined\begin{aligned} &3\sqrt{2} + 5\sqrt{2} = 8\sqrt{2} \\ &7\sqrt{3} - \sqrt{3} = 6\sqrt{3} \\ &\sqrt{2} + \sqrt{3} && \text{cannot be combined} \end{aligned}

Sometimes simplifying first reveals like terms. That is what SymPy did above:

8+18=22+32=52\sqrt{8} + \sqrt{18} = 2\sqrt{2} + 3\sqrt{2} = 5\sqrt{2}

Multiplying and dividing

Multiply the outside numbers together and the inside numbers together, then simplify:

(23)(56)=1018=10⋅32=3026⋅15=90=31050/2=25=5\begin{aligned} (2\sqrt{3})(5\sqrt{6}) &= 10\sqrt{18} = 10 \cdot 3\sqrt{2} = 30\sqrt{2} \\ \sqrt{6} \cdot \sqrt{15} &= \sqrt{90} = 3\sqrt{10} \\ \sqrt{50} / \sqrt{2} &= \sqrt{25} = 5 \end{aligned}

Rationalising the denominator

By tradition, a simplified answer has no root in the denominator. Multiply top and bottom by the root, which changes nothing because you multiply by 1:

12=1⋅22⋅2=2263=633=23512=512=523=5⋅32⋅3=156\begin{aligned} \frac{1}{\sqrt{2}} &= \frac{1 \cdot \sqrt{2}}{\sqrt{2} \cdot \sqrt{2}} = \frac{\sqrt{2}}{2} \\ \frac{6}{\sqrt{3}} &= \frac{6\sqrt{3}}{3} = 2\sqrt{3} \\ \sqrt{\frac{5}{12}} &= \frac{\sqrt{5}}{\sqrt{12}} = \frac{\sqrt{5}}{2\sqrt{3}} = \frac{\sqrt{5} \cdot \sqrt{3}}{2 \cdot 3} = \frac{\sqrt{15}}{6} \end{aligned}

The last one matches SymPy's sqrt(15)/6. 12=22≈0.7071\frac{1}{\sqrt{2}} = \frac{\sqrt{2}}{2} \approx 0.7071 is worth recognising: it is cos⁡45∘\cos 45^\circ and sin⁡45∘\sin 45^\circ.

Checking with decimals

Two forms of the same radical have the same decimal value, which is a quick check for your algebra:

python · try it yourself
import math

pairs = [("√72", math.sqrt(72), "6√2", 6 * math.sqrt(2)),
         ("1/√2", 1 / math.sqrt(2), "√2/2", math.sqrt(2) / 2),
         ("√8+√18", math.sqrt(8) + math.sqrt(18), "5√2", 5 * math.sqrt(2))]
for a, x, b, y in pairs:
    print(f"{a:7} = {x:.6f}   {b:5} = {y:.6f}   close: {math.isclose(x, y)}")
√72     = 8.485281   6√2   = 8.485281   close: True
1/√2    = 0.707107   √2/2  = 0.707107   close: True
√8+√18  = 7.071068   5√2   = 7.071068   close: True

Tip: Use math.isclose rather than == to compare floats: two correct computations can differ in the last binary digit.

In software

  • Exact geometry: a diagonal of a unit square is 2\sqrt{2}, a normalised (1,1)(1, 1) direction is (22,22)≈(0.7071,0.7071)\left(\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}\right) \approx (0.7071, 0.7071). You'll see 0.7071 constants in game code moving a character diagonally at the same speed as straight (see length and normalize).
  • Computer algebra: SymPy, Mathematica and friends keep 2\sqrt{2} symbolic, so (2)2(\sqrt{2})^2 is exactly 2, while floats give 2.0000000000000004.
  • Grid sizes: a hexagon grid uses 3\sqrt{3} for row spacing; keeping it symbolic until the end avoids rounding drift.

Exercises

Exercise 1: Simplify

Simplify 32\sqrt{32}, 75\sqrt{75}, 200\sqrt{200} and 147\sqrt{147}.

Answer

424\sqrt{2}, 535\sqrt{3}, 10210\sqrt{2}, 737\sqrt{3}.

Solution
32=16⋅2=4275=25⋅3=53200=100⋅2=102147=49⋅3=73\begin{aligned} \sqrt{32} &= \sqrt{16 \cdot 2} = 4\sqrt{2} \\ \sqrt{75} &= \sqrt{25 \cdot 3} = 5\sqrt{3} \\ \sqrt{200} &= \sqrt{100 \cdot 2} = 10\sqrt{2} \\ \sqrt{147} &= \sqrt{49 \cdot 3} = 7\sqrt{3} \end{aligned}

Exercise 2: Combine

Simplify 12+27−3\sqrt{12} + \sqrt{27} - \sqrt{3}.

Answer

434\sqrt{3}.

Solution
12=23,27=3323+33−3=(2+3−1)3=43\begin{aligned} &\sqrt{12} = 2\sqrt{3}, \quad \sqrt{27} = 3\sqrt{3} \\ &2\sqrt{3} + 3\sqrt{3} - \sqrt{3} = (2 + 3 - 1)\sqrt{3} = 4\sqrt{3} \end{aligned}

Exercise 3: Rationalise

Write 105\frac{10}{\sqrt{5}} and 36\frac{3}{\sqrt{6}} without a root in the denominator.

Answer

252\sqrt{5} and 62\frac{\sqrt{6}}{2}.

Solution
105=1055=2536=366=62\begin{aligned} \frac{10}{\sqrt{5}} &= \frac{10\sqrt{5}}{5} = 2\sqrt{5} \\ \frac{3}{\sqrt{6}} &= \frac{3\sqrt{6}}{6} = \frac{\sqrt{6}}{2} \end{aligned}

Check: 105≈4.4721\frac{10}{\sqrt{5}} \approx 4.4721 and 25≈4.47212\sqrt{5} \approx 4.4721.

Exercise 4: Fix the code

Change simplify_sqrt from this lesson so that it prints √17 instead of 1√17, and check it on 17, 12 and 64.

Answer

17\sqrt{17}, 232\sqrt{3}, 8.

Solution

Only the printing changes: leave out the outside factor when it is 1.

python · try it yourself
def simplify_sqrt(n):
    outside, inside, p = 1, 1, 2
    while n > 1:
        count = 0
        while n % p == 0:
            n //= p
            count += 1
        outside *= p ** (count // 2)
        inside *= p ** (count % 2)
        p += 1
    return outside, inside

def show(n):
    a, b = simplify_sqrt(n)
    if b == 1:
        return f"√{n} = {a}"
    return f"√{n} = {'' if a == 1 else a}√{b}"

for n in [17, 12, 64]:
    print(show(n))
√17 = √17
√12 = 2√3
√64 = 8

Test yourself

Simplify 98\sqrt{98}.

  1. 49249\sqrt{2}
  2. 727\sqrt{2}
  3. 272\sqrt{7}
  4. 14714\sqrt{7}

What is 25+352\sqrt{5} + 3\sqrt{5}?

  1. 5105\sqrt{10}
  2. 656\sqrt{5}
  3. 555\sqrt{5}
  4. 25\sqrt{25}

Which equals 13\frac{1}{\sqrt{3}} with a rational denominator?

  1. 33\frac{\sqrt{3}}{3}
  2. 33\frac{3}{\sqrt{3}}
  3. 3\sqrt{3}
  4. 13\frac{1}{3}