Characteristics Of Graphs Of Logarithmic Functions | College Algebra

Learning Outcomes

  • Determine the domain and range of a logarithmic function.
  • Determine the x-intercept and vertical asymptote of a logarithmic function.
  • Identify whether a logarithmic function is increasing or decreasing and give the interval.
  • Identify the features of a logarithmic function that make it an inverse of an exponential 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.

Previously 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. Therefore, when finding the domain of a logarithmic function, it is important to remember that the domain consists only of positive real numbers. That is, the value you are applying the logarithmic function to, also known as 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{array}{l}2x - 3>0\hfill & \text{Show the argument greater than zero}.\hfill \\ 2x>3\hfill & \text{Add 3}.\hfill \\ x>1.5\hfill & \text{Divide by 2}.\hfill \end{array}[/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: Identifying the Domain Resulting From a Logarithmic Shift

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

Show Solution

[latex]\begin{array}{l}x+3>0\hfill & \text{The argument must be positive}.\hfill \\ x>-3\hfill & \text{Subtract 3}.\hfill \end{array}[/latex]

The logarithmic function is defined only when the argument is positive, so this function is defined when [latex]x+3>0[/latex].

The domain of [latex]f\left(x\right)={\mathrm{log}}_{2}\left(x+3\right)[/latex] is [latex]\left(-3,\infty \right)[/latex].

Try It

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

Show Solution

[latex]\left(2,\infty \right)[/latex]

Example: Identifying the Domain Resulting From a Logarithmic Shift and Reflection

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

Show Solution

The logarithmic function is defined only when the argument is positive, so this function is defined when [latex]5 - 2x>0[/latex]. Solving this inequality,

[latex]\begin{array}{l}5 - 2x>0\hfill & \text{The argument must be positive}.\hfill \\ -2x>-5\hfill & \text{Subtract }5.\hfill \\ x1[/latex]

  • decreasing if 0 < b < 1
  • The graphs below show 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 2.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.

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

    How To: Given a logarithmic function Of 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: Graphing a Logarithmic Function Of 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.

    Show Solution

    Before graphing, identify the behavior and key points for the graph.

    • Since b = 5 is greater than one, we know the function is increasing. The left tail of the graph will approach the vertical asymptote x = 0, and the right tail will increase slowly without bound.
    • The x-intercept is [latex]\left(1,0\right)[/latex].
    • The key point [latex]\left(5,1\right)[/latex] is on the graph.
    • We draw and label the asymptote, plot and label the points, and draw a smooth curve through the points.
    Graph of f(x)=log_5(x) with labeled points at (1, 0) and (5, 1). The y-axis is the asymptote.

    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.

    Try It

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

    Show Solution

    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.

    Graph of f(x)=log_(1/5)(x) with labeled points at (1/5, 1) and (1, 0). The y-axis is the asymptote.

    Candela Citations

    CC licensed content, Original
    • Revision and Adaptation. Provided by: Lumen Learning. License: CC BY: Attribution
    CC licensed content, Shared previously
    • Questoin ID 34999, 35000. Authored by: Smart, JIm. License: CC BY: Attribution. License Terms: Download For Free at : http://cnx.org/contents/[email protected].
    • College Algebra. Authored by: Abramson, Jay et al.. Provided by: OpenStax. Located at: http://cnx.org/contents/[email protected]. License: CC BY: Attribution. License Terms: Download for free at http://cnx.org/contents/[email protected]

    Tag » How To Graph Logarithmic Functions