Many questions ask for an exponent. Which power of 2 is 1024? At a steady 5 percent growth rate, after how many years has an amount doubled? An exponential function takes an exponent and returns a value. A logarithm runs the machine backwards. It takes the value and returns the exponent.
Key terms
Logarithm as an exponent
Definition Let with , and let . The logarithm of with base , written , is the unique real number such that . In other words,
Such a exists and is unique because the exponential function is one-to-one and takes every positive value.
In plain words The expression answers the question “to what power must be raised to give ?” A logarithm is an exponent.
Example Each value comes from rewriting the question in exponential form.
| Logarithm | Exponential form | Value |
|---|---|---|
Positive base other than one
Definition The base of a logarithm must satisfy and . These are exactly the bases for which is a real number for every real and the function is one-to-one onto . The other bases fail for different reasons.
- For the base , the power equals for every , so the equation has every real number as a solution and has none.
- For the base , the power is when and is undefined when .
- For a negative base, the power is not a real number for many exponents, for example .
In plain words The base must be a positive number other than 1. Any other choice either gives no answer, too many answers, or answers that are not real numbers.
Example Is , since ? No. The function is undefined at , because has no real square root, and at many other inputs, so negative bases are left out entirely and is undefined.
Positive argument
Definition The number in is called the argument. For a valid base , the power is positive for every real , so the equation has a solution only when . Therefore is defined exactly for . The logarithm of and the logarithm of a negative number are undefined in the real numbers.
In plain words The input of a logarithm must be positive. The output can be any real number, including zero and negative numbers.
Example The expression is undefined, because is never negative, and is undefined, because is never . On the other hand is fine, a negative output from a positive input. For the expression to make sense, the argument must be positive, so and .
Inverse relationship
Definition For with , the function is one-to-one with domain and range . Its inverse is the logarithmic function . The two functions undo each other,
A point lies on the graph of exactly when lies on the graph of , so the two graphs are mirror images in the line .
In plain words Raising to a power and taking cancel each other, as long as every logarithm you write has a positive argument.
Example By the first identity , and by the second . The points , and lie on , so the points , and lie on . The second identity does not apply to , since is undefined.
Common logarithm
Definition The common logarithm is the logarithm with base , written without a base,
So means , and for every real . Calculators use this convention. Some advanced texts and software write for the natural logarithm instead, so check the convention when you switch sources.
In plain words The common logarithm counts powers of ten. A positive whole number with digits has a common logarithm that is at least and less than .
Example From the powers of ten, and . Since , the value lies between and , and a calculator gives . The number has digits, and indeed lies between and .
Natural logarithm
Definition The natural logarithm is the logarithm with base ,
It is the inverse of the natural exponential function, so means . In particular and , and
In plain words The value is the exponent you put on to get . It is the logarithm that shows up in continuous growth and throughout calculus.
Example An amount grows continuously at 5 percent per year, so it is multiplied by after years. It has doubled when . By the definition of this means , so
Domain and range
Definition For with , the function has domain and range , the set of all real numbers. These are the domain and range of with the roles swapped, as for every inverse function. When the argument is an expression , the natural domain of is the set of all in the domain of with .
In plain words Inputs must be positive, and outputs can be anything. Every real number is a logarithm of something, namely .
Example For the argument must be positive, so , which gives . The domain is . To see that the range is all of , pick any output and solve , which gives
a number below . For instance the output comes from , and the output comes from .
Check yourself
- Evaluate , , and .
Show the answer
The values are , , and , because , , for every real , and .
- Find the domain of .
Show the answer
Both arguments must be positive. The first needs and the second needs , so the domain is the interval .
- Solve exactly, then give a decimal value.
Show the answer
By the definition of the natural logarithm , so