Multivariable calculus
Directional derivative of arctan(y/x) at (1, 1)
At (1, 1) the gradient of f(x,y) = arctan(y/x) is (-1/2, 1/2). Dotting with the unit direction (-0.6, 0.8) gives 7/10, that is 0.7. This function measures the polar angle, so its gradient points around the origin rather than away from it.
At x = 1, y = 1, in the unit direction (-0.6, 0.8).
Chain rule through the quotient
Let . Then differentiates to , and the denominator becomes , which is what clears the fractions.
The partial runs the same way with inner derivative , giving . At the denominator is 2.
The mistake: losing the minus sign
The inner derivative is , not . Drop that sign and the gradient becomes , and the answer drops to instead of .
There is a quick sanity check. Moving in the direction from swings the point closer to the positive axis, so the polar angle goes down. A negative partial is the only sign that can be right.
The domain trap matters too: is undefined on the axis, so this formula for the angle only works on , and only equals the polar angle on the right half plane .
A gradient that circles the origin
The level curves of the polar angle are rays out of the origin, so the gradient must be perpendicular to those rays, meaning it points tangentially. At that is the direction , counterclockwise.
Our answer 0.7 is nearly that maximum, because misses the steepest direction by only about 8.1 degrees. Moving radially outward instead would give exactly 0, since the angle does not change along a ray.
The expression needs x nonzero, and (1, 1) sits safely in the right half plane. The build rebuilds the gradient there by central differences on arctan(y/x) and fails unless the dot product with (-0.6, 0.8) is still 0.7.
Frequently asked questions
Does the answer depend on how far the point is from the origin?
Yes. The gradient has length , so it shrinks as you move out. At the same direction gives , half as much, because the same angular change takes twice the distance.
Which direction makes the polar angle change fastest at (1, 1)?
The unit vector , tangent to the circle of radius , with rate .