Multivariable calculus
Gradient of ln(1 + x^2 y^2) With Full Working
For f(x, y) = ln(1 + x^2 y^2) the gradient is (2xy^2, 2x^2 y) divided by 1 + x^2 y^2. Differentiate the logarithm to get 1 over the inside, then multiply by the partial derivative of the inside. The gradient is the zero vector on both coordinate axes, where f reaches its minimum value 0.
One over the inside, times the derivative of the inside
Write . Then and . The denominator is the same for both components, because it is just and does not care which variable you are differentiating.
The constant inside the logarithm contributes nothing to either numerator, since the derivative of a constant is zero. It matters only because it keeps , so the logarithm is defined everywhere in the plane and the denominator never hits zero.
Where the surface is flat, and how fast it climbs
Both components carry a factor of . That makes the gradient the zero vector along the entire axis and the entire axis, not just at the origin.
That fits the surface. On the axes and , which is the smallest value ever takes, so the axes form a valley floor of minima.
At the numerators are and , and the denominator is .
Far from the axes the growth stalls. With large, each component behaves like , so the surface flattens out. That is logarithmic growth showing itself in the gradient.
The mistake: stopping at one over the inside
The most frequent wrong answer is , which uses the outer derivative and forgets the inner one. A second version keeps the inner derivative but attaches it to the wrong variable, giving for the partial.
Two checks catch both.
- Symmetry: is unchanged when you swap and , so the component must become the component under that swap. and do exactly that.
- The axes: the true partial must vanish at , since is identically along the whole axis. The dropped-chain-rule answer gives there instead of .
Frequently asked questions
Why do both components share the denominator ?
Because that denominator comes from the outer function. For every partial derivative is times a partial of , and does not depend on which variable you differentiate. Only the numerators differ.
Is the origin a minimum of ?
It is a minimum, but not an isolated one. The value is achieved along both entire axes, so the origin sits on a valley floor rather than in a bowl. The second derivative test is inconclusive there, which is exactly what you should expect for a degenerate critical set.