Skip to main content

Section 5.5 Logarithms

When working with any family of functions, two common tasks are finding a formula for a member of some specified family satisfying some conditions (often points on the graph), and solving equations involving members of that family. A little reflection on the last two families we studied (exponential and power functions) reveals that we did not solve equations involving exponential functions nor did we find formulas for power functions. This is because we need a way of solving for a variable in an exponent, which is exactly what logarithms are for.

Before giving the definition of a logarithm, it may be helpful to think about the difference between a power function and an exponential function one more time. (This is important, don't skip reading it!) A power function is one of the form

\begin{equation*} f(x) = kx^p. \end{equation*}

Thinking about such a function as a process applied to the input, \(x\text{,}\) we would say \(f\)

  • raises \(x\) to the \(p\)-th power, then

  • multiplies the result by \(k\text{.}\)

In order to describe what an exponential function,

\begin{equation*} g(x) = ab^x, \end{equation*}

does to \(x\text{,}\) we need the following math verb: to exponentiate \(x\) (with a given base) \(b\) means to make \(x\) the exponent of \(b\text{.}\) The we can describe what \(g\) does as

  • exponentiates \(x\) given a base of \(b\text{,}\) then

  • multiplies the result by \(a\text{.}\)

This distinction of what is done to \(x\) by these families is deeper than just where \(x\) is as a symbol; it tells us which operation must be applied to undo each process. In the both cases, undoing the function first involves division (by \(k\) or \(a\)). Then, in the case of a power function, you undo raising \(x\) to the \(p\)-th power by taking the \(p\)-th root (equivalently, raising to the \(\frac{1}{p}\)-th power). In the case of the exponential function, we must undo exponentiation with a logarithm.

Definition 5.5.1. The Base \(b\) Logarithm.

The logarithm, base \(b\text{,}\) of \(y\) is defined as follows:

\(x = \log_b(y)\) is the inverse function of \(y = b^{x}\text{.}\)

Other ways of conceptualizing \(\log_{b}(y)\) are as follows:

  • \(\log_{b}(b^x)=x\) and \(b^{\log_{b}(y)} = y\text{.}\)

  • The base \(b\) logarithm undoes exponentiation with base \(b\text{.}\)

  • The equation \(\log_b(y) = x\) is equivalent to \(b^{x} = y\text{.}\)

Find the following logarithms:

  1. \(\log_{2}(32)\)

  2. \(\log_{3}\left(\frac{1}{9}\right)\)

  3. \(\log_{100}(10)\)

  4. \(\log_{b}(1)\) (no matter what \(b\) is)

Suppose that \(b>1\text{.}\) Explain why \(\log_{b}(y)\) is positive when \(y>1\) and \(\log_{b}(y)\) is negative when \(y<1\text{.}\)

Explain why \(\log_b(0)\) is undefined.

One of the major difficulties of logarithms is that they cannot easily be computed by hand unless the input is an obvious power of the base; a calculator is usually required. However, there are only two logarithms programmed into most calculators, the common logarithm and thenatural logarithm. The common logarithm has a base of ten and the natural logarithm has a base of \(e \approx 2.718\text{.}\) We will focus our use on the common logarithm. We will see in the next section that you really only need one logarithm.**

Subsection 5.5.1 Logarithm Properties and Solving Equations

Definition 5.5.5. The Common Logarithm.

The common logarithm is the base-\(10\) logarithm. That is,
\begin{equation*} \log(y) = \log_{10}(y)\text{.} \end{equation*}

Justification: We will justify the first property and leave the other two as an exercise. To justify the first property, observe that \(\log(AB)\) is the exponent of \(10\) that yields \(AB\text{,}\) i.e.

\begin{equation*} 10^{\log(AB)} = AB. \end{equation*}

If we can show that \(\log(A)+\log(B)\) has the same property, then property one will be proven. If we exponentiate \(\log(A) + \log(B)\text{,}\) then we have

\begin{equation*} 10^{(\log(A)+\log(B))} = 10^{\log(A)}10^{\log(B)} = AB. \end{equation*}

Since both \(\log(AB)\) and \(\log(A)+\log(B)\) yield \(AB\) when we exponentiate them with a base of \(10\text{,}\) we have \(\log(A)+\log(B) = \log(AB)\text{.}\)

Justify properties two and three in the same manner as property one was justified.

Use the second logarithm property and the result of 5.5.2, part (d), to show that

\begin{equation*} \log\left(\frac{1}{A}\right) = -\log(A). \end{equation*}

In this example we see why the common logarithm is the only one we really need (although the natural logarithm is the most commonly used), as well as how we can use a logarithm to solve a simple equation. Suppose we wish to know the solution to

\begin{equation*} 3^{x} = 7. \end{equation*}

The simple answer is \(x = \log_{3}(7)\text{.}\) However, we cannot get a decimal approximation of this from many calculators. We can take the common logarithm of both sides of the equation

\begin{equation*} \log(3^{x}) = \log(7). \end{equation*}

Then by property three given above (you will use this property most often), we have

\begin{equation*} x\log(3) = \log(7). \end{equation*}

Hence \(x = \dfrac{\log(7)}{\log(3)}\approx 1.77\text{.}\) In general,

\begin{equation*} \log_{b}(y) = \frac{\log(y)}{\log(b)}. \end{equation*}

Now that we are equipped with logarithms, we can solve equations involving exponential expressions.

Suppose we wish to solve the equation

\begin{equation*} 3\cdot 4^{x} = 5^{3x}. \end{equation*}

A good first step in the process is to simplify this into an equivalent equation of the form

\begin{equation*} b^{x} = \mbox{a number}. \end{equation*}

Then we can use our new tool to undo the exponentiation. Simplifying we have

\begin{align*} 3\cdot 4^{x} \amp = \amp 5^{3x}\\ \amp \updownarrow \amp \amp\text{divide by}\ 3\ \text{and}\ 5^{3x}= 125^x\\ \left(\frac{4}{125}\right)^{x} \amp = \amp \frac{1}{3}. \end{align*}

Now we take the common logarithm of both sides of the equation and use the third logarithm property to get

\begin{equation*} x\log\left(\frac{4}{125}\right) = \log\left(\frac{1}{3}\right). \end{equation*}

Then we simply divide to solve for \(x\text{:}\)

\begin{equation*} x = \frac{\log\left(\frac{1}{3}\right)}{\log\left(\frac{4}{125}\right)}. \end{equation*}

This expression for \(x\) simplifies to

\begin{equation*} x = -\frac{\log{3}}{\log{4}-\log{125}}\approx .319. \end{equation*}

Say exactly which logarithm properties are used in simplifying \(\frac{\log\left(\frac{1}{3}\right)}{\log\left(\frac{4}{125}\right)}\) to \(-\frac{\log{3}}{\log{4}-\log{125}}\text{.}\)

Subsection 5.5.2 Applications to Exponential and Power Functions

Now we are equipped to handle some problems involving exponential and power functions.

Suppose the balance in a bank account begins at \(\$13,000\) and earns \(2.2\%\) interest per year. When will there be \(\$20,000\) in the account?

First, we need to find a formula for the amount \(A\) in the account, in dollars, as a function of the time \(t\text{,}\) in years. We can quickly determine this to be

\begin{equation*} A = 13000(1.022)^{t}. \end{equation*}

Now we are faced with solving the equation

\begin{equation*} 13000(1.022)^t = 20000. \end{equation*}

Quick simplification and application of the technique from the previous section gives us

\begin{align*} (1.022)^t \amp = \amp \frac{20}{13}\\ \amp \updownarrow \amp \\ \log((1.022)^t)) \amp = \amp \log\left(\frac{20}{13}\right)\\ \amp \updownarrow \amp \\ t\log(1.022) \amp = \amp \log\left(\frac{20}{13}\right) \\ \amp \updownarrow \amp \\ t \amp = \amp \frac{\log(20)-\log(13)}{\log(1.022)} \amp \approx \amp 19.8. \end{align*}

Hence there will be \(\$20,000\) in the account in about 19.8 years.

Consider a bank account that initially begins with \(\$20,000\) and only earns a \(1.5\%\) annual interest rate. After how many years will the account from the previous example be worth more than this account? Give your answer in exact form (with logarithms) as well as a decimal approximation using a calculator.

Suppose a population of bacteria begins at 1,000 and grows at a rate of \(6\%\) per hour. What is the doubling-time of this population? First we find a formula for the population, \(P\text{,}\) as a function of time, \(t\text{,}\) in hours:

\begin{equation*} P = 1000(1.06)^t. \end{equation*}

The doubling-time will then be the time it takes for the population to be \(2,000\text{,}\) so we solve:

\begin{align*} 1000(1.06)^t \amp = \amp 2000\\ \amp \updownarrow \amp \\ (1.06)^t \amp = \amp 2 \\ \amp \updownarrow \amp \\ t\log(1.06) \amp = \amp \log(2) \\ \amp \updownarrow \amp \\ t \amp = \amp \frac{\log(2)}{\log(1.06)}\amp \approx\amp 11.9. \end{align*}

Thus the population will double in about 11.9 hours.

Use some part of the solution in the previous example to explain why the doubling-time (or half-life) of an exponentially growing (or decaying) quantity is independent of its initial value. Hint: What will you always do with the initial value in the first step of solving and what new equation will you always be left with?

Find a formula for a power function \(f(x) = kx^{p}\) such that \(f(1) = 3\) and \(f(4) = 7\text{.}\) First we note that \(f(1) = k\cdot 1^{p} = k\text{.}\) Thus, \(k=3\text{.}\) We can substitute the other point and use logarithms to solve for \(p\text{:}\)

\begin{align*} 3\cdot 4^{p} \amp = \amp 7 \\ \amp \updownarrow \amp \\ 4^{p} \amp = \amp \frac{7}{3} \\ \amp \updownarrow \amp \\ p\log(4) \amp = \amp\amp \log(7)-\log(3) \\ \amp \updownarrow \amp \\ p \amp = \amp \frac{\log(7)-\log(3)}{\log(4)} \amp \approx \amp 0.611. \end{align*}

Thus the function of interest is approximately (due to approximating the logarithms) \(f(x) = 3x^{0.611}\text{.}\) Note: You should leave logarithmic expressions in exact form when possible; if you substitute decimal approximations at various steps of the problem, the error can propagate very quickly.

Answer the following questions about the last example:

  1. What mistake in the last step of solving for \(p\) might lead you to conclude \(p=1\text{?}\)

  2. Once you know \(k=3\text{,}\) how can you tell that \(p\) must be less than one without actually solving for it?