Sub topic 7
Simplifying radicals with variables
This chapter assumes you can simplify numeric radicals by pulling out perfect-square factors. It also assumes you know the product rule, √(ab) = √a · √b, and the principal root, which is never negative. You should be comfortable with the exponent rules for products and powers, and with factoring simple quadratics.
Why variables change the rules
With numbers, √(9) is 3 and nothing can go wrong. With a variable, the sign of the variable is unknown. Take √(x²). If x = 5, the result is 5. If x = −5, the result is √25 = 5, not −5. The radical symbol always gives the non-negative root, so the answer has to be non-negative for every x.
The identity that fixes this is:
import math
x = -3
print(math.sqrt(x ** 2)) # 3.0
print(abs(x)) # 3So √(x²) = |x|. Writing just x is correct only when you know x ≥ 0.
Two ways to handle the sign problem
Textbooks and courses use one of two conventions. Check which one your course uses.
- Assume positive variables. The problem says "assume all variables represent positive real numbers." Then √(x²) = x, and absolute value bars are never needed.
- No assumption. The variable can be any real number the expression allows. Then you must use absolute value bars wherever the sign of the result could be wrong.
This chapter uses the second convention, because it is the one that is always correct. When you see the first convention, you can drop the bars.
Even exponents
Powers with even exponents are perfect squares of a variable power. The rule is:
√(x^(2k)) = |x^k|
Whether you need the bars depends on k.
- If k is even, x^k is already non-negative for every real x. No bars are needed. Example: √(x⁴) = x², since x² ≥ 0.
- If k is odd, x^k can be negative. Bars are required. Example: √(x⁶) = |x³|, since x³ is negative when x is.
| Expression | Simplified | Why | Column | Column |
|---|---|---|---|---|
| √(x²) | \ | x\ | k = 1 is odd | |
| √(x⁴) | x² | k = 2, and x² is never negative | ||
| √(x⁶) | \ | x³\ | k = 3 is odd | |
| √(x⁸) | x⁴ | k = 4, and x⁴ is never negative | ||
| √(25x²) | 5\ | x\ | the 5 comes out as a number, x needs bars |
A quick test: after simplifying, ask "could the part I pulled out be negative?" If it could, add the bars.
Odd exponents
An odd exponent cannot be a perfect square, so split off one factor:
x⁵ = x⁴ · x, so √(x⁵) = √(x⁴) · √(x) = x²√x
The product rule requires both √(x⁴) and √x to be real numbers. That means x ≥ 0 is already needed for the original expression to make sense. Since x ≥ 0, the part you pull out, x², is non-negative and needs no bars. This gives a useful shortcut:
- If the original exponent is odd, the variable must be non-negative for the radical to exist. No bars are needed on that variable.
- If the original exponent is even, the variable may be negative, so check whether k is odd.
For an exponent n, write n = 2k + r with r equal to 0 or 1. Then k copies of the variable come outside and r copies stay inside. Integer division does this: for x⁷, 7 ÷ 2 gives quotient 3 and remainder 1, so √(x⁷) = x³√x.
The decision process
The flowchart summarizes what to do with each variable.
Worked example with a coefficient
Simplify √(48x⁵y²).
- Handle the number. 48 = 16 · 3, so √48 = 4√3.
- Handle x⁵. 5 = 2·2 + 1, so x² comes out and one x stays in. Since the exponent is odd, x ≥ 0 is implied.
- Handle y². Here k = 1 is odd, so the result is |y|.
- Combine: 4x²|y|√(3x).
The domain note matters. The answer is defined only when x ≥ 0, because the original expression has x⁵ under the root and y² ≥ 0 always.
A function that does the bookkeeping
The code below applies the rules to a monomial c·x^a·y^b…. It reuses the numeric simplifier from the earlier chapter. It assumes that any variable with an odd exponent is non-negative.
def simplify_sqrt(n):
"""Return (outside, inside) so that sqrt(n) = outside * sqrt(inside)."""
outside, inside = 1, n
f = 2
while f * f <= inside:
while inside % (f * f) == 0:
outside *= f
inside //= f * f
f += 1
return outside, inside
def simplify_monomial(coef, powers):
"""Simplify sqrt(coef * product of var**exp) for a positive integer coef.
powers maps variable names to positive integer exponents.
Variables with odd exponents are assumed to be non-negative.
"""
outside_num, inside_num = simplify_sqrt(coef)
out_parts, in_parts = [], []
if inside_num != 1:
in_parts.append(str(inside_num))
for var, e in sorted(powers.items()):
k, r = divmod(e, 2)
if k:
term = var if k == 1 else f"{var}^{k}"
if r == 0 and k % 2 == 1:
term = f"|{term}|"
out_parts.append(term)
if r:
in_parts.append(var)
out = (str(outside_num) if outside_num != 1 else "") + "".join(out_parts)
inner = "√(" + "".join(in_parts) + ")" if in_parts else ""
return (out + inner) or "1"
print(simplify_monomial(48, {"x": 5, "y": 2})) # 4x^2|y|√(3x)
print(simplify_monomial(18, {"x": 6})) # 3|x^3|√(2)
print(simplify_monomial(1, {"x": 4})) # x^2
print(simplify_monomial(20, {"a": 3, "b": 4})) # 2ab^2√(5a)The last line shows that b⁴ gives b² with no bars, while a³ gives a with an a left inside.
Variables inside sums
Absolute value also appears when the radicand is a perfect-square binomial. Recognize it first by factoring:
√(x² − 6x + 9) = √((x − 3)²) = |x − 3|
The bars are needed because x − 3 is negative when x < 3.
Compare this with a sum that does not factor into a square:
√(x² + 9) cannot be simplified.
Common errors
- Splitting a sum. √(x² + 9) is not x + 3. The product rule works for multiplication only. A quick check: at x = 4, √25 = 5 but 4 + 3 = 7.
- Dropping the bars. Writing √(x²) = x is wrong whenever x can be negative. Test with x = −2.
- Adding bars where they are not needed. √(x⁴) = x², not |x²|. The bars are harmless here, since |x²| = x², but they signal the reasoning was not checked.
- Bars on an odd-exponent variable. In √(x³) = x√x, the variable must already be non-negative. Bars on x would be redundant.
- Forgetting the domain. √(x³) exists only for x ≥ 0. A simplified answer like x√x does not state this, so keep the restriction in mind when you use it.
- Treating √(x²) and (√x)² as the same. (√x)² = x only for x ≥ 0, while √(x²) = |x| for every real x. They have different domains.
Several variables and mixed factors
When the radicand has several variables, treat each one separately and multiply the results. For √(72a³b⁶c):
- Number: √72 = 6√2.
- a³: a comes out, a stays inside (a ≥ 0).
- b⁶: k = 3 is odd, so |b³| comes out.
- c: stays inside (c ≥ 0).
Result: 6a|b³|√(2ac).
Note that the variable a must be non-negative because its exponent is odd, and c must be non-negative as well. Only b can be any real number.
Summary of rules
| Original exponent n | Pulled out | Left inside | Bars? | Column | Column |
|---|---|---|---|---|---|
| even, n/2 even | x^(n/2) | nothing | no | ||
| even, n/2 odd | \ | x^(n/2)\ | nothing | yes | |
| odd | x^((n−1)/2) | x | no, x ≥ 0 required |
Exercises
Exercise
Simplify √(75x³y⁴) with no assumption beyond what the expression requires, and state any restriction on the variables.
Show answer
√75 = 5√3. For x³, one x comes out and one stays in, so x ≥ 0 is required. For y⁴, y² comes out and needs no bars because y² is never negative. The result is 5xy²√(3x), valid for x ≥ 0 and any real y.
Exercise
Simplify √(x² + 10x + 25) and explain why bars are needed.
Show answer
The radicand factors as (x + 5)², so the result is |x + 5|. The bars are needed because x + 5 is negative when x < −5, and a principal square root is never negative. For example, at x = −7 the radicand is 4, the root is 2, and |−7 + 5| = 2.
Exercise
A student writes √(x⁶) = x³. Give a value of x that shows the answer is wrong, and write the correct result.
Show answer
Take x = −2. Then √(x⁶) = √64 = 8, but x³ = −8. The correct result is |x³|, which equals 8 at x = −2.