Multivariable calculus

Partial Derivatives of e^(x^2 - y^2)

For f(x, y) = e^(x^2 - y^2), the partial with respect to x is 2x e^(x^2 - y^2) and the partial with respect to y is -2y e^(x^2 - y^2). The outer exponential never changes; only the inside derivative does, and it is 2x in one case and -2y in the other.

ex2y2e^{x^{2}-y^{2}}
2xex2y22x\,e^{x^{2}-y^{2}}
2yex2y2-2y\,e^{x^{2}-y^{2}}

Chain rule with a saddle in the exponent

The exponent u=x2y2u = x^{2}-y^{2} is the standard saddle. Hold yy fixed and ux=2x\frac{\partial u}{\partial x} = 2x; hold xx fixed and uy=2y\frac{\partial u}{\partial y} = -2y. In both cases the exponential itself is copied down unchanged and multiplied by that inside derivative.

fx=2xex2y2,fy=2yex2y2\frac{\partial f}{\partial x} = 2x\,e^{x^{2}-y^{2}}, \qquad \frac{\partial f}{\partial y} = -2y\,e^{x^{2}-y^{2}}

At (1,1)(1,1) the exponent is 00, so f=1f = 1, and the slopes are 22 and 2-2. Stepping in the positive xx direction raises the surface; stepping in the positive yy direction lowers it by the same amount.

The mistake: a dropped sign or a mishandled exponent

  • Writing 2yex2y22y\,e^{x^{2}-y^{2}} for the yy partial keeps the size but loses the sign. The exponent falls as y|y| grows, so for y>0y > 0 the slope in yy is negative.
  • Writing (2x2y)ex2y2(2x-2y)e^{x^{2}-y^{2}} differentiates the whole exponent in a single partial. Each partial sees only its own variable move.
  • Writing x2ex2y2x^{2}e^{x^{2}-y^{2}} copies the exponent down in front instead of its derivative, and writing e2xe^{2x} pushes the inside derivative up into the exponent. The inside derivative is 2x2x, and it multiplies the exponential; the exponential itself is copied unchanged.

Use the axes as a check. Along y=0y = 0 the function is ex2e^{x^{2}}, whose slope is 2xex22xe^{x^{2}}, and along x=0x = 0 it is ey2e^{-y^{2}}, whose slope is 2yey2-2ye^{-y^{2}}. Both agree with the general formulas, and a candidate answer that fails these one-variable cases is wrong.

The origin is still a saddle

The exponential is never zero, so the gradient vanishes only where 2x=02x = 0 and 2y=0-2y = 0, that is, only at the origin, where f(0,0)=1f(0,0) = 1.

That point is a saddle. Along the xx-axis the function is ex21e^{x^{2}} \ge 1, a valley bottom that rises away from the origin; along the yy-axis it is ey21e^{-y^{2}} \le 1, a ridge that falls away. Increasing in one direction and decreasing in the other at the same point is exactly what a saddle means.

This is a useful general fact: composing a function with an increasing outer function such as eue^{u} changes the heights but not the pattern of increase and decrease, so the saddle of x2y2x^{2}-y^{2} survives the exponential intact.

Frequently asked questions

Where is the gradient of e^(x^2-y^2) zero?

Only at the origin. The exponential factor is never zero, so 2x and -2y must both vanish, which happens at the single point (0, 0), where the value is 1.

Does the exponential change the shape of the saddle?

It stretches the heights but keeps the pattern. Since e^u is increasing, the function rises exactly where x^2 - y^2 rises, so the origin stays a saddle point.