Let $f : \mathbb R^n → \mathbb R$ be a continuously differentiable function with non-zero gradient. Then, according to the implicit function theorem a level set defines a $n-1$ dimensional manifold $M$ and the gradient of $f$ is perpendicular to $M$.
Now, assume that we have a second function $g : \mathbb R^n → \mathbb R$ also continuously differentiable with non-zero gradient.
How to prove or refute precisely that if for all points in $M$ (defined by the level set of $f$) the direction of the gradient of $f$ and $g$ is identical (but not the length), then $M$ is also a manifold defined by a level set of $g$.