What a logarithm is

logb(x) is the power you raise b to in order to get x.

  • log₂(8) = 3, because 2³ = 8.
  • log(1000) = 3, because 10³ = 1000.
  • log₅(1) = 0, because 5⁰ = 1.

log and ln

On most calculators, log means base 10 and ln means base e (about 2.718), the natural logarithm.

The rules

  • log(ab) = log a + log b
  • log(a ÷ b) = log a − log b
  • log(aⁿ) = n log a
  • Change of base: logb(x) = log(x) ÷ log(b)

Solving exponential equations

Example: 2ˣ = 10

  1. Take the log of both sides: x log 2 = log 10.
  2. Divide: x = log 10 ÷ log 2 = 1 ÷ 0.30103.

x ≈ 3.3219

Where logs show up

The pH scale, decibels and earthquake magnitudes are all logarithmic: each step up is 10 times more. Logs also tell you how long an investment takes to grow.