6.4 Graphs of Logarithmic Functions
In Graphs of Exponential Functions, we saw how creating a graphical representation of an exponential model gives us another layer of insight for predicting future events. How do logarithmic graphs give us insight into situations? Because every logarithmic function is the inverse function of an exponential function, we can think of every output on a logarithmic graph as the input for the corresponding inverse exponential equation. In other words, logarithms give the cause for an effect.
To illustrate, suppose we invest \(\text{\$}2500\) in an account that offers an annual interest rate of \(5\%,\) compounded continuously. We already know that the balance in our account for any year \(t\) can be found with the equation \(A = 2500e^{0.05t}.\)
But what if we wanted to know the year for any balance? We would need to create a corresponding new function by interchanging the input and the output; thus we would need to create a logarithmic model for this situation. By graphing the model, we can see the output (year) for any input (account balance). For instance, what if we wanted to know how many years it would take for our initial investment to double? Figure 1 shows this point on the logarithmic graph.

Figure 1
In this section we will discuss the values for which a logarithmic function is defined, and then turn our attention to graphing the family of logarithmic functions.
6.4.1 Finding the Domain of a Logarithmic Function
Before working with graphs, we will take a look at the domain (the set of input values) for which the logarithmic function is defined.
Recall that the exponential function is defined as \(y = b^{x}\) for any real number \(x\) and constant \(b > 0,\) \(b \neq 1,\) where
- The domain of \(y\) is \(\left( {- \infty,\infty} \right).\)
- The range of \(y\) is \(\left( {0,\infty} \right).\)
In the last section we learned that the logarithmic function \(y = \log_{b}(x)\) is the inverse of the exponential function \(y = b^{x}.\) So, as inverse functions:
- The domain of \(y = \log_{b}(x)\) is the range of \(y = b^{x}:\) \(\left( {0,\infty} \right).\)
- The range of \(y = \log_{b}(x)\) is the domain of \(y = b^{x}:\) \(\left( {- \infty,\infty} \right).\)
Transformations of the parent function \(y = \log_{b}(x)\) behave similarly to those of other functions. Just as with other parent functions, we can apply the four types of transformations—shifts, stretches, compressions, and reflections.
In Graphs of Exponential Functions we saw that certain transformations can change the range of \(y = b^{x}.\) Similarly, applying transformations to the parent function \(y = \log_{b}(x)\) can change the domain. When finding the domain of a logarithmic function, therefore, it is important to remember that the domain consists only of positive real numbers. That is, the argument of the logarithmic function must be greater than zero.
For example, consider \(f(x) = \log_{4}\left( {2x - 3} \right).\) This function is defined for any values of \(x\) such that the argument, in this case \(2x - 3,\) is greater than zero. To find the domain, we set up an inequality and solve for \(x:\)
\[\begin{array}{ll} {2x - 3 > 0} & {\text{Show~the~argument~greater~than~zero}.} \\ {\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu} 2x > 3} & {\text{Add~3}.} \\ {\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu}\mspace{9mu} x > 1.5\begin{array}{llll} & & & \end{array}} & {\text{Divide~by~2}.} \end{array}\]
In interval notation, the domain of \(f(x) = \log_{4}\left( {2x - 3} \right)\) is \(\left( {1.5,\infty} \right).\)
6.4.2 Graphing Logarithmic Functions
Now that we have a feel for the set of values for which a logarithmic function is defined, we move on to graphing logarithmic functions. The family of logarithmic functions includes the parent function \(y = \log_{b}(x)\) along with all its transformations: shifts, stretches, compressions, and reflections.
We begin with the parent function \(y = \log_{b}(x).\) Because every logarithmic function of this form is the inverse of an exponential function with the form \(y = b^{x},\) their graphs will be reflections of each other across the line \(y = x.\) To illustrate this, we can observe the relationship between the input and output values of \(y = 2^{x}\) and its equivalent \(x = \log_{2}(y)\) in Table 1.
| \(x\) | \(- 3\) | \(- 2\) | \(- 1\) | \(0\) | \(1\) | \(2\) | \(3\) |
| \(2^{x} = y\) | \(\frac{1}{8}\) | \(\frac{1}{4}\) | \(\frac{1}{2}\) | \(1\) | \(2\) | \(4\) | \(8\) |
| \(\log_{2}(y) = x\) | \(- 3\) | \(- 2\) | \(- 1\) | \(0\) | \(1\) | \(2\) | \(3\) |
Table 1
Using the inputs and outputs from Table 1, we can build another table to observe the relationship between points on the graphs of the inverse functions \(f(x) = 2^{x}\) and \(g(x) = \log_{2}(x).\) See Table 2.
| \(f(x) = 2^{x}\) | \(\left( {- 3,\frac{1}{8}} \right)\) | \(\left( {- 2,\frac{1}{4}} \right)\) | \(\left( {- 1,\frac{1}{2}} \right)\) | \(\left( {0,1} \right)\) | \(\left( {1,2} \right)\) | \(\left( {2,4} \right)\) | \(\left( {3,8} \right)\) | | |||
| \(g(x) = \log_{2}(x)\) | \(\left( {\frac{1}{8}, - 3} \right)\) | \(\left( {\frac{1}{4}, - 2} \right)\) | \(\left( {\frac{1}{2}, - 1} \right)\) | \(\left( {1,0} \right)\) | \(\left( {2,1} \right)\) | \(\left( {4,2} \right)\) | \(\left( {8,3} \right)\) | | |||
Table 2
As we’d expect, the \(x\)- and \(y\)-coordinates are reversed for the inverse functions. Figure 2 shows the graph of \(f\) and \(g.\)

Figure 2 Notice that the graphs of \(f(x) = 2^{x}\) and \(g(x) = \log_{2}(x)\) are reflections about the line \(y = x.\)
Observe the following from the graph:
- \(f(x) = 2^{x}\) has a \(y\)-intercept at \((0,1)\) and \(g(x) = \log_{2}(x)\) has an \(x\)- intercept at \((1,0).\)
- The domain of \(f(x) = 2^{x},\) \(\left( {- \infty,\infty} \right),\) is the same as the range of \(g(x) = \log_{2}(x).\)
- The range of \(f(x) = 2^{x},\) \(\left( {0,\infty} \right),\) is the same as the domain of \(g(x) = \log_{2}(x).\)
6.4.3 Graphing Transformations of Logarithmic Functions
As we mentioned in the beginning of the section, transformations of logarithmic graphs behave similarly to those of other parent functions. We can shift, stretch, compress, and reflect the parent function \(y = \log_{b}(x)\) without loss of shape.
Graphing a Horizontal Shift of \(f\)(\(x\)) = log\(b\)(\(x\))
When a constant \(c\) is added to the input of the parent function \(f(x) = log_{b}(x),\) the result is a horizontal shift \(c\) units in the opposite direction of the sign on \(c.\) To visualize horizontal shifts, we can observe the general graph of the parent function \(f(x) = \log_{b}(x)\) and for \(c > 0\) alongside the shift left, \(g(x) = \log_{b}\left( {x + c} \right),\) and the shift right, \(h(x) = \log_{b}\left( {x - c} \right).\) See Figure 6.

Figure 6
Graphing a Vertical Shift of \(f\)(\(x\)) = log\(b\)(\(x\))
When a constant \(d\) is added to the parent function \(f(x) = \log_{b}(x),\) the result is a vertical shift \(d\) units in the direction of the sign on \(d.\) To visualize vertical shifts, we can observe the general graph of the parent function \(f(x) = \log_{b}(x)\) alongside the shift up, \(g(x) = \log_{b}(x) + d\) and the shift down, \(h(x) = \log_{b}(x) - d.\) See Figure 8.

Figure 8
Graphing Stretches and Compressions of \(f\)(\(x\)) = log\(b\)(\(x\))
When the parent function \(f(x) = \log_{b}(x)\) is multiplied by a constant \(a > 0,\) the result is a vertical stretch or compression of the original graph. To visualize stretches and compressions, we set \(a > 1\) and observe the general graph of the parent function \(f(x) = \log_{b}(x)\) alongside the vertical stretch, \(g(x) = a\log_{b}(x)\) and the vertical compression, \(h(x) = \frac{1}{a}\log_{b}(x).\) See Figure 10.

Figure 10
Graphing Reflections of \(f\)(\(x\)) = log\(b\)(\(x\))
When the parent function \(f(x) = \log_{b}(x)\) is multiplied by \(-1,\) the result is a reflection about the \(x\)-axis. When the input is multiplied by \(-1,\) the result is a reflection about the \(y\)-axis. To visualize reflections, we restrict \(b > 1,\) and observe the general graph of the parent function \(f(x) = \log_{b}(x)\) alongside the reflection about the \(x\)-axis, \(g(x) = {-log}_{b}(x)\) and the reflection about the \(y\)-axis, \(h(x) = \log_{b}\left( {- x} \right).\)

Figure 13
Summarizing Translations of the Logarithmic Function
Now that we have worked with each type of translation for the logarithmic function, we can summarize each in Table 4 to arrive at the general equation for translating exponential functions.
| Transformations of the Parent Function \(y = \log_{b}(x)\) | |
|---|---|
| Transformation | Form |
Shift
|
\(y = \log_{b}\left( {x + c} \right) + d\) |
Stretch and Compress
|
\(y = a\log_{b}(x)\) |
| Reflect about the \(x\)-axis | \(y = - \log_{b}(x)\) |
| Reflect about the \(y\)-axis | \(y = \log_{b}\left( {- x} \right)\) |
| General equation for all translations | \(y = a\log_{b}(x + c) + d\) |
Table 4
Section Exercises
Verbal
1. The inverse of every logarithmic function is an exponential function and vice-versa. What does this tell us about the relationship between the coordinates of the points on the graphs of each?
Solution (click to reveal)
Since the functions are inverses, their graphs are mirror images about the line \(y = x.\) So for every point \((a,b)\) on the graph of a logarithmic function, there is a corresponding point \((b,a)\) on the graph of its inverse exponential function.
2. What type(s) of translation(s), if any, affect the range of a logarithmic function?
3. What type(s) of translation(s), if any, affect the domain of a logarithmic function?
Solution (click to reveal)
Shifting the function right or left and reflecting the function about the y-axis will affect its domain.
4. Consider the general logarithmic function \(f(x) = \log_{b}(x).\) Why can’t \(x\) be zero?
5. Does the graph of a general logarithmic function have a horizontal asymptote? Explain.
Solution (click to reveal)
No. A horizontal asymptote would suggest a limit on the range, and the range of any logarithmic function in general form is all real numbers.
Algebraic
For the following exercises, state the domain and range of the function.
6. \(f(x) = \log_{3}\left( {x + 4} \right)\)
7. \(h(x) = \ln\left( {\frac{1}{2} - x} \right)\)
Solution (click to reveal)
Domain: \(\left( {- \infty,\frac{1}{2}} \right);\) Range: \(\left( {- \infty,\infty} \right)\)
8. \(g(x) = \log_{5}\left( {2x + 9} \right) - 2\)
9. \(h(x) = \ln\left( {4x + 17} \right) - 5\)
Solution (click to reveal)
Domain: \(\left( {- \frac{17}{4},\infty} \right);\) Range: \(\left( {- \infty,\infty} \right)\)
10. \(f(x) = \log_{2}\left( {12 - 3x} \right) - 3\)
For the following exercises, state the domain and the vertical asymptote of the function.
11. \(f(x) = \log_{b}(x - 5)\)
Solution (click to reveal)
Domain: \(\left( {5,\infty} \right);\) Vertical asymptote: \(x = 5\)
12. \(g(x) = \ln(3 - x)\)
13. \(f(x) = \log(3x + 1)\)
Solution (click to reveal)
Domain: \(\left( {- \frac{1}{3},\infty} \right);\) Vertical asymptote: \(x = - \frac{1}{3}\)
14. \(f(x) = 3\log( - x) + 2\)
15. \(g(x) = - \ln(3x + 9) - 7\)
Solution (click to reveal)
Domain: \(\left( {- 3,\infty} \right);\) Vertical asymptote: \(x = - 3\)
For the following exercises, state the domain, vertical asymptote, and end behavior of the function.
16. \(f(x) = \ln\left( {2 - x} \right)\)
17. \(f(x) = \log\left( {x - \frac{3}{7}} \right)\)
Solution (click to reveal)
Domain: \(\left( \frac{3}{7},\infty \right)\) ;
Vertical asymptote: \(x = \frac{3}{7}\) ; End behavior: as \(x\rightarrow\left( \frac{3}{7} \right)^{+},f(x)\rightarrow - \infty\) and as \(x\rightarrow\infty,f(x)\rightarrow\infty\)
18. \(h(x) = - \log\left( {3x - 4} \right) + 3\)
19. \(g(x) = \ln\left( {2x + 6} \right) - 5\)
Solution (click to reveal)
Domain: \(\left( {- 3,\infty} \right)\) ; Vertical asymptote: \(x = - 3\) ;
End behavior: as \(x\rightarrow - 3^{+}\) , \(f(x)\rightarrow - \infty\) and as \(x\rightarrow\infty\) , \(f(x)\rightarrow\infty\)
20. \(f(x) = \log_{3}\left( {15 - 5x} \right) + 6\)
For the following exercises, state the domain, range, and \(x\)- and \(y\)-intercepts, if they exist. If they do not exist, write DNE.
21. \(h(x) = \log_{4}\left( {x - 1} \right) + 1\)
Solution (click to reveal)
Domain: \(\left( {1,\infty} \right);\) Range: \(\left( {- \infty,\infty} \right);\) Vertical asymptote: \(x = 1;\) \(x\)-intercept: \(\left( {\frac{5}{4},0} \right);\) \(y\)-intercept: DNE
22. \(f(x) = \log\left( {5x + 10} \right) + 3\)
23. \(g(x) = \ln\left( {- x} \right) - 2\)
Solution (click to reveal)
Domain: \(\left( {- \infty,0} \right);\) Range: \(\left( {- \infty,\infty} \right);\) Vertical asymptote: \(x = 0;\) \(x\)-intercept: \(\left( {- e^{2},0} \right);\) \(y\)-intercept: DNE
24. \(f(x) = \log_{2}\left( {x + 2} \right) - 5\)
25. \(h(x) = 3\ln(x) - 9\)
Solution (click to reveal)
Domain: \(\left( {0,\infty} \right);\) Range: \(\left( {- \infty,\infty} \right);\) Vertical asymptote: \(x = 0;\) \(x\)-intercept: \(\left( {e^{3},0} \right);\) \(y\)-intercept: DNE
Graphical
For the following exercises, match each function in Figure 17 with the letter corresponding to its graph.

Figure 17
26. \(d(x) = \log(x)\)
27. \(f(x) = \ln(x)\)
Solution (click to reveal)
B
28. \(g(x) = \log_{2}(x)\)
29. \(h(x) = \log_{5}(x)\)
Solution (click to reveal)
C
30. \(j(x) = \log_{25}(x)\)
For the following exercises, match each function in Figure 18 with the letter corresponding to its graph.

Figure 18
31. \(f(x) = \log_{\frac{1}{3}}(x)\)
Solution (click to reveal)
B
32. \(g(x) = \log_{2}(x)\)
33. \(h(x) = \log_{\frac{3}{4}}(x)\)
Solution (click to reveal)
C
For the following exercises, sketch the graphs of each pair of functions on the same axis.
34. \(f(x) = \log(x)\) and \(g(x) = 10^{x}\)
35. \(f(x) = \log(x)\) and \(g(x) = \log_{\frac{1}{2}}(x)\)
Solution (click to reveal)

36. \(f(x) = \log_{4}(x)\) and \(g(x) = \ln(x)\)
37. \(f(x) = e^{x}\) and \(g(x) = \ln(x)\)
Solution (click to reveal)

For the following exercises, match each function in Figure 19 with the letter corresponding to its graph.

Figure 19
38. \(f(x) = \log_{4}\left( {- x + 2} \right)\)
39. \(g(x) = - \log_{4}\left( {x + 2} \right)\)
Solution (click to reveal)
C
40. \(h(x) = \log_{4}\left( {x + 2} \right)\)
For the following exercises, sketch the graph of the indicated function.
41. \(f(x) = \log_{2}(x + 2)\)
Solution (click to reveal)

42. \(f(x) = 2\log(x)\)
43. \(f(x) = \ln( - x)\)
Solution (click to reveal)

44. \(g(x) = \log\left( {4x + 16} \right) + 4\)
45. \(g(x) = \log\left( {6 - 3x} \right) + 1\)
Solution (click to reveal)

46. \(h(x) = - \frac{1}{2}\ln\left( {x + 1} \right) - 3\)
For the following exercises, write a logarithmic equation corresponding to the graph shown.
47. Use \(y = \log_{2}(x)\) as the parent function.

Solution (click to reveal)
\(f(x) = \log_{2}( - (x - 1))\)
48. Use \(f(x) = \log_{3}(x)\) as the parent function.

49. Use \(f(x) = \log_{4}(x)\) as the parent function.

Solution (click to reveal)
\(f(x) = 3\log_{4}(x + 2)\)
50. Use \(f(x) = \log_{5}(x)\) as the parent function.

Technology
For the following exercises, use a graphing calculator to find approximate solutions to each equation.
51. \(\log\left( {x - 1} \right) + 2 = \ln\left( {x - 1} \right) + 2\)
Solution (click to reveal)
\(x = 2\)
52. \(\log\left( {2x - 3} \right) + 2 = - \log\left( {2x - 3} \right) + 5\)
53. \(\ln\left( {x - 2} \right) = - \ln\left( {x + 1} \right)\)
Solution (click to reveal)
\(x \approx \text{2}\text{.303}\)
54. \(2\ln\left( {5x + 1} \right) = \frac{1}{2}\ln\left( {- 5x} \right) + 1\)
55. \(\frac{1}{3}\log\left( {1 - x} \right) = \log\left( {x + 1} \right) + \frac{1}{3}\)
Solution (click to reveal)
\(x \approx - 0.472\)
Extensions
56. Let \(b\) be any positive real number such that \(b \neq 1.\) What must \(\log_{b}1\) be equal to? Verify the result.
57. Explore and discuss the graphs of \(f(x) = \log_{\frac{1}{2}}(x)\) and \(g(x) = - \log_{2}(x).\) Make a conjecture based on the result.
Solution (click to reveal)
The graphs of \(f(x) = \log_{\frac{1}{2}}(x)\) and \(g(x) = - \log_{2}(x)\) appear to be the same; Conjecture: for any positive base \(b \neq 1,\) \(\log_{b}(x) = - \log_{\frac{1}{b}}(x).\)
58. Prove the conjecture made in the previous exercise.
59. What is the domain of the function \(f(x) = \ln\left( \frac{x + 2}{x - 4} \right)?\) Discuss the result.
Solution (click to reveal)
Recall that the argument of a logarithmic function must be positive, so we determine where \(\frac{x + 2}{x - 4} > 0\) . From the graph of the function \(f(x) = \frac{x + 2}{x - 4},\) note that the graph lies above the \(x\)-axis on the interval \(\left( {- \infty, - 2} \right)\) and again to the right of the vertical asymptote, that is \(\left( {4,\infty} \right).\) Therefore, the domain is \(\left( {- \infty, - 2} \right) \cup \left( {4,\infty} \right).\)

60. Use properties of exponents to find the \(x\)-intercepts of the function \(f(x) = \log\left( {x^{2} + 4x + 4} \right)\) algebraically. Show the steps for solving, and then verify the result by graphing the function.















