Linear Approximations and Differentials

Learning Objectives

  • Describe the linear approximation to a function at a point.
  • Write the linearization of a given function.
  • 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.

We have just seen how derivatives allow us to compare related quantities that are changing over time. In this section, we examine another application of derivatives: the ability to approximate functions locally by linear functions. Linear functions are the easiest functions with which to work, so they provide a useful tool for approximating function values. In addition, the ideas presented in this section are generalized later in the text when we study how to approximate functions by higher-degree polynomials Introduction to Power Series and Functions.

Linear Approximation of a Function at a Point

Consider a function [latex]f[/latex] that is differentiable at a point [latex]x=a.[/latex] Recall that the tangent line to the graph of [latex]f[/latex] at [latex]a[/latex] is given by the equation

[latex]y=f\left(a\right)+f\prime \left(a\right)\left(x-a\right).[/latex]

For example, consider the function [latex]f\left(x\right)=\frac{1}{x}[/latex] at [latex]a=2.[/latex] Since [latex]f[/latex] is differentiable at [latex]x=2[/latex] and [latex]f\prime \left(x\right)=-\frac{1}{{x}^{2}},[/latex] we see that [latex]f\prime \left(2\right)=-\frac{1}{4}.[/latex] Therefore, the tangent line to the graph of [latex]f[/latex] at [latex]a=2[/latex] is given by the equation

[latex]y=\frac{1}{2}-\frac{1}{4}\left(x-2\right).[/latex]

[link](a) shows a graph of [latex]f\left(x\right)=\frac{1}{x}[/latex] along with the tangent line to [latex]f[/latex] at [latex]x=2.[/latex] Note that for [latex]x[/latex] near 2, the graph of the tangent line is close to the graph of [latex]f.[/latex] As a result, we can use the equation of the tangent line to approximate [latex]f\left(x\right)[/latex] for [latex]x[/latex] near 2. For example, if [latex]x=2.1,[/latex] the [latex]y[/latex] value of the corresponding point on the tangent line is

[latex]y=\frac{1}{2}-\frac{1}{4}\left(2.1-2\right)=0.475.[/latex]

The actual value of [latex]f\left(2.1\right)[/latex] is given by

[latex]f\left(2.1\right)=\frac{1}{2.1}\approx 0.47619.[/latex]

Therefore, the tangent line gives us a fairly good approximation of [latex]f\left(2.1\right)[/latex] ([link](b)). However, note that for values of [latex]x[/latex] far from 2, the equation of the tangent line does not give us a good approximation. For example, if [latex]x=10,[/latex] the [latex]y[/latex]-value of the corresponding point on the tangent line is

[latex]y=\frac{1}{2}-\frac{1}{4}\left(10-2\right)=\frac{1}{2}-2=-1.5,[/latex]

whereas the value of the function at [latex]x=10[/latex] is [latex]f\left(10\right)=0.1.[/latex]

(a) The tangent line to [latex]f\left(x\right)=1\text{/}x[/latex] at [latex]x=2[/latex] provides a good approximation to [latex]f[/latex] for [latex]x[/latex] near 2. (b) At [latex]x=2.1,[/latex] the value of [latex]y[/latex] on the tangent line to [latex]f\left(x\right)=1\text{/}x[/latex] is 0.475. The actual value of [latex]f\left(2.1\right)[/latex] is [latex]1\text{/}2.1,[/latex] which is approximately 0.47619.
This figure has two parts a and b. In figure a, the line f(x) = 1/x is shown with its tangent line at x = 2. In figure b, the area near the tangent point is blown up to show how good of an approximation the tangent is near x = 2.

In general, for a differentiable function [latex]f,[/latex] the equation of the tangent line to [latex]f[/latex] at [latex]x=a[/latex] can be used to approximate [latex]f\left(x\right)[/latex] for [latex]x[/latex] near [latex]a.[/latex] Therefore, we can write

[latex]f\left(x\right)\approx f\left(a\right)+f\prime \left(a\right)\left(x-a\right)\phantom{\rule{0.2em}{0ex}}\text{for}\phantom{\rule{0.2em}{0ex}}x\phantom{\rule{0.2em}{0ex}}\text{near}\phantom{\rule{0.2em}{0ex}}a.[/latex]

We call the linear function

[latex]L\left(x\right)=f\left(a\right)+f\prime \left(a\right)\left(x-a\right)[/latex]

the linear approximation, or tangent line approximation, of [latex]f[/latex] at [latex]x=a.[/latex] This function [latex]L[/latex] is also known as the linearization of [latex]f[/latex] at [latex]x=a.[/latex]

To show how useful the linear approximation can be, we look at how to find the linear approximation for [latex]f\left(x\right)=\sqrt{x}[/latex] at [latex]x=9.[/latex]

Linear Approximation of [latex]\sqrt{x}[/latex]

Find the linear approximation of [latex]f\left(x\right)=\sqrt{x}[/latex] at [latex]x=9[/latex] and use the approximation to estimate [latex]\sqrt{9.1}.[/latex]

Since we are looking for the linear approximation at [latex]x=9,[/latex] using [link] we know the linear approximation is given by

[latex]L\left(x\right)=f\left(9\right)+f\prime \left(9\right)\left(x-9\right).[/latex]

We need to find [latex]f\left(9\right)[/latex] and [latex]f\prime \left(9\right).[/latex]

[latex]\begin{array}{ccc}\hfill f\left(x\right)=\sqrt{x}& ⇒\hfill & f\left(9\right)=\sqrt{9}=3\hfill \\ \hfill f\prime \left(x\right)=\frac{1}{2\sqrt{x}}& ⇒\hfill & f\prime \left(9\right)=\frac{1}{2\sqrt{9}}=\frac{1}{6}\hfill \end{array}[/latex]

Therefore, the linear approximation is given by [link].

[latex]L\left(x\right)=3+\frac{1}{6}\left(x-9\right)[/latex]

Using the linear approximation, we can estimate [latex]\sqrt{9.1}[/latex] by writing

[latex]\sqrt{9.1}=f\left(9.1\right)\approx L\left(9.1\right)=3+\frac{1}{6}\left(9.1-9\right)\approx 3.0167.[/latex]
The local linear approximation to [latex]f\left(x\right)=\sqrt{x}[/latex] at [latex]x=9[/latex] provides an approximation to [latex]f[/latex] for [latex]x[/latex] near 9.
The function f(x) = the square root of x is shown with its tangent at (9, 3). The tangent appears to be a very good approximation from x = 6 to x = 12.
Analysis

Using a calculator, the value of [latex]\sqrt{9.1}[/latex] to four decimal places is 3.0166. The value given by the linear approximation, 3.0167, is very close to the value obtained with a calculator, so it appears that using this linear approximation is a good way to estimate [latex]\sqrt{x},[/latex] at least for [latex]x[/latex] near [latex]9.[/latex] At the same time, it may seem odd to use a linear approximation when we can just push a few buttons on a calculator to evaluate [latex]\sqrt{9.1}.[/latex] However, how does the calculator evaluate [latex]\sqrt{9.1}?[/latex] The calculator uses an approximation! In fact, calculators and computers use approximations all the time to evaluate mathematical expressions; they just use higher-degree approximations.

Find the local linear approximation to [latex]f\left(x\right)=\sqrt[3]{x}[/latex] at [latex]x=8.[/latex] Use it to approximate [latex]\sqrt[3]{8.1}[/latex] to five decimal places.

[latex]L\left(x\right)=2+\frac{1}{12}\left(x-8\right);[/latex] 2.00833

Hint

[latex]L\left(x\right)=f\left(a\right)+f\prime \left(a\right)\left(x-a\right)[/latex]

Linear Approximation of [latex]\text{sin}\phantom{\rule{0.1em}{0ex}}x[/latex]

Find the linear approximation of [latex]f\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}x[/latex] at [latex]x=\frac{\pi }{3}[/latex] and use it to approximate [latex]\text{sin}\left(62\text{°}\right).[/latex]

First we note that since [latex]\frac{\pi }{3}[/latex] rad is equivalent to [latex]60\text{°},[/latex] using the linear approximation at [latex]x=\pi \text{/}3[/latex] seems reasonable. The linear approximation is given by

[latex]L\left(x\right)=f\left(\frac{\pi }{3}\right)+f\prime \left(\frac{\pi }{3}\right)\left(x-\frac{\pi }{3}\right).[/latex]

We see that

[latex]\begin{array}{ccc}\hfill f\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}x& ⇒\hfill & f\left(\frac{\pi }{3}\right)=\text{sin}\left(\frac{\pi }{3}\right)=\frac{\sqrt{3}}{2}\hfill \\ \hfill f\prime \left(x\right)=\text{cos}\phantom{\rule{0.1em}{0ex}}x& ⇒\hfill & f\prime \left(\frac{\pi }{3}\right)=\text{cos}\left(\frac{\pi }{3}\right)=\frac{1}{2}\hfill \end{array}[/latex]

Therefore, the linear approximation of [latex]f[/latex] at [latex]x=\pi \text{/}3[/latex] is given by [link].

[latex]L\left(x\right)=\frac{\sqrt{3}}{2}+\frac{1}{2}\left(x-\frac{\pi }{3}\right)[/latex]

To estimate [latex]\text{sin}\left(62\text{°}\right)[/latex] using [latex]L,[/latex] we must first convert [latex]62\text{°}[/latex] to radians. We have [latex]62\text{°}=\frac{62\pi }{180}[/latex] radians, so the estimate for [latex]\text{sin}\left(62\text{°}\right)[/latex] is given by

[latex]\text{sin}\left(62\text{°}\right)=f\left(\frac{62\pi }{180}\right)\approx L\left(\frac{62\pi }{180}\right)=\frac{\sqrt{3}}{2}+\frac{1}{2}\left(\frac{62\pi }{180}-\frac{\pi }{3}\right)=\frac{\sqrt{3}}{2}+\frac{1}{2}\left(\frac{2\pi }{180}\right)=\frac{\sqrt{3}}{2}+\frac{\pi }{180}\approx 0.88348.[/latex]
The linear approximation to [latex]f\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}x[/latex] at [latex]x=\pi \text{/}3[/latex] provides an approximation to [latex]\text{sin}\phantom{\rule{0.1em}{0ex}}x[/latex] for [latex]x[/latex] near [latex]\pi \text{/}3.[/latex]
The function f(x) = sin x is shown with its tangent at (π/3, square root of 3 / 2). The tangent appears to be a very good approximation for x near π / 3.

Find the linear approximation for [latex]f\left(x\right)=\text{cos}\phantom{\rule{0.1em}{0ex}}x[/latex] at [latex]x=\frac{\pi }{2}.[/latex]

[latex]L\left(x\right)=\text{−}x+\frac{\pi }{2}[/latex]

Hint

[latex]L\left(x\right)=f\left(a\right)+f\prime \left(a\right)\left(x-a\right)[/latex]

Linear approximations may be used in estimating roots and powers. In the next example, we find the linear approximation for [latex]f\left(x\right)={\left(1+x\right)}^{n}[/latex] at [latex]x=0,[/latex] which can be used to estimate roots and powers for real numbers near 1. The same idea can be extended to a function of the form [latex]f\left(x\right)={\left(m+x\right)}^{n}[/latex] to estimate roots and powers near a different number [latex]m.[/latex]

Approximating Roots and Powers

Find the linear approximation of [latex]f\left(x\right)={\left(1+x\right)}^{n}[/latex] at [latex]x=0.[/latex] Use this approximation to estimate [latex]{\left(1.01\right)}^{3}.[/latex]

The linear approximation at [latex]x=0[/latex] is given by

[latex]L\left(x\right)=f\left(0\right)+f\prime \left(0\right)\left(x-0\right).[/latex]

Because

[latex]\begin{array}{ccc}\hfill f\left(x\right)={\left(1+x\right)}^{n}& ⇒\hfill & f\left(0\right)=1\hfill \\ \hfill f\prime \left(x\right)=n{\left(1+x\right)}^{n-1}& ⇒\hfill & f\prime \left(0\right)=n,\hfill \end{array}[/latex]

the linear approximation is given by [link](a).

[latex]L\left(x\right)=1+n\left(x-0\right)=1+nx[/latex]

We can approximate [latex]{\left(1.01\right)}^{3}[/latex] by evaluating [latex]L\left(0.01\right)[/latex] when [latex]n=3.[/latex] We conclude that

[latex]{\left(1.01\right)}^{3}=f\left(1.01\right)\approx L\left(1.01\right)=1+3\left(0.01\right)=1.03.[/latex]
(a) The linear approximation of [latex]f\left(x\right)[/latex] at [latex]x=0[/latex] is [latex]L\left(x\right).[/latex] (b) The actual value of [latex]{1.01}^{3}[/latex] is 1.030301. The linear approximation of [latex]f\left(x\right)[/latex] at [latex]x=0[/latex] estimates [latex]{1.01}^{3}[/latex] to be 1.03.
This figure has two parts a and b. In figure a, the line f(x) = (1 + x)3 is shown with its tangent line at (0, 1). In figure b, the area near the tangent point is blown up to show how good of an approximation the tangent is near (0, 1).

Find the linear approximation of [latex]f\left(x\right)={\left(1+x\right)}^{4}[/latex] at [latex]x=0[/latex] without using the result from the preceding example.

[latex]L\left(x\right)=1+4x[/latex]

Hint

[latex]f\prime \left(x\right)=4{\left(1+x\right)}^{3}[/latex]

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 [latex]dy\text{/}dx[/latex] to represent the derivative of [latex]y[/latex] with respect to [latex]x.[/latex] Although we used the expressions dy and dx in this notation, they did not have meaning on their own. Here we see a meaning to the expressions dy and dx. Suppose [latex]y=f\left(x\right)[/latex] is a differentiable function. Let dx be an independent variable that can be assigned any nonzero real number, and define the dependent variable [latex]dy[/latex] by

[latex]dy=f\prime \left(x\right)dx.[/latex]

It is important to notice that [latex]dy[/latex] is a function of both [latex]x[/latex] and [latex]dx.[/latex] The expressions dy and dx are called differentials. We can divide both sides of [link] by [latex]dx,[/latex] which yields

[latex]\frac{dy}{dx}=f\prime \left(x\right).[/latex]

This is the familiar expression we have used to denote a derivative. [link] is known as the differential form of [link].

Computing differentials

For each of the following functions, find dy and evaluate when [latex]x=3[/latex] and [latex]dx=0.1.[/latex]

  1. [latex]y={x}^{2}+2x[/latex]
  2. [latex]y=\text{cos}\phantom{\rule{0.1em}{0ex}}x[/latex]

The key step is calculating the derivative. When we have that, we can obtain dy directly.

  1. Since [latex]f\left(x\right)={x}^{2}+2x,[/latex] we know [latex]f\prime \left(x\right)=2x+2,[/latex] and therefore

    [latex]dy=\left(2x+2\right)dx.[/latex]

    When [latex]x=3[/latex] and [latex]dx=0.1,[/latex]

    [latex]dy=\left(2·3+2\right)\left(0.1\right)=0.8.[/latex]
  2. Since [latex]f\left(x\right)=\text{cos}\phantom{\rule{0.1em}{0ex}}x,[/latex] [latex]f\prime \left(x\right)=\text{−}\text{sin}\left(x\right).[/latex] This gives us

    [latex]dy=\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}x\phantom{\rule{0.1em}{0ex}}dx.[/latex]

    When [latex]x=3[/latex] and [latex]dx=0.1,[/latex]

    [latex]dy=\text{−}\text{sin}\left(3\right)\left(0.1\right)=-0.1\phantom{\rule{0.1em}{0ex}}\text{sin}\left(3\right).[/latex]

For [latex]y={e}^{{x}^{2}},[/latex] find [latex]dy.[/latex]

[latex]dy=2x{e}^{{x}^{2}}dx[/latex]

Hint

[latex]dy=f\prime \left(x\right)dx[/latex]

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 [latex]f[/latex] that is differentiable at point [latex]a.[/latex] Suppose the input [latex]x[/latex] changes by a small amount. We are interested in how much the output [latex]y[/latex] changes. If [latex]x[/latex] changes from [latex]a[/latex] to [latex]a+dx,[/latex] then the change in [latex]x[/latex] is [latex]dx[/latex] (also denoted [latex]\text{Δ}x\right),[/latex] and the change in [latex]y[/latex] is given by

[latex]\text{Δ}y=f\left(a+dx\right)-f\left(a\right).[/latex]

Instead of calculating the exact change in [latex]y,[/latex] however, it is often easier to approximate the change in [latex]y[/latex] by using a linear approximation. For [latex]x[/latex] near [latex]a,[/latex] [latex]f\left(x\right)[/latex] can be approximated by the linear approximation

[latex]L\left(x\right)=f\left(a\right)+f\prime \left(a\right)\left(x-a\right).[/latex]

Therefore, if [latex]dx[/latex] is small,

[latex]f\left(a+dx\right)\approx L\left(a+dx\right)=f\left(a\right)+f\prime \left(a\right)\left(a+dx-a\right).[/latex]

That is,

[latex]f\left(a+dx\right)-f\left(a\right)\approx L\left(a+dx\right)-f\left(a\right)=f\prime \left(a\right)dx.[/latex]

In other words, the actual change in the function [latex]f[/latex] if [latex]x[/latex] increases from [latex]a[/latex] to [latex]a+dx[/latex] is approximately the difference between [latex]L\left(a+dx\right)[/latex] and [latex]f\left(a\right),[/latex] where [latex]L\left(x\right)[/latex] is the linear approximation of [latex]f[/latex] at [latex]a.[/latex] By definition of [latex]L\left(x\right),[/latex] this difference is equal to [latex]f\prime \left(a\right)dx.[/latex] In summary,

[latex]\text{Δ}y=f\left(a+dx\right)-f\left(a\right)\approx L\left(a+dx\right)-f\left(a\right)=f\prime \left(a\right)dx=dy.[/latex]

Therefore, we can use the differential [latex]dy=f\prime \left(a\right)dx[/latex] to approximate the change in [latex]y[/latex] if [latex]x[/latex] increases from [latex]x=a[/latex] to [latex]x=a+dx.[/latex] We can see this in the following graph.

The differential [latex]dy=f\prime \left(a\right)dx[/latex] is used to approximate the actual change in [latex]y[/latex] if [latex]x[/latex] increases from [latex]a[/latex] to [latex]a+dx.[/latex]
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).

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.

Approximating Change with Differentials

Let [latex]y={x}^{2}+2x.[/latex] Compute [latex]\text{Δ}y[/latex] and dy at [latex]x=3[/latex] if [latex]dx=0.1.[/latex]

The actual change in [latex]y[/latex] if [latex]x[/latex] changes from [latex]x=3[/latex] to [latex]x=3.1[/latex] is given by

[latex]\text{Δ}y=f\left(3.1\right)-f\left(3\right)=\left[{\left(3.1\right)}^{2}+2\left(3.1\right)\right]-\left[{3}^{2}+2\left(3\right)\right]=0.81.[/latex]

The approximate change in [latex]y[/latex] is given by [latex]dy=f\prime \left(3\right)dx.[/latex] Since [latex]f\prime \left(x\right)=2x+2,[/latex] we have

[latex]dy=f\prime \left(3\right)dx=\left(2\left(3\right)+2\right)\left(0.1\right)=0.8.[/latex]

For [latex]y={x}^{2}+2x,[/latex] find [latex]\text{Δ}y[/latex] and [latex]dy[/latex] at [latex]x=3[/latex] if [latex]dx=0.2.[/latex]

[latex]dy=1.6,[/latex][latex]\text{Δ}y=1.64[/latex]

Hint

[latex]dy=f\prime \left(3\right)dx,[/latex][latex]\text{Δ}y=f\left(3.2\right)-f\left(3\right)[/latex]

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 [latex]f[/latex] with an input that is a measured quantity. Suppose the exact value of the measured quantity is [latex]a,[/latex] but the measured value is [latex]a+dx.[/latex] We say the measurement error is dx (or [latex]\text{Δ}x\right).[/latex] As a result, an error occurs in the calculated quantity [latex]f\left(x\right).[/latex] This type of error is known as a propagated error and is given by

[latex]\text{Δ}y=f\left(a+dx\right)-f\left(a\right).[/latex]

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 [latex]\text{Δ}y.[/latex] Specifically, if [latex]f[/latex] is a differentiable function at [latex]a,[/latex] the propagated error is

[latex]\text{Δ}y\approx dy=f\prime \left(a\right)dx.[/latex]

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

[latex]\text{Δ}y\approx dy\approx f\prime \left(a+dx\right)dx.[/latex]

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.

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.
  1. The measurement of the side length is accurate to within [latex]\text{±}0.1[/latex] cm. Therefore,

    [latex]-0.1\le dx\le 0.1.[/latex]

    The volume of a cube is given by [latex]V={x}^{3},[/latex] which leads to

    [latex]dV=3{x}^{2}dx.[/latex]

    Using the measured side length of 5 cm, we can estimate that

    [latex]-3{\left(5\right)}^{2}\left(0.1\right)\le dV\le 3{\left(5\right)}^{2}\left(0.1\right).[/latex]

    Therefore,

    [latex]-7.5\le dV\le 7.5.[/latex]
  2. If the side length is actually 4.9 cm, then the volume of the cube is

    [latex]V\left(4.9\right)={\left(4.9\right)}^{3}=117.649{\phantom{\rule{0.2em}{0ex}}\text{cm}}^{3}.[/latex]

    If the side length is actually 5.1 cm, then the volume of the cube is

    [latex]V\left(5.1\right)={\left(5.1\right)}^{3}=132.651{\phantom{\rule{0.2em}{0ex}}\text{cm}}^{3}.[/latex]

    Therefore, the actual volume of the cube is between 117.649 and 132.651. Since the side length is measured to be 5 cm, the computed volume is [latex]V\left(5\right)={5}^{3}=125.[/latex] Therefore, the error in the computed volume is

    [latex]117.649-125\le \text{Δ}V\le 132.651-125.[/latex]

    That is,

    [latex]-7.351\le \text{Δ}V\le 7.651.[/latex]

    We see the estimated error [latex]dV[/latex] is relatively close to the actual potential error in the computed volume.

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 volume measurement is accurate to within [latex]21.6{\phantom{\rule{0.2em}{0ex}}\text{cm}}^{3}.[/latex]

Hint

[latex]dV=3{x}^{2}dx[/latex]

The measurement error dx [latex]\left(\text{=Δ}x\right)[/latex] and the propagated error [latex]\text{Δ}y[/latex] 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 [latex]\text{Δ}q[/latex] for a particular quantity, we define the relative error as [latex]\frac{\text{Δ}q}{q},[/latex] where [latex]q[/latex] 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 [latex]\frac{1}{62}=0.016,[/latex] or [latex]1.6\text{%}.[/latex] 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 [latex]\frac{1}{4}[/latex] in., whereas the relative error is [latex]\frac{0.25}{8}=\frac{1}{32},[/latex] or [latex]3.1\text{%}.[/latex] Therefore, the percentage error in the measurement of the cardboard is larger, even though 0.25 in. is less than 1 in.

Relative and Percentage Error

An astronaut using a camera measures the radius of Earth as 4000 mi with an error of [latex]\text{±}80[/latex] 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.

If the measurement of the radius is accurate to within [latex]\text{±}80,[/latex] we have

[latex]-80\le dr\le 80.[/latex]

Since the volume of a sphere is given by [latex]V=\left(\frac{4}{3}\right)\pi {r}^{3},[/latex] we have

[latex]dV=4\pi {r}^{2}dr.[/latex]

Using the measured radius of 4000 mi, we can estimate

[latex]-4\pi {\left(4000\right)}^{2}\left(80\right)\le dV\le 4\pi {\left(4000\right)}^{2}\left(80\right).[/latex]

To estimate the relative error, consider [latex]\frac{dV}{V}.[/latex] Since we do not know the exact value of the volume [latex]V,[/latex] use the measured radius [latex]r=4000\phantom{\rule{0.2em}{0ex}}\text{mi}[/latex] to estimate [latex]V.[/latex] We obtain [latex]V\approx \left(\frac{4}{3}\right)\pi {\left(4000\right)}^{3}.[/latex] Therefore the relative error satisfies

[latex]\frac{-4\pi {\left(4000\right)}^{2}\left(80\right)}{4\pi {\left(4000\right)}^{3}\text{/}3}\le \frac{dV}{V}\le \frac{4\pi {\left(4000\right)}^{2}\left(80\right)}{4\pi {\left(4000\right)}^{3}\text{/}3},[/latex]

which simplifies to

[latex]-0.06\le \frac{dV}{V}\le 0.06.[/latex]

The relative error is 0.06 and the percentage error is [latex]6\text{%}.[/latex]

Determine the percentage error if the radius of Earth is measured to be 3950 mi with an error of [latex]\text{±}100[/latex] mi.

7.6%

Hint

Use the fact that [latex]dV=4\pi {r}^{2}dr[/latex] to find [latex]dV\text{/}V.[/latex]

Key Concepts

  • A differentiable function [latex]y=f\left(x\right)[/latex] can be approximated at [latex]a[/latex] by the linear function

    [latex]L\left(x\right)=f\left(a\right)+f\prime \left(a\right)\left(x-a\right).[/latex]
  • For a function [latex]y=f\left(x\right),[/latex] if [latex]x[/latex] changes from [latex]a[/latex] to [latex]a+dx,[/latex] then

    [latex]dy=f\prime \left(x\right)dx[/latex]

    is an approximation for the change in [latex]y.[/latex] The actual change in [latex]y[/latex] is

    [latex]\text{Δ}y=f\left(a+dx\right)-f\left(a\right).[/latex]
  • A measurement error [latex]dx[/latex] can lead to an error in a calculated quantity [latex]f\left(x\right).[/latex] The error in the calculated quantity is known as the propagated error. The propagated error can be estimated by

    [latex]dy\approx f\prime \left(x\right)dx.[/latex]
  • To estimate the relative error of a particular quantity [latex]q,[/latex] we estimate [latex]\frac{\text{Δ}q}{q}.[/latex]

Key Equations

  • Linear approximation

    [latex]L\left(x\right)=f\left(a\right)+f\prime \left(a\right)\left(x-a\right)[/latex]
  • A differential

    [latex]dy=f\prime \left(x\right)dx.[/latex]

What is the linear approximation for any generic linear function [latex]y=mx+b?[/latex]

Determine the necessary conditions such that the linear approximation function is constant. Use a graph to prove your result.

[latex]{f}^{\prime }\left(a\right)=0[/latex]

Explain why the linear approximation becomes less accurate as you increase the distance between [latex]x[/latex] and [latex]a.[/latex] Use a graph to prove your argument.

When is the linear approximation exact?

The linear approximation exact when [latex]y=f\left(x\right)[/latex] is linear or constant.

For the following exercises, find the linear approximation [latex]L\left(x\right)[/latex] to [latex]y=f\left(x\right)[/latex] near [latex]x=a[/latex] for the function.

[T][latex]f\left(x\right)=x+{x}^{4},a=0[/latex]

[T][latex]f\left(x\right)=\frac{1}{x},a=2[/latex]

[latex]L\left(x\right)=\frac{1}{2}-\frac{1}{4}\left(x-2\right)[/latex]

[T][latex]f\left(x\right)=\text{tan}\phantom{\rule{0.1em}{0ex}}x,a=\frac{\pi }{4}[/latex]

[T][latex]f\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}x,a=\frac{\pi }{2}[/latex]

[latex]L\left(x\right)=1[/latex]

[T][latex]f\left(x\right)=x\phantom{\rule{0.1em}{0ex}}\text{sin}\phantom{\rule{0.1em}{0ex}}x,a=2\pi [/latex]

[T][latex]f\left(x\right)={\text{sin}}^{2}x,a=0[/latex]

[latex]L\left(x\right)=0[/latex]

For the following exercises, compute the values given within 0.01 by deciding on the appropriate [latex]f\left(x\right)[/latex] and [latex]a,[/latex] and evaluating [latex]L\left(x\right)=f\left(a\right)+{f}^{\prime }\left(a\right)\left(x-a\right).[/latex] Check your answer using a calculator.

[T][latex]{\left(2.001\right)}^{6}[/latex]

[T][latex]\text{sin}\left(0.02\right)[/latex]

0.02

[T][latex]\text{cos}\left(0.03\right)[/latex]

[T][latex]{\left(15.99\right)}^{1\text{/}4}[/latex]

[latex]1.9996875[/latex]

[T][latex]\frac{1}{0.98}[/latex]

[T][latex]\text{sin}\left(3.14\right)[/latex]

[latex]0.001593[/latex]

For the following exercises, determine the appropriate [latex]f\left(x\right)[/latex] and [latex]a,[/latex] and evaluate [latex]L\left(x\right)=f\left(a\right)+{f}^{\prime }\left(a\right)\left(x-a\right).[/latex] Calculate the numerical error in the linear approximations that follow.

[latex]{\left(1.01\right)}^{3}[/latex]

[latex]\text{cos}\left(0.01\right)[/latex]

[latex]1;[/latex] error, [latex]~0.00005[/latex]

[latex]{\left(\text{sin}\left(0.01\right)\right)}^{2}[/latex]

[latex]{\left(1.01\right)}^{-3}[/latex]

[latex]0.97;[/latex] error, [latex]~0.0006[/latex]

[latex]{\left(1+\frac{1}{10}\right)}^{10}[/latex]

[latex]\sqrt{8.99}[/latex]

[latex]3-\frac{1}{600};[/latex] error, [latex]~4.632\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{-7}[/latex]

For the following exercises, find the differential of the function.

[latex]y=3{x}^{4}+{x}^{2}-2x+1[/latex]

[latex]y=x\phantom{\rule{0.1em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}x[/latex]

[latex]dy=\left(\text{cos}\phantom{\rule{0.1em}{0ex}}x-x\phantom{\rule{0.1em}{0ex}}\text{sin}\phantom{\rule{0.1em}{0ex}}x\right)dx[/latex]

[latex]y=\sqrt{1+x}[/latex]

[latex]y=\frac{{x}^{2}+2}{x-1}[/latex]

[latex]dy=\left(\frac{{x}^{2}-2x-2}{{\left(x-1\right)}^{2}}\right)dx[/latex]

For the following exercises, find the differential and evaluate for the given [latex]x[/latex] and [latex]dx.[/latex]

[latex]y=3{x}^{2}-x+6,[/latex][latex]x=2,[/latex][latex]dx=0.1[/latex]

[latex]y=\frac{1}{x+1},[/latex][latex]x=1,[/latex][latex]dx=0.25[/latex]

[latex]dy=-\frac{1}{{\left(x+1\right)}^{2}}dx,[/latex][latex]-\frac{1}{16}[/latex]

[latex]y=\text{tan}\phantom{\rule{0.1em}{0ex}}x,[/latex][latex]x=0,[/latex][latex]dx=\frac{\pi }{10}[/latex]

[latex]y=\frac{3{x}^{2}+2}{\sqrt{x+1}},[/latex][latex]x=0,[/latex][latex]dx=0.1[/latex]

[latex]dy=\frac{9{x}^{2}+12x-2}{2{\left(x+1\right)}^{3\text{/}2}}dx,[/latex][latex]-0.1[/latex]

[latex]y=\frac{\text{sin}\left(2x\right)}{x},[/latex][latex]x=\pi ,[/latex][latex]dx=0.25[/latex]

[latex]y={x}^{3}+2x+\frac{1}{x},[/latex][latex]x=1,[/latex][latex]dx=0.05[/latex]

[latex]dy=\left(3{x}^{2}+2-\frac{1}{{x}^{2}}\right)dx,[/latex][latex]0.2[/latex]

For the following exercises, find the change in volume [latex]dV[/latex] or in surface area [latex]dA.[/latex]

[latex]dV[/latex] if the sides of a cube change from 10 to 10.1.

[latex]dA[/latex] if the sides of a cube change from [latex]x[/latex] to [latex]x+dx.[/latex]

[latex]12x\phantom{\rule{0.1em}{0ex}}dx[/latex]

[latex]dA[/latex] if the radius of a sphere changes from [latex]r[/latex] by [latex]dr.[/latex]

[latex]dV[/latex] if the radius of a sphere changes from [latex]r[/latex] by [latex]dr.[/latex]

[latex]4\pi {r}^{2}dr[/latex]

[latex]dV[/latex] if a circular cylinder with [latex]r=2[/latex] changes height from 3 cm to [latex]3.05\phantom{\rule{0.2em}{0ex}}\text{cm}.[/latex]

[latex]dV[/latex] if a circular cylinder of height 3 changes from [latex]r=2[/latex] to [latex]r=1.9\phantom{\rule{0.2em}{0ex}}\text{cm}.[/latex]

[latex]-1.2\pi {\phantom{\rule{0.2em}{0ex}}\text{cm}}^{3}[/latex]

For the following exercises, use differentials to estimate the maximum and relative error when computing the surface area or volume.

A spherical golf ball is measured to have a radius of [latex]5\phantom{\rule{0.2em}{0ex}}\text{mm},[/latex] with a possible measurement error of [latex]0.1\phantom{\rule{0.2em}{0ex}}\text{mm}.[/latex] What is the possible change in volume?

A pool has a rectangular base of 10 ft by 20 ft and a depth of 6 ft. What is the change in volume if you only fill it up to 5.5 ft?

[latex]-100[/latex] ft3

An ice cream cone has height 4 in. and radius 1 in. If the cone is 0.1 in. thick, what is the difference between the volume of the cone, including the shell, and the volume of the ice cream you can fit inside the shell?

For the following exercises, confirm the approximations by using the linear approximation at [latex]x=0.[/latex]

[latex]\sqrt{1-x}\approx 1-\frac{1}{2}x[/latex]

[latex]\frac{1}{\sqrt{1-{x}^{2}}}\approx 1[/latex]

[latex]\sqrt{{c}^{2}+{x}^{2}}\approx c[/latex]

Glossary

differential
the differential [latex]dx[/latex] is an independent variable that can be assigned any nonzero real number; the differential [latex]dy[/latex] is defined to be [latex]dy=f\prime \left(x\right)dx[/latex]
differential form
given a differentiable function [latex]y=f\prime \left(x\right),[/latex] the equation [latex]dy=f\prime \left(x\right)dx[/latex] is the differential form of the derivative of [latex]y[/latex] with respect to [latex]x[/latex]
linear approximation
the linear function [latex]L\left(x\right)=f\left(a\right)+f\prime \left(a\right)\left(x-a\right)[/latex] is the linear approximation of [latex]f[/latex] at [latex]x=a[/latex]
percentage error
the relative error expressed as a percentage
propagated error
the error that results in a calculated quantity [latex]f\left(x\right)[/latex] resulting from a measurement error dx
relative error
given an absolute error [latex]\text{Δ}q[/latex] for a particular quantity, [latex]\frac{\text{Δ}q}{q}[/latex] is the relative error.
tangent line approximation (linearization)
since the linear approximation of [latex]f[/latex] at [latex]x=a[/latex] is defined using the equation of the tangent line, the linear approximation of [latex]f[/latex] at [latex]x=a[/latex] is also known as the tangent line approximation to [latex]f[/latex] at [latex]x=a[/latex]