2

Given the following function on $\mathbb{Z}$:

$x,y \in \mathbb{Z}: f(x, y) = x - y$

As I understand, this function is surjective, i.e. each element of $\mathbb{Z}$ is the image of at least one element of $A$*.

But, I'm not sure if it's injective, i.e. each output is the image of no more than one input*, since:

$f(10,5) = 5$ and $f(5,0) = 5$.

Since $f$ returns $5$ for each function, is it not injective? Or, do the inputs $(10,5) \rightarrow 5$ and $(5,0) \rightarrow 5$, i.e. constitute separate inputs?

*source of definitions: "A Book of Abstract Algebra"

3 Answers3

6

It is not injective as a function $\mathbb Z\times\mathbb Z\to\mathbb Z$, because (as you observe) $(10,5)$ and $(5,0)$ are two elements of $\mathbb Z\times\mathbb Z$ that both map to $5$.

However, if you fix $x$, then the function $y\mapsto x-y$ is injective as a function $\mathbb Z\to\mathbb Z$. And similarly, if you fix $y$, the function $x\mapsto x-y$ is injective.

1

$f$ is a linear function from $ \mathbf Z^2$ to $\mathbf Z$, and it isn't injective: its kernel, as a linear map, is: $$ \Delta=\{(x,x)\mid x\in \mathbf Z\}\subset \mathbf Z^2. $$ The kernel of a linear map $f$ is the set of elements that map to $0$. In vector spaces, it is a subspace of the source vector space. For abelian groups as here, it is a subgroup of the source group.

It is important for injectivity of linear maps, because it gives a criterion to know if such a map is or is not injective: instead of proving, say, that for any $u,v$, $\,f(u)=f(v) \Rightarrow u=v$, it amounts to the same to prove $f(u)=0\Rightarrow u=0$.

In other words, a linear map $f$ is injective if and only if $\,\ker f=0$.

Bernard
  • 175,478
  • I haven't learned what a kernel is. Would you please make a note on it? – Kevin Meredith Jun 09 '15 at 14:07
  • 1
    Just curious, why are you answering a question about functions in general with terms the OP might or might not know ("linear function", "kernel") and burying the answer to his question in a clause, without proof? And not commenting on his argument? – Thomas Andrews Jun 09 '15 at 14:08
  • I wanted to put this function in its natural context. I didn't give too many details, to make the structure more apparent. But the O.P. can give some feedback (as he did) and I add the required explanations. – Bernard Jun 09 '15 at 14:18
  • @Kevin Meredith: I've added a few words about the kernel of linear maps. Is that clear? – Bernard Jun 09 '15 at 14:28
1

Let $f: (x, y) \mapsto x-y$ on $\mathbb{Z}^{2}$ in $\mathbb{Z}$ and let $z \in \mathbb{Z}$. If $(x, y) \in \mathbb{Z}^{2}$, then $z = f(x, y) = x-y$ if and only if $$z = (x+k) - (y+k)$$ for all $k \in \mathbb{Z}$. Thus given any $z \in \mathbb{Z}$, there are infinitely many $(x, y) \in \mathbb{Z}^{2}$ such that $z = f(x,y),$ which shows that $f$ is not injective.

Yes
  • 20,719