This is “Logarithmic Functions and Their Graphs”, section 7.3 from the book Advanced Algebra (v. 1.0). For details on it (including licensing), click here.

For more information on the source of this book, or why it is available for free, please see the project's home page. You can browse or download additional books there. To download a .zip file containing this book to use offline, simply click here.

Has this book helped you? Consider passing it on:
Creative Commons supports free culture from music to education. Their licenses helped make this book available to you.
DonorsChoose.org helps people like you help teachers fund their classroom projects, from art supplies to books to calculators.

7.3 Logarithmic Functions and Their Graphs

Learning Objectives

  1. Define and evaluate logarithms.
  2. Identify the common and natural logarithm.
  3. 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.

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.

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.

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.

Figure 7.2

John Napier (1550–1617)

In general, given base b>0 where b1, the logarithm base bThe 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. is defined as follows:

y=logbxifandonlyifx=by

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

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.

Example 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 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

Try this! Evaluate: log5(153).

Answer: 13

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 logarithmThe logarithm base 10, denoted logx..

f(x)=log10x=logxCommonlogarithm

When a logarithm is written without a base it is assumed to be the common logarithm. (Note: 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 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 10^1.87575.

If the base of a logarithm is e, the logarithm is called the natural logarithmThe logarithm base e, denoted lnx..

f(x)=logex=lnxNaturallogarithm

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

Example 4

Evaluate:

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

Solution:

  1. lne=1 because lne=logee=1 and e1=e.
  2. ln(e23)=23 because e2/3=e23.
  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 e^4.31775.

Example 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

Try this! Evaluate: ln(1e).

Answer: 12

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:

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 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=log3xBasicgraphy=log3(x+4)Shiftleft4units.y=log3(x+4)1Shiftdown1unit.

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:

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

Note: 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

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

Solution:

Begin by identifying the basic graph and the transformations.

y=logxBasicgraphy=logxReflectionaboutthex-axisy=log(x2)Shiftright2units.

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

Answer:

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

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

Answer:

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

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.

xySolutions24f(2)=(12)2=22=4(2,4)12f(1)=(12)1=21=2(1,2)01f(0)=(12)0=1(0,1)112f(1)=(12)1=12(1,12)214f(2)=(12)2=14(2,14)

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

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

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.

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 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/3xBasicgraphy=log1/3(x+3)Shiftleft3units.y=log1/3(x+3)+2Shiftup2units.

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

Answer:

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

In summary, if b>1

And for both cases,

Domain:(0,)Range:(,)x-intercept:(1,0)Asymptote:x=0

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

Answer:

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.

Topic Exercises

    Part A: Definition of the Logarithm

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

    14. log22

    15. log7(17)
    16. log9(193)
    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)

      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

    Part B: The Common and Natural Logarithm

      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)

      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

      Find a without using a calculator.

    1. log3(127)=a

    2. lne=a

    3. log2a=8

    4. log225=a

    5. log1012=a

    6. lna=9

    7. log1/8(164)=a

    8. log6a=3

    9. lna=15
    10. log4/9(23)=a

      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.

      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

    Part C: Graphing Logarithmic Functions

      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)

    Part D: Discussion Board

    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.

Answers

  1. 2

  2. 1

  3. 4

  4. −4

  5. −3

  6. 10

  7. 13

  8. 12

  9. −2

  10. 1

  11. 12

  12. 12

  13. 0

  14. 81

  15. 1125

  16. 1

  17. 16

  18. 13

  19. 3

  1. 3

  2. −1

  3. 2.21

  4. −1.60

  5. 4

  6. −1

  7. 3.22

  8. −2.08

  9. 316.23

  10. 0.06

  11. 22.20

  12. 0.50

  13. −3

  14. 256

  15. 12

  16. 2

  17. e5

  18. 6.5

  19. 0

  20. 7

  21. 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1. Answer may vary

  2. Answer may vary