# 4.3 Differentials

In Section 2.2 we explored the meaning and use of the derivative. This section starts by revisiting some of those ideas.

Recall that the derivative of a function $f$ can be used to find the slopes of lines tangent to the graph of $f$. At $x=c$, the tangent line to the graph of $f$ has equation

 $y=f\,^{\prime}(c)(x-c)+f(c).$

The tangent line can be used to find good approximations of $f(x)$ for values of $x$ near $c$. (This tangent line is also called the linearization of $f$ at $c$.)

For instance, we can approximate $\sin 1.1$ using the tangent line to the graph of $f(x)=\sin x$ at $x=\pi/3\approx 1.05.$ Recall that $\sin(\pi/3)=\sqrt{3}/2\approx 0.866$, and $\cos(\pi/3)=1/2$. Thus the tangent line to $f(x)=\sin x$ at $x=\pi/3$ is:

 $\ell(x)=\frac{1}{2}(x-\pi/3)+0.866.$
margin: (a) (b) Figure 4.3.1: Graphing $f(x)=\sin x$ and its tangent line at $x=\pi/3$ in order to estimate $\sin 1.1$. Λ

In Figure 4.3.1(a), we see a graph of $f(x)=\sin x$ graphed along with its tangent line at $x=\pi/3$. The small rectangle shows the region that is displayed in Figure 4.3.1(b). In this figure, we see how we are approximating $\sin 1.1$ with the tangent line, evaluated at $1.1$. Together, the two figures show how close these values are.

Using this line to approximate $\sin 1.1$, we have:

 $\displaystyle\ell(1.1)$ $\displaystyle=\frac{1}{2}(1.1-\pi/3)+0.866$ $\displaystyle=\frac{1}{2}(0.053)+0.866=0.8925.$

(We leave it to the reader to see how good of an approximation this is.)

We now generalize this concept. Given $f(x)$ and an $x$-value $c$, the tangent line is $\ell(x)=f\,^{\prime}(c)(x-c)+f(c)$. Clearly, $f(c)=\ell(c)$. Let $\Delta x$ be a small number, representing a small change in $x$ value. We assert that:

 $f(c+\Delta x)\approx\ell(c+\Delta x),$

since the tangent line to a function approximates well the values of that function near $x=c$.

As the $x$ value changes from $c$ to $c+\Delta x$, the $y$ value of $f$ changes from $f(c)$ to $f(c+\Delta x)$. We call this change of $y$ value $\Delta y$. That is:

 $\Delta y=f(c+\Delta x)-f(c).$

Replacing $f(c+\Delta x)$ with its tangent line approximation, we have

 $\displaystyle\Delta y$ $\displaystyle\approx\ell(c+\Delta x)-f(c)$ $\displaystyle=f\,^{\prime}(c)\bigl{(}(c+\Delta x)-c\bigr{)}+f(c)-f(c)$ $\displaystyle=f\,^{\prime}(c)\Delta x$ (4.3.1)

This final equation is important; we’ll come back to it in Key Idea 4.3.1.

We introduce two new variables, $\operatorname{d}\!x$ and $\operatorname{d}\!y$ in the context of a formal definition.

###### Definition 4.3.1 Differentials of $x$ and $y$.

Let $y=f(x)$ be differentiable. The differential of $x$, denoted $\operatorname{d}\!x$, is any nonzero real number (usually taken to be a small number). The differential of $y$, denoted $\operatorname{d}\!y$, is

 $\operatorname{d}\!y=f\,^{\prime}(x)\operatorname{d}\!x.$

We can solve for $f\,^{\prime}(x)$ in the above equation: $f\,^{\prime}(x)=\operatorname{d}\!y/\operatorname{d}\!x$. This states that the derivative of $f$ with respect to $x$ is the differential of $y$ divided by the differential of $x$; this is not the alternate notation for the derivative, $\frac{\operatorname{d}\!y}{\operatorname{d}\!x}$. This latter notation was chosen because of the fraction-like qualities of the derivative, but again, it is one symbol and not a fraction.

It is helpful to organize our new concepts and notations in one place and an accompanying figure.

margin: Figure 4.3.2: The distances involved in Key Idea 4.3.1. Λ
###### Key Idea 4.3.1 Differential Notation

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

1. (a)

$\Delta x$ represents a small, nonzero change in $x$ value.

2. (b)

$\operatorname{d}\!x$ represents a small, nonzero change in $x$ value (i.e., $\Delta x=\operatorname{d}\!x$).

3. (c)

$\Delta y$ is the change in $y$ value as $x$ changes by $\Delta x$; hence

 $\Delta y=f(x+\Delta x)-f(x).$
4. (d)

$\operatorname{d}\!y=f\,^{\prime}(x)\operatorname{d}\!x$ which, by Equation (4.3.1), is an approximation of the change in $y$ value as $x$ changes by $\Delta x$; $\operatorname{d}\!y\approx\Delta y$.

What is the value of differentials? Like many mathematical concepts, differentials provide both practical and theoretical benefits. We explore both here.

###### Example 4.3.1 Finding and using differentials

Consider $f(x)=x^{2}$. Knowing $f(3)=9$, approximate $f(3.1)$.

SolutionThe $x$ value is changing from $x=3$ to $x=3.1$; therefore, we see that $\operatorname{d}\!x=0.1$. If we know how much the $y$ value changes from $f(3)$ to $f(3.1)$ (i.e., if we know $\Delta y$), we will know exactly what $f(3.1)$ is (since we already know $f(3)$). We can approximate $\Delta y$ with $\operatorname{d}\!y$.

 $\displaystyle\Delta y$ $\displaystyle\approx\operatorname{d}\!y$ $\displaystyle=f\,^{\prime}(3)\operatorname{d}\!x$ $\displaystyle=2\cdot 3\cdot 0.1=0.6.$

We expect the $y$ value to change by about $0.6$, so we approximate $f(3.1)\approx 9.6.$

We leave it to the reader to verify this, but the preceding discussion links the differential to the tangent line of $f(x)$ at $x=3$. One can verify that the tangent line, evaluated at $x=3.1$, also gives $y=9.6$.

Of course, it is easy to compute the actual answer (by hand or with a calculator): $3.1^{2}=9.61.$ (Before we get too cynical and say “Then why bother?”, note our approximation is really good!)

So why bother?

In “most” real life situations, we do not know the function that describes a particular behavior. Instead, we can only take measurements of how things change — measurements of the derivative.

Imagine water flowing down a winding channel. It is easy to measure the speed and direction (i.e., the velocity) of water at any location. It is very hard to create a function that describes the overall flow, hence it is hard to predict where a floating object placed at the beginning of the channel will end up. However, we can approximate the path of an object using differentials. Over small intervals, the path taken by a floating object is essentially linear. Differentials allow us to approximate the true path by piecing together lots of short, linear paths. This technique is called Euler’s Method, studied in introductory Differential Equations courses.

We use differentials once more to approximate the value of a function. Even though calculators are very accessible, it is neat to see how these techniques can sometimes be used to easily compute something that looks rather hard.

###### Example 4.3.2 Using differentials to approximate a function value

Approximate $\sqrt{4.5}$.

SolutionWe expect $\sqrt{4.5}\approx 2$, yet we can do better. Let $f(x)=\sqrt{x}$, and let $c=4$. Thus $f(4)=2$. We can compute $f\,^{\prime}(x)=1/(2\sqrt{x})$, so $f\,^{\prime}(4)=1/4$.

We approximate the difference between $f(4.5)$ and $f(4)$ using differentials, with $\operatorname{d}\!x=0.5$:

 $f(4.5)-f(4)=\Delta y\approx\operatorname{d}\!y=f\,^{\prime}(4)\cdot% \operatorname{d}\!x=1/4\cdot 1/2=1/8=0.125.$

The approximate change in $f$ from $x=4$ to $x=4.5$ is $0.125$, so we approximate $\sqrt{4.5}\approx 2.125$.

Differentials are important when we discuss integration. When we study that topic, we will use notation such as

 $\int f(x)\operatorname{d}\!x$

quite often. While we don’t discuss here what all of that notation means, note the existence of the differential $\operatorname{d}\!x$. Proper handling of integrals comes with proper handling of differentials.

In light of that, we practice finding differentials in general.

###### Example 4.3.3 Finding differentials

In each of the following, find the differential $\operatorname{d}\!y$.

 $\text{1.}\quad y=\sin x\qquad\qquad\text{2.}\quad y=e^{x}(x^{2}+2)\qquad\qquad% \text{3.}\quad y=\sqrt{x^{2}+3x-1}$

Solution

1. (a)

$y=\sin x$:  As $f(x)=\sin x$, $f\,^{\prime}(x)=\cos x$. Thus

 $\operatorname{d}\!y=\cos(x)\operatorname{d}\!x.$
2. (b)

$y=e^{x}(x^{2}+2)$: Let $f(x)=e^{x}(x^{2}+2)$. We need $f\,^{\prime}(x)$, requiring the Product Rule.

We have $f\,^{\prime}(x)=e^{x}(x^{2}+2)+2xe^{x}$, so

 $\operatorname{d}\!y=\bigl{(}e^{x}(x^{2}+2)+2xe^{x}\bigr{)}\operatorname{d}\!x.$
3. (c)

$y=\sqrt{x^{2}+3x-1}$: Let $f(x)=\sqrt{x^{2}+3x-1}$; we need $f\,^{\prime}(x)$, requiring the Chain Rule.

We have $\displaystyle f\,^{\prime}(x)=\frac{1}{2}(x^{2}+3x-1)^{-\frac{1}{2}}(2x+3)=% \frac{2x+3}{2\sqrt{x^{2}+3x-1}}.$ Thus

 $\operatorname{d}\!y=\frac{(2x+3)\operatorname{d}\!x}{2\sqrt{x^{2}+3x-1}}.$

Finding the differential $\operatorname{d}\!y$ of $y=f(x)$ is really no harder than finding the derivative of $f$; we just multiply $f\,^{\prime}(x)$ by $\operatorname{d}\!x$. It is important to remember that we are not simply adding the symbol “$\operatorname{d}\!x$” at the end.

We have seen a practical use of differentials as they offer a good method of making certain approximations. Another use is error propagation. Suppose a length is measured to be $x$, although the actual value is $x+\Delta x$ (where we hope $\Delta x$ is small). This measurement of $x$ may be used to compute some other value; we can think of this as $f(x)$ for some function $f$. As the true length is $x+\Delta x$, one really should have computed $f(x+\Delta x)$. The difference between $f(x)$ and $f(x+\Delta x)$ is the propagated error.

How close are $f(x)$ and $f(x+\Delta x)$? This is a difference in “y” values;

 $f(x+\Delta x)-f(x)=\Delta y\approx\operatorname{d}\!y.$

We can approximate the propagated error using differentials.

###### Example 4.3.4 Using differentials to approximate propagated error

A steel ball bearing is to be manufactured with a diameter of 2cm. The manufacturing process has a tolerance of $\pm 0.1$mm in the diameter. Given that the density of steel is about 7.85g/cm${}^{3}$, estimate the propagated error in the mass of the ball bearing.

SolutionThe mass of a ball bearing is found using the equation “mass = volume $\times$ density.” In this situation the mass function is a product of the radius of the ball bearing, hence it is $m=7.85\frac{4}{3}\pi r^{3}$. The differential of the mass is

 $\operatorname{d}\!m=31.4\pi r^{2}\operatorname{d}\!r.$

The radius is to be 1cm; the manufacturing tolerance in the radius is $\pm 0.05$mm, or $\pm 0.005$cm. The propagated error is approximately:

 $\displaystyle\Delta m$ $\displaystyle\approx\operatorname{d}\!m$ $\displaystyle=31.4\pi(1)^{2}(\pm 0.005)$ $\displaystyle=\pm 0.493\text{g}$

Is this error significant? It certainly depends on the application, but we can get an idea by computing the relative error. The ratio between amount of error to the total mass is

 $\displaystyle\frac{\operatorname{d}\!m}{m}$ $\displaystyle=\pm\frac{0.493}{7.85\frac{4}{3}\pi}$ $\displaystyle=\pm\frac{0.493}{32.88}$ $\displaystyle=\pm 0.015,$

or $\pm 1.5$%.

We leave it to the reader to confirm this, but if the diameter of the ball was supposed to be 10cm, the same manufacturing tolerance would give a propagated error in mass of $\pm 12.33$g, which corresponds to a percent error of $\pm 0.19$%. While the amount of error is much greater ($12.33>0.493$), the percent error is much lower.

## Exercises 4.3

### Terms and Concepts

1. 1.

T/F: Given a differentiable function $y=f(x)$, we are generally free to choose a value for $\operatorname{d}\!x$, which then determines the value of $\operatorname{d}\!y$.

2. 2.

T/F: The symbols “$\operatorname{d}\!x$” and “$\Delta x$” represent the same concept.

3. 3.

T/F: The symbols “$\operatorname{d}\!y$” and “$\Delta y$” represent the same concept.

4. 4.

T/F: Differentials are important in the study of integration.

5. 5.

How are differentials and tangent lines related?

6. 6.

T/F:In real life, differentials are used to approximate function values when the function itself is not known.

### Problems

In Exercises 7–16., use differentials to approximate the given value by hand.

1. 7.

$2.05^{2}$

2. 8.

$5.93^{2}$

3. 9.

$5.1^{3}$

4. 10.

$6.8^{3}$

5. 11.

$\sqrt{16.5}$

6. 12.

$\sqrt{24}$

7. 13.

$\sqrt{63}$

8. 14.

$\sqrt{8.5}$

9. 15.

$\sin 3$

10. 16.

$e^{0.1}$

In Exercises 17–30., compute the differential $\operatorname{d}\!y$.

1. 17.

$y=x^{2}+3x-5$

2. 18.

$y=x^{7}-x^{5}$

3. 19.

$\displaystyle y=\frac{1}{4x^{2}}$

4. 20.

$\displaystyle y=(2x+\sin x)^{2}$

5. 21.

$\displaystyle y=x^{2}e^{3x}$

6. 22.

$\displaystyle y=\frac{4}{x^{4}}$

7. 23.

$\displaystyle y=\frac{2x}{\tan x+1}$

8. 24.

$\displaystyle y=\ln(5x)$

9. 25.

$\displaystyle y=e^{x}\sin x$

10. 26.

$\displaystyle y=\cos(\sin x)$

11. 27.

$\displaystyle y=\frac{x+1}{x+2}$

12. 28.

$\displaystyle y=3^{x}\ln x$

13. 29.

$\displaystyle y=x\ln x-x$

14. 30.

$y=\ln(\sec x)$

In Exercises 31–36., use the linear approximation $(1+x)^{k}\approx 1+kx$ to find an approximation for the function $f(x)$ for values of $x$ near zero.

1. 31.

$f(x)=(1-x)^{6}$

2. 32.

$f(x)=\dfrac{2}{1-x}$

3. 33.

$f(x)=\dfrac{1}{\sqrt{1+x}}$

4. 34.

$f(x)=\sqrt{2+x^{2}}$

5. 35.

$f(x)=(4+3x)^{1/3}$

6. 36.

$\displaystyle f(x)=\sqrt{\biggl{(}1-\frac{1}{2+x}\biggr{)}^{2}}$

Exercises 37–40. use differentials to approximate propagated error

1. 37.

A set of plastic spheres are to be made with a diameter of 1cm. If the manufacturing process is accurate to 1mm, what is the propagated error in volume of the spheres?

2. 38.
The distance, in feet, a stone drops in $t$ seconds is given by $d(t)=16t^{2}$. The depth of a hole is to be approximated by dropping a rock and listening for it to hit the bottom. What is the propagated error if the time measurement is accurate to $2/10^{\text{ths}}$ of a second and the measured time is: (a) 2 seconds? (b) 5 seconds?
3. 39.

What is the propagated error in the measurement of the cross sectional area of a circular log if the diameter is measured at $15^{\prime\prime}$, accurate to $1/4^{\prime\prime}$?

4. 40.

A wall is to be painted that is exactly $8^{\prime}$ high and is measured to be $10^{\prime},\ 7^{\prime\prime}$ long. Find the propagated error in the measurement of the wall’s surface area if the measurement of the length is accurate to $1/2^{\prime\prime}$.

Exercises 41–44. explore some issues related to surveying in which distances are approximated using other measured distances and measured angles. (Hint: Convert all angles to radians before computing.)

1. 41.
The length $l$ of a long wall is to be approximated. The angle $\theta$, as shown in the diagram (not to scale), is measured to be $85.2^{\circ}$, accurate to $1^{\circ}$. Assume that the triangle formed is a right triangle. (a) What is the measured length $l$ of the wall? (b) What is the propagated error? (c) What is the percent error?
2. 42.

Answer the questions of 41., but with a measured angle of $71.5^{\circ}$, accurate to $1^{\circ}$, measured from a point $100^{\prime}$ from the wall.

3. 43.
The length $l$ of a long wall is to be calculated by measuring the angle $\theta$ shown in the diagram (not to scale). Assume the formed triangle is an isosceles triangle. The measured angle is $143^{\circ}$, accurate to $1^{\circ}$. (a) What is the measured length of the wall? (b) What is the propagated error? (c) What is the percent error?
4. 44.

Consider the setup in 43.. This time, assume the angle measurement of $143^{\circ}$ is exact but the measured $50^{\prime}$ from the wall is accurate to $6^{\prime\prime}$. What is the approximate percent error?

1. 45.

Show that the linearization of $f(x)=(1+x)^{k}$ at $x=0$ is $L(x)=1+kx$. 