Precalc4 5
Precalc4 5
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 f ( x ) = log( 5 − 2 x )
The logarithm is only defined with the input is positive, so this function will only be
defined when 5 − 2 x > 0 . Solving this inequality,
− 2 x > −5
5
x<
2
5 5
The domain of this function is x < , or in interval notation, − ∞,
2 2
Try it Now
1. Find the domain of the function f ( x ) = log( x − 5) + 2 ; before solving this as an
inequality, consider how the function has been transformed.
302 Chapter 4
log c x 1
First recall the change of base property tells us that log b x = = log c x
log c b log c b
From this, we can see that log b x is a vertical stretch or compression of the graph of the
log c x 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.
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 f ( x ) = ln( x ) and g ( x ) = ln( x ) + 2 .
Graphing these,
Note that this vertical shift could also be written as a horizontal compression, since
g ( x ) = ln( x ) + 2 = ln( x ) + ln( e 2 ) = ln( e 2 x ) .
Finally, we will consider the effect of a horizontal shift on the graph of a logarithm.
Section 4.5 Graphs of Logarithmic Functions 303
Example 3
Sketch a graph of f ( x ) = ln( x + 2) .
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 (−2, ∞ ) .
Example 4
Sketch a graph of f ( x ) = 5 log( − x + 2) .
Factoring the inside as f ( x ) = 5 log( − ( x − 2)) 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.
Try it Now
2. Sketch a graph of the function f ( x ) = −3 log( x − 2) + 1 .
Transformations of Logs
Any transformed logarithmic function can be written in the form
f ( x ) = a log( x − b) + k , or f ( x) = a log ( − ( x − b ) ) + k if horizontally reflected,
Example 5
Find an equation for the logarithmic function
graphed.
It appears the graph passes through the points (–1, 1) and (2, –1). Substituting in (–1, 1),
1 = −a log(−1 + 2) + k
1 = −a log(1) + k
1= k
2
This gives us the equation f ( x) = − log( x + 2) + 1 .
log(4)
This could also be written as f ( x ) = −2 log 4 ( x + 2) + 1 .
Section 4.5 Graphs of Logarithmic Functions 305
Try it Now
3. Write an equation for the function graphed here.
Flashback
4. Write the domain and range of the function graphed in Example 5, and describe its
long run behavior.
2.
3. The graph is horizontally reflected and has a vertical asymptote at x = 3, giving form
f ( x ) = a log(− ( x − 3)) + k . Substituting in the point (2,0) gives 0 = a log(− (2 − 3)) + k ,
−2
simplifying to k = 0. Substituting in (-2,-2), − 2 = a log(− (− 2 − 3)) , so = a.
log(5)
−2
The equation is f ( x) = log (− ( x − 3)) or f ( x ) = −2 log 5 (− ( x − 3)) .
log(5)
For each function, find the domain and the vertical asymptote.
1. f ( x ) = log ( x − 5) 2. f ( x ) = log ( x + 2 )
3. f ( x ) = ln ( 3 − x ) 4. f ( x ) = ln ( 5 − x )
5. f ( x ) = log ( 3x + 1) 6. f ( x ) = log ( 2 x + 5)
7. f ( x ) = 3log ( − x ) + 2 8. f ( x ) = 2log ( − x ) + 1
17. 18.
Section 4.5 Graphs of Logarithmic Functions 307
19. 20.
Find a formula for the transformed logarithm graph shown.
21. 22.
23. 24.