# Using Differentials to Estimate Errors

Suppose that we measured some quantity `x` and know error `Delta y` in measurements. If we have function `y=f(x)`, how can we estimate error `Delta y` in measurement of `y`?

Since error is very small we can write that `Delta y ~~dy`, so error in measurement is differential of the function. Since `dx=Delta x`, then error in measurement of `y` can be caluclated using formula `dy=f'(x)dx`.

**Example**. The radius of a sphere was measured and found to be 20 cm with a possible error in measurement of at most 0.01 cm. What is the maximum error in using this value of the radius to compute the volume of the sphere? Find the relative and percentage error in both radius and volume.

Volume of sphere is `V=4/3pir^3`.

Differentiate with respect to `r`: `dV=4/3pi*3r^2dr` or `dV=4pir^2dr`.

We have `dr=0.01` and `r=20`, so `dV=4*pi*20^2*0.01~~50.27`.

So, the maximum error in the calculated volume is about `50.27\ cm^3`.

Relative error in the volume is calculated by dividing the error by the total volume. Same with radius.

**Relative error** in the radius is `(dr)/r=0.01/(20)=0.0005`.

**Percentage error** in the radius is `(dr)/r*100%=0.05%`.

**Relative error** in the volume is `(dV)/V=(4pir^2dr)/(4/3 pir^3)=3(dr)/r=3*0.0005=0.0015`.

**Percentage error** in the volume is `(dV)/V*100%=0.15%`.

Note, since `(dV)/V=3(dr)/r`, then the relative error in the volume is approximately three times the relative error in the radius.