topic badge
AustraliaVIC
VCE 12 Methods 2023

4.08 Transformations of logarithms

Lesson

Transformations of the logarithmic graph $y=\log_bx$y=logbx

The logarithmic graph can be transformed in a number of ways. The following summarises and revises these transformations:

Transformations of the logarithmic function

To obtain the graph of $y=a\log_b\left(x-h\right)+k$y=alogb(xh)+k from the graph of $y=\log_bx$y=logbx:

  • $a$a dilates (stretches) the graph by a factor of $a$a from the $x$x-axis, parallel to the $y$y-axis
  • When $a<0$a<0 the graph is reflected about the $x$x-axis
  • $h$h translates the graph $h$h units horizontally, the graph shifts $h$h units to the right when $h>0$h>0 and $|h|$|h| units to the left when $h<0$h<0
  • $k$k translates the graph $k$k units vertically, the graph shifts $k$k units upwards when $k>0$k>0 and $\left|k\right|$|k| units downwards when $k<0$k<0.

 

Translations

Recall that adding a constant to a function corresponds to translating the graph vertically. So the graph of $g\left(x\right)=\log_bx+k$g(x)=logbx+k is a vertical translation of the graph of $f\left(x\right)=\log_bx$f(x)=logbx. The translation is upwards if $k$k is positive, and downwards if $k$k is negative.

Graphs of $f\left(x\right)=\log_bx$f(x)=logbx and $g\left(x\right)=\log_bx+k$g(x)=logbx+k, for $k<0$k<0.

Notice that the asymptote is not changed by a vertical translation, and is still the line $x=0$x=0. The $x$x-intercept has changed however, and now occurs at a point further along the $x$x-axis, this can be found by solving for $x$x when $y=0$y=0. The original $x$x-intercept (which was at $\left(1,0\right)$(1,0)) has now been translated vertically to $\left(1,k\right)$(1,k).

Adding a constant to the argument of a logarithmic function corresponds to translating the graph horizontally. So the graph of $g\left(x\right)=\log_b\left(x-h\right)$g(x)=logb(xh) is a horizontal translation of the graph of $f\left(x\right)=\log_bx$f(x)=logbx. The translation is to the right if $h$h is positive, and to the left if $h$h is negative.

Graphs of $f\left(x\right)=\log_b\left(x\right)$f(x)=logb(x) and $g\left(x\right)=\log_b\left(x-h\right)$g(x)=logb(xh), for $h>0$h>0.

Notice that the asymptote is changed by a horizontal translation, and is translated to the line $x=h$x=h. The $x$x-intercept has also changed, it has been translated horizontally by $h$h units and now occurs at $\left(1+h,0\right)$(1+h,0).

 

Worked example

The graphs of the function $f\left(x\right)=\log_3\left(x\right)$f(x)=log3(x) and another function $g\left(x\right)$g(x) are shown below.

 

(a) Describe the transformation used to get from $f\left(x\right)$f(x) to $g\left(x\right)$g(x).

Think: $g\left(x\right)$g(x) has the same general shape as $f\left(x\right)$f(x), just translated upwards. We can figure out how far it has been translated by looking at the distance between corresponding points.

Do: The point on $g\left(x\right)$g(x) that is directly above the $x$x-intercept of $f\left(x\right)$f(x) is at $\left(1,5\right)$(1,5), which is $5$5 units higher. In fact, we can see the constant distance of $5$5 units all the way along the function:

So $f\left(x\right)$f(x) has been translated $5$5 units upwards to give $g\left(x\right)$g(x).

 

(b) Determine the equation of the function $g\left(x\right)$g(x).

Think: We know that $f\left(x\right)$f(x) has been vertically translated $5$5 units upwards to give $g\left(x\right)$g(x). That is, the function has been increased by $5$5.

Do: This means that $g\left(x\right)=\log_3\left(x\right)+5$g(x)=log3(x)+5. This function has an asymptote at $x=0$x=0.

 

Practice questions

Question 1

Use the applet below to describe the transformation of $g\left(x\right)=\log_3x$g(x)=log3x into $f\left(x\right)=\log_3x+k$f(x)=log3x+k, where $k>0$k>0.

  1. $f\left(x\right)$f(x) is the result of a translation $k$k units to the right.

    A

    $f\left(x\right)$f(x) is the result of a translation $k$k units to the left.

    B

    $f\left(x\right)$f(x) is the result of a translation $k$k units downwards.

    C

    $f\left(x\right)$f(x) is the result of a translation $k$k units upwards.

    D

Question 2

Consider the function $y=\log_3x-1$y=log3x1.

  1. Solve for the $x$x-coordinate of the $x$x-intercept.

  2. Complete the table of values for $y=\log_3x-1$y=log3x1.

    $x$x $\frac{1}{3}$13 $1$1 $3$3 $9$9
    $y$y $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  3. State the equation of the vertical asymptote.

  4. Sketch the graph of $y=\log_3x-1$y=log3x1.

    Loading Graph...

Question 3

Use the applet below to describe the transformation of $g\left(x\right)=\log_{10}x$g(x)=log10x to $f\left(x\right)=\log_{10}\left(x-h\right)$f(x)=log10(xh), for $h<0$h<0.

  1. $f\left(x\right)$f(x) is the result of a translation $\left|h\right|$|h| units downwards.

    A

    $f\left(x\right)$f(x) is the result of a translation $\left|h\right|$|h| units to the left.

    B

    $f\left(x\right)$f(x) is the result of a translation $\left|h\right|$|h| units to the right.

    C

    $f\left(x\right)$f(x) is the result of a translation $\left|h\right|$|h| units upwards.

    D

Question 4

The graph of $f\left(x\right)=\log x$f(x)=logx (grey) and $g\left(x\right)$g(x) (black) is drawn below.

$g\left(x\right)$g(x) is a transformation of $f\left(x\right)$f(x).

Loading Graph...

  1. What sort of transformation is $g\left(x\right)$g(x) of $f\left(x\right)$f(x)?

    Horizontal translation.

    A

    Reflection.

    B

    Vertical translation.

    C

    Horizontal dilation.

    D
  2. Hence state the equation of $g\left(x\right)$g(x).

 

Vertical dilation

Recall that multiplying a function by a constant corresponds to vertically rescaling the function (stretching) from the horizontal axis. The graph of $g\left(x\right)=a\log_bx$g(x)=alogbx is a vertical dilation of the graph of $f\left(x\right)=\log_bx$f(x)=logbx if $\left|a\right|$|a| is greater than $1$1, and a vertical compression if $\left|a\right|$|a| is between $0$0 and $1$1.

Graphs of $f\left(x\right)=\log_bx$f(x)=logbx and $g\left(x\right)=a\log_bx$g(x)=alogbx, for $00<a<1.

Does this graph look familiar? How does it compare to the graph near the start of the lesson comparing logarithmic functions with different bases? In fact, we can consider a change of base as a vertical dilation. We can show the equivalence using the change of base rule, which states:

$\log_b(x)=\frac{\log_d(x)}{\log_d(b)}$logb(x)=logd(x)logd(b)

That is, if we compare the graph of $f\left(x\right)=\log_d\left(x\right)$f(x)=logd(x) to $g\left(x\right)=\log_b\left(x\right)$g(x)=logb(x), $g(x)$g(x) will be a dilation of $f(x)$f(x) by a factor of $\frac{1}{\log_d\left(b\right)}$1logd(b) from the $x$x-axis.

For example, if we compare the graphs of $f\left(x\right)=\log_2\left(x\right)$f(x)=log2(x) to $g\left(x\right)=\log_4\left(x\right)$g(x)=log4(x), we can see the graph of $g\left(x\right)$g(x) is a dilation of $f\left(x\right)$f(x) by a factor of $\frac{1}{2}=\frac{1}{\log_24}$12=1log24.

 

Reflection

If the coefficient $a$a is negative this will result in a reflection across the $x$x-axis.

Graphs of $f\left(x\right)=\log_2x$f(x)=log2x and $g\left(x\right)=-\log_2x$g(x)=log2x, example of $a=-1$a=1.

Notice that the asymptote is not changed by this type of transformation, and is still the line $x=0$x=0. The $x$x-intercept also remains unchanged, since multiplying a $y$y-coordinate of $0$0 by any constant $a$a results in $0$0.

 

Horizontal dilation

Horizontal dilations are not a focus of this course, but we will briefly consider them. From our previous work of transformations of general functions, the graph of $g\left(x\right)=\log_b\left(cx\right)$g(x)=logb(cx) can be obtained from the graph of $f\left(x\right)=\log_bx$f(x)=logbx as follows:

  • $c$c dilates (stretches) the graph by a factor of $\frac{1}{c}$1c from the $y$y-axis, parallel to the $x$x-axis

  • When $c<0$c<0 the graph is reflected about the $y$y-axis

However, with our knowledge of logarithm laws, we can treat this dilation factor as a vertical shift.

For example, $g\left(x\right)=\log_3\left(9x\right)$g(x)=log3(9x) can be rearranged using our log laws as follows:

$g\left(x\right)$g(x) $=$= $\log_3\left(9x\right)$log3(9x)
  $=$= $\log_3\left(x\right)+\log_3\left(9\right)$log3(x)+log3(9)
  $=$= $\log_3\left(x\right)+2$log3(x)+2

Hence, the graph of $g\left(x\right)$g(x) is equivalent to a vertical translation of $2$2 units upwards of the graph of $f(x)=\log_3\left(x\right)$f(x)=log3(x).

 

Practice question

Question 5

The graph of $y=\log_7x$y=log7x is shown below.

Loading Graph...

  1. What transformation of the graph of $y=\log_7x$y=log7x is needed to get the graph of $y=-3\log_7x$y=3log7x?

    Reflection across the $x$x-axis only.

    A

    Vertical compression by a factor of $3$3 and reflection across the $x$x-axis.

    B

    Vertical dilation by a factor of $3$3 and reflection across the $x$x-axis.

    C

    Vertical dilation by a factor of $3$3 only.

    D

    Vertical compression by a factor of $3$3 only.

    E
  2. Now draw the graph of $y=-3\log_7x$y=3log7x on the same plane as $y=\log_7x$y=log7x:

     

    Loading Graph...

Question 6

Consider the function $f\left(x\right)=\log_3\left(\frac{x}{9}\right)$f(x)=log3(x9).

  1. By using logarithmic properties, rewrite $\log_3\left(\frac{x}{9}\right)$log3(x9) as a difference of two terms.

    Fully simplify your answer.

  2. How can the graph of $y=f\left(x\right)$y=f(x) be obtained from the graph of $g\left(x\right)=\log_3x$g(x)=log3x.

    The graph of $y=f\left(x\right)$y=f(x) can be obtained by stretching $y=g\left(x\right)$y=g(x) vertically by a factor of $9$9.

    A

    The graph of $y=f\left(x\right)$y=f(x) can be obtained by stretching $y=g\left(x\right)$y=g(x) horizontally by a factor of $9$9.

    B

    The graph of $y=f\left(x\right)$y=f(x) can be obtained by translating $y=g\left(x\right)$y=g(x) by $2$2 units up.

    C

    The graph of $y=f\left(x\right)$y=f(x) can be obtained by translating $y=g\left(x\right)$y=g(x) by $2$2 units down.

    D

Outcomes

U34.AoS1.14

identify key features and properties of the graph of a function or relation and draw the graphs of specified functions and relations, clearly identifying their key features and properties, including any vertical or horizontal asymptotes

U34.AoS1.18

sketch by hand graphs of polynomial functions up to degree 4; simple power functions, y=x^n where n in N, y=a^x, (using key points (-1, 1/a), (0,1), and (1,a); log x base e; log x base 10; and simple transformations of these

What is Mathspace

About Mathspace