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.
Differentiate one factor, copy the other
With held fixed, is a fixed positive number and the function is a constant times , so the power rule finishes the job.
With held fixed, is the constant and you differentiate . The exponent has derivative , and that is where the minus sign enters.
At the slopes are in and in . Same size, opposite signs, because at that point the growth in and the decay in happen to balance.
The mistake: losing the minus sign on e^(-y)
- Writing treats like . The chain rule on the exponent contributes a factor of , so the true slope is negative wherever .
- Writing or invents a power rule for the exponential. Only the exponent's derivative comes out front; the exponential itself is unchanged.
- Writing glues the two partials into one expression. Each partial is a separate answer.
The sign check is easy to remember. For a fixed , raising shrinks the factor and lowers the surface, so must be negative. The correct formula, , is negative there for every .
A whole line of flat points
Both partials carry a factor of , so both vanish exactly when . This surface does not have an isolated critical point; it has the entire -axis, where .
That matches the shape. Since and , the surface never dips below the plane 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.