Skip to content
ihateDesmos

Log rules

7 min read · Updated 6 November 2026

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

RuleIn symbolsExample
Product rulelog(ab) = log a + log blog 6 = log 2 + log 3
Quotient rulelog(a/b) = log a − log blog(x/2) = log x − log 2
Power rulelog(aⁿ) = n log alog(x³) = 3 log x
Change of baselog_b a = ln a / ln blog₂ 10 = ln 10 / ln 2
Log of the baselog_b b = 1ln e = 1
Log of 1log_b 1 = 0ln 1 = 0
Inverseb^(log_b x) = x, and log_b(bˣ) = xe^(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.

246810−2240
Open in calculator
Logs in base e (blue), base 10 (red) and base 2 (green). They all pass through (1, 0), because the log of 1 is always 0.

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:

  1. Combine with the product rule: log₂(x(x − 2)) = 3.
  2. Rewrite as an exponent: x(x − 2) = 2³ = 8.
  3. Solve the quadratic: x² − 2x − 8 = 0, so x = 4 or x = −2.
  4. 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?
The log of a product is the sum of the logs, the log of a quotient is the difference, and the log of a power is the exponent times the log. Change of base lets you switch bases.
What is ln e?
1, because e¹ = e. Likewise ln(eˣ) = x.
What is the difference between log and ln?
log usually means base 10, and ln means base e. They follow the same rules, and differ by a constant factor: ln x ≈ 2.3026 log x.
Can you take the log of a negative number?
Not with real numbers, since no real power of a positive base gives a negative. The inside of a log must be positive.
How do you change the base of a logarithm?
Divide the logs in any base: log_b a = log a / log b = ln a / ln b.

Keep going

Try it in the calculator

Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.

Open the calculator