8.5: Logarithmic Functions
( \newcommand{\kernel}{\mathrm{null}\,}\)
We can now apply the inverse function theory from the previous section to the exponential function. From Section 8.2, we know that the function f(x)=bx is either increasing (if b > 1) or decreasing (if 0 < b < 1), and therefore is one-to-one. Consequently, f has an inverse function f−1.
As an example, let’s consider the exponential function f(x)=2x. f is increasing, has domain Df=(−∞,∞), and range Rf=(0,∞). Its graph is shown in Figure 1(a). The graph of the inverse function f−1 is a reflection of the graph of f across the line y = x, and is shown in Figure 1(b). Since domains and ranges are interchanged, the domain of the inverse function is Df−1=(0,∞) and the range is Rf−1=(−∞,∞).

Unfortunately, when we try to use the procedure given in Section 8.4 to find a formula for f−1, we run into a problem. Starting with y=2x, we then interchange x and y to obtain x=2y. But now we have no algebraic method for solving this last equation for y. It follows that the inverse of f(x)=2x has no formula involving the usual arithmetic operations and functions that we’re familiar with. Thus, the inverse function is a new function. The name of this new function is the logarithm of x to base 2, and it’s denoted by f−1(x)=log2(x).
Recall that the defining relationship between a function and its inverse (Property 14 in Section 8.4) simply states that the inputs and outputs of the two functions are interchanged. Thus, the relationship between 2x and its inverse log2(x) takes the following form:
v=log2(u)⟷u=2v
More generally, for each exponential function f(x)=bx (b > 0, b≠1), the inverse function f−1(x) is called the logarithm of x to base b, and is denoted by logb(x). The defining relationship is given in the following definition.
If b > 0 and b≠1, then the logarithm of u to base b is defined by the relationship
v=logb(u)⟷u=bv. (2)
In order to understand the logarithm function better, let’s work through a few simple examples.
Compute log2(8).
- Answer
-
Label the required value by v, so v=log2(8). Then by (2), using b = 2 and u = 8, it follows that 2v=8, and therefore v = 3 (solving by inspection).
In the last example, note that log2(8)=3 is the exponent v such that 2v=8. Thus, in general, one way to interpret the definition of the logarithm in (2) is that logb(u) is the exponent v such that bv=u. In other words, the value of the logarithm is the exponent!
Compute log10(10000).
- Answer
-
Again, label the required value by v, so v=log10(10000). By (2), it follows that 10v=10000, and therefore v = 4. Note that here again we have found the exponent v = 4 that is needed for base 10 in order to get 10v=10000.
Compute log3(19).
- Answer
-
v=log3(19)
→3v=19 by (2)
→v=−2 since 3−2=19
Solve the equation log5(x)=1.
- Answer
-
log5(x)=1
→51=x by (2)
→x=5
Solve the equation logb(64)=3 for b.
- Answer
-
logb(64)=3
→b3=64 by (2)
→b=3√64=4
Solve the equation log12(x)=−2.
- Answer
-
log12(x)=−2
→(12)−2=x by (2)
→1(12)2=114=4
The composition relationships in Property 15 of Section 8.4, applied to bx and logb(x), become
logb(bx)=x
and
blogb(x)=x.
Both equations are important. Note that Equation ??? again shows that the logb(x) is the exponent v such that bv=x. Equation ??? will be used frequently in this and later sections to help us solve exponential equations.
Logarithmic functions are used in many areas of science and engineering. For example, they are used to define the Richter scale for the magnitudes of earthquakes, the decibel scale for the loudness of sound, and the astronomical scale for stellar brightness. They are also important tools for use in computation (as we will see in Section 8.8). Our main use of logarithms in this textbook will be to solve exponential equations, and thereby help us study physical phenomena that are described by exponential functions (as in Section 8.7).
Computing Logarithms
In Examples 3–8 above, we were able to compute the logarithms by converting to exponential equations that could be solved by inspection. But it’s easy to see that most of the time this won’t work. For example, how would we compute the value of log2(7)?
Fortunately, mathematicians have found other methods for computing logarithms to high accuracy, and they can now be easily approximated using a calculator or computer.
Your calculator has built-in buttons for computing two different logarithms, log10(x) and loge(x). log10(x) is called the common logarithm, and loge(x) is called the natural logarithm.
Common Logarithm: The common logarithm log10(x) is computed using the LOGbutton on your calculator. Notice also that its inverse function 10x, can be computed using the same button in conjunction with the 2ND button. The common logarithm is usually the most convenient one to use for computations involving scientific notation (because we use a base 10 number system), and therefore is the logarithm most often used in the physical sciences. Because of that, it’s often just abbreviated by log(x), and we’ll do that as well in the remainder of the text.
log(x) and log10(x) are equivalent notations. Thus, we have the defining relationship
v=log(u)⟷u=10v.
The composition properties for the common logarithm are
log(10x)=x (12)
and
10log(x)=x.
Natural Logarithm: The natural logarithm \(log_{e}(x)\) is computed using the LNbutton on your calculator. Its inverse function, ex, is computed using the same button in conjunction with the 2ND button. The natural logarithm turns out to be the most convenient one to use in mathematics, because a lot of formulas, especially in calculus, are much simpler when the natural logarithm is used. The natural logarithm is abbreviated by ln(x).
ln(x) and loge(x) are equivalent notations. Thus, we have the defining relationship
v=ln(u)⟷u=ev.
The composition properties for the common logarithm are
ln(ex)=x
and
eln(x)=x\lable14
Note that when using your calculator to compute log(x) and ln(x), you will usually only obtain approximate values, as these values frequently are irrational numbers.
What about other bases? You can also compute these on your calculator, but we’ll first need to develop the Change of Base Formula in the next section. However, at this point, we can at least solve exponential equations involving bases 10 and e, as shown in the next two examples.
Solve the equation 704=2(10)x.
- Answer
-
The first step is to isolate the exponential on the right side by dividing both sides by 2:
352=10x
Then simply apply the log10(x) function to both sides of the equation:
log10(352)=log10(10x)
But (10) implies that log10(10x)=x. Therefore, x=log10(352)=log(352) is the exact solution. The approximate value, using a calculator, is 2.546542663 (see Figure 2). Alternatively, instead of taking the logarithm of both sides in the second step, you can apply (2) to the equation 352=10x to get x=log10(352).
Figure 2. Approximation of log(352)=log10(352).
This last example shows how logarithms can be used for solving exponential equations. The basic strategy is to first isolate the exponential on one side of the equation, and then take appropriate logarithms of both sides. Here’s one more example for now, and then we’ll return to this process repeatedly in the remaining sections, especially when we work with application problems.
Solve the equation 30=20ex.
- Answer
-
First isolate the exponential on the right side by dividing both sides by 20:
1.5=ex
This time, since the base of the exponential function is e, apply the natural logarithm function to both sides:
loge(1.5)=loge(ex)
Simplify the right side, since loge(ex)=x by (10):
loge(1.5)=x
Therefore, x=loge(1.5)=ln(1.5) is the exact solution. The approximate value, using a calculator, is 0.4054651081 (see Figure 3).
Figure 3. Approximation of ln1.5=loge(1.5).
In the next section, we’ll learn how to solve exponential equations involving other bases.
Graphs of Logarithmic Functions
At the beginning of this section, we looked at the graphs of f(x)=2x and its inverse function f−1(x)=log2(x). More generally, the graph of the exponential function f(x)=bx for b > 1 is shown in Figure 4(a), along with its inverse logarithmic function f−1(x)=logb(x). According to Section 8.4, the two graphs are reflections across the line y = x. Similarly, the graph for 0 < b < 1 is shown in Figure 4(b).

Because domains and ranges of inverse functions are interchanged, it follows that
Domain(logb(x))=(0,∞)
and
Range(logb(x))=(−∞,∞).
In particular, note that the logarithm of a negative number, as well as the logarithm of 0, are not defined.
Two particular points on the graph of the logarithm are noteworthy. Since b0=1, it follows that logb(1)=0, and therefore the x-intercept of the graph of logb(x) is (1, 0). Similarly, since b1=b, it follows that logb(b)=1, and therefore (b, 1) is on the graph.
logb(1)=0
and
logb(b)=1
Finally, since the graph of bx has a horizontal asymptote y = 0, the graph of logb(x) must have a vertical asymptote x = 0. This behavior is a consequence of the fact that inputs and outputs of inverse functions are interchanged, and can be observed in Figure 4.
In the final example below, we’ll apply a transformation to the logarithm and see how that affects the graph.
Plot the graph of the function f(x)=log2(x+1).
- Answer
-
The graph of f(x)=log2(x+1) will be the same as the graph of g(x)=log2(x) shifted one unit to the left. The graph of g is shown in Figure 1(b). The x-intercept (1, 0) on the graph of g will be shifted one unit to the left to (0,0) on the graph of f. Likewise, the vertical asymptote x = 0 on the graph of g will be shifted one unit to the left to the line x = −1 on the graph of f. The final graph of f is shown in Figure 5.
Figure 5. The graph of f(x)=log2(x+1).
Exercise
In Exercises 1-18, find the exact value of the function at the given value b.
f(x)=log3(x); b=5√3.
- Answer
-
15
f(x)=log5(x); b = 3125.
f(x)=log2(x); b=116.
- Answer
-
−4
f(x)=log2(x); b = 4.
f(x)=log5(x); b = 5.
- Answer
-
1
f(x)=log2(x); b = 8.
f(x)=log2(x); b = 32.
- Answer
-
5
f(x)=log4(x); b=116.
f(x)=log5(x); b=13125.
- Answer
-
−5
f(x)=log5(x); b=125.
f(x)=log5(x); b=6√5.
- Answer
-
16
f(x)=log3(x); b=3√3.
f(x)=log6(x); b=6√6.
- Answer
-
16
f(x)=log5(x); b=5√5.
f(x)=log2(x); b=6√2.
- Answer
-
16
f(x)=log4(x); b=14.
f(x)=log3(x); b=19.
- Answer
-
−2
f(x)=log4(x); b = 64.
In Exercises 19-26, use a calculator to evaluate the function at the given value p. Round your answer to the nearest hundredth.
f(x) = ln(x); p = 10.06.
- Answer
-
2.31
f(x) = ln(x); p = 9.87.
f(x) = ln(x); p = 2.40.
- Answer
-
0.88
f(x) = ln(x); p = 9.30.
f(x) = log(x); p = 7.68.
- Answer
-
0.89
f(x) = log(x); p = 652.22.
f(x) = log(x); p = 6.47.
- Answer
-
0.81
f(x) = log(x); p = 86.19.
In Exercises 27-34, solve the given equation, and round your answer to the nearest hundredth.
13=e8x
- Answer
-
0.32
2=8ex
19=108x
- Answer
-
0.16
17=102x
7=6(10)x
- Answer
-
0.07
7=e9x
13=8ex
- Answer
-
0.49
5=7(10)x
In Exercises 35-42, the graph of a logarithmic function of the form f(x)=logb(x−a) is shown. The dashed red line is a vertical asymptote. Determine the domain of the function. Express your answer in interval notation.
- Answer
-
(0,∞)
- Answer
-
(−1,∞)
- Answer
-
(0,∞)
- Answer
-
(−3,∞)