Multivariable calculus

Partial Derivatives of e^(xy) ln(1 + z^2)

For f(x, y, z) = e^(xy) ln(1 + z^2), the partial with respect to x is y e^(xy) ln(1 + z^2), the partial with respect to y is x e^(xy) ln(1 + z^2), and the partial with respect to z is 2z e^(xy)/(1 + z^2). Each partial freezes the other two variables.

exyln ⁣(1+z2)e^{xy}\ln\!\left(1+z^{2}\right)
yexyln ⁣(1+z2)y\,e^{xy}\ln\!\left(1+z^{2}\right)
xexyln ⁣(1+z2)x\,e^{xy}\ln\!\left(1+z^{2}\right)
2zexy1+z2\frac{2z\,e^{xy}}{1+z^{2}}

Freeze two variables at a time

Nothing changes when you go from two variables to three: each partial freezes every variable except the one that moves. Here the function splits cleanly, with xx and yy living in the exponential and zz living in the logarithm, so each partial differentiates one factor and copies the other.

fx=yexyln ⁣(1+z2),fy=xexyln ⁣(1+z2)\frac{\partial f}{\partial x} = y\,e^{xy}\ln\!\left(1+z^{2}\right), \qquad \frac{\partial f}{\partial y} = x\,e^{xy}\ln\!\left(1+z^{2}\right)
fz=exy2z1+z2=2zexy1+z2\frac{\partial f}{\partial z} = e^{xy}\cdot\frac{2z}{1+z^{2}} = \frac{2z\,e^{xy}}{1+z^{2}}

At (1,1,1)(1,1,1) the value is eln21.884e\ln 2 \approx 1.884, the xx and yy slopes are both eln21.884e\ln 2 \approx 1.884, and the zz slope is 2e2=e2.718\frac{2e}{2} = e \approx 2.718.

The mistake: mixing factors across the split

  • Writing fz=exyln ⁣(1+z2)2z1+z2\frac{\partial f}{\partial z} = e^{xy}\ln\!\left(1+z^{2}\right)\cdot\frac{2z}{1+z^{2}} multiplies by the logarithm a second time. The logarithm is what you are differentiating, not a factor to keep.
  • Writing fx=exy\frac{\partial f}{\partial x} = e^{xy} drops both the frozen factor ln(1+z2)\ln(1+z^{2}) and the inside derivative yy.
  • Writing a single expression that mixes all three partials. A function of three variables has three separate first partials, one per variable.

The plane z=0z = 0 is the test. There ln(1)=0\ln(1) = 0, so ff is identically 00 on that whole plane and every slope must be 00. The xx and yy partials carry the factor ln(1+z2)\ln(1+z^{2}) and vanish, and the zz partial carries the factor 2z2z and vanishes as well.

The gradient in three variables

f=(yexyln ⁣(1+z2),  xexyln ⁣(1+z2),  2zexy1+z2)\nabla f = \left(y\,e^{xy}\ln\!\left(1+z^{2}\right),\; x\,e^{xy}\ln\!\left(1+z^{2}\right),\; \frac{2z\,e^{xy}}{1+z^{2}}\right)

Since exy>0e^{xy} > 0 and ln(1+z2)0\ln(1+z^{2}) \ge 0, the function is never negative, and it equals 00 exactly on the plane z=0z = 0. The gradient is the zero vector on that entire plane, which is therefore a floor of minimum values rather than a set of isolated critical points.

Away from that plane the first two components share the factor exyln(1+z2)e^{xy}\ln(1+z^{2}), so their ratio is just y:xy : x, while the third component is controlled by how far zz is from 00.

Frequently asked questions

How many first partial derivatives does a function of three variables have?

Three, one for each variable. Each partial freezes the other two variables and then uses the ordinary one-variable rules on what is left.

Why is the gradient zero on the whole plane z = 0?

Because f equals 0 there and can never be negative, so that plane is a floor of minimum values. Every first partial carries a factor that vanishes when z is 0.