topic badge
CanadaON
Grade 12

Graph logarithms

Lesson

Evaluating logarithms

Recall that a logarithmic equation of the form $\log_ba=c$logb​a=c is equivalent to an exponential equation of the form $b^c=a$bc=a. That is, the value of the logarithm $\log_ba$logb​a is "the power which $b$b must be raised to in order to give $a$a".

Using this, if $a$a is a rational power of $b$b then we can simplify the logarithm nicely. For example,

$\log_28=\log_2\left(2^3\right)=3$log2​8=log2​(23)=3.

In any other case, where $a$a is not a rational power of $b$b, we can use a calculator (or other technology) to approximate the value. In particular, we can use the logarithm property

$\log_ba=\frac{\log_na}{\log_nb}$logb​a=logn​alogn​b​

to rewrite any logarithm using a base that is available on the calculator. For example,

$\log_213=\frac{\log_{10}13}{\log_{10}2}\approx3.7004$log2​13=log10​13log10​2β€‹β‰ˆ3.7004.

Β 

Graphs of the form $y=\log_bx$y=logb​x

Here is a graph of the function $y=\log_2x$y=log2​x:

Β 

The function $y=\log_2x$y=log2​x.

Β 

From the graph, we can see a few features:

  • The graph only exists for positive values of $x$x, with an asymptote along the $y$y-axis (the line $x=0$x=0).
  • The curve intersects the $x$x-axis at the point $\left(1,0\right)$(1,0).
  • The function is increasing, but at a decreasing rate.

In fact, these features are true for any function of the form $y=\log_bx$y=logb​x, where $b>1$b>1.

Β 

Graphs of the form $y=a\log_bx+k$y=alogb​x+k

As with other functions that we've looked at, we can transform the graphs of logarithms in a few ways:

  • Multiplying by a constant to get $y=a\log_bx$y=alogb​x corresponds to vertically scaling the graph by a factor of $a$a. This can also involve a reflection about the $x$x-axis if $a$a is negative. For example, here is a graph of $y=-5\log_2x$y=βˆ’5log2​x:

Β 

A graph of the function $y=-5\log_2x$y=βˆ’5log2​x.

Β 

  • Adding a constant to get $y=\log_bx+k$y=logb​x+k corresponds to vertically translating the graph by $k$k units. This translation is up if $k$k is positive and down if $k$k is negative. For example, here is a graph of $y=\log_2x+5$y=log2​x+5:

Β 

A graph of the function $y=\log_2x+5$y=log2​x+5

Β 

  • We can also obtain the graph of $y=\log_b\left(-x\right)$y=logb​(βˆ’x) which corresponds to a reflection about the $y$y-axis. For example, here is a graph of $y=\log_2\left(-x\right)$y=log2​(βˆ’x):

Β 

A graph of the function $y=\log_2\left(-x\right)$y=log2​(βˆ’x).

Β 

Note that in all of these cases, the asymptote of the function is still along the $y$y-axis. Additionally, a function of the form $y=a\log_bx$y=alogb​x still intercepts the $x$x-axis at the point $\left(1,0\right)$(1,0).

Β 

Graphs of the form $y=a\log_bx+k$y=alogb​x+k

To sketch the graph of a function of the form $y=a\log_bx+k$y=alogb​x+k, start by identifying the locations of the asymptote and the $x$x-intercept.

Then plot a couple of extra points to see the general shape of the graph.

Β 

Practice questions

QUESTION 1

Consider the function $y=3\log_2x$y=3log2​x.

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

  2. Complete the table of values for $y=3\log_2x$y=3log2​x.

    $x$x $\frac{1}{2}$12​ $1$1 $2$2 $4$4
    $y$y $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  3. State the equation of the vertical asymptote.

  4. Sketch the graph of $y=3\log_2x$y=3log2​x.

    Loading Graph...

QUESTION 2

Consider the function $y=\log_3x-1$y=log3​xβˆ’1.

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

  2. Complete the table of values for $y=\log_3x-1$y=log3​xβˆ’1.

    $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=log3​xβˆ’1.

    Loading Graph...

QUESTION 3

Consider the function $y=3\log_4\left(-x\right)$y=3log4​(βˆ’x).

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

  2. Complete the table of values for $y=3\log_4\left(-x\right)$y=3log4​(βˆ’x).

    $x$x $-16$βˆ’16 $-4$βˆ’4 $-1$βˆ’1 $-\frac{1}{4}$βˆ’14​
    $y$y $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  3. State the equation of the vertical asymptote.

  4. Sketch the graph of $y=3\log_4\left(-x\right)$y=3log4​(βˆ’x).

    Loading Graph...

Outcomes

12F.A.2.3

Determine, through investigation using technology, the roles of the parameters d and c in functions of the form y = log_10(x – d) + c and the roles of the parameters a and k in functions of the form y = alog_10(kx), and describe these roles in terms of transformations on the graph of f(x)=log_10(x)

What is Mathspace

About Mathspace