Graphs of Logarithmic Functions

Learning Outcomes

  • Identify the domain of a logarithmic function.
  • Graph 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 $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 [latex]A=2500{e}^{0.05t}[/latex].

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.

A graph titled,

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.

Identify 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 [latex]y={b}^{x}[/latex] for any real number x and constant [latex]b>0[/latex], [latex]b\ne 1[/latex], where

  • The domain of y is [latex]\left(-\infty ,\infty \right)[/latex].
  • The range of y is [latex]\left(0,\infty \right)[/latex].

In the last section we learned that the logarithmic function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] is the inverse of the exponential function [latex]y={b}^{x}[/latex]. So, as inverse functions:

  • The domain of [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] is the range of [latex]y={b}^{x}[/latex]:[latex]\left(0,\infty \right)[/latex].
  • The range of [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] is the domain of [latex]y={b}^{x}[/latex]: [latex]\left(-\infty ,\infty \right)[/latex].

Transformations of the parent function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] 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—to the parent function without loss of shape.

In Graphs of Exponential Functions we saw that certain transformations can change the range of [latex]y={b}^{x}[/latex]. Similarly, applying transformations to the parent function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] 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 [latex]f\left(x\right)={\mathrm{log}}_{4}\left(2x - 3\right)[/latex]. This function is defined for any values of x such that the argument, in this case [latex]2x - 3[/latex], is greater than zero. To find the domain, we set up an inequality and solve for x:

[latex]\begin{align}&2x - 3>0 && \text{Show the argument greater than zero}. \\ &2x>3 && \text{Add 3}. \\ &x>1.5 && \text{Divide by 2}. \end{align}[/latex]

In interval notation, the domain of [latex]f\left(x\right)={\mathrm{log}}_{4}\left(2x - 3\right)[/latex] is [latex]\left(1.5,\infty \right)[/latex].

How To: Given a logarithmic function, identify the domain.

  1. Set up an inequality showing the argument greater than zero.
  2. Solve for x.
  3. Write the domain in interval notation.

Example 1: Identifying the Domain of a Logarithmic Shift

What is the domain of [latex]f\left(x\right)={\mathrm{log}}_{2}\left(x+3\right)[/latex]?

Try It

What is the domain of [latex]f\left(x\right)={\mathrm{log}}_{5}\left(x - 2\right)+1[/latex]?

Example 2: Identifying the Domain of a Logarithmic Shift and Reflection

What is the domain of [latex]f\left(x\right)=\mathrm{log}\left(5 - 2x\right)[/latex]?

Try It

What is the domain of [latex]f\left(x\right)=\mathrm{log}\left(x - 5\right)+2[/latex]?

Try It

 Graph 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 [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] along with all its transformations: shifts, stretches, compressions, and reflections.

We begin with the parent function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex]. Because every logarithmic function of this form is the inverse of an exponential function with the form [latex]y={b}^{x}[/latex], their graphs will be reflections of each other across the line [latex]y=x[/latex]. To illustrate this, we can observe the relationship between the input and output values of [latex]y={2}^{x}[/latex] and its equivalent [latex]x={\mathrm{log}}_{2}\left(y\right)[/latex] in the table below.

x –3 –2 –1 0 1 2 3
[latex]{2}^{x}=y[/latex] [latex]\frac{1}{8}[/latex] [latex]\frac{1}{4}[/latex] [latex]\frac{1}{2}[/latex] 1 2 4 8
[latex]{\mathrm{log}}_{2}\left(y\right)=x[/latex] –3 –2 –1 0 1 2 3

Using the inputs and outputs from the table above, we can build another table to observe the relationship between points on the graphs of the inverse functions [latex]f\left(x\right)={2}^{x}[/latex] and [latex]g\left(x\right)={\mathrm{log}}_{2}\left(x\right)[/latex].

[latex]f\left(x\right)={2}^{x}[/latex] [latex]\left(-3,\frac{1}{8}\right)[/latex] [latex]\left(-2,\frac{1}{4}\right)[/latex] [latex]\left(-1,\frac{1}{2}\right)[/latex] [latex]\left(0,1\right)[/latex] [latex]\left(1,2\right)[/latex] [latex]\left(2,4\right)[/latex] [latex]\left(3,8\right)[/latex]
[latex]g\left(x\right)={\mathrm{log}}_{2}\left(x\right)[/latex] [latex]\left(\frac{1}{8},-3\right)[/latex] [latex]\left(\frac{1}{4},-2\right)[/latex] [latex]\left(\frac{1}{2},-1\right)[/latex] [latex]\left(1,0\right)[/latex] [latex]\left(2,1\right)[/latex] [latex]\left(4,2\right)[/latex] [latex]\left(8,3\right)[/latex]

As we’d expect, the x– and y-coordinates are reversed for the inverse functions. The figure below shows the graph of f and g.

Graph of two functions, f(x)=2^x and g(x)=log_2(x), with the line y=x denoting the axis of symmetry.

Figure 2. Notice that the graphs of [latex]f\left(x\right)={2}^{x}[/latex] and [latex]g\left(x\right)={\mathrm{log}}_{2}\left(x\right)[/latex] are reflections about the line = x.

Observe the following from the graph:

  • [latex]f\left(x\right)={2}^{x}[/latex] has a y-intercept at [latex]\left(0,1\right)[/latex] and [latex]g\left(x\right)={\mathrm{log}}_{2}\left(x\right)[/latex] has an x-intercept at [latex]\left(1,0\right)[/latex].
  • The domain of [latex]f\left(x\right)={2}^{x}[/latex], [latex]\left(-\infty ,\infty \right)[/latex], is the same as the range of [latex]g\left(x\right)={\mathrm{log}}_{2}\left(x\right)[/latex].
  • The range of [latex]f\left(x\right)={2}^{x}[/latex], [latex]\left(0,\infty \right)[/latex], is the same as the domain of [latex]g\left(x\right)={\mathrm{log}}_{2}\left(x\right)[/latex].

A General Note: Characteristics of the Graph of the Parent Function, f(x) = logb(x)

For any real number x and constant > 0, [latex]b\ne 1[/latex], we can see the following characteristics in the graph of [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex]:

  • one-to-one function
  • vertical asymptote: = 0
  • domain: [latex]\left(0,\infty \right)[/latex]
  • range: [latex]\left(-\infty ,\infty \right)[/latex]
  • x-intercept: [latex]\left(1,0\right)[/latex] and key point [latex]\left(b,1\right)[/latex]
  • y-intercept: none
  • increasing if [latex]b>1[/latex]
  • decreasing if 0 < < 1
"Two

Figure 3 shows how changing the base b in [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] can affect the graphs. Observe that the graphs compress vertically as the value of the base increases. (Note: recall that the function [latex]\mathrm{ln}\left(x\right)[/latex] has base [latex]e\approx \text{2}.\text{718.)}[/latex]

Graph of three equations: y=log_2(x) in blue, y=ln(x) in orange, and y=log(x) in red. The y-axis is the asymptote.

Figure 4. The graphs of three logarithmic functions with different bases, all greater than 1.

How To: Given a logarithmic function with the form [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex], graph the function.

  1. Draw and label the vertical asymptote, x = 0.
  2. Plot the x-intercept, [latex]\left(1,0\right)[/latex].
  3. Plot the key point [latex]\left(b,1\right)[/latex].
  4. Draw a smooth curve through the points.
  5. State the domain, [latex]\left(0,\infty \right)[/latex], the range, [latex]\left(-\infty ,\infty \right)[/latex], and the vertical asymptote, x = 0.

Example 3: Graphing a Logarithmic Function with the Form [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex].

Graph [latex]f\left(x\right)={\mathrm{log}}_{5}\left(x\right)[/latex]. State the domain, range, and asymptote.

Try It

Graph [latex]f\left(x\right)={\mathrm{log}}_{\frac{1}{5}}\left(x\right)[/latex]. State the domain, range, and asymptote.

Try It

 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 [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] without loss of shape.

Graphing a Horizontal Shift of [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex]

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

Graph of two functions. The parent function is f(x)=log_b(x), with an asymptote at x=0 and g(x)=log_b(x+c) is the translation function with an asymptote at x=-c. This shows the translation of shifting left.

Figure 6

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

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

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

How To: Given a logarithmic function with the form [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x+c\right)[/latex], graph the translation.

  1. Identify the horizontal shift:
    1. If c > 0, shift the graph of [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] left c units.
    2. If < 0, shift the graph of [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] 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.
  4. Label the three points.
  5. The Domain is [latex]\left(-c,\infty \right)[/latex], the range is [latex]\left(-\infty ,\infty \right)[/latex], and the vertical asymptote is = –c.

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

Sketch the horizontal shift [latex]f\left(x\right)={\mathrm{log}}_{3}\left(x - 2\right)[/latex] 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 [latex]f\left(x\right)={\mathrm{log}}_{3}\left(x+4\right)[/latex] alongside its parent function. Include the key points and asymptotes on the graph. State the domain, range, and asymptote.

Try It

Graphing a Vertical Shift of [latex]y=\text{log}_{b}\left(x\right)[/latex]

When a constant d is added to the parent function [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex], 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 [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] alongside the shift up, [latex]g\left(x\right)={\mathrm{log}}_{b}\left(x\right)+d[/latex] and the shift down, [latex]h\left(x\right)={\mathrm{log}}_{b}\left(x\right)-d[/latex].

Graph of two functions. The parent function is f(x)=log_b(x), with an asymptote at x=0 and g(x)=log_b(x)+d is the translation function with an asymptote at x=0. This shows the translation of shifting up. Graph of two functions. The parent function is f(x)=log_b(x), with an asymptote at x=0 and g(x)=log_b(x)-d is the translation function with an asymptote at x=0. This shows the translation of shifting down.

Figure 8

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

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

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

How To: Given a logarithmic function with the form [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)+d[/latex], graph the translation.

  1. Identify the vertical shift:
    1. If > 0, shift the graph of [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] up d units.
    2. If < 0, shift the graph of [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] 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.
  4. Label the three points.
  5. The domain is [latex]\left(0,\infty \right)[/latex], the range is [latex]\left(-\infty ,\infty \right)[/latex], and the vertical asymptote is = 0.

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

Sketch a graph of [latex]f\left(x\right)={\mathrm{log}}_{3}\left(x\right)-2[/latex] 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 [latex]f\left(x\right)={\mathrm{log}}_{2}\left(x\right)+2[/latex] alongside its parent function. Include the key points and asymptote on the graph. State the domain, range, and asymptote.

Try It

Graphing Stretches and Compressions of [latex]y=\text{log}_{b}\left(x\right)[/latex]

When the parent function [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] 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 > 1 and observe the general graph of the parent function [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] alongside the vertical stretch, [latex]g\left(x\right)=a{\mathrm{log}}_{b}\left(x\right)[/latex] and the vertical compression, [latex]h\left(x\right)=\frac{1}{a}{\mathrm{log}}_{b}\left(x\right)[/latex]."Graph

A General Note: Vertical Stretches and Compressions of the Parent Function [latex]y=\text{log}_{b}\left(x\right)[/latex]

For any constant a > 1, the function [latex]f\left(x\right)=a{\mathrm{log}}_{b}\left(x\right)[/latex]

  • stretches the parent function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] vertically by a factor of a if > 1.
  • compresses the parent function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] vertically by a factor of a if 0 < < 1.
  • has the vertical asymptote = 0.
  • has the x-intercept [latex]\left(1,0\right)[/latex].
  • has domain [latex]\left(0,\infty \right)[/latex].
  • has range [latex]\left(-\infty ,\infty \right)[/latex].

How To: Given a logarithmic function with the form [latex]f\left(x\right)=a{\mathrm{log}}_{b}\left(x\right)[/latex], [latex]a>0[/latex], graph the translation.

  1. Identify the vertical stretch or compressions:
    1. If [latex]|a|>1[/latex], the graph of [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] is stretched by a factor of a units.
    2. If [latex]|a|<1[/latex], the graph of [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] is compressed by a factor of a units.
  2. Draw the vertical asymptote = 0.
  3. Identify three key points from the parent function. Find new coordinates for the shifted functions by multiplying the y coordinates by a.
  4. Label the three points.
  5. The domain is [latex]\left(0,\infty \right)[/latex], the range is [latex]\left(-\infty ,\infty \right)[/latex], and the vertical asymptote is x = 0.

Example 6: Graphing a Stretch or Compression of the Parent Function [latex]y=\text{log}_{b}\left(x\right)[/latex]

Sketch a graph of [latex]f\left(x\right)=2{\mathrm{log}}_{4}\left(x\right)[/latex] 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 [latex]f\left(x\right)=\frac{1}{2}{\mathrm{log}}_{4}\left(x\right)[/latex] alongside its parent function. Include the key points and asymptote on the graph. State the domain, range, and asymptote.

Example 7: Combining a Shift and a Stretch

Sketch a graph of [latex]f\left(x\right)=5\mathrm{log}\left(x+2\right)[/latex]. State the domain, range, and asymptote.

Try It

Sketch a graph of the function [latex]f\left(x\right)=3\mathrm{log}\left(x - 2\right)+1[/latex]. State the domain, range, and asymptote.

Try It

Graphing Reflections of [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex]

When the parent function [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] 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 > 1, and observe the general graph of the parent function [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] alongside the reflection about the x-axis, [latex]g\left(x\right)={\mathrm{-log}}_{b}\left(x\right)[/latex] and the reflection about the y-axis, [latex]h\left(x\right)={\mathrm{log}}_{b}\left(-x\right)[/latex].

"Graph

A General Note: Reflections of the Parent Function [latex]y=\text{log}_{b}\left(x\right)[/latex]

The function [latex]f\left(x\right)={\mathrm{-log}}_{b}\left(x\right)[/latex]

  • reflects the parent function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] about the x-axis.
  • has domain, [latex]\left(0,\infty \right)[/latex], range, [latex]\left(-\infty ,\infty \right)[/latex], and vertical asymptote, = 0, which are unchanged from the parent function.

The function [latex]f\left(x\right)={\mathrm{log}}_{b}\left(-x\right)[/latex]

  • reflects the parent function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] about the y-axis.
  • has domain [latex]\left(-\infty ,0\right)[/latex].
  • has range, [latex]\left(-\infty ,\infty \right)[/latex], and vertical asymptote, = 0, which are unchanged from the parent function.

How To: Given a logarithmic function with the parent function [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex], graph a translation.

[latex]\text{If }f\left(x\right)=-{\mathrm{log}}_{b}\left(x\right)[/latex] [latex]\text{If }f\left(x\right)={\mathrm{log}}_{b}\left(-x\right)[/latex]
1. Draw the vertical asymptote, = 0. 1. Draw the vertical asymptote, = 0.
2. Plot the x-intercept, [latex]\left(1,0\right)[/latex]. 2. Plot the x-intercept, [latex]\left(1,0\right)[/latex].
3. Reflect the graph of the parent function [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] about the x-axis. 3. Reflect the graph of the parent function [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] about the y-axis.
4. Draw a smooth curve through the points. 4. Draw a smooth curve through the points.
5. State the domain, [latex]\left(0,\infty \right)[/latex], the range, [latex]\left(-\infty ,\infty \right)[/latex], and the vertical asymptote = 0. 5. State the domain, [latex]\left(-\infty ,0\right)[/latex], the range, [latex]\left(-\infty ,\infty \right)[/latex], and the vertical asymptote = 0.

Example 8: Graphing a Reflection of a Logarithmic Function

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

Try It

Graph [latex]f\left(x\right)=-\mathrm{log}\left(-x\right)[/latex]. State the domain, range, and asymptote.

How To: Given a logarithmic equation, use a graphing calculator to approximate solutions.

  1. Press [Y=]. Enter the given logarithm equation or equations as Y1= and, if needed, Y2=.
  2. Press [GRAPH] to observe the graphs of the curves and use [WINDOW] to find an appropriate view of the graphs, including their point(s) of intersection.
  3. To find the value of x, we compute the point of intersection. Press [2ND] then [CALC]. Select “intersect” and press [ENTER] three times. The point of intersection gives the value of x, for the point(s) of intersection.

Example 9: Approximating the Solution of a Logarithmic Equation

Solve [latex]4\mathrm{ln}\left(x\right)+1=-2\mathrm{ln}\left(x - 1\right)[/latex] graphically. Round to the nearest thousandth.

Try It

Solve [latex]5\mathrm{log}\left(x+2\right)=4-\mathrm{log}\left(x\right)[/latex] graphically. Round to the nearest thousandth.

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 the table below to arrive at the general equation for translating exponential functions.

Translations of the Parent Function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex]
Translation Form
Shift

  • Horizontally c units to the left
  • Vertically d units up
[latex]y={\mathrm{log}}_{b}\left(x+c\right)+d[/latex]
Stretch and Compress

  • Stretch if [latex]|a|>1[/latex]
  • Compression if [latex]|a|<1[/latex]
[latex]y=a{\mathrm{log}}_{b}\left(x\right)[/latex]
Reflect about the x-axis [latex]y=-{\mathrm{log}}_{b}\left(x\right)[/latex]
Reflect about the y-axis [latex]y={\mathrm{log}}_{b}\left(-x\right)[/latex]
General equation for all translations [latex]y=a{\mathrm{log}}_{b}\left(x+c\right)+d[/latex]

A General Note: Translations of Logarithmic Functions

All translations of the parent logarithmic function, [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex], have the form

[latex] f\left(x\right)=a{\mathrm{log}}_{b}\left(x+c\right)+d[/latex]

where the parent function, [latex]y={\mathrm{log}}_{b}\left(x\right),b>1[/latex], is

  • shifted vertically up d units.
  • shifted horizontally to the left c units.
  • stretched vertically by a factor of |a| if |a| > 0.
  • compressed vertically by a factor of |a| if 0 < |a| < 1.
  • reflected about the x-axis when < 0.

For [latex]f\left(x\right)=\mathrm{log}\left(-x\right)[/latex], the graph of the parent function is reflected about the y-axis.

Example 10: Finding the Vertical Asymptote of a Logarithm Graph

What is the vertical asymptote of [latex]f\left(x\right)=-2{\mathrm{log}}_{3}\left(x+4\right)+5[/latex]?

Try It

What is the vertical asymptote of [latex]f\left(x\right)=3+\mathrm{ln}\left(x - 1\right)[/latex]?

Example 11: Finding the Equation from a Graph

Find a possible equation for the common logarithmic function graphed in Figure 15.

Graph of a logarithmic function with a vertical asymptote at x=-2, has been vertically reflected, and passes through the points (-1, 1) and (2, -1).

Figure 15

Try It

Give the equation of the natural logarithm graphed in Figure 16.

Graph of a logarithmic function with a vertical asymptote at x=-3, has been vertically stretched by 2, and passes through the points (-1, -1).

Figure 16

Q & A

Is it possible to tell the domain and range and describe the end behavior of a function just by looking at the graph?

Yes, if we know the function is a general logarithmic function. For example, look at the graph in Try It 11. The graph approaches x = –3 (or thereabouts) more and more closely, so x = –3 is, or is very close to, the vertical asymptote. It approaches from the right, so the domain is all points to the right, [latex]\left\{x|x>-3\right\}[/latex]. The range, as with all general logarithmic functions, is all real numbers. And we can see the end behavior because the graph goes down as it goes left and up as it goes right. The end behavior is that as [latex]x\to -{3}^{+},f\left(x\right)\to -\infty [/latex] and as [latex]x\to \infty ,f\left(x\right)\to \infty [/latex].

Key Equations

General Form for the Translation of the Parent Logarithmic Function [latex]\text{ }f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] [latex] f\left(x\right)=a{\mathrm{log}}_{b}\left(x+c\right)+d[/latex]

Key Concepts

  • To find the domain of a logarithmic function, set up an inequality showing the argument greater than zero, and solve for x.
  • The graph of the parent function [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)[/latex] has an x-intercept at [latex]\left(1,0\right)[/latex], domain [latex]\left(0,\infty \right)[/latex], range [latex]\left(-\infty ,\infty \right)[/latex], vertical asymptote = 0, and
    • if > 1, the function is increasing.
    • if 0 < < 1, the function is decreasing.
  • The equation [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x+c\right)[/latex] shifts the parent function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] horizontally
    • left c units if > 0.
    • right c units if < 0.
  • The equation [latex]f\left(x\right)={\mathrm{log}}_{b}\left(x\right)+d[/latex] shifts the parent function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] vertically
    • up d units if > 0.
    • down d units if < 0.
  • For any constant > 0, the equation [latex]f\left(x\right)=a{\mathrm{log}}_{b}\left(x\right)[/latex]
    • stretches the parent function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] vertically by a factor of a if |a| > 1.
    • compresses the parent function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] vertically by a factor of a if |a| < 1.
  • When the parent function [latex]y={\mathrm{log}}_{b}\left(x\right)[/latex] 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.
    • The equation [latex]f\left(x\right)=-{\mathrm{log}}_{b}\left(x\right)[/latex] represents a reflection of the parent function about the x-axis.
    • The equation [latex]f\left(x\right)={\mathrm{log}}_{b}\left(-x\right)[/latex] represents a reflection of the parent function about the y-axis.
    • A graphing calculator may be used to approximate solutions to some logarithmic equations.
  • All translations of the logarithmic function can be summarized by the general equation [latex] f\left(x\right)=a{\mathrm{log}}_{b}\left(x+c\right)+d[/latex].
  • Given an equation with the general form [latex] f\left(x\right)=a{\mathrm{log}}_{b}\left(x+c\right)+d[/latex], we can identify the vertical asymptote = –c for the transformation.
  • Using the general equation [latex]f\left(x\right)=a{\mathrm{log}}_{b}\left(x+c\right)+d[/latex], we can write the equation of a logarithmic function given its graph.