If a differentiable function of two real variables $f(x,y)$ only depends on the ratio $(x/y)$, i.e. $f(x,y)=g(x/y)$ it is easy to see that
$$ \frac{\partial f}{\partial x} x + \frac{\partial f}{\partial y} y = 0$$
since $\partial f / \partial x = g'(x/y) (1/y)$ and $\partial f / \partial y = g'(x/y) (-x/y^2)$ and:
$$ \frac{\partial f}{\partial x} x + \frac{\partial f}{\partial y} y = g'( x/y ) (x/y - x/y) = 0$$
I suspect the converse is also true, i.e. if $ \frac{\partial f}{\partial x} x + \frac{\partial f}{\partial y} y = 0$ there exists a $g$ such that $f(x,y)=g(x/y)$. Can anyone give me a proof? I don't know how to start. (or a counterexample if I am wrong)