No continuous injective functions from $\mathbb{R}^2$ to $\mathbb{R}$

Suppose there exists $f:\mathbb R^2\to\mathbb R$ injective and continuous. Since $f$ is continuous, its image, $\operatorname{Im} f$, must be a connected non-empty subset of $\mathbb R$, ie. an interval. Moreover, since $f$ is injective, said interval must contain more than one point and therefore, has an interior.

Let $y$ be an interior point of $\operatorname{Im} f$ and $x=f^{-1}(y)$. The set $A=\mathbb R^2\smallsetminus\{x\}$ is clearly connected in $\mathbb R^2$ but $f(A)$ is not (as it is an interval minus one point, $y$). This contradicts the continuity of $f$.


Your counterexamples for (a) and (b) are fine.

For (c) and (d) one can make a cardinality argument. suppose that $f:\Bbb R^2\to\Bbb R$ is continuous and injective, and consider the subsets $K_a=\{a\}\times[0,1]$ of $\Bbb R^2$ for $a\in\Bbb R$. Each of these sets if compact and connected, and continuous functions preserve compactness and connectedness, so $f[K_a]$ is a compact, connected, subset of $\Bbb R$ for each $a\in\Bbb R$. The compact, connected subsets of $\Bbb R$ are precisely the closed intervals, so for each $a\in\Bbb R$ there are $u_a,v_a\in\Bbb R$ such that $u_a\le v_a$ and $K_a=[u_a,v_a]$.

Finally, $f$ is injective, so the intervals $[u_a,v_a]$ are non-degenerate and pairwise disjoint. Thus, for each $a\in\Bbb R$ there is a $q_a\in\Bbb Q\cap(u_a,v_a)$, and since these intervals are pairwise disjoint, the map $\Bbb R\to\Bbb Q:a\mapsto q_a$ must be injective. But this is impossible, since $\Bbb R$ is uncountable while $\Bbb Q$ is countable, so there is no such function $f$.