Consider the function:
$f(x,y,z)=xyz^2$
Its gradient is $\nabla f=(yz^2, xz^2, 2xyz)$ then the critical points are all in the sets $\{(x,y,0): x,y\in \mathbb{R}\}, \{(0,0,z): z\in \mathbb{R}\}$.
My question is: The set defined by $xyz^2=0$ is a regular surface? I thinks it is not, but for $f(x,y,z)=0$ there are points such that its differential is surjective.
Thanks!