A logarithm is a power written backwards
10³ = 1,000. Turn it around and ask: 10 to what power gives 1,000? The answer is 3, and we write it as log₁₀(1,000) = 3.
- b = the base (here 10)
- x = the number you take the logarithm of (it must be above 0)
- y = the logarithm itself, which is the power
If you can read every logarithm as that question, most of the topic becomes easy.
Common, natural and binary logs
- log (base 10) is the common logarithm. It counts the zeros: log 1,000 = 3.
- ln (base e) is the natural logarithm. The number e is about 2.71828, and ln e = 1.
- log₂ (base 2) is the binary logarithm, used in computing. log₂ 8 = 3 because 2³ = 8.
The three laws
These are the reason logarithms were invented. They turn multiplication into addition.
log(x ÷ y) = log x − log y
log(xⁿ) = n × log x
Here x and y are any positive numbers and n is any number. Example: log(100 × 1,000) = log 100 + log 1,000 = 2 + 3 = 5. And 100 × 1,000 = 100,000 has five zeros. ✓
Changing the base
Most calculators only have log and ln. For any other base use:
For log₂ 8: ln 8 ÷ ln 2 = 2.0794 ÷ 0.6931 = 3. ✓
Where logs are used
- pH of a solution: pH = −log₁₀ of the hydrogen ion concentration.
- Decibels for sound, and the Richter scale for earthquakes. Each step up is ten times bigger, which a log scale squeezes into small numbers.
- Compound growth. How long to double money at 8% a year? Solve 1.08ⁿ = 2, so n = log 2 ÷ log 1.08 ≈ 9 years.
Remember that you cannot take the log of 0 or of a negative number, and the base cannot be 1 or negative.