I need to prove that the jacobian of $f:\Bbb R^3 \to \Bbb R$ is constantly zero
given that $Im(f)$ (the image of $f$) is contained in $S$,
where $S$ is the points of $\Bbb R^3$ where a function $g:\Bbb R^3\to \Bbb R$ is constantly zero
given that the gradient of $g$ is never zero for all $\Bbb R^3$
I've thought of using the theorem of the implicit function, but I'm really getting nowhere. Any help will be appreciated! Thanks in advance