Multivariable calculus

Partial Derivatives of e^(xy): Method and Mistakes

For f(x, y) = e^(xy), the partial derivative with respect to x is y e^(xy), and the partial with respect to y is x e^(xy). Freeze the other variable, differentiate the exponent xy with respect to the one that moves, and multiply that factor by the unchanged exponential.

exye^{xy}
yexyy\,e^{xy}
xexyx\,e^{xy}

Freeze one variable, then use the chain rule

A partial derivative measures how ff changes when one variable moves and the other is held fixed. Hold yy fixed in f(x,y)=exyf(x,y) = e^{xy}. The exponent xyxy is then a constant multiple of xx, so you are differentiating ecxe^{cx} with c=yc = y, and the chain rule brings that constant out front.

fx=exyx(xy)=yexy\frac{\partial f}{\partial x} = e^{xy}\cdot\frac{\partial}{\partial x}(xy) = y\,e^{xy}

Now hold xx fixed instead. The exponent is a constant multiple of yy, and the same chain rule runs with the roles swapped.

fy=exyy(xy)=xexy\frac{\partial f}{\partial y} = e^{xy}\cdot\frac{\partial}{\partial y}(xy) = x\,e^{xy}

At the point (1,2)(1,2) this gives fx=2e214.778\frac{\partial f}{\partial x} = 2e^{2} \approx 14.778 and fy=e27.389\frac{\partial f}{\partial y} = e^{2} \approx 7.389. From that point, a small step in xx changes ff twice as fast as the same step in yy.

The mistake: forgetting the inside derivative

Two wrong answers turn up again and again on this function.

  • fx=exy\frac{\partial f}{\partial x} = e^{xy} treats the exponential as if it differentiated to itself with no chain rule. The outer exponential is indeed unchanged, but the inside derivative yy still multiplies it.
  • fx=xyexy\frac{\partial f}{\partial x} = xy\,e^{xy} differentiates the exponent as though both letters were moving. In a partial with respect to xx, the variable yy is frozen, so x(xy)=y\frac{\partial}{\partial x}(xy) = y, not xyxy.

A fast check catches the first error. On the line y=0y = 0 the function is f(x,0)=e0=1f(x,0) = e^{0} = 1 for every xx, so the slope in xx has to be 00 there. The correct formula gives 0e0=00 \cdot e^{0} = 0, while exye^{xy} would give 11.

What the two partials say about the surface

f=(yexy,  xexy)\nabla f = \left(y\,e^{xy},\; x\,e^{xy}\right)

The exponential factor is positive everywhere, so both partials vanish only when x=0x = 0 and y=0y = 0. That single critical point is a saddle: along the line y=xy = x the function is ex2e^{x^2}, which sits at or above 11, and along y=xy = -x it is ex2e^{-x^2}, which sits at or below 11.

Notice the symmetry too. Swapping xx and yy leaves ff unchanged, and it swaps the two partials, which is a cheap way to confirm you did not lose a factor in one of them.

Frequently asked questions

Is the partial of e^(xy) with respect to x equal to xy e^(xy)?

No. When you differentiate with respect to x, the variable y is a constant, so the exponent xy differentiates to y and the answer is y e^(xy). The form xy e^(xy) comes from treating both letters as variables at the same time.

Do the mixed second partials of e^(xy) agree?

Yes. Differentiating y e^(xy) with respect to y gives (1 + xy) e^(xy), and differentiating x e^(xy) with respect to x gives the same expression, as Clairaut's theorem promises for a function this smooth.