Multivariable calculus
Gradient of x e^(yz): Chain Rule in the Exponent
For f(x, y, z) = x e^(yz) the gradient is (e^(yz), xz e^(yz), xy e^(yz)). The x component is simple because the exponential is a constant multiplier there, while the y and z components each pick up an inner factor from differentiating the exponent yz. At (2, 1, 0) the gradient is (1, 0, 2).
Three different jobs for three variables
Each variable plays a different role, so each partial uses a different rule. With and frozen, is one fixed number multiplying , and differentiating a constant times returns the constant.
For , the outer function is the exponential and the inner function is the exponent . The chain rule says to copy the exponential and multiply by the derivative of the exponent, which is when is held fixed.
The partial is the mirror image, with inner derivative .
The mistake: dropping the inner factor
The classic wrong answer is . It looks reasonable because differentiates to , but that rule applies only when is the variable itself. Here , and the chain rule demands the extra factor .
- Structure check: the exponent changes at rate when moves, so a has to appear in the partial. At the exponent does not move at all as changes, and the partial is correctly zero there.
- The forgotten factor is invisible when , which is why testing at hides the error. Test at instead.
- A second slip is copying the same inner factor into both components. The partial gets , the partial gets , never the same one twice.
If you are unsure, rename the exponent. Write and , then . The structure becomes hard to misread.
A check, and why this surface has no critical points
At the exponent is , so and .
The component is zero here because : with pinned at zero, changing does not change the exponent, so is momentarily flat in that direction. This is a genuine feature of the function, not an arithmetic accident.
The component is , and an exponential is never zero. So is never the zero vector and has no critical points anywhere in space. Any maximum or minimum of on a bounded region must therefore occur on the boundary.
Frequently asked questions
Why does the partial have no exponential factor multiplying it?
It does have one: is entirely that factor. Since is linear in , differentiating removes the and leaves the coefficient, which is .
What is the direction of steepest increase at ?
There , so , which points along . The steepest ascent direction is the unit vector and the maximum rate is .