Multivariable calculus
Gradient of arctan(xyz): Chain Rule with 1/(1+u^2)
For f(x, y, z) = arctan(xyz) the gradient is (yz, xz, xy) all divided by 1 + x^2 y^2 z^2. The outer derivative of arctan contributes the shared denominator and the inner gradient of xyz supplies the numerators. At (1, 1, 1) the gradient is (1/2, 1/2, 1/2).
Outer derivative once, inner gradient three times
Let . The outer function is , whose derivative is , and that factor is the same in all three components because it does not care which variable you are differentiating.
The inner gradient is the one you get for the plain product: . So the whole calculation is a single scalar times a gradient you already know.
This is the general chain rule for a function of one composite variable, . It says and have gradients pointing in exactly the same direction at every point, so they share their level surfaces and their steepest ascent directions.
The mistake: the wrong thing inside the square
Two errors show up constantly. The first is writing the denominator as instead of . The arctangent derivative squares its argument, and here the argument is the whole product, so the square distributes over all three variables.
The second is dropping the numerator entirely and reporting for every component. That is only the outer derivative. Without the inner factors , and the three components would be identical, which cannot be right for a function that treats a change in differently from a change in unless the point is symmetric.
- Denominator: , the same in all three components.
- Numerators: the gradient of the inside, , different in each component.
- Quick test at : , so the denominator is 37, and the numerators are 6, 3 and 2, giving three different values as expected.
Why the gradient dies away far from the origin
At the product is , so the denominator is 2 and .
Compare that with the plain product , whose gradient at the same point is . The arctangent halves it here, and further out it shrinks much harder: the numerators grow like a product of two coordinates while the denominator grows like the square of a product of three.
That matches the shape of the function. Since for every , the values are trapped in a band of width , so the function has to flatten out. A bounded function cannot keep a large gradient over a large region.
Frequently asked questions
Why do and have parallel gradients?
Because , and is a positive scalar. Multiplying a vector by a positive number changes its length but not its direction, so the two gradients point the same way at every point.
Where is the gradient of zero?
On the coordinate axes. All three numerators , and vanish together only when at least two coordinates are zero, and the denominator is never zero, so the critical set is the union of the three axes.