Logarithms
What is a logarithm?
A logarithm is the inverse of exponentiation: it asks what power a base must be raised to in order to produce a given number.
In general, is the exponent you'd raise to, to get . Try it yourself: (since , the answer is 4).
Common, natural, and binary logarithms
The common logarithmuses base 10 (and is what's meant when no base is written): , .
The natural logarithm, written , uses base , and shows up naturally in continuous growth: the value of an investment under continuous compounding follows .
The binary logarithm uses base 2 and appears throughout computer science: , .
A logarithm of a number between 0 and 1 is negative (e.g. , since ), and the logarithm of zero or a negative number is undefined for real numbers, since no real power of a positive base ever produces zero or a negative result.
Logarithm rules
Since logarithms and exponentials with the same base are inverses of each other, they cancel: