Sub topic 4
Solving exponential equations by matching bases
An exponential equation has the unknown in an exponent, such as 2^(x+1) = 32. This chapter covers the most common CAT method: rewrite both sides as powers of the same base, then equate the exponents. It assumes you know the laws of indices and zero, negative and fractional exponents from the previous chapters, and can solve linear and simple quadratic equations.
The core principle
For a base b with b > 0 and b ≠ 1, the function b^x is one-to-one. Each output comes from exactly one input. This gives the rule:
- If b^m = b^n, then m = n.
The conditions on b matter. If b = 1, then 1^m = 1^n for all m and n, so you cannot conclude m = n. If b = 0 or b is negative, powers can be undefined or can change sign, so the rule fails. If b = -1, then (-1)^2 = (-1)^4, but 2 ≠ 4.
So the method has three steps:
- Factor each number into prime powers to find a common base.
- Use the laws of indices to write each side as a single power of that base.
- Equate the exponents and solve the resulting equation, which is usually linear or quadratic.
Worked examples
Example 1: a single power on each side
Solve 2^(x+1) = 32.
Since 32 = 2^5, the equation is 2^(x+1) = 2^5. So x + 1 = 5 and x = 4.
Example 2: different bases that share a prime
Solve 4^(x-1) = 8^(x+2).
Write 4 = 2^2 and 8 = 2^3. Then:
- Left side: (2^2)^(x-1) = 2^(2x-2).
- Right side: (2^3)^(x+2) = 2^(3x+6).
Equate exponents: 2x − 2 = 3x + 6, so x = −8.
Check: 4^(−9) = 2^(−18) and 8^(−6) = 2^(−18). Both sides agree.
Example 3: fractions and negative exponents
Solve (9/4)^x = (8/27)^(x−1)... first as a check of the idea, note that 9/4 = (3/2)^2 and 8/27 = (2/3)^3 = (3/2)^(−3).
So (3/2)^(2x) = (3/2)^(−3(x−1)). Then 2x = −3x + 3, so 5x = 3 and x = 3/5.
The key move is to recognise that a fraction and its reciprocal share a base once you allow a negative exponent.
Example 4: an unknown in several places
Solve 3^(x+2) − 3^x = 72.
Factor out the smaller power: 3^x(3^2 − 1) = 72, so 3^x · 8 = 72 and 3^x = 9. Therefore x = 2.
This pattern is frequent. When the same base appears with exponents that differ by a constant, factor out the lowest power. Do not try to equate exponents term by term.
Example 5: the unknown in the base as well
Solve x^(x²) = x^4... with x > 0.
Here the base is also unknown. Equating exponents gives x² = 4, so x = 2 (taking x > 0). But the rule requires base ≠ 1, so also test x = 1 directly: 1^1 = 1^4 is true. Hence x = 1 is a solution too. The solutions are x = 1 and x = 2.
When the base contains the unknown, always test the special bases 1 (and sometimes 0 and −1, if the problem allows them) separately.
Reducing to a quadratic by substitution
If an equation contains b^x and b^(2x), treat b^x as a single unknown.
Solve 4^x − 3 · 2^x − 4 = 0.
Since 4^x = (2^x)^2, let t = 2^x. The equation becomes t² − 3t − 4 = 0, which factors as (t − 4)(t + 1) = 0. So t = 4 or t = −1.
Now 2^x is always positive, so t = −1 is rejected. From t = 4 we get 2^x = 4, so x = 2.
When the bases do not match
Sometimes no common base exists, as in 2^x = 7. Matching fails because 7 is not a rational power of 2. You then take logarithms: x = log₂7, which is about 2.81. Logarithms are covered in later chapters. In CAT problems, a clean answer usually signals that a common base exists, so look for one first.
The following program solves a family of equations of the form a^(px+q) = b^(rx+s) by writing both numbers as powers of a common prime base. It uses exact fractions, so there is no rounding.
from fractions import Fraction
def prime_power(n, p):
"""Return k if n == p**k, else None."""
k = 0
while n % p == 0:
n //= p
k += 1
return k if n == 1 else None
def solve(a, p, q, b, r, s, prime):
"""Solve a**(p*x+q) = b**(r*x+s) where a and b are powers of prime."""
ka = prime_power(a, prime)
kb = prime_power(b, prime)
# ka*(p*x+q) = kb*(r*x+s) -> (ka*p - kb*r) x = kb*s - ka*q
coeff = ka * p - kb * r
const = kb * s - ka * q
if coeff == 0:
return "no unique solution"
return Fraction(const, coeff)
# 4^(x-1) = 8^(x+2) -> x = -8
print(solve(4, 1, -1, 8, 1, 2, 2))
# 9^(2x+1) = 27^(x-3) -> x = -11/1 check below
x = solve(9, 2, 1, 27, 1, -3, 3)
print(x)
assert 9 ** (2 * x + 1) == 27 ** (x - 3)The output is -8 followed by -11/1... in fact the second answer is −11/1 only if the arithmetic works out. Here ka = 2, kb = 3, so the equation is 2(2x + 1) = 3(x − 3), giving 4x + 2 = 3x − 9 and x = −11. The assertion confirms it, since both sides equal 3^(−42).
Common errors
- Adding exponents when the operation is addition. 2^x + 2^x is 2 · 2^x = 2^(x+1), not 2^(2x).
- Equating exponents when the bases differ, for example writing 4^x = 8^x ⇒ x = x. Here 4 and 8 are different, so the only solution is x = 0 (since 4^x = 8^x means (1/2)^x = 1).
- Forgetting that (a^m)^n = a^(mn), so 2^(3^2) = 2^9 differs from (2^3)^2 = 2^6. Exponent towers evaluate from the top down.
- Losing a solution when the base can be 1 or −1.
- Keeping a negative root after a substitution.
Quick checks
- Substitute your answer back into the original equation, not your rewritten one.
- Compare sizes. If 2^x = 100, then x must lie between 6 and 7 because 2^6 = 64 and 2^7 = 128.
- For equations like 3^x + 3^(x+1) = 108, confirm using units digits or small trial values: x = 3 gives 27 + 81 = 108.
Exercise
Solve 2^(x+3) + 2^(x+1) = 40, and then solve 9^x − 4 · 3^x + 3 = 0.
Show answer
For the first, factor out 2^(x+1): 2^(x+1)(2^2 + 1) = 40, so 2^(x+1) · 5 = 40 and 2^(x+1) = 8 = 2^3. Then x + 1 = 3 and x = 2. For the second, let t = 3^x, so t² − 4t + 3 = 0, which gives (t − 1)(t − 3) = 0 and t = 1 or t = 3. Both are positive, so 3^x = 1 gives x = 0 and 3^x = 3 gives x = 1. The solutions are x = 0 and x = 1.
Exercise
Solve (1/8)^(x−2) = 16^(x+1) by matching bases, and explain why x^3 = x^5 cannot be solved by simply equating exponents.
Show answer
Write 1/8 = 2^(−3) and 16 = 2^4. Then 2^(−3(x−2)) = 2^(4(x+1)), so −3x + 6 = 4x + 4 and 7x = 2, giving x = 2/7. For x^3 = x^5, the base is the unknown. Equating exponents is valid only when the base is positive and not 1, and here it would give 3 = 5, which is false. Instead solve x^3(x^2 − 1) = 0, which gives x = 0, 1, or −1.