Sub topic 14
Applications: Growth, Decay, and Compound Interest
This chapter applies the methods from the earlier chapters to real situations. You will turn a word problem into an exponential equation, solve it by taking logarithms, and check that the answer makes sense.
I assume you can already do the following:
- Solve linear and quadratic equations.
- Use the power rule,
ln(a^b) = b ln(a). - Take a logarithm of both sides of an equation.
- Use a calculator for
ln,log, and powers.
The four standard models
Almost every application in this chapter uses one of the formulas below. Learn what each symbol means, because setting up the equation is most of the work.
| Situation | Model | Symbols |
|---|---|---|
| Compound interest, n times per year | `A = P(1 + r/n)^(n·t)` | `P` starting amount, `r` annual rate as a decimal, `t` years, `A` final amount |
| Continuous compounding | `A = P·e^(r·t)` | same symbols, with `e` the natural base |
| Growth or decay with a rate constant | `N = N0·e^(k·t)` | `k > 0` for growth, `k < 0` for decay |
| Decay with a half-life | `N = N0·(1/2)^(t/h)` | `h` is the half-life, in the same units as `t` |
The models are closely related. A half-life model is a decay model with k = −ln(2)/h. Continuous compounding is the limit of the compound interest formula as n grows without bound.
A reliable setup procedure
Follow the same steps for each problem.
- Name the unknown and its units, for example "t in years".
- Pick the model and write down every known value.
- Isolate the exponential expression by dividing out the starting amount.
- Take
lnof both sides and apply the power rule. - Solve for the unknown. Keep the exact form until the last step.
- Substitute back into the original equation, then state the answer with units.
Compound interest: solving for time
Problem. You invest $5,000 at 4% annual interest, compounded monthly. How long until the account reaches $8,000?
Here P = 5000, A = 8000, r = 0.04, and n = 12. The unknown t is in the exponent.
8000 = 5000(1 + 0.04/12)^(12t)
1.6 = (1 + 1/300)^(12t)
ln(1.6) = 12t · ln(1 + 1/300)
t = ln(1.6) / (12 · ln(1 + 1/300))The exact answer is the last line. Evaluating it gives t ≈ 11.77 years.
A check by substitution: 12 × 11.77 = 141.24. Then (1.003333)^141.24 ≈ 1.6, which gives 5000 × 1.6 = 8000. The result is consistent.
The following function does the same calculation for any inputs. Passing n=None selects continuous compounding.
import math
def years_to_reach(P, A, r, n=None):
"""Years for principal P to grow to A at annual rate r.
n is the number of compounding periods per year; None means continuous."""
if P <= 0 or A <= 0 or r <= 0:
raise ValueError("P, A, and r must be positive")
if n is None:
return math.log(A / P) / r
return math.log(A / P) / (n * math.log(1 + r / n))
print(round(years_to_reach(5000, 8000, 0.04, 12), 2)) # 11.77
print(round(years_to_reach(1, 2, 0.05), 2)) # 13.86The second line is a doubling time. For continuous growth, 2 = e^(rt) gives t = ln(2)/r. The doubling time depends only on the rate, not on the starting amount. At 5% it is ln(2)/0.05 ≈ 13.86 years.
Compound interest: solving for the rate
When the unknown rate sits in the base, you can undo the exponent with a root instead of a logarithm.
Problem. $2,000 grows to $2,600 in 5 years, compounded annually. What is the rate?
2600 = 2000(1 + r)^5
1.3 = (1 + r)^5
1 + r = 1.3^(1/5)
r = 1.3^(1/5) − 1 ≈ 0.0539The annual rate is about 5.39%. Taking ln also works. The equation ln(1.3) = 5·ln(1 + r) gives 1 + r = e^(ln(1.3)/5), which is the same value.
Growth from two data points
Sometimes the problem gives no rate. You must find the constant k from two measurements first.
Problem. A bacteria culture grows from 1,200 cells to 1,800 cells in 3 hours. Assume N = N0·e^(kt). Find k and the doubling time.
1800 = 1200·e^(3k)
1.5 = e^(3k)
3k = ln(1.5)
k = ln(1.5)/3 ≈ 0.1352 per hourFor doubling, solve 2 = e^(kt), so t = ln(2)/k ≈ 0.6931/0.1352 ≈ 5.13 hours.
Note that k is a rate per hour, so t comes out in hours. Mixing units, such as a k per hour with a t in minutes, is a frequent source of wrong answers.
Decay and half-life
Problem. A fossil has 30% of its original carbon-14. The half-life of carbon-14 is 5,730 years. How old is the fossil?
0.30 = (1/2)^(t/5730)
ln(0.30) = (t/5730)·ln(0.5)
t = 5730 · ln(0.30)/ln(0.5)Both logarithms are negative, so the ratio is positive. That is what you want, because a time must be positive here. The result is about 9,953 years.
import math
def age_from_fraction(fraction, half_life):
"""Time elapsed when `fraction` of the original amount remains."""
if not 0 < fraction < 1:
raise ValueError("fraction must be strictly between 0 and 1")
return half_life * math.log(fraction) / math.log(0.5)
t = age_from_fraction(0.30, 5730)
print(round(t)) # 9953
print(0.5 ** (t / 5730)) # about 0.30, the check by substitutionThe ValueError is the application-level version of a domain restriction. ln(fraction) is undefined for fraction ≤ 0. A fraction of 1 or more would give a time of zero or less, which does not describe a decay that has already happened.
Checking answers in context
In pure algebra, you reject extraneous solutions by testing the domain of each logarithm. In applications there is a second filter, which is whether the answer makes sense. Run these checks every time:
- Sign. Time should usually be positive. A negative time means you set up the ratio upside down or used the wrong sign for
k. - Direction. Growth must give
A > P. Decay must give less than you started with. - Magnitude. If a 4% account takes 2 years to double, something is wrong. The rule of 70 suggests about 17 years.
- Units. The units of
tmust match the units of the rate or half-life.
Exact versus approximate answers
State the exact form when the problem asks for it, for example t = ln(1.6)/(12·ln(1 + 1/300)). Give a decimal when the problem asks for a real quantity such as years or dollars. Include the units and round sensibly. A money amount gets two decimal places. A time is often fine with two decimals, and an age from carbon dating is better rounded to the nearest ten or hundred years because the half-life itself is only an estimate.
Common errors
- Dividing the exponent incorrectly. In
1.6 = (1.003333)^(12t), the logarithm gives12t·ln(1.003333). You must divide by both12and the logarithm. - Forgetting that
ris a decimal. Use0.04, not4. - Using
ln(a + b)asln(a) + ln(b). The expressionln(1 + r/n)cannot be split. - Using a positive
kfor decay. If the model isN0·e^(kt)and the quantity shrinks, thenkis negative.
Exercise
You deposit $3,000 in an account paying 6% annual interest, compounded continuously. How long until the balance is $5,000? Give the exact expression and the answer in years to two decimal places.
Show answer
Solve 5000 = 3000·e^(0.06t). Then 5/3 = e^(0.06t), so 0.06t = ln(5/3) and t = ln(5/3)/0.06. Since ln(5/3) ≈ 0.5108, t ≈ 8.51 years.
Exercise
A medicine has a half-life of 6 hours in the bloodstream. A patient receives a dose, and a test shows 12.5% remains. How many hours have passed? Can you answer without a calculator?
Show answer
Solve 0.125 = (1/2)^(t/6). Since 0.125 = (1/2)^3, the common-base method gives t/6 = 3, so t = 18 hours. Taking logarithms gives the same result: t = 6·ln(0.125)/ln(0.5) = 18.
Exercise
A town's population is modeled by P = 8000·e^(kt). After 4 years the population is 9,500. Find k, then find when the population reaches 12,000. Give answers to two decimal places.
Show answer
From 9500 = 8000·e^(4k), 1.1875 = e^(4k), so k = ln(1.1875)/4 ≈ 0.0431 per year. For 12,000, 1.5 = e^(kt), so t = ln(1.5)/k = ln(1.5)·4/ln(1.1875) ≈ 9.41 years.