Multivariable calculus
Gradient of e^(xy) sin(z) in Three Variables
For f(x, y, z) = e^(xy) sin(z) the gradient is (y e^(xy) sin z, x e^(xy) sin z, e^(xy) cos z). For the x and y partials, sin z is a constant multiplier and the chain rule acts on the exponent xy. For the z partial, e^(xy) is the constant. The gradient vanishes only where x = y = 0 and cos z = 0.
Decide which factor is frozen, then differentiate the other
The function splits into a factor in and and a factor in alone. For the first two components, is a constant multiplier and all the work is the chain rule on the exponent.
For the third component the roles reverse. Nothing in mentions , so it comes along as a multiplier and the sine is differentiated.
Every component keeps the full . It is a factor of the original function, and no partial derivative here can remove it, since the exponential is never differentiated away.
Where the gradient is zero, and a point check
The factor is positive everywhere, so it can be divided out of all three equations. What remains is , and .
The third equation forces , and at those values , which is not zero. So the first two equations reduce to and .
Those isolated points sit on the axis, spaced apart, alternating between and .
For a concrete evaluation take , where kills the first two components.
That says something readable about the surface: on the plane the function is identically zero, so it cannot change in or there, and the only way to move off that flat sheet is in the direction.
The mistake: losing a factor when the variable is not the live one
The dominant errors are dropped factors, and each has a different cause.
- Writing , having discarded because it contains no . A factor without the live variable is a multiplier, not something to delete.
- Writing , forgetting the inner derivative of the exponent. That is the same slip as writing the derivative of as .
- Applying the product rule across and when differentiating in , and picking up a phantom term . With respect to , the derivative of is zero, so that term vanishes.
Test at : the true gradient is , since and . The dropped-exponential version also gives there, so use instead, where the true component is and that version returns .
Frequently asked questions
Why do the and components look identical apart from the swap?
Because is symmetric in and : the only place they appear is in the product . Swapping them leaves the function unchanged, so it must swap the two partials as well, and becomes .
Does the gradient ever point purely in the direction?
Yes, everywhere on the planes , where kills the first two components while keeps the third alive. It also happens on the axis, where makes the first two components vanish, apart from the critical points , where the whole vector is zero and no direction is defined.