Horizontal and Vertical Shifts of Logarithmic Functions

Learning Outcomes

• Graph horizontal and vertical shifts of logarithmic functions.

As we mentioned in the beginning of the section, transformations of logarithmic functions behave similar to those of other parent functions. We can shift, stretch, compress, and reflect the parent function $y={\mathrm{log}}_{b}\left(x\right)$ without loss of shape.

Graphing a Horizontal Shift of $f\left(x\right)={\mathrm{log}}_{b}\left(x\right)$

When a constant c is added to the input of the parent function $f\left(x\right)=\text{log}_{b}\left(x\right)$, 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\left(x\right)={\mathrm{log}}_{b}\left(x\right)$ alongside the shift left, $g\left(x\right)={\mathrm{log}}_{b}\left(x+c\right)$, and the shift right, $h\left(x\right)={\mathrm{log}}_{b}\left(x-c\right)$ where > 0.

The graphs below summarize the changes in the x-intercepts, vertical asymptotes, and equations of a logarithmic function that has been shifted either right or left.

A General Note: Horizontal Shifts of the Parent Function $y=\text{log}_{b}\left(x\right)$

For any constant c, the function $f\left(x\right)={\mathrm{log}}_{b}\left(x+c\right)$

• shifts the parent function $y={\mathrm{log}}_{b}\left(x\right)$ left c units if > 0.
• shifts the parent function $y={\mathrm{log}}_{b}\left(x\right)$ right c units if < 0.
• has the vertical asymptote = –c.
• has domain $\left(-c,\infty \right)$.
• has range $\left(-\infty ,\infty \right)$.

How To: Given a logarithmic function Of the form $f\left(x\right)={\mathrm{log}}_{b}\left(x+c\right)$, graph the Horizontal Shift

1. Identify the horizontal shift:
• If c > 0, shift the graph of $f\left(x\right)={\mathrm{log}}_{b}\left(x\right)$ left c units.
• If < 0, shift the graph of $f\left(x\right)={\mathrm{log}}_{b}\left(x\right)$ right c units.
2. Draw the vertical asymptote = –c.
3. Identify three key points from the parent function. Find new coordinates for the shifted functions by subtracting c from the x coordinate in each point.
4. Label the three points.
5. The domain is $\left(-c,\infty \right)$, the range is $\left(-\infty ,\infty \right)$, and the vertical asymptote is = –c.

Example: Graphing a Horizontal Shift of the Parent Function $y=\text{log}_{b}\left(x\right)$

Sketch the horizontal shift $f\left(x\right)={\mathrm{log}}_{3}\left(x - 2\right)$ alongside its parent function. Include the key points and asymptotes on the graph. State the domain, range, and asymptote.

Try It

Sketch a graph of $f\left(x\right)={\mathrm{log}}_{3}\left(x+4\right)$ alongside its parent function. Include the key points and asymptotes on the graph. State the domain, range, and asymptote.

Graphing a Vertical Shift of $y=\text{log}_{b}\left(x\right)$

When a constant d is added to the parent function $f\left(x\right)={\mathrm{log}}_{b}\left(x\right)$, the result is a vertical shift d units in the direction of the sign of d. To visualize vertical shifts, we can observe the general graph of the parent function $f\left(x\right)={\mathrm{log}}_{b}\left(x\right)$ alongside the shift up, $g\left(x\right)={\mathrm{log}}_{b}\left(x\right)+d$, and the shift down, $h\left(x\right)={\mathrm{log}}_{b}\left(x\right)-d$.

A General Note: Vertical Shifts of the Parent Function $y=\text{log}_{b}\left(x\right)$

For any constant d, the function $f\left(x\right)={\mathrm{log}}_{b}\left(x\right)+d$

• shifts the parent function $y={\mathrm{log}}_{b}\left(x\right)$ up d units if > 0.
• shifts the parent function $y={\mathrm{log}}_{b}\left(x\right)$ down d units if < 0.
• has the vertical asymptote = 0.
• has domain $\left(0,\infty \right)$.
• has range $\left(-\infty ,\infty \right)$.

How To: Given a logarithmic function Of the form $f\left(x\right)={\mathrm{log}}_{b}\left(x\right)+d$, graph the Vertical Shift

1. Identify the vertical shift:
• If > 0, shift the graph of $f\left(x\right)={\mathrm{log}}_{b}\left(x\right)$ up d units.
• If < 0, shift the graph of $f\left(x\right)={\mathrm{log}}_{b}\left(x\right)$ down units.
2. Draw the vertical asymptote = 0.
3. Identify three key points from the parent function. Find new coordinates for the shifted functions by adding d to the coordinate of each point.
4. Label the three points.
5. The domain is $\left(0,\infty \right)$, the range is $\left(-\infty ,\infty \right)$, and the vertical asymptote is = 0.

Example: Graphing a Vertical Shift of the Parent Function $y=\text{log}_{b}\left(x\right)$

Sketch a graph of $f\left(x\right)={\mathrm{log}}_{3}\left(x\right)-2$ alongside its parent function. Include the key points and asymptote on the graph. State the domain, range, and asymptote.

Try It

Sketch a graph of $f\left(x\right)={\mathrm{log}}_{2}\left(x\right)+2$ alongside its parent function. Include the key points and asymptote on the graph. State the domain, range, and asymptote.

Contribute!

Did you have an idea for improving this content? We’d love your input.