Differentials and Amount of Error

Learning Outcomes

  • Draw a graph that illustrates the use of differentials to approximate the change in a quantity
  • Calculate the relative error and percentage error in using a differential approximation

Computing Differentials

We have seen that linear approximations can be used to estimate function values. They can also be used to estimate the amount a function value changes as a result of a small change in the input. To discuss this more formally, we define a related concept: differentials. Differentials provide us with a way of estimating the amount a function changes as a result of a small change in input values.

When we first looked at derivatives, we used the Leibniz notation dy/dxdy/dx to represent the derivative of yy with respect to xx. Although we used the expressions dydy and dxdx in this notation, they did not have meaning on their own. Here we see a meaning to the expressions dydy and dxdx. Suppose y=f(x)y=f(x) is a differentiable function. Let dxdx be an independent variable that can be assigned any nonzero real number, and define the dependent variable dydy by

dy=f(x)dxdy=f(x)dx

 

It is important to notice that dydy is a function of both xx and dxdx. The expressions dydy and dxdx are called differentials. We can divide both sides of the equation by dxdx, which yields

dydx=f(x)dydx=f(x)

 

This is the familiar expression we have used to denote a derivative. The first equation is known as the differential form of the second one.

Example: Computing differentials

For each of the following functions, find dydy and evaluate when x=3x=3 and dx=0.1dx=0.1.

  1. y=x2+2xy=x2+2x
  2. y=cosxy=cosx

Watch the following video to see the worked solution to Example: Computing differentials.

Try It

For y=ex2y=ex2, find dydy.

We now connect differentials to linear approximations. Differentials can be used to estimate the change in the value of a function resulting from a small change in input values. Consider a function ff that is differentiable at point aa. Suppose the input xx changes by a small amount. We are interested in how much the output yy changes. If xx changes from aa to a+dxa+dx, then the change in xx is dxdx (also denoted ΔxΔx), and the change in yy is given by

Δy=f(a+dx)f(a)Δy=f(a+dx)f(a)

 

Instead of calculating the exact change in yy, however, it is often easier to approximate the change in yy by using a linear approximation. For xx near aa, f(x)f(x) can be approximated by the linear approximation

L(x)=f(a)+f(a)(xa)L(x)=f(a)+f(a)(xa)

 

Therefore, if dxdx is small,

f(a+dx)L(a+dx)=f(a)+f(a)(a+dxa)f(a+dx)L(a+dx)=f(a)+f(a)(a+dxa)

 

That is,

f(a+dx)f(a)L(a+dx)f(a)=f(a)dx.f(a+dx)f(a)L(a+dx)f(a)=f(a)dx.

 

In other words, the actual change in the function ff if xx increases from aa to a+dxa+dx is approximately the difference between L(a+dx)L(a+dx) and f(a)f(a), where L(x)L(x) is the linear approximation of ff at aa. By definition of L(x)L(x), this difference is equal to f(a)dxf(a)dx. In summary,

Δy=f(a+dx)f(a)L(a+dx)f(a)=f(a)dx=dyΔy=f(a+dx)f(a)L(a+dx)f(a)=f(a)dx=dy

 

Therefore, we can use the differential dy=f(a)dxdy=f(a)dx to approximate the change in yy if xx increases from x=ax=a to x=a+dxx=a+dx. We can see this in the following graph.

A function y = f(x) is shown along with its tangent line at (a, f(a)). The tangent line is denoted L(x). The x axis is marked with a and a + dx, with a dashed line showing the distance between a and a + dx as dx. The points (a + dx, f(a + dx)) and (a + dx, L(a + dx)) are marked on the curves for y = f(x) and y = L(x), respectively. The distance between f(a) and L(a + dx) is marked as dy = f’(a) dx, and the distance between f(a) and f(a + dx) is marked as Δy = f(a + dx) – f(a).

Figure 5. The differential dy=f(a)dxdy=f(a)dx is used to approximate the actual change in yy if xx increases from aa to a+dxa+dx.

We now take a look at how to use differentials to approximate the change in the value of the function that results from a small change in the value of the input. Note the calculation with differentials is much simpler than calculating actual values of functions and the result is very close to what we would obtain with the more exact calculation.

Example: Approximating Change with Differentials

Let y=x2+2xy=x2+2x.

Compute ΔyΔy and dydy at x=3x=3 if dx=0.1dx=0.1.

Try It

For y=x2+2xy=x2+2x, find ΔyΔy and dydy at x=3x=3 if dx=0.2dx=0.2.

Calculating the Amount of Error

Any type of measurement is prone to a certain amount of error. In many applications, certain quantities are calculated based on measurements. For example, the area of a circle is calculated by measuring the radius of the circle. An error in the measurement of the radius leads to an error in the computed value of the area. Here we examine this type of error and study how differentials can be used to estimate the error.

Consider a function ff with an input that is a measured quantity. Suppose the exact value of the measured quantity is aa, but the measured value is a+dxa+dx. We say the measurement error is dxdx (or ΔxΔx). As a result, an error occurs in the calculated quantity f(x)f(x). This type of error is known as a propagated error and is given by

Δy=f(a+dx)f(a)Δy=f(a+dx)f(a)

 

Since all measurements are prone to some degree of error, we do not know the exact value of a measured quantity, so we cannot calculate the propagated error exactly. However, given an estimate of the accuracy of a measurement, we can use differentials to approximate the propagated error ΔyΔy. Specifically, if ff is a differentiable function at aa, the propagated error is

Δydy=f(a)dxΔydy=f(a)dx

 

Unfortunately, we do not know the exact value a. However, we can use the measured value a+dx, and estimate

Δydyf(a+dx)dx

 

In the next example, we look at how differentials can be used to estimate the error in calculating the volume of a box if we assume the measurement of the side length is made with a certain amount of accuracy.

Example: Volume of a Cube

Suppose the side length of a cube is measured to be 5 cm with an accuracy of 0.1 cm.

  1. Use differentials to estimate the error in the computed volume of the cube.
  2. Compute the volume of the cube if the side length is (i) 4.9 cm and (ii) 5.1 cm to compare the estimated error with the actual potential error.

Watch the following video to see the worked solution to Example: Volume of a Cube.

Try It

Estimate the error in the computed volume of a cube if the side length is measured to be 6 cm with an accuracy of 0.2 cm.

The measurement error dx(=Δx) and the propagated error Δy are absolute errors. We are typically interested in the size of an error relative to the size of the quantity being measured or calculated. Given an absolute error Δq for a particular quantity, we define the relative error as Δqq, where q is the actual value of the quantity. The percentage error is the relative error expressed as a percentage. For example, if we measure the height of a ladder to be 63 in. when the actual height is 62 in., the absolute error is 1 in. but the relative error is 162=0.016, or 1.6%. By comparison, if we measure the width of a piece of cardboard to be 8.25 in. when the actual width is 8 in., our absolute error is 14 in., whereas the relative error is 0.258=132, or 3.1%. Therefore, the percentage error in the measurement of the cardboard is larger, even though 0.25 in. is less than 1 in.

Example: Relative and Percentage Error

An astronaut using a camera measures the radius of Earth as 4000 mi with an error of ±80 mi. Let’s use differentials to estimate the relative and percentage error of using this radius measurement to calculate the volume of Earth, assuming the planet is a perfect sphere.

Try It

Determine the percentage error if the radius of Earth is measured to be 3950 mi with an error of ±100 mi.