Sub topic 11
Laws of Logarithms
This chapter assumes you know the definition from the previous chapter: log_b x = n means b^n = x, with b > 0, b ≠ 1 and x > 0. You should also be comfortable with the laws of indices. Every law below is a restatement of an index law, so if one is hard to remember, rebuild it from the index law.
Why the laws exist
A logarithm is an exponent. The laws of indices turn multiplication of powers into addition of exponents. The laws of logarithms say the same thing in the other direction. Multiplying numbers corresponds to adding their logs, dividing corresponds to subtracting, and raising to a power corresponds to multiplying.
Deriving the product law
Let logb x = m and logb y = n. By definition, x = b^m and y = b^n. Then xy = b^m · b^n = b^(m+n). Converting back to logarithmic form gives logb(xy) = m + n = logb x + log_b y.
The quotient law follows the same way from b^m / b^n = b^(m−n). The power law follows from x^k = (b^m)^k = b^(mk).
The three laws and four special values
Assume b > 0, b ≠ 1, and that x and y are positive.
| Law | Statement |
|---|---|
| Product | log_b(xy) = log_b x + log_b y |
| Quotient | log_b(x/y) = log_b x − log_b y |
| Power | log_b(x^k) = k · log_b x, for any real k |
The following values come straight from the definition:
- log_b 1 = 0, because b^0 = 1.
- log_b b = 1, because b^1 = b.
- b^(log_b x) = x. The base raised to "the power you need to get x" gives x.
- log_b(b^x) = x. This is the same fact read the other way.
Two consequences of the power law appear often:
- Reciprocals: logb(1/x) = −logb x, taking k = −1.
- Roots: logb(√x) = (1/2) logb x, taking k = 1/2.
Checking the laws numerically
The script below tests the three laws for one pair of numbers. A numerical check does not prove a law, but it catches a misremembered sign or factor immediately.
import math
x, y = 12.0, 5.0
assert math.isclose(math.log10(x * y), math.log10(x) + math.log10(y))
assert math.isclose(math.log10(x / y), math.log10(x) - math.log10(y))
assert math.isclose(math.log10(x ** 3), 3 * math.log10(x))
print("product, quotient, and power laws hold")Worked examples
Expressing logs in terms of given values
Suppose log 2 = a and log 3 = b, where log means log base 10. Factor each number into 2s, 3s and 10s, then apply the laws.
- log 12 = log(2² · 3) = 2a + b.
- log 1.5 = log(3/2) = b − a.
- log 0.25 = log(1/4) = −2a.
- log 5 = log(10/2) = 1 − a. This one uses log 10 = 1, and it is the most common trick in CAT problems.
- log 45 = log(3² · 5) = 2b + (1 − a).
Condensing a sum into one log
Simplify log₂ 48 − log₂ 3. By the quotient law, this is log₂(48/3) = log₂ 16 = 4.
Simplify 2 log 5 + log 4. The power law gives log 25 + log 4. The product law gives log 100 = 2.
Using given values of two logs
If logb x = 3 and logb y = 2, find log_b(x² y³).
logb(x² y³) = 2 logb x + 3 log_b y = 2(3) + 3(2) = 12.
Powers of the base
Evaluate log₂ 40 − log₂ 5 − 1. The first two terms give log₂ 8 = 3. Subtracting 1 leaves 2.
If the base is itself a power, the exponent splits out. For example, log₈ 32: write 8 = 2³ and 32 = 2⁵. Then 2^(5/3) = 32^(1/3)... more directly, 8^t = 32 means 2^(3t) = 2⁵, so t = 5/3. In general, log(b^k) x = (1/k) logb x. The next chapter derives this properly from change of base.
Common errors
Most lost marks come from applying a law to something that is not covered by it.
| Wrong step | Why it fails | Correct version |
|---|---|---|
| log(x + y) = log x + log y | The product law applies to a product inside the log, not a sum | log(x + y) cannot be split. Only log(xy) can. |
| log x / log y = log(x/y) | The quotient law needs one log of a quotient, not a quotient of two logs | log(x/y) = log x − log y |
| (log x)² = 2 log x | The power law applies to the argument, not to the log itself | log(x²) = 2 log x, while (log x)² is a different number |
| log(x − y) = log x − log y | Same mistake as the sum case | No simplification exists |
| k · log x = log(kx) | The coefficient becomes an exponent, not a factor | k · log x = log(x^k) |
Check any suspicious step with easy numbers. With base 10, x = y = 10 gives log(10 + 10) = log 20 ≈ 1.301, while log 10 + log 10 = 2. The "law" fails at once.
Domain: the laws can change the set of valid x
The laws are identities only when every logarithm involved is defined. Once variables appear, using a law can add or remove valid values of x.
The same effect shows up numerically. This script contrasts the safe form with the unsafe one.
import math
x = -10.0
print(math.log10(x ** 2)) # 2.0, the left side is defined
assert math.isclose(math.log10(x ** 2), 2 * math.log10(abs(x)))
try:
2 * math.log10(x)
except ValueError:
print("2 * log10(x) is undefined for negative x")The practical rule: when you condense or expand a log in an equation, write down the domain conditions from the original expression first. Check every candidate solution against them at the end. The log-equations chapter develops this.
A quick workflow for simplifying log expressions
- Write each number as a product of primes, or as powers of the base.
- Expand with the product, quotient and power laws until every log is of a prime or of the base.
- Substitute the given values, using logb b = 1 and logb 1 = 0 where they apply.
- Or work backwards: gather terms into a single log, then evaluate it.
Expanding is better when you are given values like log 2 and log 3. Condensing is better when the answer is a clean integer, as in 2 log 5 + log 4.
Exercise
Given log 2 = 0.3010 and log 3 = 0.4771 (base 10), find log 24.
Show answer
24 = 2³ · 3, so log 24 = 3(0.3010) + 0.4771 = 0.9030 + 0.4771 = 1.3801.
Exercise
Simplify 2 log₅ 10 − log₅ 4.
Show answer
By the power law, 2 log₅ 10 = log₅ 100. The quotient law gives log₅ 100 − log₅ 4 = log₅ 25 = 2.
Exercise
A student writes log(x²) = 2 log x and uses it to replace log(x²) = 2 in an equation whose solutions may be negative. What can go wrong, and how should it be written instead?
Show answer
For negative x, log x is undefined, so the rewritten equation loses the solution x = −10 (since log 100 = 2). The correct step is log(x²) = 2 log|x|, which keeps both x = 10 and x = −10.