Wrong with this reasoning in with respect to working with differential of z

calculusderivativesdifferential-formspartial derivative

I know implicit differentiation. Just playing around with the differential of $z$ I did something like this, which I am sure is wrong somewhere. I want to know where I am wrong. Given a function $z = f(x,y)$, its differential is

\begin{align}
\delta z &= \frac{\partial z}{\partial x} \cdot \delta x + \frac{\partial z}{\partial y} \cdot \delta y
\end{align}

Now dividing by $\delta x$ throughout and taking the limit $\delta x$, $\delta y$, $\delta z$ tending to zero, I get something like

\begin{align}
\frac{\partial z}{\partial x} &= \frac{\partial z}{\partial x} \cdot 1 + \frac{\partial z}{\partial y} \cdot \frac{\partial y}{\partial x}
\end{align}

Cancelling the $\frac{\partial z}{\partial x}$ term, I get $\frac{\partial z}{\partial y} \cdot \frac{\partial y}{\partial x} = 0 $, which is not an identity.

My question is, where am I wrong?

Best Answer

It's the difference between the partial derivative $\frac{\partial z}{\partial x}$ and the total derivative $\frac{\mathrm{d} z}{\mathrm{d} x}$. The total derivative accounts for potential dependency of $x$ and $y$ on each other. In our case, we would have $$\frac{\mathrm{d} z}{\mathrm{d} x} = \frac{\partial z}{\partial x} + \frac{\partial z}{\partial y} \frac{\mathrm{d} y}{\mathrm{d} x}.$$ Note that this is precisely the (single-variable) derivative of a two variable function $z$, with $x$ and a function $y(x)$ substituted in. Rearranging this gives us the differential of $z$ as before.

$$\mathrm{d} z = \frac{\partial z}{\partial x}\mathrm{d} x + \frac{\partial z}{\partial y} \mathrm{d} y.$$

Your mistake was treating $\mathrm{d} z$ and $\partial z$ as interchangeable, which they aren't.

Related Question