Multivariable calculus
Gradient of xy/(z^2+1): A Three Variable Gradient
For f(x, y, z) = xy/(z^2 + 1) the gradient components are y/(z^2 + 1), then x/(z^2 + 1), then -2xyz divided by (z^2 + 1) squared. Only the z component needs the chain rule, because z appears only in the denominator. At (1, 2, 0) the gradient is (2, 1, 0).
Two easy partials, then one that needs the chain rule
Sort the variables by where they live. Both and appear only upstairs, and appears only downstairs. That tells you in advance which partial is the awkward one.
For , everything except is a constant, so the whole function is .
For , pull out the constant and differentiate with the power and chain rules.
At the denominator is , and the third component carries a factor of , so . At the denominator is and the gradient is .
The mistake: treating the denominator as inert in the z direction
Because never appears in the numerator, students often conclude that . That would say the value of does not depend on at all, which is false: at the fraction is , and at it is only .
The other slip is dropping the minus sign. Increasing grows the denominator, which shrinks , so the partial must oppose the sign of .
- A variable in the denominator still counts as a variable.
- , so the sign flips and the exponent drops to .
- Slice check with : has , matching the third component at .
Reading the geometry from the three components
The factor never exceeds and never reaches zero, so it acts as a damping dial. Sliding away from the plane in either direction flattens the saddle shape without changing which way it tilts.
The plane is exactly where the third component vanishes, because of the factor . On that plane the gradient reduces to , the gradient of with a zero appended.
The gradient is the zero vector when , and all hold, which is the whole -axis. Along that axis , and nearby values take both signs, so none of those points is a maximum or a minimum.
Frequently asked questions
Why is the z component of this gradient zero on the plane z = 0?
The numerator carries a factor of . Geometrically, has a maximum at , so moving a little in either direction changes the damping factor only to second order and the first derivative vanishes.
How large can the directional derivative of xy/(z^2+1) be at (1, 1, 1)?
At most the length of the gradient, , which is about . That value is attained in the unit direction .