What can we say about the function $f:\mathbb{R}^k \rightarrow \mathbb{R}$ if for all $i=1,...,k$ and all $x \in \mathbb{R}^k$ we have
$x_i\frac{\partial f(x)}{\partial x_i} = f(x)g_i(x)$
Is there actually any restriction we can make other than that $f$ is differentiable?
If $g_i(x)=-1$ then you have that
$\frac{\partial}{\partial x_i}(x_i f(x))=0$
So a solution is
$f(x)=\frac{1}{\prod_{k=1}^n x_k}$