Applications of the Total Differential in Approximation and Error Estimation

Approximate Computation

The Basic Formula

When the function z=f(x,y)z = f(x, y) is differentiable at the point (x0,y0)(x_0, y_0) and ∣Δx∣,∣Δy∣|\Delta x|, |\Delta y| are small, we have

Δz≈dz=fx(x0,y0)Δx+fy(x0,y0)Δy\Delta z \approx dz = f_x(x_0, y_0)\Delta x + f_y(x_0, y_0)\Delta y

that is,

f(x0+Δx,y0+Δy)≈f(x0,y0)+fx(x0,y0)Δx+fy(x0,y0)Δyf(x_0 + \Delta x, y_0 + \Delta y) \approx f(x_0, y_0) + f_x(x_0, y_0)\Delta x + f_y(x_0, y_0)\Delta y

The Usual Approximation Formulas

When ∣x∣,∣y∣|x|, |y| are small (taking x0=0,y0=0x_0=0, y_0=0):

(1+x)m(1+y)n≈1+mx+ny(1+x)^m(1+y)^n \approx 1 + mx + ny

sin⁡(x+y)≈x+y\sin(x+y) \approx x + y

ex+y≈1+x+ye^{x+y} \approx 1 + x + y

ln⁡(1+x+y)≈x+y\ln(1+x+y) \approx x + y

Error Estimation

The Absolute Error and the Relative Error

The error estimation formulas

Let z=f(x,y)z = f(x, y), and let the absolute error bounds of xx and yy be δx\delta_x and δy\delta_y respectively, that is, ∣Δx∣≤δx|\Delta x| \leq \delta_x and ∣Δy∣≤δy|\Delta y| \leq \delta_y. Then the

absolute error bound of zz is:

δz=∣fx∣δx+∣fy∣δy\delta_z = |f_x|\delta_x + |f_y|\delta_y

relative error bound of zz is:

δz∣z∣=∣fxf∣δx+∣fyf∣δy\frac{\delta_z}{|z|} = \left|\frac{f_x}{f}\right|\delta_x + \left|\frac{f_y}{f}\right|\delta_y

Worked Examples

Example 1: Approximate Computation

Use the total differential to approximate (1.02)3+(1.97)3\sqrt{(1.02)^3 + (1.97)^3}.

approximate computationthe total differentialnumerical computation

Approach:

Approximation with the total differential means replacing the increment of the function value by its first-order linear term; the key is to choose a good base point.

Steps:

  1. Put f(x,y)=x3+y3f(x,y) = \sqrt{x^3 + y^3}, and take x0=1,y0=2x_0=1, y_0=2; then Δx=0.02\Delta x=0.02 and Δy=−0.03\Delta y=-0.03
  2. f(1,2)=1+8=3f(1,2) = \sqrt{1+8} = 3
  3. fx=3x22x3+y3f_x = \frac{3x^2}{2\sqrt{x^3+y^3}}, and fx(1,2)=32×3=12f_x(1,2) = \frac{3}{2\times3} = \frac{1}{2}
  4. fy=3y22x3+y3f_y = \frac{3y^2}{2\sqrt{x^3+y^3}}, and fy(1,2)=126=2f_y(1,2) = \frac{12}{6} = 2
  5. f(1.02,1.97)≈3+12×0.02+2×(−0.03)=3+0.01−0.06=2.95f(1.02,1.97) \approx 3 + \frac{1}{2}\times0.02 + 2\times(-0.03) = 3 + 0.01 - 0.06 = 2.95

Answer: (1.02)3+(1.97)3≈2.95\sqrt{(1.02)^3+(1.97)^3} \approx 2.95 (the exact value is about 2.951)

Example 2: Error Estimation

A rectangle has length x=5mx = 5\text{m} and width y=3my = 3\text{m}. The absolute error in measuring both the length and the width is 0.01m0.01\text{m}. Find the absolute error and the relative error of the area of the rectangle.

error estimationthe absolute errorthe relative errorthe area of a rectangle

Approach:

The absolute error is given by the total differential, and the relative error is then obtained by dividing by the value of the function itself.

Steps:

  1. The area S=xyS = xy
  2. Sx=y=3S_x = y = 3 and Sy=x=5S_y = x = 5
  3. The absolute error: δS=∣Sx∣δx+∣Sy∣δy=3×0.01+5×0.01=0.08 m2\delta_S = |S_x|\delta_x + |S_y|\delta_y = 3\times0.01 + 5\times0.01 = 0.08 \text{ m}^2
  4. The area S=5×3=15 m2S = 5\times3 = 15 \text{ m}^2
  5. The relative error: δSS=0.0815≈0.0053=0.53%\frac{\delta_S}{S} = \frac{0.08}{15} \approx 0.0053 = 0.53\%

Answer: the absolute error is about 0.08 m20.08\text{ m}^2, and the relative error is about 0.53%0.53\%

Example 3: Error Estimation of a Physical Quantity

Use a simple pendulum to measure the gravitational acceleration g=4π2lT2g = \frac{4\pi^2 l}{T^2}. The length l=100cml = 100\text{cm} and the period T=2sT = 2\text{s} have been measured; if the absolute error of ll is 0.1cm0.1\text{cm} and that of TT is 0.004s0.004\text{s}, find the absolute error and the relative error of gg.

error estimationa physical applicationthe gravitational accelerationa simple pendulum

Approach:

Just as in the previous example, but with the measurement errors of the physical quantities substituted into the formula for the total differential.

Steps:

  1. g=4π2lT2g = \frac{4\pi^2 l}{T^2}
  2. ∂g∂l=4π2T2\frac{\partial g}{\partial l} = \frac{4\pi^2}{T^2} and ∂g∂T=−8π2lT3\frac{\partial g}{\partial T} = -\frac{8\pi^2 l}{T^3}
  3. At l=100,T=2l=100, T=2: ∂g∂l=π2\frac{\partial g}{\partial l} = \pi^2 and ∣∂g∂T∣=8π2×1008=100π2\left|\frac{\partial g}{\partial T}\right| = \frac{8\pi^2 \times 100}{8} = 100\pi^2
  4. The absolute error: δg=π2×0.1+100π2×0.004=0.1π2+0.4π2=0.5π2≈4.93 cm/s2\delta_g = \pi^2 \times 0.1 + 100\pi^2 \times 0.004 = 0.1\pi^2 + 0.4\pi^2 = 0.5\pi^2 \approx 4.93 \text{ cm/s}^2
  5. g=4π2×1004=100π2≈986.96 cm/s2g = \frac{4\pi^2 \times 100}{4} = 100\pi^2 \approx 986.96 \text{ cm/s}^2
  6. The relative error: δgg=0.5π2100π2=0.005=0.5%\frac{\delta_g}{g} = \frac{0.5\pi^2}{100\pi^2} = 0.005 = 0.5\%

Answer: the absolute error is about 4.93 cm/s24.93\text{ cm/s}^2, and the relative error is about 0.5%0.5\%


Exercises

Exercise 1

Use the total differential to approximate (1.04)2.02(1.04)^{2.02}.

approximate computationthe total differentiala power with a variable exponent

Approach:

Once the base point has been chosen, a single linear approximation with the total differential does the job.

Steps:

  1. Put f(x,y)=xyf(x,y) = x^y, and take x0=1,y0=2x_0=1, y_0=2; then Δx=0.04\Delta x=0.04 and Δy=0.02\Delta y=0.02
  2. f(1,2)=1f(1,2) = 1
  3. fx=yxy−1f_x = yx^{y-1}, and fx(1,2)=2f_x(1,2) = 2
  4. fy=xyln⁡xf_y = x^y \ln x, and fy(1,2)=0f_y(1,2) = 0
  5. f(1.04,2.02)≈1+2×0.04+0×0.02=1.08f(1.04,2.02) \approx 1 + 2\times0.04 + 0\times0.02 = 1.08

Answer: (1.04)2.02≈1.08(1.04)^{2.02} \approx 1.08 (the exact value is about 1.0824)

Exercise 2

A cylinder has radius r=5cmr = 5\text{cm} and height h=10cmh = 10\text{cm}. If the absolute errors of both the radius and the height are 0.1cm0.1\text{cm}, find the absolute error and the relative error of the volume of the cylinder.

error estimationthe volume of a cylinderthe absolute errorthe relative error

Approach:

The error of the volume of a cylinder is handled with the total differential in the same way.

Steps:

  1. The volume V=πr2hV = \pi r^2 h
  2. Vr=2πrhV_r = 2\pi rh and Vh=πr2V_h = \pi r^2
  3. At r=5,h=10r=5, h=10: Vr=100πV_r = 100\pi and Vh=25πV_h = 25\pi
  4. The absolute error: δV=100π×0.1+25π×0.1=12.5π≈39.27 cm3\delta_V = 100\pi \times 0.1 + 25\pi \times 0.1 = 12.5\pi \approx 39.27 \text{ cm}^3
  5. V=π×25×10=250π cm3V = \pi \times 25 \times 10 = 250\pi \text{ cm}^3
  6. The relative error: δVV=12.5π250π=0.05=5%\frac{\delta_V}{V} = \frac{12.5\pi}{250\pi} = 0.05 = 5\%

Answer: the absolute error is about 39.27 cm339.27\text{ cm}^3, and the relative error is about 5%5\%


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
δx\delta_xAbsolute error bounddelta xThe absolute error bound of xx
δz\delta_zAbsolute error bounddelta zThe absolute error bound of zz
Δx\Delta xIncrementdelta xThe increment of xx
x0,y0x_0, y_0Base pointx zero, y zeroThe base point used in the approximate computation

Found an issue with this content?

Tell us what could be improved.