## Section7.14Things not to do with Differentials

Differentials are a wonderful tool for manipulating derivatives. However, it is important to remember that differentials themselves always refer to the total change in a quantity. Ratios of differentials can often be interpreted as ordinary derivatives, but not as partial derivatives. Put differently, correct statements about differentials can be obtained by pulling apart an ordinary derivative, but never by pulling apart a partial derivative.

For instance, it is fine to convert the chain rule statement

$$\frac{df}{dt} = \Partial{f}{x}\frac{dx}{dt} + \Partial{f}{y}\frac{dy}{dt}\tag{7.14.1}$$

to the statement

$$df = \Partial{f}{x} \,dx + \Partial{f}{y} \,dy\tag{7.14.2}$$

by “multiplying” both sides by $$dt\text{.}$$ In fact, we like to start with (7.14.2) and obtain the usual chain rule statement (7.14.1) by “dividing” both sides by $$dt\text{.}$$ However, this can not be done with partial derivatives.

Consider for example the partial differential equation

$$\Partial{u}{x} = x \Partial{u}{y}\tag{7.14.3}$$

One way to obtain a solution of (7.14.3) is by separation of variables. In the absence of boundary conditions, this approach would yield a general solution of the form

\begin{gather*} u = \int A( c )\, e^{c(y+\frac12 x^2)} \,dc \end{gather*}

in agreement with the “obvious” solution $$u=f(y+\frac12x^2)$$ (which is however not in general separable):

\begin{align*} u(x,y) \amp= X(x) Y(y)\\ \Longrightarrow \amp \quad \frac{1}{xX}\,\frac{dX}{dx} = \hbox{constant} = \frac{1}{Y}\,\frac{dY}{dy}\\ \Longrightarrow \amp \quad \frac{dX}{X} = cx\,dx \qquad\hbox{and}\qquad \frac{dY}{Y} = c\,dy\\ \Longrightarrow \amp \quad u = A\, e^{c(y+\frac12 x^2)} . \end{align*}

Contrast this correct use of differentials with the following, incorrect, argument. Rewrite (7.14.3) as

$$du\,dy = x\,du\,dx\tag{7.14.4}$$

Now cancel $$du$$ from both sides, obtaining

$$dy = x\,dx\tag{7.14.5}$$

suggesting that the “solution” to (7.14.3) is given by

$$y = \frac12 x^2 .\tag{7.14.6}$$

The moral is that partial derivatives can not be treated as ratios of differentials. Do not be misled by (7.14.2) itself, which does indeed imply that

$$df = \Partial{f}{x} \,dx\tag{7.14.7}$$

if $$y=\hbox{constant}\text{;}$$ that assumption effectively turns the partial derivative into an ordinary derivative. If several variables are changing, “shortcuts” such as (7.14.7) are not valid.