4.8 Differentials and Error Estimation

Intuition (Linearization and Differentials).

Suppose a function ff is differentiable at a point cc. The Newton (or first-order Taylor) linear approximation asserts that for values of xx close to cc,

f⁢(x)≈f⁢(c)+f′⁢(c)⁢(x−c).f(x)\approx f(c)+f^{\prime}(c)(x-c).

Letting Δ⁢x≔x−c\Delta x\coloneqq x-c denote the increment (or measurement error) in the independent variable and Δ⁢y≔f⁢(x)−f⁢(c)\Delta y\coloneqq f(x)-f(c) denote the resulting change (or propagated error) in the dependent variable, we obtain the relation

Δ⁢y≈f′⁢(c)⁢Δ⁢x.\Delta y\approx f^{\prime}(c)\,\Delta x.

Differentials provide an elegant operational framework for this first-order approximation, allowing us to estimate changes and propagate uncertainties using standard rules of differentiation.

Definition 4.8.1 (Differentials).

Let y=f⁢(x)y=f(x) be a differentiable function.

  1. (i)
    ​

    The differential of the independent variable xx, denoted by d⁢x\,\mathrm{d}x, is an arbitrary non-zero real increment, defined to be identical to Δ⁢x\Delta x:

    d⁢x≔Δ⁢x.\,\mathrm{d}x\coloneqq\Delta x.
  2. (ii)
    ​

    The differential of the dependent variable yy, denoted by d⁢y\,\mathrm{d}y, is defined by

    d⁢y≔f′⁢(x)⁢d⁢x.\,\mathrm{d}y\coloneqq f^{\prime}(x)\,\mathrm{d}x.
Example 4.8.2 (Comparison of Δ⁢y\Delta y and d⁢y\,\mathrm{d}y).

Let y=x2y=x^{2}. Compute d⁢y\,\mathrm{d}y and the exact change Δ⁢y\Delta y when x=1x=1 and d⁢x=Δ⁢x=0.01\,\mathrm{d}x=\Delta x=0.01.

Solution.

Since f⁢(x)=x2f(x)=x^{2}, the derivative is f′⁢(x)=2⁢xf^{\prime}(x)=2x.

  • •
    ​

    Differential estimation: Evaluating the differential at x=1x=1 with d⁢x=0.01\,\mathrm{d}x=0.01:

    d⁢y=f′⁢(1)⁢d⁢x=2⁢(1)⁢(0.01)=0.02.\,\mathrm{d}y=f^{\prime}(1)\,\mathrm{d}x=2(1)(0.01)=0.02.
  • •
    ​

    Exact change: On the other hand, the true change in yy is

    Δ⁢y=f⁢(x+Δ⁢x)−f⁢(x)=f⁢(1+0.01)−f⁢(1)=(1.01)2−12=1.0201−1=0.0201.\begin{split}\Delta y&{}=f(x+\Delta x)-f(x)\\ &{}=f(1+0.01)-f(1)\\ &{}=(1.01)^{2}-1^{2}\\ &{}=1.0201-1=0.0201.\end{split}

The approximation error |Δ⁢y−d⁢y|=|0.0201−0.02|=0.0001=(Δ⁢x)2\left\lvert\Delta y-\,\mathrm{d}y\right\rvert=\left\lvert 0.0201-0.02\right% \rvert=0.0001=(\Delta x)^{2} is of second order in Δ⁢x\Delta x, validating the precision of the differential approximation for small perturbations. ∎

Example 4.8.3 (Error Estimation in Geometric Measurements).

The radius of a spherical ball is measured to be r=0.7⁢ in.r=0.7\text{ in.}, with an experimental measurement tolerance of ±0.01⁢ in.\pm 0.01\text{ in.}

  1. (i)
    ​

    Estimate the propagated error in the calculated volume VV of the ball.

  2. (ii)
    ​

    Estimate the relative error and the percentage error in the volume.

Solution.

Recall that the volume of a sphere of radius rr is given by

V⁢(r)=43⁢π⁢r3.V(r)=\frac{4}{3}\pi r^{3}.

Differentiating with respect to rr yields

V′⁢(r)=43⁢π⁢(3⁢r2)=4⁢π⁢r2.V^{\prime}(r)=\frac{4}{3}\pi(3r^{2})=4\pi r^{2}.

We are given the nominal radius r=0.7⁢ in.r=0.7\text{ in.} and the measurement uncertainty Δ⁢r=d⁢r=±0.01⁢ in.\Delta r=\,\mathrm{d}r=\pm 0.01\text{ in.}

  1. (i)
    ​

    Propagated Error:
    Using the differential approximation, the propagated error Δ⁢V\Delta V in the volume satisfies

    Δ⁢V≈d⁢V=V′⁢(r)⁢d⁢r=4⁢π⁢r2⁢d⁢r=4⁢π⁢(0.7)2⁢(±0.01)=4⁢π⁢(0.49)⁢(±0.01)=±0.0196⁢π≈±0.06158⁢ in.3.\begin{split}\Delta V\approx\mathrm{d}V&{}=V^{\prime}(r)\,\mathrm{d}r\\ &{}=4\pi r^{2}\,\mathrm{d}r\\ &{}=4\pi(0.7)^{2}(\pm 0.01)\\ &{}=4\pi(0.49)(\pm 0.01)\\ &{}=\pm 0.0196\pi\\ &{}\approx\pm 0.06158\text{ in.}^{3}.\end{split}
  2. (ii)
    ​

    Relative and Percentage Error:
    The relative error is the ratio of the propagated error to the total volume:

    Relative error=Δ⁢VV≈d⁢VV=4⁢π⁢r2⁢d⁢r43⁢π⁢r3=3⁢d⁢rr.\text{Relative error}=\frac{\Delta V}{V}\approx\frac{\mathrm{d}V}{V}=\frac{4% \pi r^{2}\,\mathrm{d}r}{\frac{4}{3}\pi r^{3}}=\frac{3\,\mathrm{d}r}{r}.

    Substituting the numerical values r=0.7r=0.7 and d⁢r=±0.01\,\mathrm{d}r=\pm 0.01:

    d⁢VV=3⁢(±0.01)0.7=±0.030.7=±370≈±0.042857.\frac{\mathrm{d}V}{V}=\frac{3(\pm 0.01)}{0.7}=\pm\frac{0.03}{0.7}=\pm\frac{3}{% 70}\approx\pm 0.042857.

    Consequently, the relative error is approximately ±0.0429\pm 0.0429, corresponding to a percentage error of approximately ±4.29%\pm 4.29\% (or roughly ≈±5%\approx\pm 5\%).

∎

Example 4.8.4 (Differential Product Rule).

Let uu and vv be differentiable functions of an independent variable xx. Derive the Leibniz differential identity for the product u⁢vuv.

Derivation.

By definition of differentials, we have

d⁢u=u′⁢(x)⁢d⁢xandd⁢v=v′⁢(x)⁢d⁢x.\,\mathrm{d}u=u^{\prime}(x)\,\mathrm{d}x\quad\text{and}\quad\,\mathrm{d}v=v^{% \prime}(x)\,\mathrm{d}x.

Applying the differential operator to the product u⁢vuv and employing the standard product rule for derivatives:

d⁢(u⁢v)=(u⁢v)′⁢d⁢x=(u⁢v′+v⁢u′)⁢d⁢x=u⁢v′⁢d⁢x+v⁢u′⁢d⁢x=u⁢(v′⁢d⁢x)+v⁢(u′⁢d⁢x)=u⁢d⁢v+v⁢d⁢u.\begin{split}\mathrm{d}(uv)&{}=(uv)^{\prime}\,\mathrm{d}x\\ &{}=\bigl{(}u\,v^{\prime}+v\,u^{\prime}\bigr{)}\,\mathrm{d}x\\ &{}=u\,v^{\prime}\,\mathrm{d}x+v\,u^{\prime}\,\mathrm{d}x\\ &{}=u\bigl{(}v^{\prime}\,\mathrm{d}x\bigr{)}+v\bigl{(}u^{\prime}\,\mathrm{d}x% \bigr{)}\\ &{}=u\,\mathrm{d}v+v\,\mathrm{d}u.\end{split}

This confirms that differentials satisfy the familiar identity d⁢(u⁢v)=u⁢d⁢v+v⁢d⁢u\mathrm{d}(uv)=u\,\mathrm{d}v+v\,\mathrm{d}u. ∎