Suppose $U:\mathbb{R}^n-\{0\}\rightarrow\mathbb{R}$ is a smooth function which satisfies for all nonzero $\lambda\in\mathbb{R}$
$U(\lambda x)=\frac{1}{\lambda}U(x)$.
Compute an expression for $\nabla U|_{\lambda x}$.
My attempt: I understand that the gradient of $U(x)$ will be some vector $(\frac{\partial U}{\partial x_1},\dots,\frac{\partial U}{\partial x_n})$, but I'm not sure how the given expression helps to find this. I think I'm mostly hung up on the fact that the function maps to $\mathbb{R}$ and not $\mathbb{R}^n$.
Any help appreciated!