is the logarithm with base : it gives the power to which must be raised to obtain . For example, , so . It is the inverse of the exponential .
The argument must be positive, so the domain is and the range is all real numbers. Since the base exceeds , it is monotonically increasing, and it is negative for .
Listing the points it passes through shows that the value gains exactly each time doubles.
As it diverges to , so the -axis () is a vertical asymptote; as it keeps rising slowly to . The derivative is always positive and the second derivative is negative, so the graph is concave.
By the change-of-base formula, , merely a constant multiple of the natural logarithm. Thus it differs from or only by a vertical stretch and has the same shape.
The base-2 logarithm is especially important in computer science. The unit of information, the bit, is measured with : distinguishing alternatives requires bits. Algorithms that repeatedly halve a problem, such as binary search and merge sort, run in time, and it also appears when measuring a musical octave (a doubling of frequency).