Skip to main content

Unit 1.4 Exponential and logarithmic relationships

Taking a break from heady stuff, let’s do some quick computations with logs.
The log cheatsheet is there to encourage you to use logs for quick computations. The squares and powers of two are just for fun (OK it was written by geeks). We’re going to take a quick break from concepts to get the hang of computing with logs.

Example 1.11.

What is the probability of getting all sixes when rolling 10 six-sided dice? It’s 1 in \(6^{10} \) but how big is that? If we use base-10 logs, we see that
\begin{equation*} \log_{10} (6^{10}) = 10 \log_{10} 6 = 10 (\log_{10} (2) + \log_{10} (3)) \approx 10 (.78) = 7.8 \text{.} \end{equation*}
So the number we’re looking for is approximately \(10^{7.8} \) which is \(10^7 \times 10^{0.8} \) or \(10,000,000 \) times a shade over \(10^{.78} \text{,}\) this latter quantity being very close to 6 according to the one-digit logs you computed. So we’re looking at a little over sixty million to one odds against.

Checkpoint 31.

Roughly how big is \(5^{11} \text{?}\) Just one significant digit is fine.
Answer.
\(8.1\times 10^{7}\)
These are not just random examples, it is always the best way to get a quick idea of the size of a large power. When the base is 10 we already know how many digits is has, but when the base is something else, we quickly compute \(\log_{10} (b^a) = a \cdot \log_{10} (b) \text{.}\)

Example 1.12.

Why is the value \(\ln (10) \approx 2.3 \) on your log cheatsheet so important? It converts back and forth between natural and base-10 logs. Remember, \(\log_{10} x = \ln x / \ln 10 \text{.}\) Thus the constant \(\ln 10 \) is an important conversion constant that just happens to be closer than it looks (the actual value is \(2.302\ldots\)). So for example,
\begin{equation*} e^8 \approx 10^{8 / 2.3} \approx 10^{3.5} = 1000 \times 10^{0.5} \approx 3,000 \, . \end{equation*}

Checkpoint 32.

A certain astronomical computation yields the number \(e^{24} \text{.}\) How many digits will this be? (Meaning, how many digits before the decimal point.)
Answer.
\(11\)
Recall in the definition of \(e \text{,}\) the slope of the graph \(e^x \) at \((0,1) \) is 1, therefore the tangent line approximation is
\begin{equation*} e^x \approx 1+x\ . \end{equation*}
This approximation is very good when \(x \lt 0.1 \text{.}\) Converting to logs gives the version
\begin{equation*} x\approx\ln(1+x)\ , \end{equation*}
which the following example illustrates the utility of.

Example 1.13.

Suppose, your company grows in value by 6% each year for 20 years. By what factor \(C \) does the value increase over this time? The answer is \(1.06^{20} \text{,}\) but about how big is that? For a quick answer, take logs. Using the fact that \(\ln 1.06 \approx 0.06 \) (that’s the logarithmic version of our estimate, with \(x=.06\)), we see that \(\ln C = \ln (1.06^{20}) \approx 20 \times 0.06 = 1.2 \text{.}\) We’d rather have this in base ten, so we compute
\begin{equation*} \log_{10} C = \ln C / \ln 10 \approx \ln C / 2.3 \approx 1.2 / 2.3 \approx 0.5\ , \end{equation*}
maybe a little bigger like \(0.52 \) or so. Looking at the log cheatsheet shows this means \(C \) should be between 3 and 4, somewhat closer to 3. In fact to two significant figures, the growth factor is 3.2.

Checkpoint 33.

Historical economists look at real (inflation-adjusted) growth rates over periods of a century or more. If the real annual growth rate averages 2%, what should be the growth factor over the century and a half from 1870 to 2020? Use the method given in Example 1.13 and answer with a whole number.
Now use a calculator to compute the exact answer, accurate to one decimal place.
Answer 1.
\(20\)
Answer 2.
\(19.5\)

The multiplicative frame.

If you ask someone to state a relationship between the numbers 20 and 30, the most common answer is that 30 is ten more than 20. A more fundamental answer is that 30 is 50% more, or equivalently that 30 is three halves of 20.

Aside

The section on proportionality is designed to emphasize multipicative thinking over additive thinking. Additive thinking is more common only because we find it computationally easier to add than to multiply. Saying that multiplicative thinking is more fundamental is not a precise mathematical statement, so there’s no way to prove it. One reason to believe it is that multiplicative statements remain the same no matter what units you use (as long as the 30 and the 20 are in the same units).

Checkpoint 34.

A small city has 40,000 households. To organize an emergency response system, the city wants to organize groups of households on a scale “halfway between the individual household and entire city scale.” What size of groups of households best fulfills this?
Exponentials and logarithms are built to express multiplicative facts. In fact the additive laws of exponentiation and logarithms basically convert multiplicative facts to additive facts, thereby converting the more fundamental fact to the type you can compute more easily.
Much of what you learn on topic of exponential and logarithmic relationships involves questions such as:
If you observe that \(\ln x \) has increased by about \(0.7 \text{,}\) what does this mean about the increase that has occurred in \(x \text{?}\)
A tip about setting up equations representing functional relationships: when a quantity has different values at different times such as "before" and "after", using one variable to represent both quantities can lead to mess and confusion. Better to use different names such as \(x_1 \) and \(x_2 \text{,}\) or \(x_{\rm init} \) and \(x_{\rm final} \text{,}\) or possibly \(x \) and \(x' \text{,}\) etc. Using this idea on the question above sets up an equation like this: \(\ln x_2 \approx \ln x_1 + 0.7 \text{.}\) From here, exponentiating leads to
\begin{equation*} x_2 \approx e^{\ln x_1 + 0.7} = x_1 \cdot e^{0.7} \approx 2 x_1 \, . \end{equation*}
So, if you observe \(\ln x \) increasing by about 0.7, you will know that \(x \) had approximately doubled. This is what it means that logarithms transfer multiplicative scales to additive ones. A multiplicative relation such as doubling transfers to an additive relation, namely addition of about 0.7.

Checkpoint 35.

When \(x\) triples, what happens to the base-ten log of \(x \text{?}\)
  • The base-10 log of \(x\) triples.
  • The base-10 log of \(x\) is cubed.
  • The base-10 log of \(x\) is divided by 3.
  • The base-10 log of \(x\) increases by about .477.
  • The base-10 log of \(x\) increases by about 1.099.
  • It depends on what \(x\) is.
What about the natural log of \(x \text{?}\)
  • The natural log of \(x\) triples.
  • The natural log of \(x\) is cubed.
  • The natural log of \(x\) is divided by 3.
  • The natural log of \(x\) increases by about .477.
  • The base-10 log of \(x\) increases by about 1.099.
  • It depends on what \(x\) is.
If \(\ln x\) has tripled, what has happened to \(x \text{?}\)
Answer 1.
\(\text{Choice 4}\)
Answer 2.
\(\text{Choice 5}\)
Answer 3.
\(\text{Choice 2}\)
One more thing to keep in mind about logarithms and exponentials is that they do not scale with units. If we change the units of \(x \) from inches to centimeters, and if \(y = e^x \text{,}\) then in the new units \(y' = e^{2.54 x'} = y^{2.54} \text{.}\) The new exponential appears to be the old one to the 2.54 power. What does that even mean? It is a tipoff that \(x \) should not be exponentiated: anything other than a unitless constant is likely to be meaningless when exponentiated. The same is true for logarithms and trig functions.
If \(\log x \) increases at a constant additive rate, then \(x \) increases at a constant multiplicative rate. What does this mean?
If a quantity \(Q \) increases at a constant additive rate, it means that if you wait one unit of time, \(Q \) always increases by the same additive amount. In fact, between any two times \(s \) and \(t \) the increase will be \(c (t-s) \text{.}\)

Checkpoint 36.

If \(Q\) increases at a constant additive rate, what are the units of \(c \text{?}\)
Answer.
\(\text{Choice 2}\)
If a quantity \(Q \) increases at a constant multiplicative rate, it means waiting one unit of time always multiples \(Q \) by the same amount, and in general, between times \(s \) and \(t \text{,}\) the factor by which \(Q \) increases will be \(c^{t-s} \) where \(c \) is the factor by which \(Q \) increases in one unit of time.

Checkpoint 37.

If \(Q\) increases at a constant multiplicative rate, what are the units of \(c \text{?}\)
Answer.
\(\text{Choice 5}\)
To get back to the question of what it means about logs relating additive to multiplicative growth, if \(\log x = a + bt \) (constant additive growth over time) then \(x = e^{a + bt} = e^a e^{bt} = A B^t \) where \(A = e^a \) and \(B = e^b \text{.}\) This is constant multiplicative growth.
Constant multiplicative growth rates occur in a lot of applications. This is also called exponential growth because the formula for a quantity growing multiplicatively is \(A e^{bt} \) (also \(e^{a+bt} \) or \(A B^t\)). When \(b \lt 0 \text{,}\) it is called exponential decay or decrease.
Here are a few examples.
Equilibrating temperatures
If an item is hotter or colder than its environment then the temperature difference between the object and its environment, as a function of time, decreases exponentially.
This is known as Newton’s Law of Cooling.
Accumulating money
At a fixed interest rate, money grows exponentially. So, unfortunately does debt (just put a minus sign on the money).
Population
Populations tend to grow this way (again unfortunately, in most cases).
Radioactive substances
decay exponentially.
DNA
The portion of DNA remaining unmutated decays exponentially.
Present value analysis
If there is a fixed discount rate, there is exponential decrease of the present value for revenue at future times.
Time series data
Not always, but often, the correlation decays exponentially.
If we get to assume a nice clean exponential model, and can observe at more than one time point, then exponential growth/decay models are nearly as easy to solve as linear growth models (a highlight of eighth grade math). You should learn this both conceptually and as a mindless skill. In Math 104, this is taught as an elementary example of differential equations. We’ll get to those next semester, but really this kind of growth/decay model is far more fundamental and should be discussed now. Here’s an example of how the computation goes.

Example 1.14.

A viral infection is spreading exponentially through the community. On the first day that the outbreak had a name, there were 25 infections. A week later there were 40 infections. How many infections will there be in another two weeks? When will the number of infections reach 200,000, which is the size of the entire local population?
Solution #1 (plug in logs)
Let \(N(t) \) denote the number of infections after \(t \) weeks. Our model is \(N(t) = A e^{bt} \text{.}\) The given information is that plugging in \(t=0 \) and \(t=1 \) give \(N = 25 \) and \(N=40 \) respectively. Because \(e^0 = 1 \text{,}\) we have \(25 = A \text{,}\) while \(40 = A e^b \text{.}\) This gives \(e^b = 40/25 = 8/5 \text{,}\) hence \(b = \ln (8/5) \text{.}\) In another two weeks we will have \(t=3 \text{,}\) so
\begin{equation*} N(3) = 25 e^{3 \ln (8/5)} \, . \end{equation*}
When \(N=200,000 \) we have \(25 e^{t \log (8/5)} = 200,000 \) hence
\begin{equation*} e^{t \ln (8/5)} = \frac{200,000}{25} = 8,000 \text{ hence } t = \frac{\ln 8000}{\ln (8/5)} \approx 19.12\, . \end{equation*}
Solution #2 (growth factor)
If we use the growth factor \(B \) in the equation \(A B^t \) instead of the exponential constant \(b \) in \(A e^{bt} \) we may get away without logs. In a week the increase was from 25 to 40, a factor of \(8/5 \) so clearly \(B = 8/5 \text{.}\) Thus \(N = 25 (8/5)^t \text{.}\) In three weeks we have \(N(3) = 25 (8/5)^3 = 512/5 = 102.5 \text{.}\) Evidently the expression \(25 e^{3 \ln (8/5)} \) can be simplified! The time needed to get to 200,000, a growth factor of 8000, is \(t \) such that \((8/5)^t = 8000 \text{.}\) This is, by definition \(\log_{8/5} 8000 \text{,}\) which is equal to \(\log_b 8000 / \log_b (8/5) \) for any base \(b\text{.}\) If we pick \(b=10\text{,}\) we get
\begin{equation*} t = \frac{\log 8000}{\log (8/5)}\approx 19.12 \, . \end{equation*}
Notice that that the answer given by plugging in logs is a special case of the growth factor approach, using base \(e \text{.}\) But the ratio of two logs is the same in any base! In Solution 2, we can use what we know about \(\log_{10}\) to compute
\begin{equation*} \frac{\log 8000}{\log (8/5)}=\frac{\log 8 + \log 1000}{\log 8 -\log 5}=\frac{\log 8 + 3}{\log 8 -\log 5} \end{equation*}
Having converted everything to logs of single digits, we can approximate by
\begin{equation*} 3.9 / (0.9 - 0.7) = 19.5 \text{.} \end{equation*}
So it should take between nineteen and twenty weeks to saturate the city. That’s close enough to the more precise answer that we obtained from a calculator.

Checkpoint 38.

Is exponential growth a more realistic model when a small portion of the population is infected or when a large portion is infected?
The following exercises are a little more involved than the usual self-check exercise. It will be more readily solved if you realize that computations in the exponential model for equilibrating temperatures work better if you keep track of the temperature difference between substance and the environment rather than the temperature of the substance on its own.

Checkpoint 39.

Turn Newton’s Law of Cooling into a symbolic equation, if \(T(t)\) is the temperature of the object and \(T_0\) is the environmental temperature.

Checkpoint 40.

Room temperature is \(70^\circ \) F. The temperature of a cup of coffee is \(205^\circ \) F (it’s from McDonald’s, where they make strikingly hot coffee). In 10 minutes it’s a barely sippable \(160^\circ \) F. About how many minutes after purchase is a cup of coffee gulpable (\(130^\circ \) F)? Body temperature (\(98.6^\circ\))? Approximate answers are fine, but please don’t forget to name your variables, give units, etc.