Sub topic 12
Change of base, reciprocal, and chain identities
This chapter assumes you know the definition of a logarithm and the product, quotient, and power laws. It also assumes you can factor small integers and solve linear equations. The goal is to move between bases freely, because CAT problems often mix logarithms with different bases in one expression.
Why base changes matter
The laws from the previous chapter only combine logarithms that share a base. An expression like log2(x) + log8(x) cannot be merged directly. The change of base formula converts every term to one base, and after that the usual laws apply.
The change of base formula
For positive a, and for bases b and c that are positive and not equal to 1:
logb(a) = logc(a) / log_c(b)
The new base c can be any valid base. Common choices are 10, e, or a base that makes the numbers simple.
Why it works
Let y = logb(a). By definition, b^y = a. Take logc of both sides: y · logc(b) = logc(a). Dividing by logc(b) gives y = logc(a) / logc(b). The division is legal because b ≠ 1, so logc(b) ≠ 0.
Using it to simplify
Suppose you need log_8(32). Both numbers are powers of 2, so choose base 2:
log8(32) = log2(32) / log_2(8) = 5/3
You can do this without computing any decimal values. Pick the base that the numbers share.
The reciprocal identity
Setting c = a in the formula gives logb(a) = 1 / loga(b). Equivalently:
logb(a) · loga(b) = 1
Both logarithms must be defined, so a and b must each be positive and not equal to 1. For example, log2(5) = 1 / log5(2). This identity is useful when a problem contains both loga(b) and logb(a).
Powers on the base and the argument
Applying the power law after a base change gives two forms that save a lot of time:
log(b^m)(a^n) = (n/m) · logb(a)
So log8(32) = log(2^3)(2^5) = 5/3 directly. A power on the base moves to the bottom of a fraction, and a power on the argument moves to the top.
Two special cases are worth remembering:
- log(b^m)(a) = (1/m) · logb(a)
- logb(b^n) = n, and b^(logb(a)) = a
The last identity, b^(logb a) = a, is the definition of the logarithm read backward. It helps when a power has a logarithm in the exponent. A related symmetry is a^(logb c) = c^(logb a). Take logb of both sides and each side becomes (logb a)(logb c).
The chain identity
Multiplying a string of logarithms where each base equals the previous argument makes the middle terms cancel:
loga(b) · logb(c) · logc(d) = loga(d)
To see why, write each factor with a common base k: [logk b / logk a] · [logk c / logk b] · [logk d / logk c]. Everything cancels except logk d / logk a, which is log_a(d).
The chain can be any length. The cancellation works only when each argument is the next base.
import math
# log_2(3) * log_3(4) = log_2(4) = 2, because the 3s cancel in the chain
chain = math.log(3, 2) * math.log(4, 3)
assert math.isclose(chain, 2.0)
# change of base: log_b(a) = log(a) / log(b)
assert math.isclose(math.log(7, 5), math.log(7) / math.log(5))
print("chain identity and change of base hold")Worked examples
Example 1: mixed bases
Simplify log2(x) + log4(x) + log_16(x) for x > 0, x ≠ 1.
Write each term in base 2: log4(x) = (1/2) log2(x) and log16(x) = (1/4) log2(x). The sum is (1 + 1/2 + 1/4) · log2(x) = (7/4) log2(x).
Example 2: a swapped pair
Given loga(b) = 3, find log(a^2)(b^6) + log_b(a).
The first term is (6/2) · log_a(b) = 3 · 3 = 9. The second is 1/3. The total is 9 + 1/3 = 28/3.
Example 3: a chain
Evaluate log3(5) · log5(7) · log_7(81).
The chain collapses to log_3(81) = 4.
Example 4: a hidden chain
Evaluate (log2 9)(log3 16).
Neither argument is the next base as written, but 9 = 3^2 and 16 = 2^4. Then log2(9) = 2 · log2(3), and log3(16) = 4 · log3(2). The product is 8 · log2(3) · log3(2) = 8 · 1 = 8.
Example 5: solving for an unknown
If logx(2) + log(x^2)(2) = 3/2 with x > 0, x ≠ 1, find x.
Since log(x^2)(2) = (1/2) logx(2), the left side is (3/2) logx(2). Setting this equal to 3/2 gives logx(2) = 1, so x = 2. Check: log2(2) + log4(2) = 1 + 1/2 = 3/2. ✓
Example 6: an exponent with a logarithm
Find 25^(log_5 3).
Write 25 as 5^2. Then 25^(log5 3) = 5^(2 · log5 3) = 5^(log_5 9) = 9.
Common errors
- Writing logb(a) = logc(a) − log_c(b). The change of base is a quotient of logarithms, not a difference.
- Confusing log(a)/log(b) with log(a/b). They are different quantities. For example, log10(100)/log10(10) = 2, but log_10(100/10) = 1.
- Inverting the power rule for bases. The power on the base goes to the denominator: log(b^m)(a) = (1/m) logb(a), not m · log_b(a).
- Applying the chain identity when the middle terms do not match. Check that each argument is exactly the next base before cancelling.
- Forgetting restrictions. Every base must be positive and not 1, and every argument must be positive. A reciprocal identity does not apply if either logarithm is undefined or zero in the denominator.
Checking your work
You can test a base-change result with a quick numeric check. For instance, log_8(32) should be about 1.667. Since 8^1 = 8 and 8^2 = 64, and 32 lies between them, an answer between 1 and 2 passes the sanity check. When you run the chain identity numerically, as in the code above, floating-point values may differ in the last digits, so compare with a tolerance rather than exact equality.
Summary of identities
| Identity | Form | Condition |
|---|---|---|
| Change of base | log_b(a) = log_c(a) / log_c(b) | a > 0; b, c > 0 and not 1 |
| Reciprocal | log_b(a) · log_a(b) = 1 | a, b > 0 and not 1 |
| Power on base and argument | log_(b^m)(a^n) = (n/m) log_b(a) | m ≠ 0; a > 0; b > 0, b ≠ 1 |
| Chain | log_a(b) · log_b(c) · log_c(d) = log_a(d) | all bases positive and not 1; arguments positive |
| Exponent swap | a^(log_b c) = c^(log_b a) | a, c > 0; b > 0, b ≠ 1 |
Exercises
Exercise
Simplify log9(27) + log27(9).
Show answer
Use base 3. log9(27) = 3/2 and log27(9) = 2/3 (these are reciprocals, as the reciprocal identity says). The sum is 3/2 + 2/3 = 9/6 + 4/6 = 13/6.
Exercise
Evaluate log2(3) · log3(5) · log_5(16).
Show answer
The chain collapses to log_2(16) = 4.
Exercise
If log4(x) + log16(x) = 6 for x > 0, find x.
Show answer
Convert to base 4: log16(x) = (1/2) log4(x). So (3/2) log4(x) = 6, which gives log4(x) = 4 and x = 4^4 = 256. Check: log4(256) = 4 and log16(256) = 2, and 4 + 2 = 6.
Exercise
Show that 9^(log_3 5) = 25.
Show answer
Write 9 as 3^2. Then 9^(log3 5) = 3^(2 · log3 5) = 3^(log_3 25) = 25.