Multivariable calculus
Partial Derivatives of e^(-x^2 - 2y^2)
The partials of e^(-x^2 - 2y^2) are f_x = -2x e^(-x^2 - 2y^2) and f_y = -4y e^(-x^2 - 2y^2). The exponential reappears unchanged, multiplied by the partial of the exponent. The 2 already sitting in front of y^2 doubles into a 4, which is the step most often missed.
Differentiate the exponent, keep the exponential
Let . Since , the exponential survives untouched and the chain rule supplies the inner partial as a multiplier.
The coefficient is the one to watch. Differentiating gives , not : the that was already there multiplies the the power rule brings down.
Two minus signs and one coefficient
Two minus signs are in play, the one inside the exponent and the one the chain rule pulls out of it. Producing claims the bump rises as you move right of the origin, and it does not: for the surface falls away, so must be negative there.
The coefficient is the second trap. Writing copies the shape of the partial and loses the from the exponent. At the true value is while that version gives , exactly half.
Neither mistake can hide behind the exponential, because is strictly positive for every real input. The sign and the size of each partial are decided entirely by the factor in front of it.
The gradient does not point at the peak
Collecting the partials gives . The vector is parallel to only on the two axes, so everywhere else the gradient leans toward the direction, which is the direction the bump falls off faster.
At the gradient is about : the component is twice the component, so the fastest way uphill runs along , a line that crosses the axis at rather than passing through the origin. The level curves are the ellipses , and the gradient is perpendicular to those, not to circles.
Both partials vanish only at , where . Since everywhere, everywhere, so that lone critical point is the global maximum and the second derivative test is not needed to say so.
Frequently asked questions
Where does the 4 in the y partial come from?
From two twos multiplying. The exponent already carries a coefficient of on , and the power rule brings down another when it differentiates , so . That whole factor then multiplies the exponential.
Is the maximum still at the origin?
Yes. The exponential is never zero, so forces and forces . The only critical point is , and the bound makes it the global maximum. Stretching the bump into an ellipse moves nothing.