6.3 Logarithmic Functions

Learning Objectives

In this section, you will:

  • Convert from logarithmic to exponential form.
  • Convert from exponential to logarithmic form.
  • Evaluate logarithms.
  • Use common logarithms.
  • Use natural logarithms.
Figure 1. Devastation of March 11, 2011 earthquake in Honshu, Japan. (credit: Daniel Pierce)

In 2010, a major earthquake struck Haiti, destroying or damaging over 285,000 homes. One year later, another, stronger earthquake devastated Honshu, Japan, destroying or damaging over 332,000 buildings, like those shown in Figure 1. Even though both caused substantial damage, the earthquake in 2011 was 100 times stronger than the earthquake in Haiti. How do we know? The magnitudes of earthquakes are measured on a scale known as the Richter Scale. The Haitian earthquake registered a 7.0 on the Richter Scale whereas the Japanese earthquake registered a 9.0.

The Richter Scale is a base-ten logarithmic scale. In other words, an earthquake of magnitude 8 is not twice as great as an earthquake of magnitude 4. It is [latex]10^{8-4}=10^4=10,000[/latex] times as great! In this lesson, we will investigate the nature of the Richter Scale and the base-ten function upon which it depends.

Converting from Logarithmic to Exponential Form

In order to analyze the magnitude of earthquakes or compare the magnitudes of two different earthquakes, we need to be able to convert between logarithmic and exponential form. For example, suppose the amount of energy released from one earthquake were 500 times greater than the amount of energy released from another. We want to calculate the difference in magnitude. The equation that represents this problem is [latex]10^x=500,[/latex]where x represents the difference in magnitudes on the Richter Scale. How would we solve for x?

We have not yet learned a method for solving exponential equations. None of the algebraic tools discussed so far is sufficient to solve [latex]10^x=500.[/latex] We know that [latex]10^2=100[/latex] and [latex]10^3=1000,[/latex] so it is clear that x must be some value between 2 and 3, since [latex]y=10^x[/latex] is increasing. We can examine a graph, as in Figure 2, to better estimate the solution.

 

Figure 2

Estimating from a graph, however, is imprecise. To find an algebraic solution, we must introduce a new function. Observe that the graph in Figure 2 passes the horizontal line test. The exponential function [latex]y=b^x[/latex] is one-to-one, so its inverse, [latex]x=b^y[/latex] is also a function. As is the case with all inverse functions, we simply interchange x and y and solve for y to find the inverse function. To represent y as a function of x, we use a logarithmic function of the form [latex]y=\log_b(x)[/latex] The base b logarithm of a number is the exponent by which we must raise b to get that number.

We read a logarithmic expression as, “The logarithm with base b of x is equal to y,” or, simplified, “log base b of x is y.” We can also say, “b raised to the power of y is x,” because logs are exponents. For example, the base 2 logarithm of 32 is 5, because 5 is the exponent we must apply to 2 to get 32. Since [latex]2^5=32,[/latex] we can write [latex]\log_232=5.[/latex] We read this as “log base 2 of 32 is 5.”

We can express the relationship between logarithmic form and its corresponding exponential form as follows:

[latex]\log_b(x) = y \Leftrightarrow b^y = x, \quad b > 0, b \neq 1[/latex]

Note that the base b is always positive.



Because logarithm is a function, it is most correctly written as [latex]\log_b(x),[/latex] using parentheses to denote function evaluation, just as we would with [latex]f(x).[/latex] However, when the input is a single variable or number, it is common to see the parentheses dropped and the expression written without parentheses, as [latex]\log_bx.[/latex] Note that many calculators require parentheses around the x.

We can illustrate the notation of logarithms as follows:



Notice that, comparing the logarithm function and the exponential function, the input and the output are switched. This means [latex]y=\log_b(x)[/latex] and [latex]y=b^x[/latex] are inverse functions.

Definition of the Logarithmic Function

A logarithm base b of a positive number x satisfies the following definition.

For [latex]x> 0, b> 0, b\not=1,[/latex]

[latex]y=\log_b(x)[/latex] is equivalent to [latex]b_y=x[/latex]

where,

  • we read [latex]\log_b(x)[/latex] as, “the logarithm with base b of x” or the “log base b of x.”
  • the logarithm y is the exponent to which b must be raised to get x.

Also, since the logarithmic and exponential functions switch the x and y values, the domain and range of the exponential function are interchanged for the logarithmic function. Therefore,

  • the domain of the logarithm function with base b is [latex](0, \infty).[/latex]
  • the range of the logarithm function with base b is [latex](-\infty, \infty).[/latex]

Q&A

Q: Can we take the logarithm of a negative number?

A: No. Because the base of an exponential function is always positive, no power of that base can ever be negative. We can never take the logarithm of a negative number. Also, we cannot take the logarithm of zero. Calculators may output a log of a negative number when in complex mode, but the log of a negative number is not a real number.

How To

Given an equation in logarithmic form [latex]lob_b(x)=y,[/latex] convert it to exponential form.

  1. Examine the equation [latex]\log_b(x),[/latex] and identify b, y, and x.
  2. Rewrite [latex]\log_b(x)=y[/latex] as [latex]b^y=x.[/latex]

Example 1: Converting from Logarithmic Form to Exponential Form

Write the following logarithmic equations in exponential form.

(a) [latex]\log_6(\sqrt{6})=\frac{1}{2}[/latex]

(b) [latex]\log_3(9)=2[/latex]

Solution (click to expand)

First, identify the values of b, y, and x. Then, write the equation in the form [latex]b^y=x.[/latex]

(a) [latex]\log_6(\sqrt{6})=\frac{1}{2}[/latex]

Here, [latex]b=6, y=\frac{1}{2},[/latex] and [latex]x=\sqrt{6}.[/latex] Therefore, the equation [latex]\log_6(\sqrt{6})=\frac{1}{2}[/latex] is equivalent to [latex]6^{\frac{1}{2}}=\sqrt{6}.[/latex]

(b) [latex]\log_3(9)=2[/latex]

Here, [latex]b=3, y=2,[/latex] and [latex]x=9.[/latex] Therefore, the equation [latex]\log_3(9)=2[/latex] is equivalent to [latex]3^2=9.[/latex]

Try It #1

Write the following logarithmic equations in exponential form.

(a) [latex]\log_{10}(1,000,000)=6[/latex]

(b) [latex]\log_5(25)=2[/latex]

Converting from Exponential to Logarithmic Form

To convert from exponents to logarithms, we follow the same steps in reverse. We identify the base b, exponent x, and output y. Then we write [latex]x=\log^b(y).[/latex]

Example 2: Converting from Exponential Form to Logarithmic Form

Write the following exponential equations in logarithmic form.

(a) [latex]2^3=8[/latex]

(b) [latex]5^2=25[/latex]

(c) [latex]10^{-4}=\frac{1}{10,000}[/latex]

 

Solution (click to expand)

First, identify the values of b, y, and x. Then, write the equation in the form [latex]x=\log_b(y).[/latex]

(a) [latex]2^3=8[/latex]

Here, [latex]b=2, x=3,[/latex] and [latex]y=8.[/latex] Therefore, the equation [latex]2^3=8[/latex] is equivalent to [latex]\log_2(8)=3.[/latex]

(b) [latex]5^5=25[/latex]

Here, [latex]b=5, x=2,[/latex] and [latex]y=25.[/latex] Therefore, the equation [latex]5^2=25[/latex] is equivalent to [latex]\log_5(25)=2.[/latex]

(c) [latex]10^{-4}=\frac{1}{10,000}[/latex]

Here, [latex]b=10, x=-4,[/latex] and [latex]y=\frac{1}{10,000}.[/latex] Therefore, the equation [latex]10^{-4}=\frac{1}{10,000}[/latex] is equivalent to [latex]\log_{10}\left(\frac{1}{10,000}\right)=-4.[/latex]

Try It #2

Write the following exponential equations in logarithmic form.

(a) [latex]3^2=9[/latex]

(b) [latex]5^3=125[/latex]

(c) [latex]2^{-1}=\frac{1}{2}[/latex]

Evaluating Logarithms

Knowing the squares, cubes, and roots of numbers allows us to evaluate many logarithms mentally. For example, consider [latex]\log_28.[/latex] We ask, “To what exponent must 2 be raised in order to get 8?” Because we already know [latex]2^3=8,[/latex] it follows that [latex]log_28=3.[/latex]

Now consider solving [latex]\log_749[/latex] and [latex]\log_327[/latex] mentally.

  • We ask, “To what exponent must 7 be raised in order to get 49?” We know [latex]7^2=49.[/latex] Therefore, [latex]\log_749=2.[/latex]
  • We ask, “To what exponent must 3 be raised in order to get 27?” We know [latex]3^3=27.[/latex] Therefore, [latex]\log_327=3.[/latex]

Even some seemingly more complicated logarithms can be evaluated without a calculator. For example, let’s evaluate [latex]\log_{\frac{2}{3}}\frac{4}{9}[/latex] mentally.

  • We ask, “To what exponent must [latex]\frac{2}{3}[/latex] be raised in order to get [latex]\frac{4}{9}?"[/latex] We know [latex]2^2=4[/latex] and [latex]3^2=9,[/latex] so [latex]\left(\frac{2}{3}\right)^2=\frac{4}{9}.[/latex] Therefore, [latex]\log_{\frac{2}{3}}\left(\frac{4}{9}\right)=2.[/latex]

How To

Given a logarithm of the form [latex]y=\log^b(x),[/latex] evaluate it mentally.

  1. Rewrite the argument x as a power of [latex]b: b^y=x.[/latex]
  2. Use previous knowledge of powers of b identify y by asking, “To what exponent should b be raised in order to get x?”

Example 3: Solving Logarithms Mentally

Solve [latex]y=\log_4(64)[/latex] without using a calculator.

 

Solution (click to expand)

First we rewrite the logarithm in exponential form: [latex]4^y=64.[/latex] Next, we ask, “To what exponent must 4 be raised in order to get 64?”

We know

[latex]4^3=64[/latex]

Therefore,

[latex]\log_4(64)=3[/latex]

Try It #3

Solve [latex]y=\log_{121}(11)[/latex] without using a calculator.

Example 4: Evaluating the Logarithm of a Reciprocal

Evaluate [latex]y=\log_3\left(\frac{1}{27}\right)[/latex] without using a calculator.

 

Solution (click to expand)

First we rewrite the logarithm in exponential form: [latex]3^y=\frac{1}{27}.[/latex] Next, we ask, “To what exponent must 3 be raised in order to get [latex]\frac{1}{27}?"[/latex]

We know [latex]3^3=27,[/latex] but what must we do to get the reciprocal, [latex]\frac{1}{27}?[/latex] Recall from working with exponents that [latex]b^{-a}=\frac{1}{b^a}.[/latex] We use this information to write

[latex]\begin{array}{rl} 3^{-3} &=& \frac{1}{3^3} \\ &=& \frac{1}{27} \end{array}[/latex]

Therefore, [latex]\log_3\left(\frac{1}{27}\right)=-3.[/latex]

Try It #4

Evaluate [latex]y=\log_2\left(\frac{1}{32}\right)[/latex] without using a calculator.

Using Common Logarithms

Sometimes you may see a logarithm written without a base. When you see one written this way, you need to look at the expression before evaluating it. It may be that the base you use doesn’t matter. If you find it in computer science, it often means [latex]\log_2(x).[/latex] However, in mathematics it almost always means the common logarithm of 10. In other words, the expression [latex]\log(x)[/latex] often means [latex]\log_{10}(x).[/latex]

Definition of the Common Logarithm

A common logarithm is a logarithm with base 10. We can also write [latex]\log_{10}(x)[/latex] simply as [latex]\log(x).[/latex] The common logarithm of a positive number x satisfies the following definition.

For [latex]x> 0,[/latex]

[latex]y=\log(x)[/latex] is equivalent to [latex]y=\log_{10}(x)[/latex]

We read [latex]log(x)[/latex] as, “the logarithm with base 10 of x” or “log base 10 of x.”

The logarithm y is the exponent to which 10 must be raised to get x.

Currently, we use [latex]\log_b(x), lg(x)[/latex] as the common logarithm, [latex]\operatorname{lb}(x) [/latex] as the binary logarithm, and [latex]\ln(x)[/latex] as the natural logarithm. Writing [latex]\lg(x)[/latex] without specifying a base is now considered bad form, despite being frequently found in older materials.

How To

Given a common logarithm of the form [latex]y=\log(x),[/latex] evaluate it mentally.

  1. Rewrite the argument x as a power of [latex]10: 10^y=x.[/latex]
  2. Use previous knowledge of powers of 10 to identify y by asking, “To what exponent must 10 be raised in order to get x?”

Example 5: Finding the Value of a Common Logarithm Mentally

Evaluate [latex]y=\log(1000)[/latex] without using a calculator.

 

Solution (click to expand)

First we rewrite the logarithm in exponential form: [latex]10^y=1000.[/latex] Next, we ask, “To what exponent must 10 be raised in order to get 1000?” We know

[latex]10^3=1000[/latex]

Therefore, [latex]\log(1000)=3.[/latex]

Try It #5

Evaluate [latex]y=\log(1,000,000)[/latex]

How To

Given a common logarithm with the form [latex]y=\log(x),[/latex] evaluate it using a calculator.

  1. Press [LOG].
  2. Enter the value given for x followed by [ ) ].
  3. Press [ENTER].

Example 6: Finding the Value of a Common Logarithm Using a Calculator

Evaluate [latex]y=\log(321)[/latex] to four decimal places using a calculator.

 

Solution (click to expand)
  • Press [LOG
  • Enter 321, followed by [ ) ].
  • Press [ENTER].

Rounding to four decimal places, [latex]\log(321)\approx 2.5065.[/latex]

Analysis

Note that [latex]10^2=100[/latex] and that [latex]10^3=1000.[/latex] Since 321 is between 100 and 1000, we know that [latex]\log(321)[/latex] must be between [latex]\log(100)[/latex] and [latex]\log(1000).[/latex] This gives us the following:

[latex]\begin{array}{ccc} 1000 &<& 321 &<& 1000 \\ 2 &<& 2.5065 &<& 3 \end{array}[/latex]

Try It #6

Evaluate [latex]y=\log(123)[/latex] to four decimal places using a calculator.

Example 7: Rewriting and Solving a Real-World Exponential Model

The amount of energy released from one earthquake was 500 times greater than the amount of energy released from another. The equation [latex]10^x=500[/latex] represents this situation, where x is the difference in magnitudes on the Richter Scale. To the nearest thousandth, what was the difference in magnitudes?

 

Solution (click to expand)

We begin by rewriting the exponential equation in logarithmic form.

[latex]\begin{array}{lll} 10^x &=& 500 \\ \log(500) &=& x && \text{Use the definition of the common log.} \end{array}[/latex]

Next we evaluate the logarithm using a calculator:

  • Press [LOG].
  • Enter 500, followed by [ ) ].
  • Press [ENTER].
  • To the nearest thousandth, [latex]\log(500)\approx 2.699.[/latex]

The difference in magnitudes was about [latex]2.699.[/latex]

Try It #7

The amount of energy released from one earthquake was 8,500 times greater than the amount of energy released from another. The equation [latex]10^x=8500[/latex] represents this situation, where x is the difference in magnitudes on the Richter Scale. To the nearest thousandth, what was the difference in magnitudes?

Using Natural Logarithms

The most frequently used base for logarithms is e, the value of which is approximately [latex]2.71828.[/latex] Base e logarithms are important in calculus and some scientific applications; they are called natural logarithms. The base e logarithm, [latex]log_e(x),[/latex] has its own notation, [latex]ln(x).[/latex]

Most values of [latex]ln(x)[/latex] can be found only using a calculator. The major exception is that, because the logarithm of 1 is always 0 in any base, [latex]\ln1=0.[/latex] For other natural logarithms, we can use the [latex]\ln[/latex] key that can be found on most scientific calculators. We can also find the natural logarithm of any power of e using the inverse property of logarithms.

Definition of the Natural Logarithm

A natural logarithm is a logarithm with base e. We write [latex]\log_e(x)[/latex] simply as [latex]\ln(x).[/latex] The natural logarithm of a positive number x satisfies the following definition.

For [latex]x> 0,[/latex]

[latex]y=\ln(x)[/latex] is equivalent to [latex]e^y=x.[/latex]

We read [latex]\ln(x)[/latex] as, “the logarithm with base e of x” or “the natural logarithm of x.”

The logarithm y is the exponent to which e must be raised to get x.

Since the functions [latex]y=e^x[/latex] and [latex]y=\ln(x)[/latex] are inverse functions, [latex]\ln(e^x)=x[/latex] for all x and [latex]e^{\ln(x)=x}=x[/latex] for [latex]x> 0.[/latex]

How To

Given a natural logarithm with the form [latex]y=\ln(x),[/latex] evaluate it using a calculator.

  1. Press [LN].
  2. Enter the value given for x, followed by [ ) ].
  3. Press [ENTER].

Example 8: Evaluating a Natural Logarithm Using a Calculator

Evaluate [latex]y=\ln(500)[/latex] to four decimal places using a calculator.

 

Solution (click to expand)
  • Press [LN].
  • Enter 500, followed by [ ) ].
  • Press [ENTER].

Rounding to four decimal places, [latex]\ln(500)\approx 6.2146.[/latex]

Try It #8

Evaluate [latex]\ln(-500).[/latex]

Media

Access this online resource for additional instruction and practice with logarithms.

6.3 Section Exercises

Verbal

1. What is a base b logarithm? Discuss the meaning by interpreting each part of the equivalent equations [latex]b^y=x[/latex] and [latex]\log_bx=y[/latex] for [latex]b> 0, b\not=1.[/latex]

2. How is the logarithmic function [latex]f(x)=\log_bx[/latex] related to the exponential function [latex]g(x)=b^x?[/latex] What is the result of composing these two functions?

3. How can the logarithmic equation [latex]\log_bx=y[/latex] be solved for x using the properties of exponents?

4Discuss the meaning of the common logarithm. What is its relationship to a logarithm with base b and how does the notation differ?

5. Discuss the meaning of the natural logarithm. What is its relationship to a logarithm with base b and how does the notation differ?

Algebraic

For the following exercises, rewrite each equation in exponential form.

6. [latex]\log_4(q)=m[/latex]

7. [latex]\log_a(b)=c[/latex]

8. [latex]\log_{16}(y)=x[/latex]

9. [latex]\log_x(64)=y[/latex]

10. [latex]\log_y(x)=-11[/latex]

11. [latex]\log_{15}(a)=b[/latex]

12. [latex]\log_y(137)=x[/latex]

13. [latex]\log_{13}(142)=a[/latex]

14. [latex]\log(v)=t[/latex]

15. [latex]\ln(w)=n[/latex]

For the following exercises, rewrite each equation in logarithmic form.

16. [latex]4^x=y[/latex]

17. [latex]c^d=k[/latex]

18. [latex]m^{-7}=n[/latex]

19. [latex]19^x=y[/latex]

20. [latex]x^{=\frac{10}{13}}=y[/latex]

21. [latex]n^4=103[/latex]

22. [latex]\left(\frac{7}{5}\right)^m=n[/latex]

23. [latex]y^x=\frac{39}{100}[/latex]

24. [latex]10^a=b[/latex]

25. [latex]e^k=h[/latex]

For the following exercises, solve for x by converting the logarithmic equation to exponential form.

26. [latex]\log_3(x)=2[/latex]

27. [latex]\log_2(x)=-3[/latex]

28. [latex]\log_5(x)=2[/latex]

29. [latex]\log_3(x)=3[/latex]

30. [latex]\log_2(x)=6[/latex]

31. [latex]\log_9(x)=\frac{1}{2}[/latex]

32. [latex]\log_{18}(x)=2[/latex]

33. [latex]\log_6(x)=-3[/latex]

34. [latex]\log(x)=3[/latex]

35. [latex]\ln(x)=2[/latex]

For the following exercises, use the definition of common and natural logarithms to simplify.

36. [latex]\log(100^8)[/latex]

37. [latex]10^{\log(32)}[/latex]

38. [latex]32\log(.0001)[/latex]

39. [latex]e^{\ln(1.06)}[/latex]

40. [latex]\ln(e^{-5.03})[/latex]

41. [latex]e^{\ln(10.125)}+4[/latex]

Numeric

For the following exercises, evaluate the base b logarithmic expression without using a calculator.

42. [latex]\log_3\left(\frac{1}{27}\right)[/latex]

43. [latex]\log_6(\sqrt{6})[/latex]

44. [latex]\log_2\left(\frac{1}{8}\right)+4[/latex]

45. [latex]6\log_8(4)[/latex]

For the following exercises, evaluate the common logarithmic expression without using a calculator.

46. [latex]\log(10,000)[/latex]

47. [latex]\log(0.001)[/latex]

48. [latex]\log(1)+7[/latex]

49. [latex]2\log(100^{-3})[/latex]

For the following exercises, evaluate the natural logarithmic expression without using a calculator.

50. [latex]\ln(e^{\frac{1}{3}})[/latex]

51. [latex]\ln(1)[/latex]

52. [latex]\ln(e^{-0.225})-3[/latex]

53. [latex]25\ln(e^{\frac{2}{5}})[/latex]

Technology

For the following exercises, evaluate each expression using a calculator. Round to the nearest thousandth.

54. [latex]\log(0.04)[/latex]

55. [latex]\ln(15)[/latex]

56. [latex]\ln\left(\frac{4}{5}\right)[/latex]

57. [latex]\log(\sqrt{2})[/latex]

58. [latex]\ln(\sqrt{2})[/latex]

Extensions

59. Is [latex]x=0[/latex] in the domain of the function [latex]f(x)=\log(x)?[/latex] If so, what is the value of the function when [latex]x=0?[/latex] Verify the result.

60. Is [latex]f(x)=0[/latex] in the range of the function [latex]f(x)=\log(x)?[/latex] If so, for what value of x? Verify the result.

61. Is there a number x such that [latex]\lnx=2?[/latex] If so, what is that number? Verify the result.

62. Is the following true: [latex]\frac{\log_3(27)}{log_4\left(\frac{1}{64}\right)}=-1?[/latex] Verify the result.

63. Is the following true: [latex]\frac{\ln(e^{1.725})}{ln(1)}=1.725?[/latex] Verify the result.

Real-World Applications

64. The exposure index [latex]EI[/latex] for a camera is a measurement of the amount of light that hits the image receptor. It is determined by the equation [latex]EI=\log_2\left(\frac{f^2}{t}\right),[/latex] where f is the “f-stop” setting on the camera, and t is the exposure time in seconds. Suppose the f-stop setting is 8 and the desired exposure time is 2 seconds. What will the resulting exposure index be?

65. Refer to the previous exercise. Suppose the light meter on a camera indicates an [latex]EI[/latex] of -2, and the desired exposure time is 16 seconds. What should the f-stop setting be?

66. The intensity levels I of two earthquakes measured on a seismograph can be compared by the formula [latex]\log\frac{I_1}{I_2}=M_1-M_2[/latex] where [latex]M[/latex] is the magnitude given by the Richter Scale. In August 2009, an earthquake of magnitude 6.1 hit Honshu, Japan. In March 2011, that same region experienced yet another, more devastating earthquake, this time with a magnitude of 9.0. How many times greater was the intensity of the 2011 earthquake? Round to the nearest whole number.

License

Icon for the Creative Commons Attribution 4.0 International License

CCA College Algebra Copyright © by Alexandre Probst; Collier Gaiser; Jason Ray; Radha Basker; and Shari Holder is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book