Modeling with Exponential and Logarithmic Functions

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 1818 units to 7272 units over two hours. The two-hour factor is 72/18=472/18=4. If the same factor applies in each hour, the hourly factor must be the positive square root, 22, because 2⋅2=42\cdot2=4.

Two readings at distinct times determine a positive exponential model once we assume this behavior. For positive readings y1,y2y_1,y_2 at times t1<t2t_1<t_2, dividing cancels the unknown starting amount:

bt2−t1=y2y1.b^{t_2-t_1}=\frac{y_2}{y_1}.

Thus the factor per time unit and a convenient model are

b=(y2y1)1/(t2−t1),b=\left(\frac{y_2}{y_1}\right)^{1/(t_2-t_1)}, y(t)=y1bt−t1.y(t)=y_1b^{t-t_1}.

The exponent measures elapsed time since the first reading. Equal readings give b=1b=1, 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 4545 milligrams after 22 hours and 180180 milligrams after 66 hours. Assume constant exponential growth. Find a model for mass M(t)M(t), predict its mass at 55 hours to the nearest tenth, and compare the predicted mass at 44 hours with a separate observation of 9292 milligrams.

Solution. Four hours multiply the mass by 180/45=4180/45=4, so b4=4b^4=4. The positive hourly factor is b=2b=\sqrt2.

Use the first measured time as the reference:

M(t)=45⋅2(t−2)/2.M(t)=45\cdot2^{(t-2)/2}.

At t=2t=2 the exponent is zero and the model returns 4545. At t=6t=6 it is two and returns 180180.

At 55 hours the model predicts

M(5)=902≈127.3 mg.M(5)=90\sqrt2\approx127.3\text{ mg}.

At 44 hours it predicts 9090 mg. The observation is 92−90=292-90=2 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 tt, but elapsed experimental time has physical domain t≥0t\ge0. Even there, the model assumes the culture’s conditions remain suitable for the same growth factor.

Check your understanding

A positive quantity changes from 77 units at t=1t=1 to 5656 units at t=4t=4. Under an exponential model, what is the factor per time unit?

Answer choices

Rates and characteristic times

A period rate and a coefficient in an exponent describe the same model in different ways. For example, 50(1.12)t50(1.12)^t multiplies by 1.121.12 each year, so its effective yearly rate is 12%12\%, the actual fraction gained over one year.

To write that very same curve as 50ekt50e^{kt}, require ek=1.12e^k=1.12. Taking natural logarithms gives k=ln⁡1.12≈0.1133k=\ln1.12\approx0.1133 per year. The coefficient is not the exact yearly percentage gain.

In general, with tt measured in the stated period and P>0P>0,

P(1+r)t=Pekt,k=ln⁡(1+r),P(1+r)^t=Pe^{kt},\qquad k=\ln(1+r), r=ek−1.r=e^k-1.

Here r>−1r>-1, so the period factor is positive. The continuous coefficient kk 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 12%12\%. Which continuous coefficient describes the same curve when time is in years?

Answer choices

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, 24(1/2)t/624(1/2)^{t/6} has half-life 66 hours if tt is in hours: its values at 0,6,120,6,12 hours are 24,12,624,12,6.

In PektPe^{kt} the starting amount cancels when we compare with twice or half that amount. Solving ekd=2e^{kd}=2 or ekh=1/2e^{kh}=1/2 gives

d=ln⁡2k(k>0),d=\frac{\ln2}{k}\quad(k>0), h=ln⁡(1/2)k(k<0).h=\frac{\ln(1/2)}{k}\quad(k<0).

For PbtPb^t, replace kk by ln⁡b\ln b. There is no positive doubling time or half-life when b=1b=1.

Worked example 2 Read a rate and a doubling time

Problem. A continuous model for a signal is S(t)=120e0.15tS(t)=120e^{0.15t} units, with t≥0t\ge0 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 e0.15e^{0.15}. Subtract one to find the fraction gained:

r=e0.15−1≈0.161834.r=e^{0.15}-1\approx0.161834.

The effective increase is approximately 16.18%16.18\% per hour.

For doubling, divide 120e0.15d=240120e^{0.15d}=240 by 120120, then take natural logarithms:

0.15d=ln⁡2.0.15d=\ln2.

Therefore d=ln⁡2/0.15≈4.62d=\ln2/0.15\approx4.62 hours. Substituting the exact time gives e0.15d=eln⁡2=2e^{0.15d}=e^{\ln2}=2.

Check your understanding

A model has half-life 55 hours. How long does it take to reach 25%25\% of its initial positive amount?

Answer choices

Cooling toward an ambient temperature

Cooling can preserve a constant factor in the difference from the surroundings. In a room at 22∘C22^\circ\text{C}, an object at 86∘C86^\circ\text{C} is 64∘C64^\circ\text{C} above room temperature. At 54∘C54^\circ\text{C} its excess is 32∘C32^\circ\text{C}, half as large. The absolute temperature has not halved.

If ambient temperature TaT_a stays constant and the excess follows exponential decay, use

T(t)=Ta+(T0−Ta)ekt,k<0.T(t)=T_a+(T_0-T_a)e^{kt},\qquad k<0.

For cooling from above ambient, T0>TaT_0>T_a. Subtract TaT_a before forming ratios or taking logarithms. The model stays above ambient for every finite t≥0t\ge0; 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 22∘C22^\circ\text{C}. It starts at 86∘C86^\circ\text{C} and reaches 54∘C54^\circ\text{C} after 44 minutes. Assume its excess temperature decays exponentially. Find a model for t≥0t\ge0 and the time at which it reaches 30∘C30^\circ\text{C}.

Solution. The excess drops from 6464 to 3232 degrees in 44 minutes, so its half-life is 44 minutes:

T(t)=22+64(1/2)t/4.T(t)=22+64(1/2)^{t/4}.

At the target, subtract the ambient 2222 first:

64(1/2)t/4=8.64(1/2)^{t/4}=8.

Divide by 6464. The target excess is one eighth of the original, so three half-lives have passed:

(1/2)t/4=(1/2)3.(1/2)^{t/4}=(1/2)^3.

Thus t/4=3t/4=3 and t=12t=12 minutes. Checking gives 22+64/8=3022+64/8=30 degrees.

Cooling acts on the excess temperatureTemperature versus minutes. The cooling curve passes through 86 degrees at zero minutes, 54 at four, 38 at eight, and 30 at twelve. A dashed horizontal ambient line is at 22 degrees. The excess above this line halves every four minutes.048120225486Temperature (°C)Time (min)ambient 22°C
The excess above 22°C halves every four minutes. The temperature itself stays above the dashed ambient line.

Logarithmic models and logarithmic scales

A logarithmic model makes equal output changes correspond to equal input factors. Suppose inputs 1,3,91,3,9 give scores 4,7,104,7,10. Each tripling raises the score by three. Since log⁡31=0\log_3 1=0, log⁡33=1\log_3 3=1, and log⁡39=2\log_3 9=2, the rule 4+3log⁡3x4+3\log_3 x fits the pattern.

A logarithmic response fits multiplicative inputsThe curve through (1,4), (3,7), and (9,10) rises and flattens. The horizontal axis is the resource multiplier x and the vertical axis is response score. Each multiplication of input by three raises the response score by three.0136904710Response scorex (resource multiplier)×3×3
Tripling the resource multiplier adds three response points. Equal additive input steps would not give equal gains.

More generally, y=A+Bln⁡xy=A+B\ln x has domain x>0x>0. Multiplying input by c>0c>0 adds Bln⁡cB\ln c to the output, because ln⁡(cx)=ln⁡c+ln⁡x\ln(cx)=\ln c+\ln x. 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 20,16,1220,16,12 when a positive resource multiplier xx equals 3,12,483,12,48, respectively. Fit a model of the form R(x)=A+Blog⁡4xR(x)=A+B\log_4 x. Predict the score at x=6x=6 and at x=96x=96. State which prediction lies within the measured input range.

Solution. The first reading gives

A+Blog⁡43=20.A+B\log_4 3=20.

The second reading gives

A+Blog⁡412=16.A+B\log_4 12=16.

Subtract the first equation from the second to eliminate AA:

Blog⁡4(12/3)=−4.B\log_4(12/3)=-4.

Since log⁡44=1\log_4 4=1, we get B=−4B=-4. The first reading then gives

A=20+4log⁡43.A=20+4\log_4 3.

Combining the two logarithms gives the equivalent model

R(x)=20−4log⁡4(x/3).R(x)=20-4\log_4(x/3).

At x=3,12,48x=3,12,48, the ratio x/3x/3 is 1,4,161,4,16, so this model returns 20,16,1220,16,12, checking all three readings. The negative coefficient describes a score that falls as the resource multiplier rises.

For x=6x=6, the ratio x/3=2x/3=2 has base-four logarithm 1/21/2. Thus

R(6)=20−4(1/2)=18.R(6)=20-4(1/2)=18.

This prediction lies within the measured range [3,48][3,48].

For x=96x=96, the ratio x/3=32x/3=32 has base-four logarithm 5/25/2. Thus

R(96)=20−4(5/2)=10.R(96)=20-4(5/2)=10.

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, 2,20,200,20002,20,200,2000 are equally spaced because each is ten times the last. Zero and negative values cannot appear on a logarithmic axis.

Changing the output scale straightens exponential dataThe same data points are (0,2), (1,20), (2,200), and (3,2000). On the left, the vertical axis has equal additive steps and the exponential bends upward. On the right, equal vertical distances mark multiplication by ten, and these data lie on a straight line. Both horizontal axes have ordinary unit steps.0123010002000Ordinary y scalex (unit steps)01232202002000Logarithmic y scalex (unit steps)
The same positive data bend on ordinary axes and align when only the output axis uses logarithmic spacing.

A semi-log plot has one ordinary axis and one logarithmic axis. To test y=Pbxy=Pb^x with P>0P>0, keep xx ordinary and make the positive yy axis logarithmic:

ln⁡y=ln⁡P+xln⁡b.\ln y=\ln P+x\ln b.

This is a straight-line relation between xx and ln⁡y\ln y. A line rising by 0.40.4 units of ln⁡y\ln y per unit of xx suggests b=e0.4b=e^{0.4}, not b=0.4b=0.4. A shifted model y=C+Pbxy=C+Pb^x requires plotting ln⁡(y−C)\ln(y-C) when y−C>0y-C>0.

For a logarithmic model y=A+Bln⁡xy=A+B\ln x, switch the roles: use a logarithmic positive xx axis and an ordinary yy 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 xx uses ordinary spacing and yy uses logarithmic spacing. Which model family does that pattern suggest?

Answer choices

Compare predictions with data

The residual is the observed value minus the model’s predicted value. If a model predicts 1414 units and you observe 1515, the residual is +1+1 unit. A positive residual means the point lies above the model; a negative one means it lies below.

Consider the candidate models L(t)=10+6tL(t)=10+6t and E(t)=10(1.4)tE(t)=10(1.4)^t for these measurements:

tt (days)ObservedL(t)L(t)Residual for LLE(t)E(t)Residual for EE
001010101000101000
1115151616−1-1141411
2221212222−1-119.619.61.41.4
33282828280027.4427.440.560.56
Residuals expose where a fitted curve missesAt days zero through three, observed values are 10, 15, 21, 28. Solid E equals 10 times 1.4 to the t; dashed L equals 10 plus 6t. The lower panel plots E residuals zero, one, 1.4, and 0.56. Positive residuals put observations above E.Output (units): data and models01230102030Solid: EDashed: Lt (days)Residuals for E (units)010123t (days)observedminuspredicted
The residual panel measures vertical misses from E in the original units. Its positive values match the data points above that curve.

Both curves rise, but the output ratios 1.51.5, 1.41.4, and 4/34/3 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 22 for LL and 3.27363.2736 for EE, so LL 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 ln⁡y\ln y minimizes squared misses in log values, which need not choose the same parameters as minimizing squared misses in yy.

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 LL and positive for EE. In these observations, LL systematically overpredicts where it misses, while EE systematically underpredicts. The smaller squared total for LL 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 t=1.5t=1.5 days interpolates the table; one at t=30t=30 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 00 through day 66. At day 99, a model predicts 4040 units and a new reading is 3737 units. Which description is correct?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

In 1946, chemist Willard Libby proposed estimating the age of once-living objects by measuring their carbon-14. The isotope decays after death, so the remaining amount could serve as a clock. The difficulty was detecting such a weak signal among the background radiation around the apparatus.

Libby’s group developed counters and shielding sensitive enough for the task. They then tested the clock on objects whose ages were already known, including wood dated by tree rings and timber from an Egyptian funerary boat. In 1949, Libby and James Arnold published a comparison called the “Curve of Knowns,” placing the radiocarbon estimates alongside the independent ages. The agreement helped establish a new way to investigate the past.

The American Chemical Society’s account of radiocarbon dating describes both the instrument problem and those early tests.

Your progress

See all your progress →