Multivariable calculus
Partial Derivatives of e^(-x^2 - y^2 - z^2)
For f(x,y,z) = e^(-x^2 - y^2 - z^2), the partial derivative with respect to x is negative 2x times f, and the y and z partials replace x with y and z. Every partial derivative keeps the whole exponential factor, so the gradient is negative 2f times the position vector and points back toward the origin.
Differentiate the exponent, keep the exponential
Write with . The exponential is its own derivative, so every partial derivative is times the corresponding partial derivative of the exponent.
Holding and still makes a constant, so . That factor is the entire difference between and its partial.
Because treats the three variables identically, the other two answers follow by replacing with or . Writing each partial derivative as rather than spelling out the exponential keeps later work, such as second derivatives, much shorter.
The mistake: dropping or dividing by the exponential
Two errors dominate here. The first is writing alone, having differentiated the exponent and forgotten that the chain rule multiplies rather than replaces. The second is losing the minus sign, since the exponent already carries one and it is easy to count it twice or not at all.
A related confusion is treating as and then reaching for the quotient rule. That rewriting is correct but pointless: it produces the same answer with more steps and one more chance to mislay a sign.
- The exponential factor appears in every partial derivative.
- The sign is negative wherever the matching coordinate is positive.
- The exponential is never zero, so the sign of each partial derivative is decided entirely by , or .
What the gradient tells you about the bump
Collecting the three partial derivatives into a vector shows the geometry immediately. The gradient is a negative multiple of the position vector, so at every point other than the origin it points straight back toward the origin, which is where the function is largest.
Since the exponential never vanishes, all three partial derivatives are zero only when . The origin is therefore the sole critical point, and it is the global maximum with . Everywhere else the function is strictly decreasing as you move outward.
At the partial is , about , while the and partials are zero. That fits: from that point, moving along or starts you off along the ridge of the bump, where the surface is momentarily level.
Frequently asked questions
What is the second partial derivative with respect to x?
Apply the product rule to , using again. You get , which is negative near the origin and positive once , marking where the bump changes concavity.
Why do the level surfaces make the gradient radial?
The function depends only on , so its level surfaces are spheres centred at the origin. A gradient is always perpendicular to the level surface through the point, and the perpendicular to a sphere is the radial direction.