Skip to main content
\(\require{cancel}\newcommand{\highlight}[1]{{\color{blue}{#1}}} \newcommand{\apex}{A\kern -1pt \lower -2pt\mbox{P}\kern -4pt \lower .7ex\mbox{E}\kern -1pt X} \newcommand{\colorlinecolor}{blue!95!black!30} \newcommand{\bwlinecolor}{black!30} \newcommand{\thelinecolor}{\colorlinecolor} \newcommand{\colornamesuffix}{} \newcommand{\linestyle}{[thick, \thelinecolor]} \newcommand{\bmx}[1]{\left[\hskip -3pt\begin{array}{#1} } \newcommand{\emx}{\end{array}\hskip -3pt\right]} \newcommand{\ds}{\displaystyle} \newcommand{\fp}{f'} \newcommand{\fpp}{f''} \newcommand{\lz}[2]{\frac{d#1}{d#2}} \newcommand{\lzn}[3]{\frac{d^{#1}#2}{d#3^{#1}}} \newcommand{\lzo}[1]{\frac{d}{d#1}} \newcommand{\lzoo}[2]{{\frac{d}{d#1}}{\left(#2\right)}} \newcommand{\lzon}[2]{\frac{d^{#1}}{d#2^{#1}}} \newcommand{\lzoa}[3]{\left.{\frac{d#1}{d#2}}\right|_{#3}} \newcommand{\plz}[2]{\frac{\partial#1}{\partial#2}} \newcommand{\plzoa}[3]{\left.{\frac{\partial#1}{\partial#2}}\right|_{#3}} \newcommand{\inflim}[1][n]{\lim\limits_{#1 \to \infty}} \newcommand{\infser}[1][1]{\sum_{n=#1}^\infty} \newcommand{\Fp}{F\primeskip'} \newcommand{\Fpp}{F\primeskip''} \newcommand{\yp}{y\primeskip'} \newcommand{\gp}{g\primeskip'} \newcommand{\dx}{\Delta x} \newcommand{\dy}{\Delta y} \newcommand{\ddz}{\Delta z} \newcommand{\thet}{\theta} \newcommand{\norm}[1]{\left\lVert#1\right\rVert} \newcommand{\vnorm}[1]{\left\lVert\vec #1\right\rVert} \newcommand{\snorm}[1]{\left|\left|\ #1\ \right|\right|} \newcommand{\la}{\left\langle} \newcommand{\ra}{\right\rangle} \newcommand{\dotp}[2]{\vec #1 \cdot \vec #2} \newcommand{\proj}[2]{\text{proj}_{\,\vec #2}{\,\vec #1}} \newcommand{\crossp}[2]{\vec #1 \times \vec #2} \newcommand{\veci}{\vec i} \newcommand{\vecj}{\vec j} \newcommand{\veck}{\vec k} \newcommand{\vecu}{\vec u} \newcommand{\vecv}{\vec v} \newcommand{\vecw}{\vec w} \newcommand{\vecx}{\vec x} \newcommand{\vecy}{\vec y} \newcommand{\vrp}{\vec r\, '} \newcommand{\vsp}{\vec s\, '} \newcommand{\vrt}{\vec r(t)} \newcommand{\vst}{\vec s(t)} \newcommand{\vvt}{\vec v(t)} \newcommand{\vat}{\vec a(t)} \newcommand{\px}{\partial x} \newcommand{\py}{\partial y} \newcommand{\pz}{\partial z} \newcommand{\pf}{\partial f} \newcommand{\mathN}{\mathbb{N}} \newcommand{\zerooverzero}{\ds \raisebox{8pt}{\text{``\ }}\frac{0}{0}\raisebox{8pt}{\textit{ ''}}} \newcommand{\deriv}[2]{\myds\frac{d}{dx}\left(#1\right)=#2} \newcommand{\myint}[2]{\myds\int #1\ dx= {\ds #2}} \DeclareMathOperator{\sech}{sech} \DeclareMathOperator{\csch}{csch} \newcommand{\primeskip}{\hskip.75pt} \newcommand{\plotlinecolor}{blue} \newcommand{\colorone}{blue} \newcommand{\colortwo}{red} \newcommand{\coloronefill}{blue!15!white} \newcommand{\colortwofill}{red!15!white} \newcommand{\abs}[1]{\left\lvert #1\right\rvert} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section4.4Differentials

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\text{.}\) At \(x=c\text{,}\) the tangent line to the graph of \(f\) has equation \begin{equation*} y = \fp(c)(x-c)+f(c)\text{.} \end{equation*}

The tangent line can be used to find good approximations of \(f(x)\) for values of \(x\) near \(c\text{.}\)

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\text{.}\) Recall that \(\sin(\pi/3) = \sqrt{3}/2 \approx 0.866\text{,}\) and \(\fp(\pi/3)=\cos(\pi/3) = 1/2\text{.}\) Thus the tangent line to \(f(x) = \sin(x)\) at \(x=\pi/3\) is: \begin{equation*} \ell(x) = \frac12(x-\pi/3)+0.866\text{.} \end{equation*}

<<SVG image is unavailable, or your browser cannot render it>>

<<SVG image is unavailable, or your browser cannot render it>>

(a)
(b)
Figure4.4.1Graphing \(f(x) = \sin(x)\) and its tangent line at \(x=\pi/3\) in order to estimate \(\sin(1.1)\text{.}\)

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

Using this line to approximate \(\sin(1.1)\text{,}\) we have: \begin{align*} \ell(1.1) \amp = \frac{1}{2}(1.1-\pi/3)+0.866\\ \amp = \frac12(0.053)+0.866 = 0.8925. \end{align*}

(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\text{,}\) the tangent line is \(\ell(x) = \fp(c)(x-c)+f(c)\text{.}\) Clearly, \(f(c) = \ell(c)\text{.}\) Let \(\dx\) be a small number, representing a small change in the \(x\)-value. We assert that: \begin{equation*} f(c+\dx) \approx \ell(c+\dx)\text{,} \end{equation*} since the tangent line to a function approximates well the values of that function near \(x=c\text{.}\)

As the \(x\)-value changes from \(c\) to \(c+\dx\text{,}\) the \(y\)-value of \(f\) changes from \(f(c)\) to \(f(c+\dx)\text{.}\) We call this change of \(y\)-value \(\dy\text{.}\) That is: \begin{equation*} \dy = f(c+\dx)-f(c). \end{equation*}

Replacing \(f(c+\dx)\) with its tangent line approximation, we have \begin{align} \dy \amp \approx \ell(c+\dx) - f(c)\notag\\ \amp = \fp(c)\big((c+\dx)-c\big)+f(c) - f(c)\notag\\ \amp =\fp(c)\dx\label{eq_differential}\tag{4.4.1} \end{align}

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

We introduce two new variables, \(dx\) and \(dy\) in the context of a formal definition.

Definition4.4.2Differentials of \(x\) and \(y\)

Let \(y=f(x)\) be differentiable. The differential of \(x\), denoted \(dx\text{,}\) is any nonzero real number (usually taken to be a small number). The differential of \(y\), denoted \(dy\text{,}\) is \begin{equation*} dy = \fp(x)dx. \end{equation*}

We can solve for \(\fp(x)\) in the above equation: \(\fp(x) = dy/dx\text{.}\) This states that the derivative of \(f\) with respect to \(x\) is the differential of \(y\) divided by the differential of \(x\text{;}\) this is not the alternate notation for the derivative, \(\lz{y}{x}\text{.}\) 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.

Key Idea4.4.3Differential Notation

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

  1. \(\dx\) represents a small, nonzero change in \(x\)-value.

  2. \(dx\) represents a small, nonzero change in \(x\)-value (i.e., \(\dx = dx\)).

  3. \(\dy\) is the change in \(y\)-value as \(x\) changes by \(\dx\text{;}\) hence \begin{equation*} \dy = f(x+\dx)-f(x). \end{equation*}

  4. \(dy = \fp(x)dx\) which, by Equation (4.4.1), is an approximation of the change in \(y\)-value as \(x\) changes by \(\dx\text{;}\) \(dy \approx \dy\text{.}\)

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

Example4.4.4Finding and using differentials

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

Solution

Of course, it is easy to compute the actual answer (by hand or with a calculator): \(3.1^2 = 9.61\text{.}\) (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.

PID controllers

Another place differentials are used is in a PID controller, which stands for “Proportional Integral Derivative”. A PID controller uses concepts of both derivative and integral calculus to very accurately control a process (such as maintaining a stable temperature on an espresso machine).

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.

Example4.4.5Using differentials to approximate a function value

Approximate \(\sqrt{4.5}\text{.}\)

Solution

Differentials are important when we discuss integration. When we study that topic, we will use notation such as \begin{equation*} \int f(x)\,dx \end{equation*} quite often. While we don't discuss here what all of that notation means, note the existence of the differential \(dx\text{.}\) Proper handling of integrals comes with proper handling of differentials.

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

Example4.4.6Finding differentials

In each of the following, find the differential \(dy\text{.}\)

  1. \(y = \sin(x)\)

  2. \(y = e^x\left(x^2+2\right)\)

  3. \(y = \sqrt{x^2+3x-1}\)

Solution

Finding the differential \(dy\) of \(y=f(x)\) is really no harder than finding the derivative of \(f\text{;}\) we just multiply \(\fp(x)\) by \(dx\text{.}\) It is important to remember that we are not simply adding the symbol “\(dx\)” 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\text{,}\) although the actual value is \(x+\dx\) (where we hope \(\dx\)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\text{.}\) As the true length is \(x+\dx\text{,}\) one really should have computed \(f(x+\dx)\text{.}\) The difference between \(f(x)\) and \(f(x+\dx)\) is the propagated error.

How close are \(f(x)\) and \(f(x+\dx)\text{?}\) This is a difference in “y”-values; \begin{equation*} f(x+\dx)-f(x) = \dy \approx dy. \end{equation*}

We can approximate the propagated error using differentials.

Example4.4.7Using differentials to approximate propagated error

A steel ball bearing is to be manufactured with a diameter of 2 cm. The manufacturing process has a tolerance of \(\pm 0.1\) mm in the diameter. Given that the density of steel is about 7.85 cgcm3, estimate the propagated error in the mass of the ball bearing.

Solution

Subsection4.4.1Exercises