Graphs of Logarithmic Functions

Characteristics of Graphs of Logarithmic Functions

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=bx for any real number x and constant b>0, b1, where

  • The domain of y is (,).
  • The range of y is (0,).

In the last section we learned that the logarithmic function y=logb(x) is the inverse of the exponential function y=bx. So, as inverse functions:

  • The domain of y=logb(x) is the range of y=bx: (0,).
  • The range of y=logb(x) is the domain of y=bx: (,).

Graphing a Logarithmic Function Using a Table of Values

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. We begin with the function y=logb(x). Because every logarithmic function of this form is the inverse of an exponential function of the form y=bx, 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=2x and its equivalent logarithmic form x=log2(y) in the table below.

x –3 –2 –1 0 1 2 3
2x=y 18 14 12 1 2 4 8
log2(y)=x –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 f(x)=2x and g(x)=log2(x).

f(x)=2x (3,18) (2,14) (1,12) (0,1) (1,2) (2,4) (3,8)
g(x)=log2(x) (18,3) (14,2) (12,1) (1,0) (2,1) (4,2) (8,3)

As we would expect, the and y-coordinates are reversed for the inverse functions. The figure below shows the graphs 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.

Notice that the graphs of f(x)=2x and g(x)=log2(x) are reflections about the line y = x since they are inverses of each other.

Observe the following from the graph:

  • f(x)=2x has a y-intercept at (0,1) and g(x)=log2(x) has an x-intercept at (1,0).
  • The domain of f(x)=2x, (,), is the same as the range of g(x)=log2(x).
  • The range of f(x)=2x, (0,), is the same as the domain of g(x)=log2(x).

 

Watch the following video for an excellent demonstration on how to graph a logarithmic function…

 

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

For any real number x and constant > 0, b1, we can see the following characteristics in the graph of f(x)=logb(x):

    • one-to-one function
    • vertical asymptote: = 0
    • domain: (0,)
    • range: (,)
    • x-intercept: (1,0) and key point (b,1)
    • y-intercept: none
    • increasing if b>1
    • decreasing if 0 < < 1

How To: Given a logarithmic function Of the form f(x)=logb(x), graph the function

  1. If the function is in function notation, replace f(x) with y.
  2. Change the logarithmic equation to exponential form using the definition of the logarithm.
  3. Make a table of points, choosing the y-values first and finding the x-values, making sure to include the x-intercept.
  4. Plot the points. Make sure to include the x-intercept and the key point.
  5. Draw a smooth curve through the points.
  6. Draw and label the vertical asymptote.

Example: Graphing a Logarithmic Function Of the Form f(x)=logb(x)

Graph f(x)=log5(x). State the domain, range, and asymptote.

Try It

Graph f(x)=log15(x). State the domain, range, and asymptote.


The graphs below show how changing the base b in f(x)=logb(x) can affect the graphs. Observe that the graphs compress vertically as the value of the base increases. (Note: recall that the function ln(x) is base e2.718 and log(x) is base 10.

 

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.

Key Concepts

  • The inverse of an exponential function is a logarithmic function, and the inverse of a logarithmic function is an exponential function.
  • Logarithmic equations can be written in an equivalent exponential form using the definition of a logarithm.
  • Exponential equations can be written in an equivalent logarithmic form using the definition of a logarithm.
  • Logarithmic functions with base b can be evaluated mentally using previous knowledge of powers of b.
  • Common logarithms can be evaluated mentally using previous knowledge of powers of 10.
  • When common logarithms cannot be evaluated mentally, a calculator can be used.
  • Natural logarithms can be evaluated using a calculator.
  • 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 f(x)=logb(x) has an x-intercept at (1,0), domain (0,), range (,), vertical asymptote = 0, and
    • if > 1, the function is increasing.
    • if 0 < < 1, the function is decreasing.

Glossary

common logarithm
the exponent to which 10 must be raised to get x; log10(x) is written simply as log(x)
logarithm
the exponent to which b must be raised to get x; written y=logb(x)
natural logarithm
the exponent to which the number e must be raised to get x; loge(x) is written as ln(x)