Multivariable calculus

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

For f(x, y) = x^2 e^(-y), the partial with respect to x is 2x e^(-y) and the partial with respect to y is -x^2 e^(-y). Treat e^(-y) as a constant when x moves, and x^2 as a constant when y moves, where the chain rule supplies the minus sign.

x2eyx^{2}e^{-y}
2xey2x\,e^{-y}
x2ey-x^{2}e^{-y}

Differentiate one factor, copy the other

With yy held fixed, eye^{-y} is a fixed positive number and the function is a constant times x2x^{2}, so the power rule finishes the job.

fx=eyddx(x2)=2xey\frac{\partial f}{\partial x} = e^{-y}\cdot\frac{d}{dx}\left(x^{2}\right) = 2x\,e^{-y}

With xx held fixed, x2x^{2} is the constant and you differentiate eye^{-y}. The exponent y-y has derivative 1-1, and that is where the minus sign enters.

fy=x2ddy(ey)=x2ey\frac{\partial f}{\partial y} = x^{2}\cdot\frac{d}{dy}\left(e^{-y}\right) = -x^{2}e^{-y}

At (2,0)(2,0) the slopes are 221=42\cdot 2\cdot 1 = 4 in xx and 4-4 in yy. Same size, opposite signs, because at that point the growth in xx and the decay in yy happen to balance.

The mistake: losing the minus sign on e^(-y)

  • Writing fy=x2ey\frac{\partial f}{\partial y} = x^{2}e^{-y} treats eye^{-y} like eye^{y}. The chain rule on the exponent y-y contributes a factor of 1-1, so the true slope is negative wherever x0x \neq 0.
  • Writing fy=x2ey1\frac{\partial f}{\partial y} = -x^{2}e^{-y-1} or x2yey-x^{2}ye^{-y} invents a power rule for the exponential. Only the exponent's derivative comes out front; the exponential itself is unchanged.
  • Writing 2xeyx2ey2x\,e^{-y} - x^{2}e^{-y} glues the two partials into one expression. Each partial is a separate answer.

The sign check is easy to remember. For a fixed x0x \neq 0, raising yy shrinks the factor eye^{-y} and lowers the surface, so fy\frac{\partial f}{\partial y} must be negative. The correct formula, x2ey-x^{2}e^{-y}, is negative there for every yy.

A whole line of flat points

Both partials carry a factor of xx, so both vanish exactly when x=0x = 0. This surface does not have an isolated critical point; it has the entire yy-axis, where f=0f = 0.

That matches the shape. Since x20x^{2} \ge 0 and ey>0e^{-y} > 0, the surface never dips below the plane z=0z = 0 and touches it along that whole line, a valley floor rather than a single dip. The second derivative test is inconclusive along such a line, and you read the behaviour off the formula instead.

Frequently asked questions

Is x^2 e^(-y) ever negative?

No. The factor x^2 is at least 0 and e^(-y) is always positive, so the surface sits on or above the plane z = 0 and touches it exactly along the line x = 0.

Why is the y partial negative when x is not zero?

Because e^(-y) decreases as y grows, contributing a factor of -1 from the chain rule, and the factor x^2 is positive, so the product -x^2 e^(-y) is negative.