Use Sophia to knock out your gen-ed requirements quickly and affordably. Learn more
×

Graphs of Logarithmic Functions

Author: Sophia

what's covered
In this lesson, you will learn properties of the graph of a logarithmic function and determine its domain and range. Specifically, this lesson will cover:

Table of Contents

1. The Graph of a Logarithmic Function Where b > 1

Consider the function f open parentheses x close parentheses equals 2 to the power of x. A table of values as well as its graph are shown below.

bold italic x bold italic f open parentheses bold x close parentheses bold equals bold 2 to the power of bold x
-3 1 over 8
-2 1 fourth
-1 1 half
0 2 to the power of 0 equals 1
1 2 to the power of 1 equals 2
2 2 squared equals 4
3 2 cubed equals 8
4 2 to the power of 4 equals 16


  • As x rightwards arrow short dash infinity comma f open parentheses x close parentheses rightwards arrow 0 from above, and as x rightwards arrow infinity comma f open parentheses x close parentheses rightwards arrow infinity.
  • f open parentheses x close parentheses equals 2 to the power of x has a horizontal asymptote of y equals 0.
  • Note that the domain is open parentheses short dash infinity comma space infinity close parentheses and the range is open parentheses 0 comma space infinity close parentheses.
We know that the inverse of f open parentheses x close parentheses is g open parentheses x close parentheses equals log subscript 2 x. Its table of values and graph are shown below.

bold italic x bold italic g open parentheses bold x close parentheses bold equals bold log subscript bold 2 bold italic x
1 over 8 -3
1 fourth -2
1 half -1
2 to the power of 0 equals 1 0
2 to the power of 1 equals 2 1
2 squared equals 4 2
2 cubed equals 8 3
2 to the power of 4 equals 16 4


  • As x rightwards arrow 0 from the right, g open parentheses x close parentheses rightwards arrow short dash infinity, and as x rightwards arrow infinity comma g open parentheses x close parentheses rightwards arrow infinity.
  • g open parentheses x close parentheses equals log subscript 2 x has a vertical asymptote of x equals 0.
  • Since this is the inverse of an exponential function, the domain is open parentheses 0 comma space infinity close parentheses and the range is open parentheses short dash infinity comma space infinity close parentheses.
When b greater than 1 comma the graph of y equals b to the power of x has a shape similar to the graph of f open parentheses x close parentheses equals 2 to the power of x. This means that the graph of y equals log subscript b x comma when b greater than 1 comma will look similar to the graph of g open parentheses x close parentheses equals log subscript 2 x. This includes y equals ln     x comma since e is approximately 2.71828, which is greater than 1, and y equals log     x comma which is base 10.

big idea
When b greater than 0 and b not equal to 1 comma the graph of f open parentheses x close parentheses equals b to the power of x passes through the point open parentheses 0 comma space 1 close parentheses. Then, the graph of its inverse, g open parentheses x close parentheses equals log subscript b x, passes through the point open parentheses 1 comma space 0 close parentheses.

EXAMPLE

Sketch the graph of f open parentheses x close parentheses equals ln     x.

Recall that the output of a logarithmic function is the exponent of the input, when the base of the input matches the base of the logarithm. Consider this table of values.

bold italic x e to the power of short dash 3 end exponent e to the power of short dash 2 end exponent e to the power of short dash 1 end exponent 1 e to the power of 1 e squared e cubed
Approximate bold italic x 0.0498 0.1353 0.3679 1 2.7183 7.3891 20.0855
bold italic f open parentheses bold x close parentheses bold equals bold ln bold   bold   bold italic x -3 -2 -1 0 1 2 3

In the figure, we have the graph of f open parentheses x close parentheses equals ln     x. Note the vertical asymptote x equals 0.


2. The Graph of a Logarithmic Function Where 0 < b < 1

Consider the function f open parentheses x close parentheses equals open parentheses 1 third close parentheses to the power of x. A table of values as well as its graph are shown below.

bold italic x bold italic f open parentheses bold x close parentheses bold equals open parentheses bold 1 over bold 3 close parentheses to the power of bold x
-3 27
-2 9
-1 3
0 1
1 1 third
2 1 over 9
3 1 over 27

  • As x rightwards arrow short dash infinity comma f open parentheses x close parentheses rightwards arrow infinity, and as x rightwards arrow infinity comma f open parentheses x close parentheses rightwards arrow 0 from above.
  • f open parentheses x close parentheses equals open parentheses 1 third close parentheses to the power of x has a horizontal asymptote of y equals 0.
  • Note that the domain is open parentheses short dash infinity comma space infinity close parentheses and the range is open parentheses 0 comma space infinity close parentheses.
We know that the inverse of f open parentheses x close parentheses is g open parentheses x close parentheses equals log subscript 1 divided by 3 end subscript x. Its table of values and graph are shown below.

bold italic x bold italic g open parentheses bold x close parentheses bold equals bold log subscript bold 1 bold divided by bold 3 end subscript bold italic x
1 over 27 3
1 over 9 2
1 third 1
1 0
3 -1
9 -2
27 -3


  • As x rightwards arrow 0 from the right, g open parentheses x close parentheses rightwards arrow infinity, and as x rightwards arrow infinity comma g open parentheses x close parentheses rightwards arrow short dash infinity.
  • g open parentheses x close parentheses equals log subscript 1 divided by 3 end subscript x has a vertical asymptote of x equals 0.
  • Since this is the inverse of an exponential function, the domain is open parentheses 0 comma space infinity close parentheses and the range is open parentheses short dash infinity comma space infinity close parentheses.
When 0 less than b less than 1 comma the graph of y equals b to the power of x has a shape similar to the graph of f open parentheses x close parentheses equals open parentheses 1 third close parentheses to the power of x. This means that the graph of y equals log subscript b x comma when 0 less than b less than 1 comma will look similar to the graph of g open parentheses x close parentheses equals log subscript 1 divided by 3 end subscript x.

big idea
When 0 less than b less than 1 and b not equal to 1 comma the graph of f open parentheses x close parentheses equals b to the power of x passes through the points open parentheses 0 comma space 1 close parentheses and open parentheses 1 comma space b close parentheses. Then, the graph of its inverse, g open parentheses x close parentheses equals log subscript b x, passes through the points open parentheses 1 comma space 0 close parentheses and open parentheses b comma space 1 close parentheses. This means that log subscript b 1 equals 0 and log subscript b b equals 1 for all values of b such that b greater than 0 and b not equal to 1.

In summary, here are the possible shapes of g open parentheses x close parentheses equals log subscript b x.

bold 0 bold less than bold italic b bold less than bold 1 bold italic b bold greater than bold 1

big idea
When b greater than 0 and b not equal to 1 commathe domain of f open parentheses x close parentheses equals log subscript b x is open parentheses 0 comma space infinity close parentheses and its range is open parentheses short dash infinity comma space infinity close parentheses. Also note the following:
  • When 0 less than b less than 1 comma the function is decreasing on its domain.
  • When b greater than 1 comma the function is increasing on its domain.

Since the graph of a logarithmic function passes the horizontal line test, logarithmic functions are also one-to-one. Then, logarithmic functions also have the inverse property.

The one-to-one property for logarithmic functions tells us that if two logarithmic expressions with the same base are equal to each other, then the arguments must also be equal. It also tells us that if two quantities are equal, their logarithms in the same base are also equal. This property will be used more frequently when solving equations.

term to know
One-to-One Property for Logarithmic Functions
Consider the function f open parentheses x close parentheses equals log subscript b x comma where b greater than 0 and b not equal to 1. Then, for quantities R and S, log subscript b R equals log subscript b S if and only if R equals S.


3. Comparing Graphs of Logarithmic Functions

Now that we know what the graph of a logarithmic function looks like, we can observe relationships between different graphs.

First, let’s compare two logarithmic graphs with different bases.

EXAMPLE

In this example, we’ll graph f open parentheses x close parentheses equals log subscript 2 x and g open parentheses x close parentheses equals log subscript 5 x on the same pair of axes.

First, here is the table of values for each function:

bold italic x 1 over 8 1 fourth 1 half 1 2 4 8
bold italic f open parentheses bold x close parentheses bold equals bold log subscript bold 2 bold italic x -3 -2 -1 0 1 2 3

bold italic x 1 over 125 1 over 25 1 fifth 1 5 25 125
bold italic g open parentheses bold x close parentheses bold equals bold log subscript bold 5 bold italic x -3 -2 -1 0 1 2 3

In the figure below, you see the graphs of the functions. The thinner graph is f open parentheses x close parentheses equals log subscript 2 x and the thicker graph is g open parentheses x close parentheses equals log subscript 5 x.



Observe the following:
  • Both graphs contain the point open parentheses 1 comma space 0 close parentheses and have vertical asymptote x equals 0.
  • When 0 less than x less than 1 comma the graph of g is above the graph of f.
  • When x greater than 1 comma the graph of f is above the graph of g.
In general, considering the graphs as x rightwards arrow infinity comma the logarithmic function with the smaller base will be above the graph of the logarithmic function with the larger base. Later in this course, we will actually see that the graphs of f and g are constant multiples of one another.

try it
Consider the graphs marked A and B in the figure. One of the graphs is y equals log     x and the other is y equals log subscript 3 x.

Let’s now do an exploration where we compare two logarithmic functions, but this time, the bases are reciprocals of each other.

EXAMPLE

Consider the functions f open parentheses x close parentheses equals log subscript 3 x and g open parentheses x close parentheses equals log subscript 1 divided by 3 end subscript x. The table below shows their values for selected values of x.

bold italic x 1 over 27 1 over 9 1 third 1 3 9 27
bold italic f open parentheses bold x close parentheses bold equals bold log subscript bold 3 bold italic x -3 -2 -1 0 1 2 3
bold italic g open parentheses bold x close parentheses bold equals bold log subscript bold 1 bold divided by bold 3 end subscript bold italic x 3 2 1 0 -1 -2 -3

For a given x-value, notice that the output values are opposites. What does this mean for the graphs?

The graphs are shown below, with selected points plotted. Notice that both graphs contain the point open parentheses 1 comma space 0 close parentheses.



As it turns out, each graph is a reflection of the other over the x-axis!

This means that log subscript 1 divided by 3 end subscript x equals short dash log subscript 3 x.

As a result of the last example, we have the following.

formula to know
Logarithms With Reciprocal Bases
For any base b greater than 1 comma log subscript 1 divided by b end subscript x equals short dash log subscript b x.

This result is important since it establishes a correspondence between logarithms with bases that are reciprocals of each other. Going forward, you’ll notice that all applications seen in this course (and in future courses) use bases that are larger than 1. This is because the common and natural logarithms both use bases that are larger than 1.

try it
Consider the functions f open parentheses x close parentheses equals log subscript 6 x and g open parentheses x close parentheses equals log subscript 1 divided by 6 end subscript x.

summary
In this lesson, you learned that the graphs of logarithmic functions are obtained by using the fact that logarithmic functions are inverses of exponential functions. Since there are two basic shapes of exponential graphs, there are also two basic shapes of logarithmic graphs: one corresponding to the graph of a logarithmic function where b > 1 and the other corresponding to the graph of a logarithmic function where 0 < b < 1. You also learned that upon further comparison of the graphs of logarithmic functions, the graphs of y equals log subscript b x and y equals log subscript 1 divided by b end subscript x are reflections of each other over the x-axis. Because of this fact, we focus on logarithmic functions with bases that are greater than 1. This way, we can still reference the natural and common logarithms.

SOURCE: THIS WORK IS ADAPTED FROM PRECALCULUS BY JAY ABRAMSON. ACCESS FOR FREE AT OPENSTAX.ORG/BOOKS/PRECALCULUS/PAGES/1-INTRODUCTION-TO-FUNCTIONS

Terms to Know
One-to-One Property for Logarithmic Functions

Consider the function f open parentheses x close parentheses equals log subscript b x comma where b greater than 0 and b not equal to 1. Then, for quantities R and S, log subscript b R equals log subscript b S if and only if R equals S.

Formulas to Know
Logarithms With Reciprocal Bases

For any base b greater than 1 comma log subscript 1 divided by b end subscript x equals short dash log subscript b x.