The rule
- a^(log_a x) = x
Holds when a > 0, a ≠ 1 and x > 0. The special cases are 10^(lg x) = x and e^(ln x) = x.
Why
log_a x is, by definition, the exponent that a must be raised to in order to give x. Raising a to that exponent therefore gives x. The rule is the definition of the logarithm read in one direction. The logarithm also undoes the power, the other way round.
Examples
- 2^(log₂ 8) = 2³ = 8
- 10^(lg 1000) = 10³ = 1000
- e^(ln 5) = 5
- 3^(log₃ 7) = 7: no calculation is needed, even though log₃ 7 is not a whole number.
What it is good for
To solve a^x = y, take the logarithm of both sides: x = log_a y. To undo a logarithm, raise the base to both sides: from ln x = 2 follows x = e². The rule is what makes each step legitimate. See exponential equations.
Common mistakes
- Mismatched bases. 2^(log₃ 8) is not 8. The base of the power and the base of the logarithm must be the same.
- Using it for x ≤ 0. log_a x does not exist there, so neither does the left side.
- Mixing it up with the power law. The logarithm of a power, log(x^n) = n · log x, is a different rule.