Graphs of logarithmic functions
CraigsMaths
Mathematics Teaching for Learning
Engineering Maths B, Logarithms
August 25th, 2008 by Craig Rose
Permalink: http://www.craigsmaths.com/ea003-engineering-mathematics-b/graphs-of-logarithmic-functions/
By comparing logarithmic functions with the simple form it is easy to sketch their graphs using a transformational approach.
The simple logarithmic function
First take a look at the simplest logarithmic function and it’s graph:
where
and
.

Simple log function
The key points to note about this function and sketch are:
- There is a vertical asymptote at

- The x-intercept is at

. That is 
for
is negative
for
is positive
A further feature to note is that
is the inverse function of
and thus a refection in
. This can be applied to all the logarithmic functions as an alternative way to plot them.

The logarithm is the inverse of the exponent
For the purposes of comparison we take
to be Euler’s number. This is useful for many real world applications. An alternative notation for
is
.
The general logarithmic functions
A general form can be expressed as:

Comparing this with the simple case we can observe the various transformations resulting.
Dilation in the y-direction (
)
is a dilation (stretched or compressed) in the y-direction. For
the graph will be stretched and for
it will compress. If
then the graph will dilate and be reflected in the x-axis. The x-intercept will always be at
and the asymptote at
.

Dilation in the positive y-direction

Dilation in the y-direction and reflection in x-axis
Dilation in the x-direction (
)
is a dilation (stretched or compressed) in the x-direction. For
the graph will be stretched and for
it will compress. If
then the graph will dilate and be reflected in the y-axis. The x-intercept will be at the point
.

Dilation in the positive x-direction

Dilation in x-direction with reflection
Translation in the x-direction (
)
When
the entire graph will translate
units to the right. When
the entire graph will translate
units to the left. The asymptote then becomes
and the x-intercept is
.

Translation in x-direction
Translation in the y-direction (
)
When
the entire graph will translate
units up. When
the entire graph will translate
units down. The asymptote remains at
and the x-intercept is
.

Translation in y-direction
Sketching the graph
Find the x-intercept
There will always be an x-intercept. This is found by solving
for
. When solving this remember that
is another form of
.
Is there y-intercept?
Substituting
there is only a real solution for
when
.
Find the y-intercept?
Calculate
for
.
Find the asymptote
The asymptote will beĀ the vertical line
.
Apply any reflections
Recall that
will reflect the simple logarithmic function in the x-axis and
is the reflection in the y-axis.
Sketch the graph
Now you have enough information to do the sketch. To give a better concept of the shape of the graph you may want to sketch in some calculated points as well. One at
(the base) would be useful.
Sketch the asymptote as a dotted line.
November 4th, 2008 at 5:15 pm
thanks for the help
just wondering, what will graphs look like with different bases
e.g. log( base 2) x compared to log (base 3)x and log (base 4) x
November 5th, 2008 at 7:51 pm
The key feature that identifies the base from a sketch is the point where
. For the simple log function (no transformations) this will be at
. As the log of the base is equal to 1. In other words
.