Is there a “geometric reason” for why the gradient of $f(x,y)=\frac{x}{\sqrt{x^2+y^2}}$ is tangent to the unit circle

alternative-proofdifferential-geometrymultivariable-calculusriemannian-geometrysoft-question

Consider $f(x,y)=\frac{x}{\sqrt{x^2+y^2}}$ defined on the unit $2$-dimensional disk without the origin. A direct computation shows that
$\nabla f(x,y)\perp (x,y)$, so $\nabla f(x,y)$ is tangent to the circle of radius $\sqrt{{x^2+y^2}}$ at the point $(x,y)$.

Is this fact "obvious", when looking with the right glasses?

I wonder it there is a way to "see this" with as little computation as possible. One intuition I do have is that taking an "infinitesimal step" on the circle keeps the denominator $\sqrt{{x^2+y^2}}$ constant while increasing the numerator. However, this does not seem to me a rigorous explanation, since it is not clear on advance why the maximal increase is obtained at this situation (there might be a better trade-off increasing the numerator and the denominator simultaneously).

Is there a simple (rigorous) explanation?

Here are two different explanations I have (I still wish for a justification which will make it seem more "obvious"):

The first is to use the formula for the gradient in polar coordinates. Since $f$ depends only on $\theta$, the result follows.

Edit: I now think that the fact $f$ depends only on $\theta$ provides sufficient intuition for the result, even without knowing the formula for the gradient. The point is that, since $f$ depends only on $\theta$, it would be "inefficient" to change the radius as well; the best we can do is to choose the right angular direction-i.e. increasing or decreasing $\theta$.

The second is to recall that the gradient of $f$ at $(x_0,y_0)$ is normal to the level set of $f$ through $(x_0,y_0)$, i.e. normal to $\{ (x,y) \, | \, f(x,y) =f(x_0,y_0) \}$ at $(x_0,y_0)$. Geometrically, this level set corresponds to $\cos
\theta=\text{const}$
in polar coordinates, which is equivalent (locally around $(x_0,y_0)$ ) to $\theta=\text{const}$, i.e. the level set is just a ray passing through the origin, and it is visually clear that its tangent line at a point $(x_0,y_0)$ is itself- $\text{span}((x_0,y_0))$.

Best Answer

I think you have basically answered the question yourself (I would argue that the fact that $f$ depends only on $\theta$ in the polar coordinates is the right intuition).

Another way to understand the result is the fact that $f(x,y)$ is homogeneous of degree $0$, that is to say, we have $$f(\lambda x, \lambda y) = f(x,y) \tag{1}$$ for $\lambda>0$. Now taking the derivative of (1) with respect to $\lambda$, we obtain $$ x \frac{\partial f}{\partial x}(\lambda x, \lambda y) +y \frac{\partial f}{\partial y}(\lambda x, \lambda y) =0$$ and setting $\lambda =1$, the result follows.

Related Question