Let be a function of two variables. Suppose the first variable is changed by an amount and the second by an amount . The value of the function at the new point is then . The amount that the value of the function has changed is
This expression is a function of the four variables . It is called the total differential of , and is written simply as :
Often the total differential is discussed in terms of "infinitesimals", this term referring to and . However, no adequate definition of an infinitesimal is ever given. The only way we can work with and is to let these quantities be numbers, which is what we do. It is also commonly written that
where and refer to and . We shall see that this is really only an approximate formula, and we shall obtain some idea of the error in its application. There is no objection to the use of the formula, provided one interprets it in this sense.
Now let us reconsider the total differential. To begin with, we write as
Then we apply the mean value theorem to get
where is between and and is between and . We assume that and are continuous. Then
where goes to zero as goes to zero (since is in the rectangle with vertices , and so approaches as , the diagonal of the rectangle, approaches ). Likewise,
approaches as approaches . Our formula now becomes
Now if is any small positive number, we can choose and so that is so small that and , for this is just the meaning of the statement that these quantities go to zero as goes to zero. Then we have
\begin{aligned} |\alpha(dx, dy) dy + \beta(dx, dy) dx| &\le |\alpha(dx, dy)| |dy| + |\beta(dx, dy)| |dx| \\ &< \epsilon |dy| + \epsilon |dx| = \epsilon (|dx| + |dy|) \cdot \end{aligned}Now , so that when and are chosen small enough, the error in using to approximate the total differential is such that
In other words,
This is exactly what we shall mean when we say, "The error is small when compared to ". Thus our result is the following:
with an error which is small when compared to . This is then the sense in which the formula is correctly interpreted.
The expression which occurs in the above formula can be expressed in vector notation as the scalar product
There is little reason to do this in two dimensions. However, we can define the total differential of a function of variables as the quantity
a function of variables, and prove as above that
where the error is small compared to
We denote the vector by , and we denote the vector by grad f (called "the gradient of "). In this notation, we have
where the error is small compared to .
Now, for a change, let be a function of three variables, and let each of these be a function of a single variable . Then is a function of , and we can investigate g'(t). To do so, we must consider
Now let ; then we have
Now
so that
\lim_{h \to 0} (\text{grad } f) \cdot \frac{dX}{h} = (\text{grad } f) \cdot X'(t) \cdotThe error term is of the form , where and go to zero as goes to zero. As , since are assumed continuous. Thus
\begin{array}{r cl c cl c cl} \dfrac{\text{error}}{h} = & \alpha & \dfrac{dx}{h} & + & \beta & \dfrac{dy}{h} & + & \gamma & \dfrac{dz}{h} \\ & \big\downarrow &\ \big\downarrow & & \big \downarrow &\ \big\downarrow & & \big\downarrow &\ \big\downarrow \\ & 0 & x'(t) & & 0 & y'(t) & & 0 & z'(t) \end{array}as indicated by the vertical arrows.
Substituting for , we have the formula
\frac{d}{dt} (f(x(t), y(t), z(t))) = (\text{grad } f) \cdot X'(t) ,which is the 3-variable case of the chain rule for functions of several variables. (In the case of , it becomes simply f'(x) \cdot x'(t), as we have seen before.)
EXERCISES
Let be a function of two variables. Suppose there exists a positive number such that in some neighborhood of , and exist and for all . By considering the total differential, prove that is continuous at . Then use this result to prove that if and are continuous at , is also continuous there.