Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

7.3: Logarithmic Functions and Their Graphs

  • Anonymous
  • LibreTexts

( \newcommand{\kernel}{\mathrm{null}\,}\)

Learning Objectives

  • Define and evaluate logarithms.
  • Identify the common and natural logarithm.
  • Sketch the graph of logarithmic functions.

Definition of the Logarithm

We begin with the exponential function defined by f(x)=2x and note that it passes the horizontal line test.

4e91ed28b9a3bda36a97f70b9b704670.png
Figure 7.3.1

Therefore it is one-to-one and has an inverse. Reflecting y=2x about the line y=x we can sketch the graph of its inverse. Recall that if (x,y) is a point on the graph of a function, then (y,x) will be a point on the graph of its inverse.

c33ce3a7bc66e14d66f57451f3390881.png
Figure 7.3.2

To find the inverse algebraically, begin by interchanging x and y and then try to solve for y.

f(x)=2xy=2xx=2y

We quickly realize that there is no method for solving for y. This function seems to “transcend” algebra. Therefore, we define the inverse to be the base-2 logarithm, denoted log2x. The following are equivalent:

y=log2xx=2y

This gives us another transcendental function defined by f1(x)=log2x, which is the inverse of the exponential function defined by f(x)=2x.

ee04d676cb75048d49d85d1efbc40b64.png
Figure 7.3.3

The domain consists of all positive real numbers (0,) and the range consists of all real numbers (,). John Napier is widely credited for inventing the term logarithm.

d0f5bb27b87b9588d84036ea89088df0.png
Figure 7.3.4: John Napier (1550-1617)

In general, given base b>0 where b1, the logarithm base b8 is defined as follows:

y=logbxifandonlyifx=by

Use this definition to convert logarithms to exponential form and back.

Table 7.3.1
Logarithmic Form Exponential Form
log216=4 24=16
log525=2 52=25
log61=0 60=1
log33=12 31/2=3
log7(149)=2 72=149

It is useful to note that the logarithm is actually the exponent y to which the base b is raised to obtain the argument x.

18809071d3efe42966dd8ea84eccfca5.png
Figure 7.3.5

Example 7.3.1

Evaluate:

  1. log5125
  2. log2(18)
  3. log42
  4. log111

Solution

  1. log5125=3 because 53=125.
  2. log2(18)=3 because 23=123=18.
  3. log42=12 because 41/2=4=2.
  4. log111=0 because 110=1

Note that the result of a logarithm can be negative or even zero. However, the argument of a logarithm is not defined for negative numbers or zero:

log2(4)=?2?=4log2(0)=?2?=0

There is no power of two that results in 4 or 0. Negative numbers and zero are not in the domain of the logarithm. At this point it may be useful to go back and review all of the rules of exponents.

Example 7.3.2

Find x:

  1. log7x=2
  2. log16x=12
  3. log1/2x=5

Solution

Convert each to exponential form and then simplify using the rules of exponents.

  1. log7x=2 is equivalent to 72=x and thus x=49.
  2. log16x=12 is equivalent to 161/2=x or 16=x and thus x=4.
  3. log1/2x=5 is equivalent to (12)5=x or 25=x and thus x=32,

Exercise 7.3.1

Evaluate: log5(135).

Answer

13

www.youtube.com/v/1Bxv8PY91bw

The Common and Natural Logarithm

A logarithm can have any positive real number, other than 1, as its base. If the base is 10, the logarithm is called the common logarithm9.

f(x)=log10x=logxCommonlogarithm

When a logarithm is written without a base it is assumed to be the common logarithm.

This convention varies with respect to the subject in which it appears. For example, computer scientists often let logx represent the logarithm base 2.

Example 7.3.3:

Evaluate:

  1. log105
  2. log10
  3. log0.01

Solution

  1. log105=5 because 105=105.
  2. log10=12 because 101/2=10.
  3. log0.01=log(1100)=2 because 102=1102=1100=0.01

The result of a logarithm is not always apparent. For example, consider log75.

log10=1log75=?log100=2

We can see that the result of log75 is somewhere between 1 and 2. On most scientific calculators there is a common logarithm button LOG .Use it to find the log75 as follows:

LOG75=1.87506

Therefore, rounded off to the nearest thousandth, log751.875. As a check, we can use a calculator to verify that 101.87575.

If the base of a logarithm is e, the logarithm is called the natural logarithm10.

f(x)=logex=lnxNaturallogarithm

The natural logarithm is widely used and is often abbreviated lnx.

Example 7.3.4

Evaluate:

  1. lne
  2. ln3e2
  3. ln(1e4)

Solution

  1. lne=1 because lne=logee=1 and e1=e.
  2. ln(3e2)=23 because e2/3=3e2.
  3. ln(1e4)=4 because e4=1e4.

On a calculator you will find a button for the natural logarithm LN.

LN75=4.317488

Therefore, rounded off to the nearest thousandth, ln(75)4.317. As a check, we can use a calculator to verify that e4.31775.

Example 7.3.5

Find x. Round answers to the nearest thousandth.

  1. logx=3.2
  2. lnx=4
  3. logx=23

Solution

Convert each to exponential form and then use a calculator to approximate the answer.

  1. logx=3.2 is equivalent to 103.2=x and thus x1584.893.
  2. lnx=4 is equivalent to e4=x and thus x0.018.
  3. logx=23 is equivalent to 102/3=x and thus x0.215.

Exercise 7.3.2

Evaluate: ln(1e)

Answer

frac12

www.youtube.com/v/fLW7_Zv7QME

Graphing Logarithmic Functions

We can use the translations to graph logarithmic functions. When the base b>1, the graph of f(x)=logbx has the following general shape:

7a127bf059854091f42e9f91c52eafe7.png
Figure 7.3.6

The domain consists of positive real numbers, (0,) and the range consists of all real numbers, (,). The y-axis, or x=0, is a vertical asymptote and the x-intercept is (1,0). In addition, f(b)=logbb=1 and so (b,1) is a point on the graph no matter what the base is.

Example 7.3.6

Sketch the graph and determine the domain and range: f(x)=log3(x+4)1.

Solution

Begin by identifying the basic graph and the transformations.

y=log3xBasicgraph.y=log3(x+4)Shiftleft4units.y=log3(x+4)1Shiftdown1unit.

0f7801acf63f6e639572be184b1d0e39.png
Figure 7.3.7

Notice that the asymptote was shifted 4 units to the left as well. This defines the lower bound of the domain. The final graph is presented without the intermediate steps.

Answer:

c358300af36d93f47e75457dc0aa0c43.png
Figure 7.3.8

Domain: (4,); Range: (,)

Finding the intercepts of the graph in the previous example is left for a later section in this chapter. For now, we are more concerned with the general shape of logarithmic functions.

Example 7.3.7

Sketch the graph and determine the domain and range: f(x)=log(x2).

Solution

Begin by identifying the basic graph and the transformations.

y=logxBasicgraph.y=logxReflectionaboutthexaxis.y=log(x2)Shiftright2units.

2a351db284993548ea06068881d2c701.png
Figure 7.3.9

Here the vertical asymptote was shifted two units to the right. This defines the lower bound of the domain.

Answer

1017435ad51cf4813534623285135d09.png
Figure 7.3.10

Domain: (2,); Range: (,)

Exercise 7.3.3

Sketch the graph and determine the domain and range: g(x)=ln(x)+2.

Answer
1069adcdf3ebecf27ae3a8f08579e1a6.png
Figure 7.3.11

Domain: (,0); Range: (,)

www.youtube.com/v/6obhBJfCDe4

Next, consider exponential functions with fractional bases, such as the function defined by f(x)=(12)x. The domain consists of all real numbers. Choose some values for x and then find the corresponding y-values.

Table 7.3.2
x y Solutions
2 4 f(2)=(12)2=22=4 (2,4)
1 2 f(1)=(12)1=21=2 (1,2)
0 1 f(0)=(12)0=1 (0,1)
1 12 f(1)=(12)1=12 (1,12)
2 14 f(2)=(12)2=14 (2,14)

Use these points to sketch the graph and note that it passes the horizontal line test.

8034b4e3cf055259fe554490a0de061f.png
Figure 7.3.12

Therefore this function is one-to-one and has an inverse. Reflecting the graph about the line y=x we have:

6aac3a5837c26ef0bf84c1ef94957134.png
Figure 7.3.13

which gives us a picture of the graph of f1(x)=log1/2x. In general, when the base b>1, the graph of the function defined by g(x)=log1/bx has the following shape.

416382eb90f5147a82118ea1062c8787.png
Figure 7.3.14

The domain consists of positive real numbers, (0,) and the range consists of all real numbers, (,). The y-axis, or x=0, is a vertical asymptote and the x-intercept is (1,0). In addition, f(b)=log1/bb=1 and so (b,1) is a point on the graph.

Example 7.3.8:

Sketch the graph and determine the domain and range: f(x)=log1/3(x+3)+2.

Solution

Begin by identifying the basic graph and the transformations.

y=log1/3xBasicgraph.y=log1/3(x+3)Shiftleft3units.y=log1/3(x+3)+2Shiftup2units.

80f2c4d9437cd84148b3336a9eb92d8d.png
Figure 7.3.15

In this case the shift left 3 units moved the vertical asymptote to x=3 which defines the lower bound of the domain.

Answer:

15e8a94ad41a3f362b5719b2886fcfba.png
Figure 7.3.16

Domain: (3,); Range: (,)

In summary, if b>1

f1633e851be66af857255967781871ba.png
Figure 7.3.17

And for both cases,

Domain:(0,)Range:(,)xintercept:(1,0)Asymptote:x=0

Exercise 7.3.4

Sketch the graph and determine the domain and range: f(x)=log1/3(x1).

Answer
9096f27efe36d78134a5f202e39e2824.png
Figure 7.3.18

www.youtube.com/v/0oEVfInCAXw

Key Takeaways

  • The base-b logarithmic function is defined to be the inverse of the base-b exponential function. In other words, y=logbx if and only if by=x where b>0 and b1.
  • The logarithm is actually the exponent to which the base is raised to obtain its argument.
  • The logarithm base 10 is called the common logarithm and is denoted logx.
  • The logarithm base e is called the natural logarithm and is denoted lnx.
  • Logarithmic functions with definitions of the form f(x)=logbx have a domain consisting of positive real numbers (0,) and a range consisting of all real numbers (,).
  • The y-axis, or x=0, is a vertical asymptote and the x-intercept is (1,0).
  • To graph logarithmic functions we can plot points or identify the basic function and use the transformations. Be sure to indicate that there is a vertical asymptote by using a dashed line. This asymptote defines the boundary of the domain.

Exercise 7.3.5

Evaluate.

  1. log39
  2. log749
  3. log44
  4. log51
  5. log5625
  6. log3243
  7. log2(116)
  8. log3(19)
  9. log5(1125)
  10. log2(164)
  11. log4410
  12. log995
  13. log535
  14. log22
  15. log7(17)
  16. log9(139)
  17. log1/24
  18. log1/327
  19. log2/3(23)
  20. log3/4(916)
  21. log255
  22. log82
  23. log4(12)
  24. log27(13)
  25. log1/91
  26. log3/5(53)
Answer

1. 2

3. 1

5. 4

7. 4

9. 3

11. 10

13. 13

15. 12

17. 2

19. 1

21. 12

23. 12

25. 0

Exercise 7.3.6

Find x.

  1. log3x=4
  2. log2x=5
  3. log5x=3
  4. log6x=2
  5. log12x=0
  6. log7x=1
  7. log1/4x=2
  8. log2/5x=2
  9. log1/9x=12
  10. log1/4x=32
  11. log1/3x=1
  12. log1/5x=0
Answer

1. 81

3. 1125

5. 1

7. 16

9. 13

11. 3

Exercise 7.3.7

Evaluate. Round off to the nearest hundredth where appropriate.

  1. log1000
  2. log100
  3. log0.1
  4. log0.0001
  5. log162
  6. log23
  7. log0.025
  8. log0.235
  9. lne4
  10. ln1
  11. ln(1e)
  12. ln(1e5)
  13. ln(25)
  14. ln(100)
  15. ln(0.125)
  16. ln(0.001)
Answer

1. 3

3. 1

5. 2.21

7. 1.60

9. 4

11. 1

13. 3.22

15. 2.08

Exercise 7.3.8

Find x. Round off to the nearest hundredth.

  1. logx=2.5
  2. logx=1.8
  3. logx=1.22
  4. logx=0.8
  5. lnx=3.1
  6. lnx=1.01
  7. lnx=0.69
  8. lnx=1
Answer

1. 316.23

3. 0.06

5. 22.20

7. 0.50

Exercise 7.3.9

Find a without using a calculator.

  1. log3(127)=a
  2. lne=a
  3. log2a=8
  4. log252=a
  5. log1012=a
  6. lna=9
  7. log1/8(164)=a
  8. log6a=3
  9. lna=15
  10. log4/9(23)=a
Answer

1. 3

3. 256

5. 12

7. 2

9. 5e

Exercise 7.3.10

In 1935 Charles Richter developed a scale used to measure earthquakes on a seismograph. The magnitude M of an earthquake is given by the formula,

M=log(II0)

Here I represents the intensity of the earthquake as measured on the seismograph 100 km from the epicenter and I0 is the minimum intensity used for comparison. For example, if an earthquake intensity is measured to be 100 times that of the minimum, then I=100I0 and

M=log(100I0I0)=log(100)=2

The earthquake would be said to have a magnitude 2 on the Richter scale. Determine the magnitudes of the following intensities on the Richter scale. Round off to the nearest tenth.

  1. I is 3 million times that of the minimum intensity.
  2. I is 6 million times that of the minimum intensity.
  3. I is the same as the minimum intensity.
  4. I is 30 million times that of the minimum intensity.
Answer

1. 6.5

3. 0

Exercise 7.3.11

In chemistry, pH is a measure of acidity and is given by the formula,

pH=log(H+)

Here H+ represents the hydrogen ion concentration (measured in moles of hydrogen per liter of solution.) Determine the pH given the following hydrogen ion concentrations.

  1. Pure water: H+=0.0000001
  2. Blueberry: H+=0.0003162
  3. Lemon Juice: H+=0.01
  4. Battery Acid: H+=0.1
Answer

1. 7

3. 2

Exercise 7.3.12

Sketch the function and determine the domain and range. Draw the vertical asymptote with a dashed line.

  1. f(x)=log2(x+1)
  2. f(x)=log3(x2)
  3. f(x)=log2x2
  4. f(x)=log3x+3
  5. f(x)=log2(x2)+4
  6. f(x)=log3(x+1)2
  7. f(x)=log2x+1
  8. f(x)=log3(x+3)
  9. f(x)=log2(x)+1
  10. f(x)=2log3(x)
  11. f(x)=logx+5
  12. f(x)=logx1
  13. f(x)=log(x+4)8
  14. f(x)=log(x5)+10
  15. f(x)=log(x+2)
  16. f(x)=log(x1)+2
  17. f(x)=ln(x3)
  18. f(x)=lnx+3
  19. f(x)=ln(x2)+4
  20. f(x)=ln(x+5)
  21. f(x)=2lnx
  22. f(x)=ln(x1)
  23. f(x)=log1/2x
  24. f(x)=log1/3x+2
  25. f(x)=log1/2(x2)
  26. f(x)=log1/3(x+1)1
  27. f(x)=2log1/4x
  28. f(x)=1+log1/4(x)
  29. f(x)=1log1/3(x2)
  30. f(x)=1+log1/2(x)
Answer

1. Domain: (1,); Range: (,)

262d8241e3eee557e9ace79d00ed26cf.png
Figure 7.3.19

3. Domain: (0,) ; Range: (,)

b4fc45e07f9e5dd402f7feefcfe7337f.png
Figure 7.3.20

5. Domain: (2,) ; Range: (,)

a0fed4182de1096ba09a6929a1d4bc48.png
Figure 7.3.21

7. Domain: (0,) ; Range: (,)

a3b4330ad8cdda9afa1404c5d49266dd.png
Figure 7.3.22

9. Domain: (,0) ; Range: (,)

6703b4dd22d73a774810ac3c720c8c71.png
Figure 7.3.23

11. Domain: (0,) ; Range: (,)

543e3bd9fd14b3ffcc942ca04645222d.png
Figure 7.3.24

13. Domain: (4,) ; Range: (,)

fa0a4c29ef4db9b2c0fcec84ba853693.png
Figure 7.3.25

15. Domain: (2,) ; Range: (,)

85eaece20f3696811d2e26ef2557940e.png
Figure 7.3.26

17. Domain: (3,) ; Range: (,)

2a26f9ebd76f89b53eb7eca1ff058ebb.png
Figure 7.3.27

19. Domain: (2,) ; Range: (,)

59c3c813f519710df16615aa95137fe2.png
Figure 7.3.28

21. Domain: (0,) ; Range: (,)

28a1ac3541e46e8a2bc2475a5abc7ca6.png
Figure 7.3.29

23. Domain: (0,) ; Range: (,)

7597f544c3fe5e53622ecc55094323ec.png
Figure 7.3.30

25. Domain: (2,) ; Range: (,)

330e786d26a069f20f68a6f117d8cb76.png
Figure 7.3.31

27. Domain: (0,) ; Range: (,)

17406e7b30af7957887eac740aa1aee9.png
Figure 7.3.32

29. Domain: (2,) ; Range: (,)

c474ed2038fe57d9f1300571e35add93.png
Figure 7.3.33

Exercise 7.3.13

  1. Research and discuss the origins and history of the logarithm. How did students work with them before the common availability of calculators?
  2. Research and discuss the history and use of the Richter scale. What does each unit on the Richter scale represent?
  3. Research and discuss the life and contributions of John Napier.
Answer

1. Answer may vary

3. Answer may vary

Footnotes

8The exponent to which the base b is raised in order to obtain a specific value. In other words, y=logbx is equivalent to by=x.

9The logarithm base 10, denoted logx.

10The logarithm base e, denoted lnx.


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

Support Center

How can we help?