Modeling with Exponential and Logarithmic Functions
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Fit exponential and logarithmic models from measurements with clearly stated units
- Convert between an effective period rate and a continuous exponential coefficient
- Calculate doubling times, half-lives, and thresholds in cooling models with ambient offsets
- Interpret logarithmic scales and residuals when comparing candidate models with data
- Judge interpolation and extrapolation using the physical domain and model assumptions
Fit the change between measurements
An exponential model describes a constant factor over equal time intervals. Suppose a quantity changes from units to units over two hours. The two-hour factor is . If the same factor applies in each hour, the hourly factor must be the positive square root, , because .
Two readings at distinct times determine a positive exponential model once we assume this behavior. For positive readings at times , dividing cancels the unknown starting amount:
Thus the factor per time unit and a convenient model are
The exponent measures elapsed time since the first reading. Equal readings give , a constant model. A fit through two points alone does not establish what happens at other times.
Worked example 1 Fit two readings and check a third
Problem. A culture is measured at milligrams after hours and milligrams after hours. Assume constant exponential growth. Find a model for mass , predict its mass at hours to the nearest tenth, and compare the predicted mass at hours with a separate observation of milligrams.
Solution. Four hours multiply the mass by , so . The positive hourly factor is .
Use the first measured time as the reference:
At the exponent is zero and the model returns . At it is two and returns .
At hours the model predicts
At hours it predicts mg. The observation is mg above the prediction. This third reading tests the fit instead of merely repeating one of the readings used to construct it.
The formula has algebraic domain all real , but elapsed experimental time has physical domain . Even there, the model assumes the culture’s conditions remain suitable for the same growth factor.
Check your understanding
A positive quantity changes from units at to units at . Under an exponential model, what is the factor per time unit?
The elapsed time is units and the total factor is .
The positive factor per unit is .
Rates and characteristic times
A period rate and a coefficient in an exponent describe the same model in different ways. For example, multiplies by each year, so its effective yearly rate is , the actual fraction gained over one year.
To write that very same curve as , require . Taking natural logarithms gives per year. The coefficient is not the exact yearly percentage gain.
In general, with measured in the stated period and ,
Here , so the period factor is positive. The continuous coefficient has reciprocal time units; it changes if you switch from years to months. These equal formulas describe a continuous curve. A process updated only at whole periods may use only its whole-period values.
Check your understanding
An exponential curve has an effective annual rate of . Which continuous coefficient describes the same curve when time is in years?
Match the one-year multipliers before matching the full curves.
Taking natural logarithms gives , approximately per year.
The doubling time is the time for a growing positive amount to multiply by two. The half-life is the time for a decaying positive amount to multiply by one half. For example, has half-life hours if is in hours: its values at hours are .
In the starting amount cancels when we compare with twice or half that amount. Solving or gives
For , replace by . There is no positive doubling time or half-life when .
Worked example 2 Read a rate and a doubling time
Problem. A continuous model for a signal is units, with in hours. Find its effective hourly percentage increase and its doubling time. Round the percentage and time to two decimal places.
Solution. One hour multiplies the signal by . Subtract one to find the fraction gained:
The effective increase is approximately per hour.
For doubling, divide by , then take natural logarithms:
Therefore hours. Substituting the exact time gives .
Check your understanding
A model has half-life hours. How long does it take to reach of its initial positive amount?
Reaching one quarter requires two successive halvings.
Two half-lives take hours.
Cooling toward an ambient temperature
Cooling can preserve a constant factor in the difference from the surroundings. In a room at , an object at is above room temperature. At its excess is , half as large. The absolute temperature has not halved.
If ambient temperature stays constant and the excess follows exponential decay, use
For cooling from above ambient, . Subtract before forming ratios or taking logarithms. The model stays above ambient for every finite ; it does not predict crossing below it. Changing room temperature or moving air may require a different model.
Worked example 3 Fit a cooling model and find a threshold
Problem. A drink cools in a room held at . It starts at and reaches after minutes. Assume its excess temperature decays exponentially. Find a model for and the time at which it reaches .
Solution. The excess drops from to degrees in minutes, so its half-life is minutes:
At the target, subtract the ambient first:
Divide by . The target excess is one eighth of the original, so three half-lives have passed:
Thus and minutes. Checking gives degrees.
Logarithmic models and logarithmic scales
A logarithmic model makes equal output changes correspond to equal input factors. Suppose inputs give scores . Each tripling raises the score by three. Since , , and , the rule fits the pattern.
More generally, has domain . Multiplying input by adds to the output, because . This is why a logarithmic response can rise while its gains over equal additive input steps get smaller.
Worked example 4 Build and use a logarithmic response model
Problem. A test records distortion scores when a positive resource multiplier equals , respectively. Fit a model of the form . Predict the score at and at . State which prediction lies within the measured input range.
Solution. The first reading gives
The second reading gives
Subtract the first equation from the second to eliminate :
Since , we get . The first reading then gives
Combining the two logarithms gives the equivalent model
At , the ratio is , so this model returns , checking all three readings. The negative coefficient describes a score that falls as the resource multiplier rises.
For , the ratio has base-four logarithm . Thus
This prediction lies within the measured range .
For , the ratio has base-four logarithm . Thus
This prediction extends beyond the measured range. The formula is defined there, but the trial has not tested whether the response pattern continues that far.
A logarithmic scale places equal ratios at equal distances. On a base-ten vertical scale, are equally spaced because each is ten times the last. Zero and negative values cannot appear on a logarithmic axis.
A semi-log plot has one ordinary axis and one logarithmic axis. To test with , keep ordinary and make the positive axis logarithmic:
This is a straight-line relation between and . A line rising by units of per unit of suggests , not . A shifted model requires plotting when .
For a logarithmic model , switch the roles: use a logarithmic positive axis and an ordinary axis. The axis being logged changes the model suggested by a straight pattern. A few aligned measurements suggest a model; they do not prove the behavior between or beyond them.
Check your understanding
Positive observations lie nearly on a straight line when uses ordinary spacing and uses logarithmic spacing. Which model family does that pattern suggest?
A logarithmic vertical scale turns multiplication of into addition of its logarithm.
That is linear in the ordinary input , so it suggests an exponential model. A finite data set does not prove that model.
Compare predictions with data
The residual is the observed value minus the model’s predicted value. If a model predicts units and you observe , the residual is unit. A positive residual means the point lies above the model; a negative one means it lies below.
Consider the candidate models and for these measurements:
| (days) | Observed | Residual for | Residual for | ||
|---|---|---|---|---|---|
Both curves rise, but the output ratios , , and do not stay constant. This data set does not sustain an exact constant-percentage rule. One way to compare misses is to add their squares, which prevents positive and negative residuals from canceling. For these candidates, the sum is for and for , so fits better by this measure in the original output units.
With many noisy readings, graphing software can fit parameters by minimizing such a total, a method called least squares. State which quantities it compares. Fitting a line to minimizes squared misses in log values, which need not choose the same parameters as minimizing squared misses in .
Look for size and pattern together. Residuals that curve or stay mostly on one side suggest a systematic miss. Small residuals scattered around zero support a model, but do not establish its physical assumptions.
Both candidates’ nonzero residuals in the table stay on one side of zero: negative for and positive for . In these observations, systematically overpredicts where it misses, while systematically underpredicts. The smaller squared total for does not remove that pattern. Four readings alone do not show whether it would persist in further noisy data.
Interpolation predicts between measured inputs. Extrapolation predicts outside their range. A value at days interpolates the table; one at days extrapolates. Neither is guaranteed, and extrapolation needs particular care because growth may slow, resources may run out, or the environment may change. A larger-looking graph window cannot supply missing evidence.
Check your understanding
Data were recorded from day through day . At day , a model predicts units and a new reading is units. Which description is correct?
Subtract predicted from observed.
Day is outside the fitted data interval , so the prediction is an extrapolation. The new reading is below the model.