Injective & Surjective Functions

In summary: Yes, you are on the right track. The steps are:- Show that f is injective- Show that for every y in Y, there exists x in X such that f(x) = y- Show that for every x in X, there exists y in Y such that f(g(x)) = y
  • #1
tlkieu
8
1
Just wondering if anyone could help me get in the right direction with these questions and/or point me to some material that will help me better understand how to approach these questions

In what follows I will denote the identity function; i.e. I(x) = x for all x ∈ R.
(a) Show that a function f is surjective if and only if there exists a function g such that f ◦ g = I.
(b) Show that a function f is injective if and only if there exists a function h such that h ◦ f = I.
(c) Suppose f ◦ g = I and h ◦ f = I. Show that g = h.

Okay so from what I understand for f ◦ g = I, this translates to f(g(x)) = I and for a function to be surjective it means that every element y in Y has element x in X for f(x). So would part (a) involve showing that f is a one-to-one function. I guess my weak point when it comes to these type of questions is setting out logical steps on how to prove, is there a certain system of steps that we follow? Any help would be greatly appreciated!
 
Physics news on Phys.org
  • #2
I think you mean part b involves showing some function is injective.

Injectivity, formally, means that for any elements [itex]x,y[/itex] in the domain: if [itex]f(x) = f(y)[/itex], then [itex]x=y[/itex]. I'll address part b for now:
You need to prove two implications: from left to right and from right to left. [if that is ambiguous, let me know, but it should be elementary].
To be more precise, let [itex]f: X\to Y[/itex], where [itex]X,Y\subseteq\mathbb{R}[/itex], be injective. We must find [itex]g:Y\to X[/itex] such that for every [itex]y\in Y[/itex] we have [itex](fg)(y):=f(g(y)) = y[/itex]. How should we define [itex]g(y)[/itex] for a given [itex]y[/itex] and why can we do that?
For instance, if we look at [itex]f(x) := x+1[/itex], this is clearly injective. How do we define [itex]g[/itex] such that [itex]f(g(x+1))=x+1[/itex]? Say, we defined [itex]g(y) = y-1[/itex], then you can verify this [itex]g[/itex] does what we want it to, but what allows us to define [itex]g[/itex] this way?
 
  • Like
Likes tlkieu
  • #3
nuuskur said:
I think you mean part b involves showing some function is injective.

Injectivity, formally, means that for any elements [itex]x,y[/itex] in the domain: if [itex]f(x) = f(y)[/itex], then [itex]x=y[/itex]. I'll address part b for now:
You need to prove two implications: from left to right and from right to left. [if that is ambiguous, let me know, but it should be elementary].
To be more precise, let [itex]f: X\to Y[/itex], where [itex]X,Y\subseteq\mathbb{R}[/itex], be injective. We must find [itex]g:Y\to X[/itex] such that for every [itex]y\in Y[/itex] we have [itex](fg)(y):=f(g(y)) = y[/itex]. How should we define [itex]g(y)[/itex] for a given [itex]y[/itex] and why can we do that?
For instance, if we look at [itex]f(x) := x+1[/itex], this is clearly injective. How do we define [itex]g[/itex] such that [itex]f(g(x+1))=x+1[/itex]? Say, we defined [itex]g(y) = y-1[/itex], then you can verify this [itex]g[/itex] does what we want it to, but what allows us to define [itex]g[/itex] this way?

Hmm I think I kind of get the idea. Do you happen to know where I could potentially read more about this topic that uses examples like you've provided? I think I generally understand theories and proofs better when looking at a specific example then taking from that to understand the proof/theory itself.
 
  • #4
Some googling and I found Karel Hrbacek & Thomas Jech, http://rads.stackoverflow.com/amzn/click/0824779150
which seems to be directed at undergraduate level studies. It is a rigorous text, so I'd recommend it.
What can tell you, though, is you need a solid understanding of propositional calculus and for introductory logic studies, I would definitely recommend P. Suppes Introduction to logic available legitimately free of charge. It does address set theory, which I'd totally forgotten about! heh :)
 
Last edited by a moderator:
  • #5
nuuskur said:
Any book that addresses elementary set theory. Unfortunately, I am not familiar with relevant literature in English.

Okay, thank you! Also in regards to (a) - would it be looking somewhat like this?

So if we suppose that f is a surjection. We define a function g : Y → X as follows.
Let y ∈ Y , and since f is a surjection, there exists x ∈ X (not necessarily unique) such that f(x) = y.
Now we choose one such x and call it xy and set g(y) = xy.
For any y ∈ Y , we have (f ◦ g)(y) = f(g(y)) = f(xy ) = y = IY (y). So we can conclude that f ◦ g = IY.

Suppose there exists g : Y → X such that f ◦ g = IY. If we let y ∈ Y, then g(y) ∈ X and f(g(y)) = (f ◦ g)(y) = IY (y) = y.
We conclude that f is a surjection.

Am I on the right track here? I've tried to make the steps logical, but not 100% if I'm heading in the right direction.
 
  • #6
The first part is ok, at least it seems ok to me.

For the second part we need [itex]f[/itex] to be a surjection, therefore we need to show that for any [itex]y\in Y[/itex], there exists an [itex]x\in X[/itex] s.t [itex]f(x)=y[/itex]. You can express this shortly by: [itex]Y\subseteq f(X)[/itex] (since the converse containment is trivial). Let [itex]y\in Y[/itex], then by assumption [itex]y = (fg)(y)[/itex] and [itex]f(g(y)) = y[/itex] i.e our [itex]x[/itex] is precisely [itex]g(y)[/itex]. You did the same thing in the opposite direction, so yes, everything is A ok with part a :)
 
  • Like
Likes tlkieu
  • #7
nuuskur said:
The first part is ok, at least it seems ok to me.

For the second part we need [itex]f[/itex] to be a surjection, therefore we need to show that for any [itex]y\in Y[/itex], there exists an [itex]x\in X[/itex] s.t [itex]f(x)=y[/itex]. You can express this shortly by: [itex]Y\subseteq f(X)[/itex] (since the converse containment is trivial). Let [itex]y\in Y[/itex], then by assumption [itex]y = (fg)(y)[/itex] and [itex]f(g(y)) = y[/itex] i.e our [itex]x[/itex] is precisely [itex]g(y)[/itex]. You did the same thing in the opposite direction, so yes, everything is A ok with part a :)

Thank you! I'm still trying to rap my head around everything, but will attempt part (b).
 
  • Like
Likes nuuskur
  • #8
tlkieu said:
So if we suppose that f is a surjection. We define a function g : Y → X as follows.
Let y ∈ Y , and since f is a surjection, there exists x ∈ X (not necessarily unique) such that f(x) = y.
Now we choose one such x and call it xy and set g(y) = xy.
For any y ∈ Y , we have (f ◦ g)(y) = f(g(y)) = f(xy ) = y = IY (y). So we can conclude that f ◦ g = IY.

Yes, this is correct.

tlkieu said:
Suppose there exists g : Y → X such that f ◦ g = IY. If we let y ∈ Y, then g(y) ∈ X and f(g(y)) = (f ◦ g)(y) = IY (y) = y.
We conclude that f is a surjection.

Good.

tlkieu said:
Am I on the right track here? I've tried to make the steps logical, but not 100% if I'm heading in the right direction.

Very much on the right track.
 
  • #9
PeroK said:
Yes, this is correct.
Good.
Very much on the right track.

Thank you! I'm a little stumped on part (b) and (c), so from what I understand injection means we have to show how it is a one-to-one function that is h(f(x)) has one value of x=X for every y=Y?
 
  • #10
tlkieu said:
Thank you! I'm a little stumped on part (b) and (c), so from what I understand injection means we have to show how it is a one-to-one function that is h(f(x)) has one value of x=X for every y=Y?

Part c) should be the simplest of the three. Why can't you even get started? You can always start by stating what you have to prove. For example, for part a) it was:

We need to show that:

1) if ##f: X \rightarrow Y## is surjective, then we can find ##g: Y \rightarrow X## such that ##f \circ g = I_Y##
2) if there exists ##g: Y \rightarrow X## such that ##f \circ g = I_Y##, then ##f: X \rightarrow Y## is surjective.

Then, you can write the definition of these things:

##f: X \rightarrow Y## is surjective means that ##\forall y \in Y, \ \exists x \in X## such that ##f(x) = y##

And:

##f \circ g = I_Y## means that ##\forall y \in Y, \ f(g(y)) = y##

Try doing this for b) and c) - c) should be easier.
 

1. What is an injective function?

An injective function is a type of function in mathematics that maps each element in the domain to a unique element in the range. This means that no two elements in the domain will have the same output in the range.

2. How do you determine if a function is injective?

To determine if a function is injective, you can use the horizontal line test. This test involves drawing horizontal lines on a graph of the function. If each line intersects the graph at most once, then the function is injective.

3. What is a surjective function?

A surjective function is a type of function in mathematics that maps each element in the range to at least one element in the domain. This means that every element in the range has a corresponding input in the domain.

4. How do you determine if a function is surjective?

To determine if a function is surjective, you can use the vertical line test. This test involves drawing vertical lines on a graph of the function. If each line intersects the graph at least once, then the function is surjective.

5. Can a function be both injective and surjective?

Yes, a function can be both injective and surjective. This type of function is called a bijective function. It is a one-to-one correspondence between the elements in the domain and range, meaning that each element in the domain has a unique output in the range, and each element in the range has a corresponding input in the domain.

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
478
  • Calculus and Beyond Homework Help
Replies
5
Views
233
  • Calculus and Beyond Homework Help
Replies
7
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
759
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
512
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
Back
Top