If $\nabla f(x) = 0$ on a set $S$, is $f$ necessarily constant on $S$?
I know it is true when $S$ is open convex, or open connected, but what about any arbitrary $S$?
If $\nabla f(x) = 0$ on a set $S$, is $f$ necessarily constant on $S$?
I know it is true when $S$ is open convex, or open connected, but what about any arbitrary $S$?
if $S$ is disconnected, give $f$ a different constant value on each component of $S$ and we see that the conjecture is false.