Consider a differentiable function from $\mathbb{R}^2$ to $\mathbb{R}$. Is it correct to say that a function of this type can never be bijective?
I have attempted to prove this by contradiction in the following way, but I'm not sure:
Consider the generic level set $I_z = \{ (x,y)\in \mathbb{R}^2: f(x,y) = z, z \in \mathbb{R} \}$. If $f$ is supposed bijective, then for each $z \in \mathbb{R}$ the cardinality $|I_z|$ = 1. The auxiliary function $g_z(x,y):= f(x,y) - z$ has only one zero, so its sign never changes. Whatever $g_z$'s sign is, the point $(x_z,y_z)\in \mathbb{R}^2$ such that $g_z(x_z,y_z) = 0$ has to be a maximum or a minimum of $g_z$, so $(x_z,y_z)$ has to be a critical point of $g_z$ and $f$. But repeating this for each $z\in \mathbb{R}$ makes the function $f$ constant, so $f$ is not bijective.
I've also found out that usually the implicit function theorem can be used to prove such statements, but I do not know how to use it in this case.