Multivariable calculus
Gradient of z ln(1 + x^2 + y^2): Mixed Roles
For f(x, y, z) = z ln(1 + x^2 + y^2) the gradient is (2xz/(1 + x^2 + y^2), 2yz/(1 + x^2 + y^2), ln(1 + x^2 + y^2)). The x and y components use the chain rule on the logarithm with z as a constant multiplier, while the z component is the logarithm itself.
Two chain rule components and one plain one
Write to keep the algebra short. For the partial, is a constant multiplier and the logarithm needs the chain rule: the derivative of is times the derivative of .
The partial is identical with in place of . The partial is different in kind: the logarithm contains no , so it is the constant here, and is simply a constant times .
The denominator is at least 1, so the logarithm is defined and the fractions are finite at every point in space. Nothing here blows up.
The mistake: differentiating a logarithm that has no z in it
The frequent error is or , from reflexively applying the log derivative in every component. Look at what the logarithm depends on. It contains and only, so with respect to it is a number, and the derivative of (number) times is that number.
- Ask which variables live inside each piece before differentiating. Here lives outside the logarithm entirely.
- The other common slip is dropping the inner , giving for the partial.
- Sanity check on the component: at it is , which says does not change with on the -axis. That is right, because is identically zero there.
Evaluating, and the whole axis of critical points
At the denominator is , so .
Numerically that is about , with length roughly 3.034. The horizontal components dominate because amplifies them.
Setting all three components to zero needs , which forces , so . Those values also kill the first two components. The critical set is therefore the entire -axis, not an isolated point, which is a good reminder that critical points in three variables can form curves and surfaces.
Frequently asked questions
Why is not a fraction like the other two?
Because is linear in . With and held fixed, where , and the derivative of with respect to is . The fraction only appears when the chain rule reaches inside the logarithm, which happens for and .
Does the gradient stay defined everywhere?
Yes. The argument is at least 1, so the logarithm is defined for all real and and the denominator never reaches zero. There are no excluded points to worry about.