Ask your own question, for FREE!
Mathematics 20 Online
OpenStudy (loser66):

Please, help

OpenStudy (anonymous):

Question?

OpenStudy (loser66):

How to prove f is an onto function? \[f(x)=\begin{cases}x-1 ~~if ~~x~~is even\\x+1~~if~~ x ~~is~~odd\end{cases}\]

OpenStudy (loser66):

@zepdrix

OpenStudy (anonymous):

\[ f(x) = \begin{cases} (2n)-1 = 2m+1\\ (2n'+1)+1 = 2m' \end{cases} \]

OpenStudy (loser66):

I got you so far. Please, continue

OpenStudy (anonymous):

What is the domain and codomain?

OpenStudy (loser66):

Oh, I am sorry, f: Z --> Z

OpenStudy (anonymous):

If \(z\in \mathbb Z\) then it is either odd or even. If it is odd, then \[ \exists n \in \mathbb N\quad z=2n+1 \]We can let \(x = 2n+2\). Since \(x\) is even:\[ f(x) = (2n+2)-1 = 2n+1 = z \] If it is even, then\[ \exists n \in \mathbb N\quad z=2n \]We can let \(x = 2n-1\). Since \(x\) is odd:\[ f(x) = (2n-1)+1 = 2n = z \] Therefore \[ \forall z\in\mathbb Z\;\exists x \in \mathbb Z\quad f(x) =z \]

OpenStudy (loser66):

Thank you so much. I got it. One more question, why do we have to use N here?

OpenStudy (anonymous):

Well, we should use \(\mathbb Z\) I guess.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!