Sub topic 10
The power law: bringing exponents down
This chapter assumes you can convert between exponential and logarithmic form, that you know the laws of exponents (especially (b^m)^n = b^(mn)), and that you can solve linear equations. You should also know that log_b(x) is defined only for x > 0 and b > 0 with b ≠ 1. A scientific calculator or basic Python is enough for the numeric checks.
The statement
For b > 0, b ≠ 1, x > 0 and any real number n:
logb(x^n) = n · logb(x)
A logarithm turns "raise to a power" into "multiply by that power". The exponent moves from the top of x to the front of the logarithm. This is why logarithms can solve equations where the unknown sits in an exponent: the power law moves it down to ground level.
Examples with whole-number logarithms:
- log2(8^4) = 4 · log2(8) = 4 · 3 = 12. Check: 8^4 = 4096 = 2^12.
- log_10(1000^2) = 2 · 3 = 6. Check: 1000^2 = 10^6.
- log_5(25^3) = 3 · 2 = 6. Check: 25^3 = 5^6.
Why it holds
The power law comes from the exponent law (b^m)^n = b^(mn). The derivation has three steps.
In words:
- Let m = log_b(x). By definition, x = b^m.
- Raise both sides to the power n. Then x^n = (b^m)^n = b^(mn).
- The equation x^n = b^(mn) says that mn is the exponent that takes b to x^n. So logb(x^n) = mn = n · logb(x).
The proof needs x > 0 so that log_b(x) exists. It places no restriction on n.
Special cases of n
Because n can be any real number, the law covers reciprocals and roots. These are the cases you will use most often.
| Expression | Rewrite as | Reason |
|---|---|---|
| log_b(1/x) | −log_b(x) | n = −1 |
| log_b(√x) | (1/2) · log_b(x) | n = 1/2 |
| log_b(∛x) | (1/3) · log_b(x) | n = 1/3 |
| log_b(x^(3/2)) | (3/2) · log_b(x) | n = 3/2 |
| log_b(b^n) | n | n · log_b(b) = n · 1 |
The last row ties back to the special value logb(b) = 1. It also confirms that logarithms undo exponentials: logb(b^n) = n.
Here is a worked example with a root. Evaluate log_2(√32).
- √32 = 32^(1/2).
- log2(32^(1/2)) = (1/2) · log2(32) = (1/2) · 5 = 2.5.
- Check: 2^2.5 = 2^2 · 2^0.5 = 4√2 = √32. ✓.
Using the law to expand and combine
The power law works together with the product and quotient laws. To expand, apply the product and quotient laws first, then bring down each exponent.
Expand log_3( (x^2 · √y) / z^4 ), assuming x, y, z > 0:
- Product and quotient laws: log3(x^2) + log3(√y) − log_3(z^4)
- Power law on each term: 2·log3(x) + (1/2)·log3(y) − 4·log_3(z)
To combine, run the process backward. Move each coefficient up as an exponent, then merge with the product and quotient laws.
Write 3·log2(a) − 2·log2(b) + 1 as one logarithm:
- 3·log2(a) = log2(a^3)
- 2·log2(b) = log2(b^2)
- 1 = log_2(2)
- Result: log_2( 2a^3 / b^2 )
Turning the constant 1 into log2(2) is the same trick again. Any number c can be written as logb(b^c), and this lets you merge constants into a single logarithm.
Checking the law in code
The digit count of a large integer is a good use. A positive integer N has floor(log_10(N)) + 1 digits. The power law lets you compute that for N = 2^100 without building the number.
import math
n = 100
digits_by_law = math.floor(n * math.log10(2)) + 1
digits_direct = len(str(2 ** n))
print(digits_by_law, digits_direct) # 31 31
# The law itself, with a fractional and a negative exponent
x = 7.0
print(math.isclose(math.log10(x ** 0.5), 0.5 * math.log10(x))) # True
print(math.isclose(math.log10(x ** -2), -2 * math.log10(x))) # Truemath.isclose is used because floating-point results can differ in the last digits.
Solving for an exponent
The power law is the main tool for equations with the unknown in the exponent. The method is:
- Isolate the power, so that you have b^(expression) = number.
- Take a logarithm of both sides, in any convenient base.
- Bring the exponent down with the power law.
- Solve the resulting linear equation.
Example: solve 3^(2x) = 50.
- Take natural logs: ln(3^(2x)) = ln(50).
- Power law: 2x · ln(3) = ln(50).
- Divide: x = ln(50) / (2 · ln(3)) ≈ 3.912 / 2.197 ≈ 1.780.
A compound-interest question follows the same pattern. How long does money take to double at 7% annual growth? You need t with 1.07^t = 2.
- t · ln(1.07) = ln(2)
- t = ln(2) / ln(1.07) ≈ 0.6931 / 0.06766 ≈ 10.24 years.
import math
t = math.log(2) / math.log(1.07)
print(round(t, 2)) # 10.24
print(math.isclose(1.07 ** t, 2.0)) # TrueDividing one logarithm by another here is the change-of-base formula in disguise: t = log_1.07(2). The next chapter treats it directly.
Edge cases and common mistakes
The base of the power must be positive
The law requires x > 0. Consider log(x^2) with x = −3. The left side is log(9), which is fine. The right side, 2·log(−3), is undefined. The correct statement for even powers is
logb(x^2) = 2 · logb(|x|), for x ≠ 0.
This matters when you solve equations. If you rewrite log(x^2) = 4 as 2·log(x) = 4, you lose the solution x = −100 (with base 10) and keep only x = 100. Using |x| keeps both.
The exponent applies to the argument, not to the logarithm
The expression (log x)^2 is not 2·log(x). In log(x^2), the exponent sits inside the logarithm. In (log x)^2, the whole logarithm is squared. Test with x = 100 and base 10:
- log(100^2) = log(10000) = 4, and 2·log(100) = 4. ✓.
- (log 100)^2 = 2^2 = 4, but this equals 4 by coincidence. Try x = 1000: (log 1000)^2 = 9, while 2·log(1000) = 6.
The power law does not split sums
The law handles log(x^n). It says nothing about log(x + y)^n or log(x^n + y^n). Both stay as they are. Expanding log(a + b) as log(a) + log(b) is the most common misuse of the laws.
Coefficients must be removed before the equation can be combined
A term like 2·log(x) is not a single logarithm until you move the 2 up. If you add log(x) + 2·log(y) and write log(xy)·2 or log(x·2y), the result is wrong. Correct form: log(x · y^2).
Summary of the law
- logb(x^n) = n · logb(x) for x > 0, any real n.
- It follows from (b^m)^n = b^(mn).
- Roots and reciprocals are the cases n = 1/k and n = −1.
- It lets you solve b^(f(x)) = c by taking logs.
- Even powers need absolute values if x may be negative.
Exercise
Solve 5^(x+1) = 40 for x, giving an exact expression and a decimal to three places.
Show answer
Take natural logs: (x + 1)·ln(5) = ln(40). So x + 1 = ln(40)/ln(5), and x = ln(40)/ln(5) − 1. Numerically ln(40) ≈ 3.6889 and ln(5) ≈ 1.6094, so the ratio is about 2.292 and x ≈ 1.292.
Exercise
Write 2·log10(x) − (1/2)·log10(y) + 3 as a single logarithm, assuming x, y > 0.
Show answer
Move the coefficients up: log10(x^2) − log10(√y) + log10(10^3). Combine with the product and quotient laws: log10( 1000·x^2 / √y ).
Exercise
A student solves log10(x^2) = 2 by rewriting it as 2·log10(x) = 2, so x = 10. What solution is missing, and how should the step be written?
Show answer
The solution x = −10 is missing, since log10((−10)^2) = log10(100) = 2. The correct rewrite is 2·log_10|x| = 2, so |x| = 10 and x = 10 or x = −10.