Hi everyone this is a past exam question that I am studying as I go through my class that I am having trouble with, the full question is this:
Let $f:\mathbb{R}^3 \rightarrow \mathbb{R}$ be a differentiable function and suppose that
$$ \nabla f(\textbf{x}) = g(\textbf{x})\textbf{x} $$ for all $\textbf{x} \in \mathbb{R}^3$ where $g: \mathbb{R}^3 \rightarrow \mathbb{R}$ is a function. Show that $f$ is constant on each sphere in $\mathbb{R}^3$ centered at $(0,0,0)$. i.e. show that if $\textbf{a}$, $\textbf{b}$ $\in \mathbb{R}^3$ and $\|\textbf{a}\| = \|\textbf{b}\|$ then $f(\textbf{a}) = f(\textbf{b})$.
I'm stuck on this question and not sure which direction to take. I'm really just throwing ideas around.
I do know that the gradient vector at $\textbf{a}$ is perpendicular to all the tangent lines to the level set $f^{-1}(c)$ at $\textbf{a}$.
Then letting $\textbf{x} = h(t) = (h_{1}(t), h_{2}(t), h_{3}(t))$ with $h(0)= \textbf{a}$.
I have $f(h(\textbf{0}))=c$. Then taking derivatives:
$$\frac{d}{dt}f(h(\textbf{0})) = \frac{d}{dt} c = 0$$
$$h'(0) \cdot \bigtriangledown f(h(\textbf{0})) = 0$$
Substituting in for $f(h(\textbf{0}))$ yields
$$h'(0) \cdot g(\textbf{a})\textbf{a} = 0$$
Now i'm really not sure where to go from here, how relate the magnitude of $\textbf{a}$ or $\textbf{b}$ to the question (do i need to parametrise?) I would really appreciate some guidance with this question.