Sub topic 9
The quotient law: logs turn quotients into differences
This chapter assumes you know the laws of exponents (including negative exponents), can solve linear equations, and have met the product law for logarithms. You should be comfortable moving between exponential form and logarithmic form, and able to run short Python snippets.
The statement of the law
For any base b with b > 0 and b ≠ 1, and for any x > 0 and y > 0:
logb(x / y) = logb(x) − log_b(y)
The logarithm of a quotient is the logarithm of the numerator minus the logarithm of the denominator. Order matters. Swapping x and y flips the sign of the result.
Both x and y must be positive. If either is zero or negative, the logarithm is undefined in the real numbers, and the law says nothing.
Why the law holds
The law follows from the exponent law b^m / b^n = b^(m − n). Let m = logb(x) and n = logb(y). By the definition of a logarithm, this means:
- b^m = x
- b^n = y
Divide the first equation by the second:
x / y = b^m / b^n = b^(m − n)
Now read this equation in logarithmic form. It says that m − n is the exponent on b that gives x / y. That is exactly log_b(x / y) = m − n. Substituting back gives:
logb(x / y) = logb(x) − log_b(y)
So the quotient law is the exponent-division law written in logarithmic form. Subtracting exponents corresponds to dividing the numbers.
A numeric check with powers of 2
Powers of 2 make the law easy to see because every logarithm is a whole number. Take x = 64 and y = 8.
- log_2(64) = 6, because 2^6 = 64
- log_2(8) = 3, because 2^3 = 8
- 64 / 8 = 8, and log_2(8) = 3
The right side of the law gives 6 − 3 = 3, which matches.
The same check in Python, using base 10 and math.isclose because floating-point results can differ in the last digits:
import math
x, y = 50.0, 4.0
print(math.isclose(math.log10(x / y), math.log10(x) - math.log10(y))) # TrueUsing the law to expand expressions
Expanding means rewriting one logarithm of a quotient as a difference of simpler logarithms. This is useful when the pieces have known values.
Example 1. Expand log_2(32 / 5). The numerator is a power of 2, so:
log2(32 / 5) = log2(32) − log2(5) = 5 − log2(5)
Example 2. Evaluate log_10(1000 / 10).
log10(1000) − log10(10) = 3 − 1 = 2
You can confirm this directly: 1000 / 10 = 100, and log_10(100) = 2.
Example 3. Expand log_b(x^2 / (y z)) for positive x, y, z. Use the quotient law first, then the product law on the denominator, then the power law on the numerator:
logb(x^2 / (y z)) = logb(x^2) − logb(y z) = 2 logb(x) − (logb(y) + logb(z))
Note the parentheses around logb(y) + logb(z). The subtraction applies to the whole logarithm of the denominator, so the sign on both terms changes:
= 2 logb(x) − logb(y) − log_b(z)
Using the law to combine expressions
Combining runs the law in reverse. A difference of two logarithms with the same base becomes one logarithm of a quotient.
Example 4. Combine log3(54) − log3(2).
log3(54) − log3(2) = log3(54 / 2) = log3(27) = 3
Example 5. Combine 2 log5(x) − log5(y) − 1.
Write 1 as log_5(5), so the constant becomes a logarithm in the same base. Then move the coefficient into the exponent with the power law:
2 log5(x) − log5(y) − log5(5) = log5(x^2) − log5(y) − log5(5) = log_5(x^2 / (5y))
The denominator holds both y and 5 because both are being subtracted.
A useful special case: reciprocals
Set x = 1 in the quotient law. Because log_b(1) = 0:
logb(1 / y) = logb(1) − logb(y) = −logb(y)
The logarithm of a reciprocal is the negative of the logarithm. For example, log_2(1/8) = −3, because 2^(−3) = 1/8. This matches what you know about negative exponents. Numbers between 0 and 1 have negative logarithms when the base is greater than 1.
Using the law to solve equations
The quotient law helps when an equation has several logarithms of the same base.
Example 6. Solve log2(x + 6) − log2(x) = 2.
- Combine the left side: log_2((x + 6) / x) = 2.
- Convert to exponential form: (x + 6) / x = 2^2 = 4.
- Multiply by x: x + 6 = 4x, so 3x = 6 and x = 2.
- Check the domain: x + 6 = 8 > 0 and x = 2 > 0. Both arguments are positive, so x = 2 is valid.
Check by substitution: log2(8) − log2(2) = 3 − 1 = 2. ✓
Combining logarithms can change the set of allowed values. The original equation requires x > 0 and x + 6 > 0, so x > 0. Always test your answer against the original equation, not the combined one.
Common mistakes
The quotient law is often misremembered. These are the errors that appear most often.
| Incorrect | Why it fails | Correct |
|---|---|---|
| log(x / y) = log(x) / log(y) | The law turns division into subtraction, not division | log(x) − log(y) |
| log(x − y) = log(x) − log(y) | The law applies to a quotient inside the logarithm, not a difference | No simplification exists |
| log(x) − log(y) = log(x − y) | Same error, in reverse | log(x / y) |
| log(x / y) = log(y) − log(x) | The order is reversed | log(x) − log(y) |
| log(x) / log(y) = log(x / y) | A quotient of logarithms is not a logarithm of a quotient | Use change of base: log_y(x) |
The fifth row is worth a closer look. The expression log(x) / log(y) is a real quantity, but it is the logarithm of x in base y, as the change-of-base formula shows. It has nothing to do with log(x / y).
You can see that these shortcuts fail with a quick numeric test. Take x = 100 and y = 10 in base 10:
- log(x / y) = log(10) = 1
- log(x) / log(y) = 2 / 1 = 2
- log(x) − log(y) = 2 − 1 = 1
Only the difference matches the true value.
import math
x, y = 100.0, 10.0
true_value = math.log10(x / y)
print(true_value) # 1.0
print(math.log10(x) / math.log10(y)) # 2.0 (wrong)
print(math.log10(x) - math.log10(y)) # 1.0 (correct)
print(math.isclose(true_value, math.log10(x) - math.log10(y))) # TrueWhere the law is used
Before calculators, tables of logarithms let people divide large numbers by looking up two logarithms and subtracting. Today the same idea appears in measurement scales.
- A ratio of two quantities becomes a difference of logarithms. The decibel level of a signal relative to a reference is based on the logarithm of their ratio, so comparing two sound levels reduces to subtracting two decibel values.
- In pH, a ten-fold change in concentration changes the logarithm by exactly 1, because log(10c / c) = log(10) = 1.
- In algorithm analysis, comparing log n and log(n / 2) shows that halving the input removes exactly one step from a binary-style search in base 2: log2(n / 2) = log2(n) − 1.
The last point is the quotient law with y = 2 and base 2. It explains why each halving costs one unit of the logarithm.
Exercise
Simplify log3(81 / x) − log3(9) for x > 0, writing the result as a single logarithm and then as an expression in terms of log_3(x).
Show answer
Combine into one logarithm: log3(81 / x) − log3(9) = log3(81 / (9x)) = log3(9 / x). Expand with the quotient law: log3(9) − log3(x) = 2 − log3(x). Check with x = 3: log3(27) − log3(9) = 3 − 2 = 1, and 2 − log3(3) = 2 − 1 = 1.
Exercise
Solve log10(x + 9) − log10(x) = 1, and state whether your answer is valid.
Show answer
Combine: log10((x + 9) / x) = 1. Convert: (x + 9) / x = 10, so x + 9 = 10x, giving 9x = 9 and x = 1. Domain check: x = 1 and x + 9 = 10 are both positive, so x = 1 is valid. Substitution: log10(10) − log_10(1) = 1 − 0 = 1.
Exercise
A student writes log2(40) − log2(5) = log_2(35). Find the error and give the correct value.
Show answer
The student subtracted the arguments. The quotient law requires dividing them: log2(40) − log2(5) = log2(40 / 5) = log2(8) = 3.