Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

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 f1.

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 f1 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 Df1=(0,) and the range is Rf1=(,).

Screen Shot 2019-08-13 at 3.15.16 PM.png
Figure 1. The graphs of f(x)=2x and its inverse f1(x) are reflections across the line y = x.

Unfortunately, when we try to use the procedure given in Section 8.4 to find a formula for f1, 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 f1(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, b1), the inverse function f1(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.

Definition 8.5.1

If b > 0 and b1, 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.

Example 8.5.3

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!

Example 8.5.4

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.

Example 8.5.5

Compute log3(19).

Answer

v=log3(19)

3v=19 by (2)

v=2 since 32=19

Example 8.5.6

Solve the equation log5(x)=1.

Answer

log5(x)=1

51=x by (2)

x=5

Example 8.5.7

Solve the equation logb(64)=3 for b.

Answer

logb(64)=3

b3=64 by (2)

b=364=4

Example 8.5.8

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

PROPERTY 8.5.9

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 38 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.

COMMON LOGARITHM

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).

NATURAL LOGARITHM

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.

Example 8.5.14

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).

Screen Shot 2019-08-13 at 3.55.18 PM.png
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.

Example 8.5.15

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).

Screen Shot 2019-08-13 at 4.00.50 PM.png
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 f1(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 f1(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).

Screen Shot 2019-08-13 at 4.03.13 PM.png
Figure 4. The graphs of f(x)=bx and f1(x)=logb(x) are reflections across the line y = x.

Because domains and ranges of inverse functions are interchanged, it follows that

PROPERTY 8.5.16

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.

PROPERTY 8.5.17

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.

Example 8.5.18

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.

Screen Shot 2019-08-13 at 4.14.15 PM.png
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.

Exercise 8.5.1

f(x)=log3(x); b=53.

Answer

15

Exercise 8.5.2

f(x)=log5(x); b = 3125.

Exercise 8.5.3

f(x)=log2(x); b=116.

Answer

−4

Exercise 8.5.4

f(x)=log2(x); b = 4.

Exercise 8.5.5

f(x)=log5(x); b = 5.

Answer

1

Exercise 8.5.6

f(x)=log2(x); b = 8.

Exercise 8.5.7

f(x)=log2(x); b = 32.

Answer

5

Exercise 8.5.8

f(x)=log4(x); b=116.

Exercise 8.5.9

f(x)=log5(x); b=13125.

Answer

−5

Exercise 8.5.10

f(x)=log5(x); b=125.

Exercise 8.5.11

f(x)=log5(x); b=65.

Answer

16

Exercise 8.5.12

f(x)=log3(x); b=33.

Exercise 8.5.13

f(x)=log6(x); b=66.

Answer

16

Exercise 8.5.14

f(x)=log5(x); b=55.

Exercise 8.5.15

f(x)=log2(x); b=62.

Answer

16

Exercise 8.5.16

f(x)=log4(x); b=14.

Exercise 8.5.17

f(x)=log3(x); b=19.

Answer

−2

Exercise 8.5.18

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.

Exercise 8.5.19

f(x) = ln(x); p = 10.06.

Answer

2.31

Exercise 8.5.20

f(x) = ln(x); p = 9.87.

Exercise 8.5.21

f(x) = ln(x); p = 2.40.

Answer

0.88

Exercise 8.5.22

f(x) = ln(x); p = 9.30.

Exercise 8.5.23

f(x) = log(x); p = 7.68.

Answer

0.89

Exercise 8.5.24

f(x) = log(x); p = 652.22.

Exercise 8.5.25

f(x) = log(x); p = 6.47.

Answer

0.81

Exercise 8.5.26

f(x) = log(x); p = 86.19.

In Exercises 27-34, solve the given equation, and round your answer to the nearest hundredth.

Exercise 8.5.27

13=e8x

Answer

0.32

Exercise 8.5.28

2=8ex

Exercise 8.5.29

19=108x

Answer

0.16

Exercise 8.5.30

17=102x

Exercise 8.5.31

7=6(10)x

Answer

0.07

Exercise 8.5.32

7=e9x

Exercise 8.5.33

13=8ex

Answer

0.49

Exercise 8.5.34

5=7(10)x

In Exercises 35-42, the graph of a logarithmic function of the form f(x)=logb(xa) is shown. The dashed red line is a vertical asymptote. Determine the domain of the function. Express your answer in interval notation.

Exercise 8.5.35

Screen Shot 2019-08-13 at 5.37.13 PM.png

Answer

(0,)

Exercise 8.5.36

Screen Shot 2019-08-13 at 5.40.03 PM.png

Exercise 8.5.37

Screen Shot 2019-08-13 at 5.41.17 PM.png

Answer

(1,)

Exercise 8.5.38

Screen Shot 2019-08-13 at 5.42.46 PM.png

Exercise 8.5.39

Screen Shot 2019-08-13 at 5.44.43 PM.png

Answer

(0,)

Exercise 8.5.40

Screen Shot 2019-08-13 at 5.45.38 PM.png

Exercise 8.5.41

Screen Shot 2019-08-13 at 5.46.55 PM.png

Answer

(3,)

Exercise 8.5.42

Screen Shot 2019-08-13 at 5.47.29 PM.png


This page titled 8.5: Logarithmic Functions is shared under a CC BY-NC-SA 2.5 license and was authored, remixed, and/or curated by David Arnold via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?