Definition of a logarithm
A logarithm is an exponent: is the power you raise b to in order to get x.
Natural log
Common log
Calculator
The live calculator needs JavaScript. The worked example below shows the same steps it would.
See it move
- Every log curve passes through (1, 0) and (b, 1). Dashed: y = bˣ, its mirror image in y = x.
- b > 1: the curve rises.
What the symbols mean
- the logarithm: the exponent
- the base (positive, and not 1)
- the number (must be positive)
When to use it
Use it to switch between exponential and logarithmic form, which is how you solve equations where the unknown is an exponent (, how long until an investment doubles). Calculators only have ln and log₁₀ buttons, so for other bases combine it with the change-of-base formula.
Worked example
Find log₂ 32, the power of 2 that gives 32 (b = 2, x = 32).
Start from the formula.
Substitute = , = and work it out.
Check: .
Answer log₂ 32 = 5
Common mistakes
- Taking the log of zero or a negative number. is always positive, so needs x > 0.
- Reading as "log times b times x". It is one function with the base as a subscript.
- Using base 1. Every power of 1 is 1, so it cannot give any other number.