Difficulty discerning onto vs not onto if $f: \Bbb Z \to \Bbb Z$ has the rule $f(x) = 4x^2 + 1$ then $f$ a bijection.

51 Views Asked by At

I'm asking this question on regards to an assignment my teacher handed out and she has a nasty habbit of never replying to e-mails. The question is already answered but it only brings up more questions than it answers.

She wrote down the answer to this was False $f(2) = f(-2)$ but if the condition was that it was an integer implies an integer, how would it not be an onto? The answer it gives is always going to be an integer

It could just be that I don't understand the question but is it because that it wasn't positive integers imply positive integers? ($\Bbb Z^+ \to\Bbb Z^+$).

Thanks

3

There are 3 best solutions below

1
On BEST ANSWER

I think you have mixed up a couple of things.

A quick refresher on terminology:

  • Domain: the given set of valid inputs to the function. For this answer I will write this as $Dom(f)$

  • Co-domain: the given set of possible valid outputs from the function.

  • Range: the actual set of outputs from the function, i.e. the set of $\{f(x) : x \in Dom(f)\}$. The range is a subset of the co-domain.

  • Injection (aka one-to-one): for any value in the co-domain, there is at most one value in the domain that is mapped onto it. We often write this as $\forall x,y \in Dom(f): f(x) = f(y) \implies x = y$

  • Surjection (aka onto): every value in the codomain is in the range (the set of actual outputs), or in other words you can always find an input that will map to it. We often write this as $\forall z \in Range(f): \exists x \in Dom(f) f(x) = z$

  • Bijection: the function is both an injection and a surjection, meaning that there is an exact correspondence between the domain and codomain of the function.

If your function was expressed as $f: \mathbb{Z} \rightarrow \mathbb{Z}$, then both the domain and codomain are the set of integers.

Is $f$ injective? No, because there exist values in the codomain with multiple possible inputs from the domain. For example, $f(2) = f(-2)$. This is the point of the note.

Is $f$ surjective? No, because there exist values in the codomain with no possible inputs. For example, it is clear that $f$ will always produce a positive value, so any negative integer will not be in the range of the function. And, as pointed out in the comments, even if the codomain were restricted to $\mathbb{Z}^+$, i.e. the positive integers, there are plenty of gaps (e.g. there is no $x \in \mathbb{Z}$ such that $f(x) = 3$).

1
On

The function $f$ is a bijection iff it is injective and surjective. Since $f(-2)=f(2)$, the function is not injective and hence not a bijection (recall that injective means that for all $x,y$ if $f(x)=f(y)$, then $x=y$).

The function is not surjective either. For example $-1$ is not in the image. Even if we restrict the codomain to the non-negative integers, it is still not surjective. For example $2$ is not in the image in this case.

0
On

I'm not sure quite what the question entirely wants, but for the purpose of an answer, I'll assume the question is as follows:

Prove whether or not the function $f(x)=4x^2+1$ is onto in the domain and codomain of $\mathbb{Z}$.

In this case, her answer is a counterexample to $f$ being onto. If $f(2)=f(-2)$ (which it is by the nature of the $x^2$ term), then by definition, $f$ is not injective. Also recall that an onto function is a bijective one, i.e. one which is both surjective and injective. Since $f$ is not injective, it is not onto.

In fact, we can generalize this property. Considering the fact that $x^{2n}=(-x)^{2n}$ for all $x \in \mathbb{Z}$, we can write the following property:

Any function $f: \mathbb{Z} \rightarrow \mathbb{Z}$ in the form of $$f(x) = \sum_{i\in I} a_ix^{2i}$$ where $I \subset \mathbb{Z}$ is not an onto function.