topic badge
New Zealand
Level 7 - NCEA Level 2

Intro to Log Functions

Lesson

Describing the log function

The function that assigns to $y$y the logarithm of $x$x is called the logarithm function. It is described by the equation $y=\log_b\left(x\right)$y=logb(x) where the argument $x$x is restricted to the domain of positive reals and the base $b$b is any positive real number not equal to $1$1.

If the base $b$b is greater than $1$1 then the function monotonically increases across the entire domain $x>0$x>0. For $00<b<1 the function monotonically decreases across its domain. 

 

The graph of a log function

Because the logarithm of $1$1 is $0$0, irrespective of the base used, then the curve of all log functions of the form $y=\log_b\left(x\right)$y=logb(x) intersects the $x$x axis at $(1,0)$(1,0).  

The following graph shows $y=\log_2\left(x\right)$y=log2(x)  and $y=\log_{\frac{1}{2}}\left(x\right)$y=log12(x) illustrating the distinctive shape of the log curve.

Two particular log curves from the family of log functions with $b>1$b>1 are shown below. The red curve is the curve of the function $f(x)=\log_2\left(x\right)$f(x)=log2(x), and the blue curve is the curve of the function $g(x)=\log_4\left(x\right)$g(x)=log4(x).

The two points shown on each curve shown help explain the way the gradient of the curve changes as $b$b increases in value. 

At $x=16$x=16 we have $f(16)=\log_2\left(16\right)=4$f(16)=log2(16)=4 because $2^4=16$24=16. We also have $g(16)=\log_4\left(16\right)=2$g(16)=log4(16)=2 again because $4^2=16$42=16. Using the same reasoning, at $x=\frac{1}{16}$x=116 we have $f(\frac{1}{16})=-4$f(116)=4 and $g(\frac{1}{16})=-2$g(116)=2

More generally we can understand the shape of any log curve by reminding ourselves that if the $x$x values grow geometrically in powers (for example $2^0,2^1,2^2,2^3,2^4,2^5...$20,21,22,23,24,25...), then the corresponding $y$y values (the logarithms of $x$x) grow arithmetically (for example $0,1,2,3,4,5...$0,1,2,3,4,5...).

In a way, we can think of the log function as that function that transforms a geometric world into an arithmetic world - a world of exponents where the vertical $y$y numbers are added and subtracted when the horizontal $x$x numbers are multiplied and divided. In fact, even though the log function wasn't mathematically defined until much later, this transformation was the key idea that Henry Briggs identified when he invented his base $10$10 logarithms in 1620.

 

Features to keep in mind

For all allowable values of $b$b the function $y=\log_b\left(x\right)$y=logb(x) has a vertical asymptote at $x=0$x=0. This means that there is no $y$y intercept - as $x$x approaches $0$0, the function approaches the $y$y axis but never arrives there.

The curves of log functions have no horizontal asymptote. If they are growing, they keep growing, but growing at an ever slowing pace. If they are falling, they keep falling, but falling at an ever slowing pace. We could say mathematically that, for $b>1$b>1 as $x\rightarrow\infty$x,  $y\rightarrow\infty$y and for $00<b<1 as $x\rightarrow\infty$x,  $y\rightarrow-\infty$y.

Any table of values normally show the $x$x values increasing exponentially as numbers of the form $b^k$bk. For example, to draw $y=\log_{10}\left(x\right)$y=log10(x) you might construct a table of values with the $x$x values as $10^{-3},10^{-2},10^{-1},10^0,10^1,10^2,10^3$103,102,101,100,101,102,103 and the corresponding $y$y values as $-3,-2,-1,0,1,2,3$3,2,1,0,1,2,3.  

 

Why define a log function?

This leads us to discussing some of the ways the logarithm function is used in the modern world. One common application concerns the construction of measurement scales where exponential increases of some physical phenomenon are translated into strictly linear scales.

The Richter scale for measurement of earthquake intensity is a logarithmic scale. An earthquake measuring $6$6 on the Richter scale will have a shaking amplitude (the amplitude of a wave created by a seismograph) $10$10 times that for an earthquake measuring $5$5 on the Richter scale. Further more, the energy ratio between an earthquake of Richter scale $R+1$R+1 and $R$R is $10\sqrt{10}\approx31.623$101031.623, so that the energy release of a Richter $6$6 earthquake is over $31$31 times that of a Richter $5$5 earthquake and exactly a thousand times ( $10\sqrt{10}\times10\sqrt{10}$1010×1010) a Richter $4$4 earthquake.  

As another example, the loudness of a sound, measured in decibels, is a logarithmic scale. For example, suppose a jackhammer has a loudness measure of $120$120 decibels and a normal conversation has a loudness measure of $60$60 decibels. The ratio of the intensity of these two sounds is given by $10^{\frac{120-60}{10}}$101206010. In other words a jackhammer is a million times more intense than a normal conversation.

In both the earthquake and loudness measures the log scale becomes a manageable linear scale for  exponential phenomena. Of course, you can draw erroneous conclusions when comparing two log scale measurements if you are not aware that they are based on a log scale. For example one could easily think that a jackhammer was twice the intensity of a normal conversation if you were not aware of the specific scaling method used.

    

Worked Examples

Question 1

Consider the function $y=\log_4x$y=log4x, the graph of which has been sketched below.

Loading Graph...

  1. Complete the following table of values.

    $x$x $\frac{1}{16}$116 $\frac{1}{4}$14 $4$4 $16$16 $256$256
    $y$y $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  2. Determine the $x$x-value of the $x$x-intercept of $y=\log_4x$y=log4x.

  3. How many $y$y-intercepts does $\log_4x$log4x have?

  4. Determine the $x$x value for which $\log_4x=1$log4x=1.

Question 2

We are going to sketch the graph of $y=\log_2x$y=log2x.

  1. Complete the table of values for $y=\log_2x$y=log2x.

    $x$x $\frac{1}{2}$12 $1$1 $2$2 $4$4 $16$16
    $y$y $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  2. Plot the first four points found in part (a) on the graph.

    Loading Graph...

    The first point, $\left(\frac{1}{2},-1\right)$(12,1), has been plotted for you.

  3. Now plot the function $y=\log_2x$y=log2x by moving the asymptote and the two other points to appropriate positions.

    Loading Graph...

Question 3

Consider the function $y=\log_4x$y=log4x.

  1. Complete the table of values.

    $x$x $\frac{1}{1024}$11024 $\frac{1}{4}$14 $1$1 $4$4 $16$16 $256$256
    $y$y $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  2. Consider the behaviour of $\log_4x$log4x as $x$x changes.

    Which of the following statements is correct?

    $y=\log_4x$y=log4x is a decreasing function.

    A

    $y=\log_4x$y=log4x is an increasing function.

    B

    $y=\log_4x$y=log4x increases in some intervals of $x$x, and decreases in others.

    C
  3. What value does $\log_4x$log4x approach as $x$x approaches $0$0?

    $-4$4

    A

    0

    B

    $-\infty$

    C
  4. What happens when $x=0$x=0?

    $y=-\infty$y=

    A

    $y=-4$y=4

    B

    $y$y is undefined

    C

Outcomes

M7-2

Display the graphs of linear and non-linear functions and connect the structure of the functions with their graphs

91257

Apply graphical methods in solving problems

What is Mathspace

About Mathspace