Log rules
A logarithm asks what power gives a certain number: log₂ 8 = 3, because 2³ = 8. Since logs are exponents in disguise, the exponent rules turn into log rules, which change multiplication into addition.
The log rules
| Rule | In symbols | Example |
|---|---|---|
| Product rule | log(ab) = log a + log b | log 6 = log 2 + log 3 |
| Quotient rule | log(a/b) = log a − log b | log(x/2) = log x − log 2 |
| Power rule | log(aⁿ) = n log a | log(x³) = 3 log x |
| Change of base | log_b a = ln a / ln b | log₂ 10 = ln 10 / ln 2 |
| Log of the base | log_b b = 1 | ln e = 1 |
| Log of 1 | log_b 1 = 0 | ln 1 = 0 |
| Inverse | b^(log_b x) = x, and log_b(bˣ) = x | e^(ln 5) = 5 |
These hold for any valid base, as long as what is inside the log is positive.
Why they work
They come directly from the exponent rules. If log a = m and log b = n, then a = 10ᵐ and b = 10ⁿ. So ab = 10ᵐ⁺ⁿ, which means log(ab) = m + n = log a + log b. Adding exponents when multiplying is the same fact as adding logs. Before calculators, this is exactly how people multiplied large numbers: look up two logs, add them, and look up the answer.
Natural log rules
ln x is the logarithm in base e ≈ 2.718, and it follows all the same rules:
- ln(ab) = ln a + ln b
- ln(a/b) = ln a − ln b
- ln(aⁿ) = n ln a
- ln e = 1, ln 1 = 0, and ln(eˣ) = x
- e^(ln x) = x
Natural logs are the favourite in calculus because the derivative of ln x is simply 1/x.
Expanding and condensing logs
Expand log(x²y/z): the product and quotient rules split it into log(x²) + log y − log z, and the power rule gives 2 log x + log y − log z.
Condense 3 ln x − ln y + ln 2: the power rule gives ln(x³) − ln y + ln 2, and combining gives ln(2x³/y).
Solving log equations
Solve log₂(x) + log₂(x − 2) = 3:
- Combine with the product rule: log₂(x(x − 2)) = 3.
- Rewrite as an exponent: x(x − 2) = 2³ = 8.
- Solve the quadratic: x² − 2x − 8 = 0, so x = 4 or x = −2.
- Check: x = −2 would take the log of a negative, so reject it. The answer is x = 4.
Solve 3ˣ = 20: take logs of both sides: x ln 3 = ln 20, so x = ln 20 / ln 3 ≈ 2.727. Taking logs is how you bring down a variable from an exponent.
Common mistakes
- log(a + b) isn’t log a + log b. The product rule is for multiplication inside the log. There is no rule for log(a + b).
- log a / log b isn’t log(a/b). A quotient of logs is a change of base, not a subtraction.
- (log x)² isn’t 2 log x. Only log(x²) = 2 log x.
- Forgetting the domain. Always check your solutions, because the inside of a log must be positive.
Frequently asked questions
What are the rules of logarithms?
What is ln e?
What is the difference between log and ln?
Can you take the log of a negative number?
How do you change the base of a logarithm?
Keep going
Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.