Sub topic 10
Solving equations with variable exponents
This chapter covers equations where the unknown sits in the exponent, such as 2^(x+1) = 32. It assumes you know the product, quotient, and power rules, zero and negative exponents, and fractional exponents. It also assumes you can solve linear equations.
The core idea: match the bases
An exponential function with a fixed positive base other than 1 never repeats a value. Each output comes from exactly one exponent. This gives the rule behind every problem in this chapter:
If b > 0, b ≠ 1, and b^m = b^n, then m = n.
The strategy has three steps:
- Rewrite both sides as powers of the same base. Small primes such as 2, 3, 5, and 7 are the usual choice.
- Use the exponent rules to reduce each side to a single power.
- Set the exponents equal and solve the resulting linear equation.
Worked examples
A single power on each side
Solve 2^(x+1) = 32. Since 32 = 2^5, the equation becomes 2^(x+1) = 2^5. Then x + 1 = 5, so x = 4.
Different bases that share a prime
Solve 4^x = 8^(x−1). Write 4 = 2^2 and 8 = 2^3. The power rule gives 2^(2x) = 2^(3(x−1)). Setting the exponents equal gives 2x = 3x − 3, so x = 3.
Check: 4^3 = 64 and 8^2 = 64.
Answers that are fractions or negative
Solve 9^x = 27. Write both sides as powers of 3: 3^(2x) = 3^3. Then 2x = 3, so x = 3/2.
Solve 2^x = 1/16. A negative exponent turns 16 into a denominator: 1/16 = 2^(−4). So x = −4.
Fractional exponents on the other side work the same way. For 2^x = √8, write √8 = 8^(1/2) = (2^3)^(1/2) = 2^(3/2). So x = 3/2.
Sums and differences of powers
You cannot match bases when the equation has a sum or a difference of powers. Factor out the smallest power instead.
Solve 3^(x+2) − 3^x = 72. Rewrite 3^(x+2) as 3^x · 3^2 = 9 · 3^x. Then:
3^x (9 − 1) = 72 3^x · 8 = 72 3^x = 9
So x = 2.
Solve 2^(x+2) + 2^x = 40. Factor out 2^x to get 2^x (4 + 1) = 40. Then 2^x = 8, so x = 3.
Checking solutions with code
When you are unsure of an algebraic step, test it over a range of integers. Use Fraction so negative exponents stay exact.
from fractions import Fraction
# 4^x = 8^(x-1) has the single solution x = 3
sol1 = [x for x in range(-10, 11) if Fraction(4)**x == Fraction(8)**(x - 1)]
assert sol1 == [3]
# 3^(x+2) - 3^x = 72 has the single solution x = 2
sol2 = [x for x in range(-10, 11) if Fraction(3)**(x + 2) - Fraction(3)**x == 72]
assert sol2 == [2]
# 2^x = 1/16 has the solution x = -4
sol3 = [x for x in range(-10, 11) if Fraction(2)**x == Fraction(1, 16)]
assert sol3 == [-4]Edge cases: when matching exponents fails
The rule "equal bases imply equal exponents" needs b > 0 and b ≠ 1. Three bases break it.
- Base 1. 1^m = 1^n for any m and n. The equation 1^x = 1 is true for every x.
- Base 0. 0^m = 0 for every positive m, so 0^x = 0 does not fix x. Negative exponents of 0 are undefined, and 0^0 is not tested.
- Base −1. (−1)^x = 1 whenever x is an even integer. It is also true for many different values, so equal results do not force equal exponents.
from fractions import Fraction
# Base 1: every exponent gives the same value
assert all(Fraction(1)**x == 1 for x in range(-5, 6))
# Base -1: every even exponent gives 1
assert [x for x in range(-4, 5) if Fraction(-1)**x == 1] == [-4, -2, 0, 2, 4]This matters in Quantitative Comparison. Suppose you are told a^x = a^y. Then x = y, unless a is 0, 1, or −1. If the problem does not rule these values out, you cannot conclude x = y.
Variable base versus variable exponent
Do not confuse x^2 = 9 with 2^x = 9. In x^2 = 9 the unknown is the base, and the solutions are x = 3 and x = −3. In 2^x = 8 the unknown is the exponent. A positive base other than 1 gives exactly one solution, x = 3.
A related trap is a^x = b^x with a ≠ b. For positive a and b, this forces x = 0, because a^0 = b^0 = 1. If x is a nonzero odd integer, the equation also forces a = b. If x is a nonzero even integer, then a = b or a = −b.
Common errors
| Error | Why it is wrong | Correct move |
|---|---|---|
| Setting 4^x = 8^(x−1) as x = x − 1 | The bases differ, so the exponents cannot be compared | Rewrite both in base 2 first |
| Writing 3^(x+2) as 3^x + 3^2 | The exponent rule for sums multiplies, not adds | 3^(x+2) = 3^x · 3^2 |
| Forgetting to distribute the exponent in 8^(x−1) | (2^3)^(x−1) = 2^(3(x−1)), not 2^(3x−1) | Multiply 3 by the whole expression x − 1 |
| Treating 2^(−4) as −16 | A negative exponent means a reciprocal, not a negative number | 2^(−4) = 1/16 |
| Assuming a^x = a^y gives x = y when a is unknown | The base might be 0, 1, or −1 | Check those bases before concluding |
A short checklist
- Look for a prime base that all the numbers share, such as 2 for 4, 8, 16, and 32.
- Convert radicals to fractional exponents before matching.
- Distribute the new exponent over the whole expression in the exponent.
- If there is a plus or minus between powers, factor out the smallest power.
- Substitute your answer back into the original equation.
- In QC problems with an unknown base, test 0, 1, and −1.
Exercise
Solve 25^x = 125^(x−2) for x.
Show answer
Write 25 = 5^2 and 125 = 5^3. Then 5^(2x) = 5^(3(x−2)) = 5^(3x−6). Setting exponents equal gives 2x = 3x − 6, so x = 6. Check: 25^6 = 5^12 and 125^4 = 5^12.
Exercise
Solve 2^(x+2) + 2^x = 40 for x.
Show answer
Factor out 2^x: 2^x (2^2 + 1) = 40, so 2^x · 5 = 40 and 2^x = 8. Therefore x = 3. Check: 2^5 + 2^3 = 32 + 8 = 40.
Exercise
In a Quantitative Comparison, a^m = a^n is given, with m and n integers. Quantity A is m and Quantity B is n. What can you conclude if nothing is known about a?
Show answer
You cannot determine the relationship. If a = 2, then m = n. If a = 1, then m and n can be any integers, for example m = 3 and n = 5. The base could also be 0 or −1, so the answer is that the relationship cannot be determined from the information given.