Skip to main content

Section 1.8 Logarithmic Functions

Learning Objectives.

  1. Identify the form of a logarithmic function.

  2. Explain the relationship between exponential and logarithmic functions.

  3. Describe how to calculate a logarithm to a different base.

In this section we examine logarithmic functions. We use the properties of these functions to solve equations involving exponential and logarithmic terms. Note: This the second half of section 1.5 in the original version of OpenStax Calculus.

Subsection 1.8.1 Logarithmic Functions

Using our understanding of exponential functions, we can discuss their inverses, which are the logarithmic functions. These come in handy when we need to consider any phenomenon that varies over a wide range of values, such as pH in chemistry or decibels in sound levels.

The exponential function f(x)=bx is one-to-one, with domain (,) and range (0,). Therefore, it has an inverse function, called the logarithmic function with base b. For any b>0,b1, the logarithmic function with base b, denoted logb, has domain (0,) and range (,), and satisfies

logb(x)=y if and only if by=x.

For example,

log2(8)=3 since 23=8,log10(1100)=2 since 102=1102=1100,logb(1)=0 since b0=1 for any base b>0.

Furthermore, since y=logb(x) and y=bx are inverse functions,

logb(bx)=x and blogb(x)=x.

The most commonly used logarithmic function is the function loge. Since this function uses natural e as its base, it is called the natural logarithm. Here we use the notation ln(x) or lnx to mean loge(x). For example,

ln(e)=loge(e)=1,ln(e3)=loge(e3)=3,ln(1)=loge(1)=0.

Since the functions f(x)=ex and g(x)=ln(x) are inverses of each other,

ln(ex)=x and elnx=x,

and their graphs are symmetric about the line y=x (Figure 1.122).

"An image of a graph. The x axis runs from -3 to 3 and the y axis runs from -3 to 4. The graph is of two functions. The first function is “f(x) = e to power of x”, an increasing curved function that starts slightly above the x axis. The y intercept is at the point (0, 1) and there is no x intercept. The second function is “f(x) = ln(x)”, an increasing curved function. The x intercept is at the point (1, 0) and there is no y intercept. A dotted line with label “y = x” is also plotted on the graph, to show that the functions are mirror images over this line."
Figure 1.122. The functions y=ex and y=ln(x) are inverses of each other, so their graphs are symmetric about the line y=x.

Another frequently used logarithmic function is the function log10. It is called the common logarithm. Here we use the notation log(x) or logx to mean log10(x). For example,

log(10)=log10(10)=1,log(1000)=log10(103)=3,log(1)=log10(1)=0.

Note 1.123. Media.

At this site 1  you can see an example of a base-10 logarithmic scale.

In general, for any base b>0,b1, the function g(x)=logb(x) is symmetric about the line y=x with the function f(x)=bx. Using this fact and the graphs of the exponential functions, we graph functions logb for several values of b>1 (Figure 1.124).

"An image of a graph. The x axis runs from -3 to 3 and the y axis runs from 0 to 4. The graph is of three functions. All three functions a log functions that are increasing curved functions that start slightly to the right of the y axis and have an x intercept at (1, 0). The first function is “y = log base 10 (x)”, the second function is “f(x) = ln(x)”, and the third function is “y = log base 2 (x)”. The third function increases the most rapidly, the second function increases next most rapidly, and the third function increases the slowest."
Figure 1.124. Graphs of y=logb(x) are depicted for b=2,e,10.

Before solving some equations involving exponential and logarithmic functions, let’s review the basic properties of logarithms.

Note 1.125. Rule: Properties of Logarithms.

If a,b,c>0,b1, and r is any real number, then

1.logb(ac)=logb(a)+logb(c) (Product property) 2.logb(ac)=logb(a)logb(c) (Quotient property) 3.logb(ar)=rlogb(a) (Power property) 

Example 1.126. Solving Equations Involving Exponential Functions.

Solve each of the following equations for x.

  1. 5x=2

  2. ex+6ex=5

Solution.
  1. Applying the natural logarithm function to both sides of the equation, we have

    ln5x=ln2.
    Using the power property of logarithms,
    xln5=ln2.
    Therefore, x=ln2/ln5.

  2. Multiplying both sides of the equation by ex, we arrive at the equation

    e2x+6=5ex.
    Rewriting this equation as
    e2x5ex+6=0,
    we can then rewrite it as a quadratic equation in ex.
    (ex)25(ex)+6=0.
    Now we can solve the quadratic equation. Factoring this equation, we obtain
    (ex3)(ex2)=0.
    Therefore, the solutions satisfy ex=3 and ex=2. Taking the natural logarithm of both sides gives us the solutions x=ln3,ln2.

Checkpoint 1.127.

Solve ex/(3+ex)=1/2.

Hint.

First solve the equation for ex.

Solution.

x=ln32

Example 1.128. Solving Equations Involving Logarithmic Functions.

Solve each of the following equations for x.

  1. ln(1x)=4

  2. log10x+log10x=2

  3. ln(2x)3ln(x2)=0

Solution.
  1. By the definition of the natural logarithm function,

    ln(1x)=4 if and only if e4=12.
    Therefore, the solution is x=1/e4.

  2. Using the product and power properties of logarithmic functions, rewrite the left-hand side of the equation as

    log10x+log10x=log10xx=log10x3/2=32log10x.
    Therefore, the equation can be rewritten as
    32log10x=2 or log10x=43.
    The solution is x=104/3=10103.

  3. Using the power property of logarithmic functions, we can rewrite the equation as ln(2x)ln(x6)=0. Using the quotient property, this becomes

    ln(2x5)=0.
    Therefore, 2/x5=1, which implies x=25. We should then check for any extraneous solutions.

Checkpoint 1.129.

Solve ln(x3)4>ln(x)=1.

Hint.

First use the power property, then use the product property of logarithms.

Solution.

x=1e

When evaluating a logarithmic function with a calculator, you may have noticed that the only options are log10 or log, called the common logarithm, or ln, which is the natural logarithm. However, exponential functions and logarithm functions can be expressed in terms of any desired base b. If you need to use a calculator to evaluate an expression with a different base, you can apply the change-of-base formulas first. Using this change of base, we typically write a given exponential or logarithmic function in terms of the natural exponential and natural logarithmic functions.

Note 1.130. Rule: Change-of-Base Formulas.

Let a>0,b>0, and a1,b1.

  1. ax=blogbax for any real number x. If b=e, this equation reduces to ax=elogeax=exlna.

  2. logax=logbxlogba for any real number x>0. If b=e, this equation reduces to logax=lnxlna.

Example 1.131. Changing Bases.

Use a calculating utility to evaluate log37 with the change-of-base formula presented earlier.

Solution.

Use the second equation with a=3 and e=3.

log37=ln7ln31.77124.

Checkpoint 1.132.

Use the change-of-base formula and a calculating utility to evaluate log46.

Hint.

Use the change of base to rewrite this expression in terms of expressions involving the natural logarithm function.

Solution.

1.29248

Example 1.133. Chapter Opener: The Richter Scale for Earthquakes.

"A photograph of an earthquake fault."
Figure 1.134. (credit: modification of work by Robb Hannawacker, NPS)

In 1935, Charles Richter developed a scale (now known as the Richter scale) to measure the magnitude of an earthquake. The scale is a base-10 logarithmic scale, and it can be described as follows: Consider one earthquake with magnitude R1 on the Richter scale and a second earthquake with magnitude R2 on the Richter scale. Suppose R1>R2, which means the earthquake of magnitude R1 is stronger, but how much stronger is it than the other earthquake? A way of measuring the intensity of an earthquake is by using a seismograph to measure the amplitude of the earthquake waves. If A1 is the amplitude measured for the first earthquake and A2 is the amplitude measured for the second earthquake, then the amplitudes and magnitudes of the two earthquakes satisfy the following equation:

R1R2=log10(A1A2).

Consider an earthquake that measures 8 on the Richter scale and an earthquake that measures 7 on the Richter scale. Then,

87=log10(A1A2).

Therefore,

log10(A1A2)=1,

which implies A1/A2=10 or A1=10A2. Since A1 is 10 times the size of A2, we say that the first earthquake is 10 times as intense as the second earthquake. On the other hand, if one earthquake measures 8 on the Richter scale and another measures 6, then the relative intensity of the two earthquakes satisfies the equation

log10(A1A2)=86=2.

Therefore, A1=100A2. That is, the first earthquake is 100 times more intense than the second earthquake.

How can we use logarithmic functions to compare the relative severity of the magnitude 9 earthquake in Japan in 2011 with the magnitude 7.3 earthquake in Haiti in 2010?

Solution.

To compare the Japan and Haiti earthquakes, we can use an equation presented earlier:

97.3=log10(A1A2).

Therefore, A1/A2=101.7, and we conclude that the earthquake in Japan was approximately 50 times more intense than the earthquake in Haiti.

Checkpoint 1.135.

Compare the relative severity of a magnitude 8.4 earthquake with a magnitude 7.4 earthquake.

Hint.

R1R2=log10(A1/A2).

Solution.

The magnitude 8.4 earthquake is roughly 10 times as severe as the magnitude 7.4 earthquake.

Subsection 1.8.2 Key Concepts

  • The logarithmic function y=logb(x) is the inverse of y=bx. Its domain is (0,) and its range is (,).

  • The natural logarithmic function is y=lnx=logex.

  • Given an exponential function or logarithmic function in base a, we can make a change of base to convert this function to any base b>0,b1. We typically convert to base e.

This book is a custom edition based on OpenStax Calculus Volume 1. You can download the original for free at https://openstax.org/details/books/calculus-volume-1. 2 

Additional practice exercises are available in at the bottom on this section in OpenStax Calculus Volume 1: https://openstax.org/books/calculus-volume-1/pages/1-5-exponential-and-logarithmic-functions

openstax.org/l/20_logscale
https://openstax.org/details/books/calculus-volume-1