Let $f:S\subseteq \Bbb R^n\to\Bbb R$. One can prove that if $f(\lambda {\bf x})=\lambda^pf({\bf x})$ for each ${\bf x}\in S$ such that $\lambda {\bf x}\in S$, then ${\bf x}\cdot \nabla f({\bf x})=pf({\bf x})$. The proof is not complicated: one defines the function $\varphi(\lambda)=f(\lambda {\bf x})$ for a fixed ${\bf x}$ and evaluates $\varphi'(1)$ in two different ways. I'd like to get a hint to prove the converse: if ${\bf x}\cdot \nabla f({\bf x})=pf({\bf x})$ for each ${\bf x}\in S$, $S$ open, then $f$ is homogeneous of degree $p$ in $S$.
This problem is on Apostol's Mathematical Analysis.