3.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 3.4.1 shows this point on the logarithmic graph.

Figure 3.4.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.
3.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).\)
3.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 3.4.7.
| \(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 3.4.7:
Using the inputs and outputs from Table 3.4.7, 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 3.4.8.
| \(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 3.4.8:
As we’d expect, the \(x\)- and \(y\)-coordinates are reversed for the inverse functions. Figure 3.4.9 shows the graph of \(f\) and \(g.\)

Figure 3.4.9: 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).\)
3.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 3.4.16.

Figure 3.4.16:
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 3.4.21.

Figure 3.4.21:
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 3.4.26.

Figure 3.4.26:
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 3.4.33:
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 3.4.42 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 3.4.42:















