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.

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=2x ⇒ x=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 $log2 x.$ The following are equivalent:

$y=log2 x ⇔ x=2y$

This gives us another transcendental function defined by $f−1(x)=log2 x$, 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 $b≠1$, the logarithm base bThe exponent to which the base b is raised in order to obtain a specific value. In other words, $y=logb x$ is equivalent to $by=x.$ is defined as follows:

$y=logb x if and only if x=by$

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

Logarithmic Form

Exponential Form

$log2 16=4$

$24=16$

$log5 25=2$

$52=25$

$log6 1=0$

$60=1$

$log3 3=12$

$31/2=3$

$log7 (149)=−2$

$7−2=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. $log5 125$
2. $log2 (18)$
3. $log4 2$
4. $log11 1$

Solution:

1. $log5 125=3$ because $53=125.$
2. $log2 (18)=−3$ because $2−3=123=18.$
3. $log4 2=12$ because $41/2=4=2.$
4. $log11 1=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. $log7 x=2$
2. $log16 x=12$
3. $log1/2 x=−5$

Solution:

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

1. $log7 x=2$ is equivalent to $72=x$ and thus $x=49.$
2. $log16 x=12$ is equivalent to $161/2=x$ or $16=x$ and thus $x=4.$
3. $log1/2 x=−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 $log x.$.

$f(x)=log10 x=log x Common logarithm$

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 $log x$ represent the logarithm base 2.)

### Example 3

Evaluate:

1. $log 105$
2. $log 10$
3. $log 0.01$

Solution:

1. $log 105=5$ because $105=105.$
2. $log 10=12$ because $101/2=10.$
3. $log 0.01=log (1100)=−2$ because $10−2=1102=1100=0.01.$

The result of a logarithm is not always apparent. For example, consider $log 75.$

$log 10=1log 75=?log 100=2$

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

$LOG75=1.87506$

Therefore, rounded off to the nearest thousandth, $log 75≈1.875.$ As a check, we can use a calculator to verify that $10^1.875≈75.$

If the base of a logarithm is $e$, the logarithm is called the natural logarithmThe logarithm base e, denoted $ln x.$.

$f(x)=loge x=ln x Natural logarithm$

The natural logarithm is widely used and is often abbreviated $ln x.$

### Example 4

Evaluate:

1. $ln e$
2. $ln e23$
3. $ln (1e4)$

Solution:

1. $ln e=1$ because $ln e=loge e=1$ and $e1=e.$
2. $ln (e23)=23$ because $e2/3=e23.$
3. $ln (1e4)=−4$ because $e−4=1e4$

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

$LN 75 = 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.317≈75.$

### Example 5

Find x. Round answers to the nearest thousandth.

1. $log x=3.2$
2. $ln x=−4$
3. $log x=−23$

Solution:

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

1. $log x=3.2$ is equivalent to $103.2=x$ and thus $x≈1584.893.$
2. $ln x=−4$ is equivalent to $e−4=x$ and thus $x≈0.018.$
3. $log x=−23$ is equivalent to $10−2/3=x$ and thus $x≈0.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)=logb x$ 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)=logb b=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=log3 x Basic graphy=log3 (x+4) Shift left 4 units.y=log3 (x+4)−1 Shift down 1 unit.$

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.

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 (x−2).$

Solution:

Begin by identifying the basic graph and the transformations.

$y=log x Basic graphy=−log x Reflection about the x-axisy=−log (x−2) Shift right 2 units.$

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

Domain: $(2,∞)$; Range: $(−∞,∞)$

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

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.

$xySolutions−24f(−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 $f−1(x)=log1/2 x.$ In general, when the base $b>1$, the graph of the function defined by $g(x)=log1/b x$ 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/b b=−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/3 x Basic graphy=log1/3 (x+3) Shift left 3 units.y=log1/3 (x+3)+2 Shift up 2 units.$

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

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 (x−1).$

### Key Takeaways

• The base-b logarithmic function is defined to be the inverse of the base-b exponential function. In other words, $y=logb x$ if and only if $by=x$ where $b>0$ and $b≠1.$
• 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 $log x.$
• The logarithm base e is called the natural logarithm and is denoted $ln x.$
• Logarithmic functions with definitions of the form $f(x)=logb x$ 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.

### Part A: Definition of the Logarithm

Evaluate.

1. $log3 9$

2. $log7 49$

3. $log4 4$

4. $log5 1$

5. $log5 625$

6. $log3 243$

7. $log2 (116)$
8. $log3 (19)$
9. $log5 (1125)$
10. $log2 (164)$
11. $log4 410$

12. $log9 95$

13. $log5 53$

14. $log2 2$

15. $log7 (17)$
16. $log9 (193)$
17. $log1/2 4$

18. $log1/3 27$

19. $log2/3 (23)$
20. $log3/4 (916)$
21. $log25 5$

22. $log8 2$

23. $log4 (12)$
24. $log27 (13)$
25. $log1/9 1$
26. $log3/5 (53)$

Find x.

1. $log3 x=4$

2. $log2 x=5$

3. $log5 x=−3$

4. $log6 x=−2$

5. $log12 x=0$

6. $log7 x=−1$

7. $log1/4 x=−2$

8. $log2/5 x=2$

9. $log1/9 x=12$

10. $log1/4 x=32$

11. $log1/3 x=−1$

12. $log1/5 x=0$

### Part B: The Common and Natural Logarithm

Evaluate. Round off to the nearest hundredth where appropriate.

1. $log 1000$

2. $log 100$

3. $log 0.1$

4. $log 0.0001$

5. $log 162$

6. $log 23$

7. $log 0.025$

8. $log 0.235$

9. $ln e4$

10. $ln 1$

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. $log x=2.5$

2. $log x=1.8$

3. $log x=−1.22$

4. $log x=−0.8$

5. $ln x=3.1$

6. $ln x=1.01$

7. $ln x=−0.69$

8. $ln x=−1$

Find a without using a calculator.

1. $log3 (127)=a$

2. $ln e=a$

3. $log2 a=8$

4. $log2 25=a$

5. $log1012 =a$

6. $ln a=9$

7. $log1/8 (164)=a$

8. $log6 a=−3$

9. $ln a=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 (x−2)$

3. $f(x)=log2 x−2$

4. $f(x)=log3 x+3$

5. $f(x)=log2 (x−2)+4$

6. $f(x)=log3 (x+1)−2$

7. $f(x)=−log2 x+1$

8. $f(x)=−log3 (x+3)$

9. $f(x)=log2 (−x)+1$

10. $f(x)=2−log3 (−x)$

11. $f(x)=log x+5$

12. $f(x)=log x−1$

13. $f(x)=log (x+4)−8$

14. $f(x)=log (x−5)+10$

15. $f(x)=−log (x+2)$

16. $f(x)=−log (x−1)+2$

17. $f(x)=ln (x−3)$

18. $f(x)=ln x+3$

19. $f(x)=ln (x−2)+4$

20. $f(x)=ln (x+5)$

21. $f(x)=2−ln x$

22. $f(x)=−ln (x−1)$

23. $f(x)=log1/2 x$

24. $f(x)=log1/3 x+2$

25. $f(x)=log1/2 (x−2)$

26. $f(x)=log1/3 (x+1)−1$

27. $f(x)=2−log1/4 x$

28. $f(x)=1+log1/4 (−x)$

29. $f(x)=1−log1/3 (x−2)$

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.

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: $(−∞, ∞)$