$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$ $$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$

# 4.5 Graphs of Logarithmic Functions

Recall that the exponential function  produces this table of values

 x -3 -2 -1 0 1 2 3 f(x) 1 2 4 8

Since the logarithmic function is an inverse of the exponential,  produces the table of values

 x 1 2 4 8 g(x) -3 -2 -1 0 1 2 3

In this second table, notice that

1. As the input increases, the output increases.
2. As input increases, the output increases more slowly.
3. Since the exponential function only outputs positive values, the logarithm can only accept positive values as inputs, so the domain of the log function is .
4. Since the exponential function can accept all real numbers as inputs, the logarithm can output any real number, so the range is all real numbers or .

Sketching the graph, notice that as the input approaches zero from the right, the output of the function grows very large in the negative direction, indicating a vertical asymptote at

x = 0.

In symbolic notation we write

as ,  and as

Graphical Features of the Logarithm

• Graphically, in the function
• The graph has a horizontal intercept at (1, 0)
• The graph has a vertical asymptote at x = 0
• The graph is increasing and concave down
• The domain of the function is x > 0, or
• The range of the function is all real numbers, or

When sketching a general logarithm with base b, it can be helpful to remember that the graph will pass through the points (1, 0) and (b, 1).

To get a feeling for how the base affects the shape of the graph, examine the graphs below.

Notice that the larger the base, the slower the graph grows.  For example, the common log graph, while it grows without bound, it does so very slowly.  For example, to reach an output of 8, the input must be 100,000,000.

Another important observation made was the domain of the logarithm.  Like the reciprocal and square root functions, the logarithm has a restricted domain which must be considered when finding the domain of a composition involving a log.

Example 1

Find the domain of the function

SOLUTION

The logarithm is only defined with the input is positive, so this function will only be defined when .  Solving this inequality,

The domain of this function is , or in interval notation,

Try it Now

1. Find the domain of the function ; before solving this as an inequality, consider how the function has been transformed.

### Transformations of the Logarithmic Function

Transformations can be applied to a logarithmic function using the basic transformation techniques, but as with exponential functions, several transformations result in interesting relationships.

First recall the change of base property tells us that

From this, we can see that  is a vertical stretch or compression of the graph of the  graph.  This tells us that a vertical stretch or compression is equivalent to a change of base.  For this reason, we typically represent all graphs of logarithmic functions in terms of the common or natural log functions.

Next, consider the effect of a horizontal compression on the graph of a logarithmic function.  Considering , we can use the sum property to see

Since log(c) is a constant, the effect of a horizontal compression is the same as the effect of a vertical shift.

Example 2

Sketch  and .

SOLUTION

Graphing these,

Note that, this vertical shift could also be written as a horizontal compression:

.

While a horizontal stretch or compression can be written as a vertical shift, a horizontal reflection is unique and separate from vertical shifting. Finally, we will consider the effect of a horizontal shift on the graph of a logarithm

Example 3

Sketch a graph of .

SOLUTION

This is a horizontal shift to the left by 2 units.  Notice that none of our logarithm rules allow us rewrite this in another form, so the effect of this transformation is unique.  Shifting the graph,

Notice that due to the horizontal shift, the vertical asymptote shifted to x = -2, and the domain shifted to .

Combining these transformations,

Example 4

Sketch a graph of .

SOLUTION

Factoring the inside as  reveals that this graph is that of the common logarithm, horizontally reflected, vertically stretched by a factor of 5, and shifted to the right by 2 units.

The vertical asymptote will be shifted to      x = 2, and the graph will have domain .  A rough sketch can be created by using the vertical asymptote along with a couple points on the graph, such as

Try it Now

2. Sketch a graph of the function .

Transformations of Logs

Any transformed logarithmic function can be written in the form

,  or  if horizontally reflected,

where

x = b is the vertical asymptote.

Example 5

Find an equation for the logarithmic function graphed below.

SOLUTION

This graph has a vertical asymptote at x = –2 and has been vertically reflected. We do not know yet the vertical shift (equivalent to horizontal stretch) or the vertical stretch (equivalent to a change of base). We know so far that the equation will have form

It appears the graph passes through the points (–1, 1) and (2, –1). Substituting in (–1, 1),

Next, substituting in (2, –1),

This gives us the equation

This could also be written as .

Flashback

3. Write the domain and range of the function graphed in Example 5, and describe its long run behavior.

### Important Topics of this Section

• Graph of the logarithmic function (domain and range)
• Transformation of logarithmic functions
• Creating graphs from equations
• Creating equations from graphs

Try it Now Answers

1. Domain:  {x| x > 5}

2.

3.  Domain:  {x|x>-2}, Range: all real numbers;  As and as .

### Section 4.5 Exercises

For each function, find the domain and the vertical asymptote.

1.                                       2.

3.                                         4.

5.                                      6.

7.                                  8.

Sketch a graph of each pair of function.

9.                      10.

Sketch each transformation.

11.                                        12.

13.                                          14.

15.                                    16.

Find a formula for the transformed logarithm graph shown.

17.                           18.

19.                           20.

Find a formula for the transformed logarithm graph shown.

21.                           22.

23.                           24.

### Contributors

• David Lippman (Pierce College)
• Melonie Rasmussen (Pierce College)