Multivariable calculus
Gradient of x ln(1 + y^2) and Its Line of Zeros
For f(x, y) = x ln(1 + y^2) the gradient is (ln(1 + y^2), 2xy over 1 + y^2). The x partial needs no work, since x appears to the first power with a constant multiplier. The y partial is a chain rule on the logarithm. Both components vanish along the whole x axis.
One easy component and one chain rule
For , the whole logarithm is a constant multiplier and is to the first power, so the derivative is the multiplier itself.
The other component needs the chain rule inside the logarithm, with riding along as a constant.
Note the difference in flavour. One component keeps the logarithm and the other loses it entirely, because differentiating a logarithm produces a rational function. If both of your components contain a logarithm, or neither does, something has gone wrong.
A whole line of critical points
Set both components to zero. The first needs , which happens only at . The second needs , which is automatic once .
So the entire axis is critical. It is not a ridge of maxima or a trough of minima though. Since for , the sign of near the axis is the sign of , so at a point like the surface rises on both sides in , while at it falls on both sides. The second derivative test is inconclusive along the whole line, and you have to look at the sign of instead.
Away from the axis, evaluate at : the logarithm gives and the second component is .
The surface is climbing about three times faster in than in there, which is the kind of comparison a gradient is for.
The mistake: dropping the denominator, or the x
Two errors account for nearly all wrong answers on this one.
- Writing , which keeps the inner derivative and forgets the from the logarithm. That answer grows without bound in , while the true one is bounded, since never exceeds in absolute value.
- Writing , dropping the factor . Then the surface would be predicted to change in even along the line , where is identically zero.
There is also a domain point worth stating: for every real , so the logarithm is defined on the whole plane and the denominator is never zero. That is why this function is a safe example, unlike , which needs .
Frequently asked questions
Why does the component keep the logarithm?
Because nothing differentiates it. With respect to , the factor is a number, and the derivative of a number times is that number. The logarithm only turns into a rational function when you differentiate with respect to .
How large can the component get?
For fixed it is times , and that factor has maximum value at and minimum at . So the component never exceeds in absolute value, and the steepest climb in always happens at .