\begin{align} f: \mathbb{R}^2 &\longrightarrow \mathbb{R} \\ (x,y) & \longmapsto x+y \end{align} Question: Is this function surjective?
It seems clear to me that this function must be surjective, because the point $(x,y) \in \mathbb{R}^2$ maps to the entire codomain $\mathbb{R}$ under the addition given by function. But I wanted to try a different approach:
Question (refined): Is this function surjective, using $\ f\circ h=Id_\mathbb{R}$
Here are my steps. I defined $h$ as the following function: \begin{align}h: \mathbb{R} &\longrightarrow \mathbb{R}^2 \\ x &\longmapsto (x,0) \end{align}
Such that: \begin{align} (f \circ h)(x)=x&=f(h(x)) \\ &=f(x,0)=x \end{align} Are these steps correct, or aren't they even valid?
Note: I am very new to this subject and in my homework assigment I am also allowed to use examples and counter examples, but I am always very eager to expand my knowledge to such sentences as introduced as above.
Namely: if a right inverse exists, such that $f \circ h= Id_Y$, where $h$ is called the right inverse, then the function $f$ is surjective.