Graphing Translated Logarithmic Functions
Examples
Graph each function. Give the domain and range.
f\left(x\right)=\log_2\left(x-1\right)
f\left(x\right)=\left(\log_3x\right)-1
f\left(x\right)=\log_4\left(x+2\right)+1
Solutions
-
f\left(x\right)=\log_2\left(x-1\right)
The graph off\left(x\right)=\log_2\left(x-1\right) is the graph of
f\left(x\right)=\log_2x\:translated 1 unit to the right. The vertical asymptote has equation
x=1.\:Since logarithms can be found only for positive numbers, we solve
x-1>0\:to find the domain,
\left(1,\infty\right).\:To determine ordered pairs to plot, use the equivalent exponential form of the equation
f\left(x\right)=\log_2\left(x-1\right).
y=\log_x\left(x-1\right)
x-1=2^y
x=2^y+1
We first choose values for y and then calculate each of the corresponding
x-values. The range is\left(-\infty,\infty\right).
-
f\left(x\right)=\left(\log_3x\right)-1
The functionf\left(x\right)=\left(\log_3x\right)-1 has the same graph as
g\left(x\right)=\log_3x\:translated 1 unit down. We find the ordered pairs to plot by writing the equation
f\left(x\right)=\left(\log_3x\right)-1 in exponential form.
f\left(x\right)=\left(\log_3x\right)-1
y+1=\log_3x
x=3^{x+1}
Again, choose y-values and calculate the corresponding
x-values. The domain is\left(0,\infty\right)\:and the range is
\left(-\infty,\infty\right).
-
f\left(x\right)=\log_4\left(x+2\right)+1
The graph off\left(x\right)=\log_4\left(x+2\right)+1 is obtained by shifting the graph of
y=\log_3x\:to the left 2 units and up 1 unit. The domain is found by solving
x+2>0, which yields
\left(-2,\infty\right). The vertical asymptote has been shifted to the left 2 units as well, and it has equation
x=-2. The range is unaffected by the vertical shift and remains
\left(-\infty,\infty\right).
Example
This video shows an example of how to recognize the equation for a graph of a logarithmic function. It is the same process as the examples above, but going in the reverse direction. Please watch the Khan video below.