1

I've been doing some exercises to learn how to identify surjective, bijective, injective and normal functions. I was wondering if someone can critique my work and see if there are any places where i went wrong.

  1. $f : \mathbb N \to ℕ$ defined as $f(n) = n^2$

    Bijection, because every input entered had a different answer due to the domain being natural numbers we can only enter numbers greater than or equal to zero this makes it injective. For every input entered there is an output, which satisfies the rule of surjection.

  2. $f : \mathbb Z \to ℕ$ defined as $f(n) = n^2$

    Surjective, for every input entered there is an output. Because we can also deal with negatives inputs here, the function is not injective.

  3. $f : \mathbb N \to \mathbb Z$ defined as $f(n) = n^2$

    Bijection, because every natural number entered produces a different output unless they're the same and every input has some output.

  4. $f: \mathbb Z \to \mathbb Z$ defined as $f(n) = n^2$

    Surjective, for every input entered there some output.

  5. $f: \mathbb R \to \mathbb N$ defined as $f(n) = n^2$

    Not a function, because every input entered doesn't match to a natural number.

  6. $f: \mathbb N \to \mathbb R$ defined as $f(n) = n^2$

    Bijection, every natural number entered maps to a natural number. The set of natural numbers is in the set of real numbers. Every number entered produces a different output therefore the function is injective. Every input entered has some output, there the function is also surjective.

  7. $f: \mathbb N \to \mathbb N$ defined as $f(n) = \sqrt{n}$

    Not a function, because every natural number doesn't output a natural number.

  8. $f: \mathbb R \to \mathbb R$ defined as $f(n) = \sqrt{n}$

    Not a function, every real number doesn't output a real number. Because we can enter in negative numbers and it won't result in a real number.

  9. $f: \mathbb R \to $ { x $\in \mathbb R$ | x $\ge$ 0 } defined as $f(n)= \sqrt{n}$

    Not a function, every real number doesn't output a real number. Because we can enter in negative numbers and it won't result in a real number.

  10. $f:$ { x $\in \mathbb R$ | x $\ge$ 0 } $\to$ { x $\in \mathbb R$ | x $\ge$ 0 }, $f(n) = \sqrt{n}$

    Bijection, Every Real Number greater than 0 entered results in a real number greater than 0. Every input entered returns a result unique to that input unless they are the same, therefore the function is injective. For every input there is some output, therefore the function is surjective.

  11. $f: \mathbb N \to \mathcal P(\mathbb N)$, where f is some injective function.

    Bijection. I sort of guessed this one without any real explanation.

  12. $f:$ {0,1,2} $\to$ {3,4}, where $f$ is some surjective function

    surjective, because there is an output for every input. But 1 number maybe mapped to another number so it can't be injective.

  13. $f:$ {breakfast, lunch, dinner} $\to$ {shakshuka, soondubu, maafe}, where $f$ is some injection

    Bijection. Every input has it's own unique output, therefore it's injective. For every input there is some output, there it's surjective.

  • 4
    1., 2., 3., 4., 6. are wrong: $n^2$ is not surjective as a function between integers. Also, 11. is wrong: Indeed there is no bijection from $\mathbb N$ to $\mathcal P(\mathbb N)$ by a famous result from set theory – Maximilian Janisch Jan 26 '20 at 23:04
  • 1
    Can you provide what definition of injections, surjections, and bijections you are using? It may also help if you elaborate on your reasoning for each of these examples. – Brian61354270 Jan 26 '20 at 23:05
  • I'm curious as to your reasoning for most of these. You did not say that any of these functions are merely injective or normal functions, even though a lot are. Also, there is no work to critique. You only gave answers and no reasoning to support them. Perhaps you should narrow down your question to just a few and show how you came to your conclusion. – HiMatt Jan 26 '20 at 23:21
  • @HiMatt I just added the explanations for the questions. – jame_smith Jan 26 '20 at 23:44
  • As functions are not computer algorithms, they do not have inputs nor outputs. – William Elliot Jan 26 '20 at 23:46
  • 2
    Your notion of "surjective" is backwards: instead of checking "for every input there is an output" you want to check "for every output there is an input". – Misha Lavrov Jan 26 '20 at 23:53
  • 1
    Have you noticed that EVERY function you've called a function is surjective? Are there any not surjective functions? – fleablood Jan 27 '20 at 00:15

2 Answers2

1

Thank you for editing your post to include explanations. Please recall that a function $f: A\to B$ is

  • injective iff $f$ sends different inputs to different outputs, or mathematically: $x\neq y \implies f(x) \neq f(y)$.
  • surjective iff all things in $B$ are reached by $f$, or mathematically $\forall b\in B, \exists a\in A$ s.t. $f(a)=b$.
  • bijective iff $f$ is BOTH injective and surjective

Examples:

$f: \mathbb N \to \mathbb N$, $f(n) = n^2$ is NOT surjective because not all $n \in \mathbb N$ are reached by $f$; e.g. $3$ is not a square of a natural number. Thus, functions like $f: \mathbb N \to \mathbb Z$, $f(n) = n^2$ and $f: \mathbb N \to \mathbb R$, $f(n) = n^2$ are also NOT surjective.

$f: \mathbb Z \to \mathbb N$, $f(n) = n^2$ is NOT injective because $f(-1)=f(1)=1$. Please try again and I will check over your solutions.

For number 11, please read the proof here: https://math.stackexchange.com/a/2453/405572

D.R.
  • 8,691
  • 4
  • 22
  • 52
  • I've re-done them, for 1,5, 8 and 13 I got injective and 4,6 were just regular functions. – jame_smith Jan 27 '20 at 22:27
  • What about 2? You were right that 5 and 8 were not functions. 6 is injective. You were right that 13 is bijection. – D.R. Jan 28 '20 at 03:18
1

1: $f:\mathbb N \to \mathbb N$ defined as $f(n)= n^2$.

"because every input entered had a different $\require{cancel}$$\cancel{\text{answer}}\text{output}$ due to the domain being natural numbers".

It is true that if $k \ne j$ then $f(k) \ne f(j)$ and therefore the function is injective but was does "due to the domain being natural numbers" have anything to do with it.

consider $g: \mathbb N\to \mathbb N$ defined by $g(n) = n^2 - 6n + 10$. Then $g(2)=2$ and $g(4)=2$ so $g$ is not injective. Why does the domain being natural numbers mean every input having a different output.

" For every input entered there is an output, which satisfies the rule of surjection."

That's true for all functions. It's part of the definition of functions. Not all functions are surjective and that is not the definition of surjection.

Surjective means for every potential output, $y$ there is a least one input $x$ so that $f(x) = y$.

Is this true? If $f(n) =17$ so that $n^2 = 17$ what is $n$? Is there any? If not it is not surjective.

2) $f: \mathbb Z \to \mathbb N$.

Surjective, for every input entered there is an output.

That's not what surjective means. What is $n$ if $f(n) = 17$.

Because we can also deal with negatives inputs here, the function is not injective.

What does negative inputs have to with it? Consider $g: \mathbb Z\to \mathbb Z$ defined by $f(n) = n^3$. And takes negative values and is injective.

  1. $f:\mathbb N \to \mathbb Z$.

because every natural number entered produces a different output unless they're the same

Prove this, or explain it in greater detail.

and every input has some output.

That's not what surjective means. This is true of every function.

....

keep trying.

fleablood
  • 124,253