Tutorials › Calculus I › Error Propagation In Exponential And Logarithmic Models

Linearization and Differentials · Tutorial 623 of 1495

Error Propagation In Exponential And Logarithmic Models

Use the derivative to estimate how input measurement uncertainty changes the output of exponential and logarithmic models.

Intermediate 9 min read

What You'll Learn

  • Estimate absolute output uncertainty for exponential models from an uncertain input.
  • Relate relative error in an exponential output to input uncertainty and the model’s rate parameter.
  • Estimate how input uncertainty affects a logarithmic output.
  • Distinguish absolute output uncertainty from relative output uncertainty.
  • Check model assumptions, units, and whether a relative-error estimate is defined.

Why exponential and logarithmic models need careful error estimates

An input measurement can be uncertain even when a model is known exactly. In an exponential model, a small input change can produce an output change whose size depends on the model’s growth rate. In a logarithmic model, the same input uncertainty can have a larger effect when the input is small.

The derivative measures this local change in scale. It gives a first-order estimate of the output error caused by an input error. The estimate is useful when the input uncertainty is small enough that the model is well approximated by its tangent line over that change.

From input uncertainty to output uncertainty

Let \(y=f(x)\), and suppose the measured input \(x_0\) has a small signed error \(\Delta x\). The actual input is then \(x_0+\Delta x\). Differentiability gives the first-order estimate

$$ \Delta y = f(x_0+\Delta x)-f(x_0) \approx f'(x_0)\Delta x. $$

The corresponding differential is \(dy=f'(x_0)\,dx\). When \(dx\) represents the input error, \(dy\) estimates the resulting output error. For a worst-case input uncertainty of at most \(\varepsilon\), the first-order estimate of the output uncertainty in absolute value is \(|f'(x_0)|\varepsilon\).

Definition: First-order error propagation in a differentiable model \(y=f(x)\) estimates the signed output change by \(dy=f'(x_0)\,dx\), evaluated at the measured input \(x_0\). If the input error has magnitude at most \(\varepsilon\), the corresponding worst-case first-order output error is \(|f'(x_0)|\varepsilon\).

This is an estimate, not an exact identity for a finite input error. The derivative describes the local scale at \(x_0\); if the uncertainty is not small, the linear estimate may be inaccurate.

Exponential models

Consider \(y=Ae^{kx}\), where \(A\) and \(k\) are constants and \(k x\) is dimensionless. Differentiating gives \(y'=kAe^{kx}=ky\). Thus the first-order output error is proportional to the current output:

$$ dy=kAe^{kx}\,dx \qquad\text{and}\qquad \frac{dy}{y}=k\,dx \quad (y\ne 0). $$

The second relation is a relative-error estimate: the relative change in the output is approximately \(k\) times the input change. Its sign matters for signed changes; for a worst-case magnitude, use \(|k|\,|dx|\). The parameter \(A\) sets the output scale, while \(k\) determines how strongly an input change affects the output proportionally.

For a model \(y=A b^x\), with \(b>0\), the derivative is \(y'=A b^x\ln b\). Therefore its first-order relative output change is approximately \(\ln(b)\,dx\), provided \(y\ne0\). In particular, a base greater than one gives a positive sensitivity factor, while a base between zero and one gives a negative one.

Worked Example: Uncertainty in an exponential growth model

A model is \(y=5e^{0.4t}\). The measured input is \(t=2.00\), with uncertainty \(\pm0.05\). Estimate the absolute and relative output uncertainty.

First evaluate the model at the measured input:

$$ y_0=5e^{0.4(2)}=5e^{0.8} \approx 5(2.225540928) \approx 11.12770464. $$

Differentiate the model:

$$ \frac{dy}{dt} = 5(0.4)e^{0.4t} = 2e^{0.4t}. $$

At \(t=2\), the derivative is \(2e^{0.8}\approx 4.451081856\). The worst-case first-order absolute output uncertainty is therefore

$$ |dy| \approx \left|4.451081856\right|(0.05) = 0.2225540928. $$

To check the relative estimate, divide by the nominal output:

$$ \frac{|dy|}{|y_0|} \approx \frac{0.2225540928}{11.12770464} = 0.0200 = 2.00\%. $$

This agrees with the model’s relative formula: \(|k|\,|dt|=0.4(0.05)=0.0200\). To four decimal places, the estimated output is \(11.1277\) with absolute uncertainty about \(0.2226\).

Logarithmic models

A logarithm requires a positive, dimensionless argument. A common model is \(y=\ln(x/x_{\mathrm{ref}})\), where \(x>0\) and \(x_{\mathrm{ref}}>0\) is a fixed reference value with the same units as \(x\). Since the derivative of \(\ln(x/x_{\mathrm{ref}})\) with respect to \(x\) is \(1/x\), its first-order output error is

$$ dy\approx\frac{dx}{x}. $$

This formula estimates absolute uncertainty in the logarithmic output. It does not say that the relative output error is \(dx/x\). If \(y\ne0\), the relative output error is instead estimated by

$$ \frac{dy}{y} \approx \frac{dx}{x\ln(x/x_{\mathrm{ref}})}. $$

The denominator shows why relative output error can become large when the nominal logarithmic output is near zero. At a point where the output is exactly zero, relative output error is undefined, although an absolute error estimate can still be useful.

Worked Example: Uncertainty in a logarithmic model

Let \(y=\ln(x/2)\), with \(x\) measured as \(8.00\pm0.16\). Estimate the absolute and relative output uncertainty.

The nominal output is

$$ y_0=\ln(8/2)=\ln 4\approx1.386294361. $$

Differentiate the model. Since \(y=\ln x-\ln 2\), its derivative is \(dy/dx=1/x\). At \(x=8\), this is \(1/8=0.125\). Thus the first-order absolute output uncertainty is

$$ |dy| \approx \frac{1}{8}(0.16) = 0.020. $$

Because the nominal output is nonzero, a relative output uncertainty can also be estimated:

$$ \frac{|dy|}{|y_0|} \approx \frac{0.020}{1.386294361} \approx 0.01443 = 1.443\%. $$

The calculation checks against the logarithmic relative-error formula: \(0.16/[8\ln(4)]\approx0.01443\). The estimated output uncertainty is \(0.020\) in absolute terms, or about \(1.443\%\) of the nominal output.

Why the derivative gives the estimate

The justification is the definition of differentiability. For a differentiable function at \(x_0\), the change in its value can be written as

$$ f(x_0+\Delta x)-f(x_0) = f'(x_0)\Delta x+r(\Delta x), $$

where the remainder satisfies \(r(\Delta x)/\Delta x\to0\) as \(\Delta x\to0\). The derivative term is the part that changes linearly with the input error; the remainder becomes negligible compared with \(\Delta x\) for sufficiently small changes. This is why \(f'(x_0)\Delta x\) is a first-order estimate rather than generally an exact answer.

For \(f(x)=Ae^{kx}\), differentiating gives \(f'(x)=kAe^{kx}=kf(x)\). Dividing the first-order relation by \(f(x_0)\), when \(f(x_0)\ne0\), yields the relative estimate \(dy/y=k\,dx\). For \(f(x)=\ln(x/x_{\mathrm{ref}})\), differentiating gives \(f'(x)=1/x\), so the absolute estimate is \(dy=dx/x\); dividing by the nonzero output gives the relative formula above. Each result follows from the local linear change, with the division step requiring a nonzero nominal output.

Theorem: For a small input change \(dx\), the first-order signed output change in \(y=Ae^{kx}\) is \(dy=kAe^{kx}\,dx\). For \(y=\ln(x/x_{\mathrm{ref}})\), with \(x>0\), it is \(dy=dx/x\). Relative output estimates additionally require a nonzero nominal output.

A common mistake: confusing input and output relative error

A common error is to assume that a logarithmic model has the same relative-error formula as an exponential model. For \(y=\ln(x/2)\) at \(x=4\), an input change of \(0.04\) has relative magnitude \(0.04/4=0.01\), or \(1\%\). It is incorrect to conclude that the output’s relative error is also \(1\%\).

$$ \text{Incorrect:}\quad \frac{|dy|}{|y|} = \frac{|dx|}{x} = \frac{0.04}{4} = 1\%. $$

The correct absolute output estimate is \(|dy|=|dx|/x=0.04/4=0.01\). The nominal output is \(y=\ln(4/2)=\ln 2\approx0.693147\), so its relative output error is

$$ \frac{|dy|}{|y|} \approx \frac{0.01}{0.693147} \approx0.01443 = 1.443\%. $$

The correction is to differentiate the model first, then divide by the nominal output only if a relative output error is requested and that output is nonzero. For the exponential model \(Ae^{kx}\), relative input and output changes have a particularly simple relationship; for a logarithmic model, absolute output change is tied to relative input change, but relative output change has an additional factor involving the nominal logarithmic value.

Interpreting the estimates responsibly

Error propagation describes how uncertainty is scaled locally; it does not remove uncertainty from the measurement. Before interpreting an estimate, check that the model is being evaluated at the measured input, that the input error is small enough for a first-order estimate to be reasonable, and that all logarithm arguments and exponential exponents are dimensionless as required by the model.

Also distinguish a signed change from an uncertainty magnitude. A signed \(dx\) gives the signed estimate \(dy=f'(x_0)dx\). If only a bound \(|dx|\le\varepsilon\) is known, report the first-order worst-case magnitude \(|f'(x_0)|\varepsilon\), rather than assigning a direction to the output error. Finally, do not report relative output uncertainty when the nominal output is zero; use absolute uncertainty instead.

Check Your Understanding

Use first-order estimates, and state any condition needed for a relative-error calculation.

  1. For \(y=3e^{2x}\) at \(x=1\) with input uncertainty \(\pm0.01\), what are the estimated absolute and relative output uncertainties?
  2. For \(y=10^x\), derive the first-order relative output change in terms of \(dx\).
  3. For \(y=\ln(x/5)\) at \(x=10\) with input uncertainty \(\pm0.1\), estimate the absolute output uncertainty.
  4. Why is relative output uncertainty not defined for \(y=\ln(x/5)\) at \(x=5\), even though the derivative exists there?
  5. In a model \(y=Ae^{kx}\), what does the parameter \(k\) tell you about the relative effect of a small input error?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon