10.4: Applications of the Logarithm
- Page ID
- 121136
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)- Describe the relationships between properties of \(e^{x}\) and properties of its inverse \(\ln (x)\), and master manipulations of expressions involving both.
- Use logarithms for base conversions.
- Use logarithms to solve equations involving the exponential function, i.e. solve \(A=e^{b t}\) for \(t\).)
- Given a relationship such as \(y=a x^{b}\), show that \(\ln (y)\) is related linearly to \(\ln (x)\), and use data points for \((x, y)\) to determine the values of \(a\) and \(b\).
Using the logarithm for base conversion
The logarithm is helpful in changing an exponential function from one base to another. We give some examples here.
Rewrite \(y=2^{x}\) in terms of base \(e\).
Solution
We apply ln and then exponentiate the result. Manipulations of exponents and logarithms lead to the desired results as follows:
\[\begin{gathered} y=2^{x} \Rightarrow \ln (y)=\ln \left(2^{x}\right)=x \ln (2) . \\ e^{\ln (y)}=e^{x \ln (2)} \Rightarrow y=e^{x \ln (2)} . \end{gathered} \nonumber \]
We find (using a calculator) that \(\ln (2)=0.6931 \ldots\) This coincides with the value we computed earlier for \(C_{2}\) in Example 10.4, so we have
\[y=e^{k x} \quad \text { where } \quad k=\ln (2)=0.6931 \ldots \nonumber \]
- Why might one base be preferred over another?
Find the derivative of \(y=2^{x}\).
Solution
In Example \(10.9\) we expressed this function in the alternate form
\[y=2^{x}=e^{k x} \quad \text { with } \quad k=\ln (2) . \nonumber \]
From Example \(10.7\) we have
\[\frac{d y}{d x}=k e^{k x}=\ln (2) e^{\ln (2) x}=\ln (2) 2^{x} . \nonumber \]
Through the above base conversion and chain rule, we relate the constant \(C_{2}\) in Example \(10.4\) to the natural logarithm of 2: \(C_{2}=\ln (2)\).
The logarithm helps to solve exponential equations
Equations involving the exponential function can sometimes be simplified and solved using the logarithm. We provide a few examples of this kind.
Find zeros of the function \(y=f(x)=e^{2 x}-e^{5 x^{2}}\).
Solution
We seek values of \(x\) for which \(f(x)=e^{2 x}-e^{5 x^{2}}=0\). We write
\[e^{2 x}-e^{5 x^{2}}=0 \Rightarrow e^{2 x}=e^{5 x^{2}} \quad \Rightarrow \quad \frac{e^{5 x^{2}}}{e^{2 x}}=1 \quad \Rightarrow \quad e^{5 x^{2}-2 x}=1 . \nonumber \]
Taking logarithm of both sides, and using the facts that \(\ln \left(e^{5 x^{2}-2 x}\right)=5 x^{2}-2 x\) and \(\ln (1)=0\), we obtain
\[e^{5 x^{2}-2 x}=1 \quad \Rightarrow \quad 5 x^{2}-2 x=0 \quad \Rightarrow \quad x=0, \frac{2}{5} . \nonumber \]
We see that the logarithm is useful in the last step of isolating \(x\), after simplifying the exponential expressions appearing in the equation.
Andromeda Strain, revisited. In Section \(10.1\) we posed the question: how long does it take for the Andromeda strain population to attain a size of \(6 \cdot 10^{39}\) cells, i.e. to grow to an Earth-sized colony? We now solve this problem using the continuous exponential function and the logarithm.
Recall that the bacterial doubling time is \(20 \mathrm{~min}\). If time is measured in minutes, the number, \(B(t)\) of bacteria at time \(t\) could be described by the smooth function:
\[B(t)=2^{t / 20} . \nonumber \]
- Verify that \(B(t)\) agrees with Figure \(10.1\) and give powers of 2 at \(t=20,40,60,80, \ldots\) minutes.
- When, in general, will \(B(t)\) give a power of 2 ?
(The Andromeda strain) Starting from a single cell, how long does it take for an E. coli colony to reach size of \(6 \cdot 10^{39}\) cells by doubling every 20 minutes?
Solution
We compute the time it takes by solving for \(t\) in \(B(t)=6 \cdot 10^{39}\), as shown below.
\[\begin{gathered} 6 \cdot 10^{39}=2^{t / 20} \Rightarrow \ln \left(6 \cdot 10^{39}\right)=\ln \left(2^{t / 20}\right) \\ \ln (6)+39 \ln (10)=\frac{t}{20} \ln (2) \end{gathered} \nonumber \]
Solving for \(t\),
\[t=20 \frac{\ln (6)+39 \ln (10)}{\ln (2)}=20 \frac{1.79+39(2.3)}{0.693}=2643.4 \mathrm{~min}=\frac{2643.27}{60} \mathrm{hr} . \nonumber \]
Hence, it takes 44 hours (but less than 2 days) for the colony to "grow to the size of planet Earth" (assuming the implausible scenario of unlimited growth).
Express the number of bacteria in terms of base e (for practice with base conversions).
Solution
Given \(B(t)=2^{t / 20}\) is the number of bacteria at time \(t\), we proceed as follows:
\[\begin{aligned} & \quad B(t)=2^{t / 20} \quad \Rightarrow \quad \ln (B(t))=\frac{t}{20} \ln (2) \\ & e^{\ln (B(t))}=e^{\frac{t}{20} \ln (2)} \Rightarrow B(t)=e^{k t} \quad \text { where } \quad k=\frac{\ln (2)}{20} \text { per min. } \end{aligned} \nonumber \]
The constant \(k\) has units of \(1 /\) time. We refer to \(k\) as the growth rate of the bacteria. We observe that this constant can be written as:
\[k=\frac{\ln (2)}{\text { doubling time }} . \nonumber \]
As we see next, this approach is helpful in scientific applications.
Logarithms help plot data that varies on large scale
Living organisms come in a variety of sizes, from the tiniest cells to the largest whales. Comparing attributes across species of vastly different sizes poses a challenge, as visualizing such data on a simple graph obscures both extremes.
Suppose we wish to compare the physiology of organisms of various sizes, from that of a mouse to that of an elephant. An example of such data for metabolic rate versus mass of the animal is shown in Table 10.4.
| animal | body weight \(M(\mathrm{gm})\) | basal metabolic rate (BMR) |
|---|---|---|
| mouse | 25 | 1580 |
| rat | 226 | 873 |
| rabbit | 2200 | 466 |
| dog | 11700 | 318 |
| man | 70000 | 202 |
| horse | 700000 | 106 |
A log-log plot of this data is shown in Figure 10.8.

It would be hard to see all data points clearly on a regular graph. For this reason, it is helpful to use logarithmic scaling for either or both variables. We show an example of this kind of log-log plot, where both axes use logarithmic scales, in Figure 10.8.
In allometry, it is conjectured that such data fits some power function of the form
\[y \approx a x^{b}, \text { where } a, b>0 \]
Note: this is not an exponential function, but a power function with power \(b\) and coefficient \(a\).
Finding the allometric constants \(a\) and \(b\) using the graph in Fig \(10.8\) is now explained.
Define \(Y=\ln (y)\) and \(X=\ln (x)\). Show that (10.4.1) can be rewritten as a linear relationship between \(Y\) and \(X\).
Solution
We have
\[Y=\ln (y)=\ln \left(a x^{b}\right)=\ln (a)+\ln \left(x^{b}\right)=\ln (a)+b \ln (x)=A+b X, \nonumber \]
where \(A=\ln (a)\). Thus, we have shown that \(X\) and \(Y\) are related linearly:
\[Y=A+b X, \quad \text { where } A=\ln (a) . \nonumber \]
This is the equation of a straight line with slope \(b\) and \(Y\) intercept \(A\).
- Use software to plot the data given in Table 10.4. Why is it so hard to plot on a regular graph?
Use the straight line superimposed on the data in Figure \(10.8\) to estimate the values of the constants \(a\) and \(b\).
Solution
We use the straight line that has been fitted to the data in Figure 10.8. The \(Y\) intercept is roughly 8.2. The line goes approximately through \((20,3)\) and \((0,8.2)\) (open dots on plot) so its slope is \(\approx(3-\) 8.2) \(/ 20=-0.26\). According to the relationship we found in Example 10.14,
\[8.2=A=\ln (a) \Rightarrow a=e^{8.2}=3640, \quad \text { and } \quad b=-0.26 . \nonumber \]
Thus, reverting to the original allometric relationship leads to
\[y=a x^{b}=3640 x^{-0.26}=\frac{3640}{x^{0.26}} . \nonumber \]
From this we see that the metabolic rate \(y\) decreases with the size \(x\) of the animal, as indicated by the data in Table 10.4.


