Paul's Online Notes
Paul's Online Notes
Home / Calculus I / Review / Logarithm Functions
Show Mobile Notice Show All Notes Hide All Notes
Mobile Notice
You appear to be on a device with a "narrow" screen width (i.e. you are probably on a mobile phone). Due to the nature of the mathematics on this site it is best views in landscape mode. If your device is not in landscape mode many of the equations will run off the side of your device (should be able to scroll to see them) and some of the menu items will be cut off due to the narrow screen width.

Section 1-8 : Logarithm Functions

In this section we’ll take a look at a function that is related to the exponential functions we looked at in the last section. We will look at logarithms in this section. Logarithms are one of the functions that students fear the most. The main reason for this seems to be that they simply have never really had to work with them. Once they start working with them, students come to realize that they aren’t as bad as they first thought.

We’ll start with \(b > 0\), \(b \ne 1\) just as we did in the last section. Then we have

\[y = {\log _b}x\hspace{0.5in}{\mbox{is equivalent to }}\hspace{0.5in}x = {b^y}\]

The first is called logarithmic form and the second is called the exponential form. Remembering this equivalence is the key to evaluating logarithms. The number, \(b\), is called the base.

Let's do some quick evaluations.

Example 1 Without a calculator give the exact value of each of the following logarithms.
  1. \({\log _2}16\)
  2. \({\log _4}16\)
  3. \({\log _5}625\)
  4. \({\log _9}\frac{1}{{531441}}\)
  5. \({\log _{\frac{1}{6}}}36\)
  6. \({\log _{\frac{3}{2}}}\frac{{27}}{8}\)
Show All Solutions Hide All Solutions

To quickly evaluate logarithms the easiest thing to do is to convert the logarithm to exponential form. So, let’s take a look at the first one.

a \({\log _2}16\) Show Solution

First, let’s convert to exponential form.

\[{\log _2}16 = ?\hspace{0.5in}{\mbox{is equivalent to }}\hspace{0.5in}{2^?} = 16\]

So, we’re really asking 2 raised to what gives 16. Since 2 raised to 4 is 16 we get,

\[{\log _2}16 = 4\hspace{0.5in}{\rm{because}}\hspace{0.5in}{2^4} = 16\]

We’ll not do the remaining parts in quite this detail, but they were all work in this way.


b \({\log _4}16\) Show Solution
\[{\log _4}16 = 2\hspace{0.5in}{\rm{because}}\hspace{0.5in}{4^2} = 16\]

Note the difference between the first and second logarithm! The base is important! It can completely change the answer.


c \({\log _5}625\) Show Solution
\[{\log _5}625 = 4\hspace{0.5in}{\rm{because}}\hspace{0.5in}{5^4} = 625\]

d \({\log _9}\frac{1}{{531441}}\) Show Solution
\[{\log _9}\frac{1}{{531441}} = - 6\hspace{0.25in}{\rm{because}}\hspace{0.5in}{9^{ - 6}} = \frac{1}{{{9^6}}} = \frac{1}{{531441}}\]

e \({\log _{\frac{1}{6}}}36\) Show Solution
\[{\log _{\frac{1}{6}}}36 = - 2\hspace{0.5in}{\rm{because}}\hspace{0.5in}{\left( {\frac{1}{6}} \right)^{ - 2}} = {6^2} = 36\]

r \({\log _{\frac{3}{2}}}\frac{{27}}{8}\) Show Solution
\[{\log _{\frac{3}{2}}}\frac{{27}}{8} = 3\hspace{0.5in}{\rm{because}}\hspace{0.5in}{\left( {\frac{3}{2}} \right)^3} = \frac{{27}}{8}\]

There are a couple of special logarithms that arise in many places. These are,

\[\begin{align*}\ln x & = {\log _{\bf{e}}}x\hspace{0.5in}{\mbox{This log is called the natural logarithm}}\\ \log x & = {\log _{10}}x\hspace{0.5in}{\mbox{This log is called the common logarithm}}\end{align*}\]

In the natural logarithm the base e is the same number as in the natural exponential logarithm that we saw in the last section. Here is a sketch of both of these logarithms.

Graph of \(\ln \left( x \right)\) and \(\log \left( x \right)\).  Both are increasing functions that intersect at (1,0) with \(\ln \left( x \right)\) below the graph of \(\log \left( x \right)\) to the left of (1,0) and above the graph of \(\log \left( x \right)\) to the right of (1,0).

From this graph we can get a couple of very nice properties about the natural logarithm that we will use many times in this and later Calculus courses.

\[\begin{array}{l}\ln x \to \infty {\mbox{ as }}x \to \infty \\ \ln x \to - \infty {\mbox{ as }}x \to 0,\,\,x > 0\end{array}\]

Let’s take a look at a couple of more logarithm evaluations. Some of which deal with the natural or common logarithm and some of which don’t.

Example 2 Without a calculator give the exact value of each of the following logarithms.
  1. \(\ln \sqrt[3]{{\bf{e}}}\)
  2. \(\log 1000\)
  3. \({\log _{16}}16\)
  4. \({\log _{23}}1\)
  5. \({\log _2}\sqrt[7]{{32}}\)
Show All Solutions Hide All Solutions

These work exactly the same as previous example so we won’t put in too many details.

a \(\ln \sqrt[3]{{\bf{e}}}\) Show Solution
\[\ln \sqrt[3]{{\bf{e}}} = \frac{1}{3}\hspace{0.5in}{\rm{because}}\hspace{0.5in}{{\bf{e}}^{\frac{1}{3}}} = \sqrt[3]{{\bf{e}}}\]

b \(\log 1000\) Show Solution
\[\log 1000 = 3\hspace{0.5in}{\rm{because}}\hspace{0.5in}{10^3} = 1000\]

c \({\log _{16}}16\) Show Solution
\[{\log _{16}}16 = 1\hspace{0.5in}{\rm{because}}\hspace{0.5in}{16^1} = 16\]

d \({\log _{23}}1\) Show Solution
\[{\log _{23}}1 = 0\hspace{0.5in}{\rm{because}}\hspace{0.5in}{23^0} = 1\]

e \({\log _2}\sqrt[7]{{32}}\) Show Solution
\[{\log _2}\sqrt[7]{{32}} = \frac{5}{7}\hspace{0.5in}{\rm{because}}\hspace{0.5in}\sqrt[7]{{32}} = {32^{\frac{1}{7}}} = {\left( {{2^5}} \right)^{\frac{1}{7}}} = {2^{\frac{5}{7}}}\]

This last set of examples leads us to some of the basic properties of logarithms.

Properties

  1. The domain of the logarithm function is \(\left( {0,\infty } \right)\). In other words, we can only plug positive numbers into a logarithm! We can’t plug in zero or a negative number.
  2. The range of the logarithm function is \(\left( { - \infty ,\infty } \right)\).
  3. \({\log _b}b = 1\)
  4. \({\log _b}1 = 0\)
  5. \({\log _b}{b^x} = x\)
  6. \({b^{{{\log }_b}x}} = x\)

The last two properties will be especially useful in the next section. Notice as well that these last two properties tell us that,

\[f\left( x \right) = {b^x}\hspace{0.5in}{\rm{and }}\hspace{0.5in}g\left( x \right) = {\log _b}x\]

are inverses of each other.

Here are some more properties that are useful in the manipulation of logarithms.

More Properites

  1. \({\log _b}xy = {\log _b}x + {\log _b}y\)
  2. \(\displaystyle {\log _b}\left( {\frac{x}{y}} \right) = {\log _b}x - {\log _b}y\)
  3. \({\log _b}\left( {{x^r}} \right) = r{\log _b}x\)

Note that there is no equivalent property to the first two for sums and differences. In other words,

\[\begin{align*}{\log _b}\left( {x + y} \right) & \ne {\log _b}x + {\log _b}y\\ {\log _b}\left( {x - y} \right) & \ne {\log _b}x - {\log _b}y\end{align*}\]
Example 3 Write each of the following in terms of simpler logarithms.
  1. \(\ln {x^3}{y^4}{z^5}\)
  2. \(\displaystyle {\log _3}\left( {\frac{{9{x^4}}}{{\sqrt y }}} \right)\)
  3. \(\displaystyle \log \left( {\frac{{{x^2} + {y^2}}}{{{{\left( {x - y} \right)}^3}}}} \right)\)
Show All Solutions Hide All Solutions

What the instructions really mean here is to use as many of the properties of logarithms as we can to simplify things down as much as we can.

a \(\ln {x^3}{y^4}{z^5}\) Show Solution

Property 6 above can be extended to products of more than two functions. Once we’ve used Property 6 we can then use Property 8.

\[\begin{align*}\ln {x^3}{y^4}{z^5} & = \ln {x^3} + \ln {y^4} + \ln {z^5}\\ & = 3\ln x + 4\ln y + 5\ln z\end{align*}\]

b \(\displaystyle {\log _3}\left( {\frac{{9{x^4}}}{{\sqrt y }}} \right)\) Show Solution

When using property 7 above make sure that the logarithm that you subtract is the one that contains the denominator as its argument. Also, note that that we’ll be converting the root to fractional exponents in the first step.

\[\begin{align*}{\log _3}\left( {\frac{{9{x^4}}}{{\sqrt y }}} \right) & = {\log _3}9{x^4} - {\log _3}{y^{\frac{1}{2}}}\\ & = {\log _3}9 + {\log _3}{x^4} - {\log _3}{y^{\frac{1}{2}}}\\ & = 2 + 4{\log _3}x - \frac{1}{2}{\log _3}y\end{align*}\]

c \(\displaystyle \log \left( {\frac{{{x^2} + {y^2}}}{{{{\left( {x - y} \right)}^3}}}} \right)\) Show Solution

The point to this problem is mostly the correct use of property 8 above.

\[\begin{align*}\log \left( {\frac{{{x^2} + {y^2}}}{{{{\left( {x - y} \right)}^3}}}} \right) & = \log \left( {{x^2} + {y^2}} \right) - \log {\left( {x - y} \right)^3}\\ & = \log \left( {{x^2} + {y^2}} \right) - 3\log \left( {x - y} \right)\end{align*}\]

You can use Property 8 on the second term because the WHOLE term was raised to the 3, but in the first logarithm, only the individual terms were squared and not the term as a whole so the 2’s must stay where they are!

The last topic that we need to look at in this section is the change of base formula for logarithms. The change of base formula is,

\[{\log _b}x = \frac{{{{\log }_a}x}}{{{{\log }_a}b}}\]

This is the most general change of base formula and will convert from base \(b\) to base \(a\). However, the usual reason for using the change of base formula is to compute the value of a logarithm that is in a base that you can’t easily deal with. Using the change of base formula means that you can write the logarithm in terms of a logarithm that you can deal with. The two most common change of base formulas are

\[{\log _b}x = \frac{{\ln x}}{{\ln b}}\hspace{0.5in}{\rm{and}}\hspace{0.5in}{\rm{lo}}{{\rm{g}}_{\rm{b}}}x = \frac{{\log x}}{{\log b}}\]

In fact, often you will see one or the other listed as THE change of base formula!

In the first part of this section we computed the value of a few logarithms, but we could do these without the change of base formula because all the arguments could be written in terms of the base to a power. For instance,

\[{\log _7}49 = 2\hspace{0.5in}{\rm{because}}\hspace{0.5in}{7^2} = 49\]

However, this only works because 49 can be written as a power of 7! We would need the change of base formula to compute \({\log _7}50\).

\[{\log _7}50 = \frac{{\ln 50}}{{\ln 7}} = \frac{{3.91202300543}}{{1.94591014906}} = 2.0103821378\]

OR

\[{\log _7}50 = \frac{{\log 50}}{{\log 7}} = \frac{{1.69897000434}}{{0.845098040014}} = 2.0103821378\]

So, it doesn’t matter which we use, we will get the same answer regardless of the logarithm that we use in the change of base formula.

Note as well that we could use the change of base formula on \({\log _7}49\) if we wanted to as well.

\[{\log _7}49 = \frac{{\ln 49}}{{\ln 7}} = \frac{{3.89182029811}}{{1.94591014906}} = 2\]

This is a lot of work however, and is probably not the best way to deal with this.

So, in this section we saw how logarithms work and took a look at some of the properties of logarithms. We will run into logarithms on occasion so make sure that you can deal with them when we do run into them.