Sub topic 7
Where the Laws Come From
This chapter assumes you know the laws of exponents (b^m · b^n = b^(m+n), b^m / b^n = b^(m−n), (b^m)^p = b^(mp)). It also assumes you can convert between exponential form (b^k = x) and logarithmic form (log_b(x) = k). Throughout, the base b is positive and not equal to 1.
Why derive the laws at all
You could memorize three formulas and apply them. Memorized formulas fail in predictable ways: you misremember a sign, or you apply a law where it does not hold. If you know where each law comes from, you can rebuild it in under a minute. You can also see what conditions it needs.
The central fact is that a logarithm is an exponent. Every law of logarithms is a law of exponents, rewritten so that the exponents are the objects we talk about.
The strategy: name the exponents
Every derivation in this chapter follows the same three steps.
- Give names to the logarithms. Let m = logb(x) and n = logb(y).
- Rewrite those definitions in exponential form: x = b^m and y = b^n.
- Use a law of exponents on the combined expression, then take log_b of both sides to read off the exponent.
Step 3 relies on the inverse relationship: log_b(b^k) = k for every real number k. This is the only property of logarithms the derivations need beyond the definition.
Deriving the product law
Start with the product xy, where x and y are both positive.
- Let m = logb(x) and n = logb(y).
- Then x = b^m and y = b^n.
- Multiply: xy = b^m · b^n = b^(m+n). This uses the exponent law for multiplying powers of the same base.
- Take logb of both sides: logb(xy) = log_b(b^(m+n)) = m + n.
- Substitute the names back: logb(xy) = logb(x) + log_b(y).
The product law is the statement that adding exponents corresponds to multiplying values.
A concrete case: 8 = 2^3 and 32 = 2^5, so 8 · 32 = 2^3 · 2^5 = 2^8 = 256. Therefore log_2(256) = 3 + 5 = 8.
Deriving the quotient law
The steps are the same, but the exponent law changes.
- With x = b^m and y = b^n, form the quotient: x / y = b^m / b^n = b^(m−n).
- Take logb of both sides: logb(x / y) = m − n.
- Substitute: logb(x / y) = logb(x) − log_b(y).
Dividing powers of the same base subtracts exponents, so dividing values subtracts logarithms.
You can also get the quotient law from the product and power laws. Write x / y as x · y^(−1). The product law gives logb(x) + logb(y^(−1)). The power law, with p = −1, gives logb(x) − logb(y). Both routes agree, which is a useful consistency check.
Deriving the power law
Here you raise a value to a power p.
- With x = b^m, compute x^p = (b^m)^p = b^(mp). This uses the exponent law for a power of a power.
- Take logb of both sides: logb(x^p) = mp.
- Substitute: logb(x^p) = p · logb(x).
This derivation does not require p to be a positive integer. The exponent law (b^m)^p = b^(mp) holds for negative and fractional p as long as the base is positive. That is why the power law covers reciprocals and roots:
- logb(1/x) = logb(x^(−1)) = −log_b(x)
- logb(√x) = logb(x^(1/2)) = (1/2) · log_b(x)
Conditions the derivations assume
Each derivation needs a logarithm to exist at two points. Naming m = log_b(x) only makes sense if x > 0, and the same goes for y. In the product law, xy must also be positive. If x and y are both positive, it always is.
| Law | Formula | Required conditions |
|---|---|---|
| Product | log_b(xy) = log_b(x) + log_b(y) | x > 0, y > 0 |
| Quotient | log_b(x / y) = log_b(x) − log_b(y) | x > 0, y > 0 |
| Power | log_b(x^p) = p · log_b(x) | x > 0, p any real number |
Notice what the derivations did not use: nothing about adding inside a logarithm. The laws come from three exponent laws that handle multiplication, division and powers. Exponent laws have no rule for b^m + b^n, so no log law for log_b(x + y) can exist. Chapter 14 returns to this as a common mistake. For now, notice that the derivation method explains why the mistake is a mistake.
A bonus: the same trick gives change of base
The pattern also produces the change-of-base formula, which a later chapter develops fully. Suppose k = logb(x). Then b^k = x. Take a logarithm in any other base c on both sides: logc(b^k) = logc(x). The power law turns the left side into k · logc(b). Dividing gives k = logc(x) / logc(b). So logb(x) = logc(x) / log_c(b).
This derivation uses the power law, which we derived from exponent laws. The laws form a dependency chain, and everything traces back to the exponent laws.
Why the domain condition is not a technicality
The conditions in the table matter in practice. The expression logb((−4)(−9)) is defined, because (−4)(−9) = 36 > 0. But the product law would split it into logb(−4) + log_b(−9), and neither term exists as a real number. The law gave a wrong answer here because its derivation required x > 0 and y > 0. When you apply a law to variables, check that the expressions inside the logarithms are positive.
A related edge case is the power law with even exponents. For x = −3, the expression logb(x²) is defined and equals logb(9). The power law would give 2 · logb(−3), which is undefined. The correct form for any nonzero x is logb(x²) = 2 · log_b(|x|).
Verifying the derivation in code
You can check each step numerically. The script below computes m and n, confirms that the rewritten forms hold, and then checks the three laws. It uses math.isclose because floating-point results can differ in the last digits.
import math
b, x, y, p = 2.0, 8.0, 32.0, 3.0
m = math.log(x, b) # exponent that turns b into x
n = math.log(y, b) # exponent that turns b into y
# Step 2: the exponential forms hold
print(math.isclose(b ** m, x), math.isclose(b ** n, y))
# Step 3 and 4: each law matches the exponent arithmetic
print(math.isclose(math.log(x * y, b), m + n)) # product law
print(math.isclose(math.log(x / y, b), m - n)) # quotient law
print(math.isclose(math.log(x ** p, b), p * m)) # power lawAll checks print True. Here m = 3 and n = 5, so the product is 2^8, the quotient is 2^(−2) and the power is 2^9.
Summary of the method
- A logarithm is an exponent, so every log law is an exponent law in disguise.
- The recipe is: name the logs, rewrite as powers of b, apply an exponent law, take log_b of both sides.
- Each law needs the arguments to be positive, because the logarithm must exist before you can name it.
- No exponent law handles addition of powers, so there is no log law for log_b(x + y).
Exercise
Starting from the definition and the exponent laws, derive the reciprocal law logb(1/x) = −logb(x) for x > 0. Then use it to evaluate log_2(1/16).
Show answer
Let m = logb(x), so x = b^m. Then 1/x = 1/b^m = b^(−m), using the exponent law for negative exponents. Taking logb of both sides gives logb(1/x) = −m = −logb(x). For the evaluation, log2(16) = 4 because 2^4 = 16, so log2(1/16) = −4. As a check, 2^(−4) = 1/16.
Exercise
A student writes log10((x − 5)(x + 2)) = log10(x − 5) + log_10(x + 2) and uses it to solve an equation where x = 0 is a candidate. Why can the rewrite fail at x = 0, and what does the product law's derivation tell you about when it is safe?
Show answer
At x = 0 the left side is log10((−5)(2)) = log10(−10), which is undefined, and the right side contains log10(−5), also undefined. More generally, the derivation names m = logb(x − 5) and n = log_b(x + 2), which requires both x − 5 > 0 and x + 2 > 0. The rewrite is safe only when x > 5. For x < −2 both factors are negative, so the product is positive and the left side is defined, but the split version is not. Check the domain of the original expression before applying the law.