What {in,sur}jectivity of composite map implies for components

AI Thread Summary
The discussion centers on the implications of the injectivity and surjectivity of composite functions as posed in Munkres' topology problems. It concludes that if the composite function g∘f is injective, then both f and g must also be injective; similarly, if g∘f is surjective, then both f and g must be surjective. However, it is clarified that f does not need to be surjective for g∘f to be defined, as demonstrated through examples. The confusion arises from Munkres' terminology, where "range" is equated with "codomain," leading to a misunderstanding of the requirements for function composition. Ultimately, the participants agree that while g must be surjective for g∘f to be surjective, f's surjectivity is not a prerequisite for the composition to exist.
Rasalhague
Messages
1,383
Reaction score
2
I'm looking at Munkres: Topology Problems 1.2.4(c), 1.2.4(e), and 1.2.5(a). Problem 1.2.4(c) asks, "If g\circ f is injective, what can you say about the injectivity of f and g?" Problem 1.2.4(e) asks, "If g\circ f is surjective, what can you say about the surjectivity of f and g?"

I concluded g\circ f injective implies that both f and g are injective, and that g\circ f surjective implies both f and g surjective.

But Problem 1.2.5(a) is worded in a way which suggests my conclusion might be too strong: "Show that if f has a left inverse, then f is injective; and if f has a right inverse, then f is surjective."

Am I mistaken?

Let f:A\rightarrow B and g:B\rightarrow C. According to Munkres' definition of function composition, g\circ f is only defined if f is surjective; so clearly g\circ f surjective implies f is surjective.

For Problem 1.2.4(c), I reasoned as follows. If g\circ f is injective, then

f[a_1]=f[a_2]

\Rightarrow (g\circ f)[a_1]=(g\circ f)[a_2]

\Rightarrow a_1 = a_2,

so f is 1-1 too.

And if g[b_1]=g[b_2], then

(\exists a_1,a_2\in A)[(b_1=f[a_1])\&(b_2=f[a_2])]

and, for this a_1,a_2,

(g\circ f)[a_1]=(g\circ f)[a_2]

\Rightarrow a_1 = a_2

\Rightarrow b_1 = b_2,

so g is 1-1.

For Problem 1.2.4(e), I reasoned as follows. As mentioned above, f is surjective. So for all b in B, there exists some a in A such that b = f[a]. Suppose for all c in C, there exists some a in A such that g[f[a]] = c, and let b = f[a]. Then for all c in C, there exists some b in B, namely f[a], such that g = c; so g is surjective too.
 
Physics news on Phys.org
Rasalhague said:
According to Munkres' definition of function composition, g\circ f is only defined if f is surjective; so clearly g\circ f surjective implies f is surjective.

Aaaaaah, could this be what was confusing me? Munkres uses the word "range" to mean what, in my experience, is normally called "codomain". He writes, "Note that g \circ f is only defined when the range of f equals the domain of g." Given f:A-->B and g:B-->C, he defines the composition g\circ f as a function having a rule of the form a in A maps to c in C such that, for some b in B, b=f[a] and c=g. Specifically, he defines the rule of a function as the set of pairs of (in this case) the form (a,c) = (a,g\circ f[a]). So there must be at least one such element of B, but I don't think he's making any requirement that the domain of g equal the image set of f. I also don't see how we can conclude from his definition that the domain of g equals the codomain of f.

Elsewhere (Bishop & Goldberg: Tensor Analysis on Manifolds, 0.1.4), I've seen composition defined without even the requirement that the domain of g intersect, let alone equal, the codomain of f. If they don't intersect, the result of composition is what they call the empty function. As far as I can see, Munkres' definition in terms of pairs allows nonequality, but not non-intersection.
 
Rasalhague said:
I'm looking at Munkres: Topology Problems 1.2.4(c), 1.2.4(e), and 1.2.5(a). Problem 1.2.4(c) asks, "If g\circ f is injective, what can you say about the injectivity of f and g?" Problem 1.2.4(e) asks, "If g\circ f is surjective, what can you say about the surjectivity of f and g?"

I concluded g\circ f injective implies that both f and g are injective, and that g\circ f surjective implies both f and g surjective.

But Problem 1.2.5(a) is worded in a way which suggests my conclusion might be too strong: "Show that if f has a left inverse, then f is injective; and if f has a right inverse, then f is surjective."

Am I mistaken?

Let f:A\rightarrow B and g:B\rightarrow C. According to Munkres' definition of function composition, g\circ f is only defined if f is surjective; so clearly g\circ f surjective implies f is surjective.

For Problem 1.2.4(c), I reasoned as follows. If g\circ f is injective, then

f[a_1]=f[a_2]

\Rightarrow (g\circ f)[a_1]=(g\circ f)[a_2]

\Rightarrow a_1 = a_2,

so f is 1-1 too.

And if g[b_1]=g[b_2], then

(\exists a_1,a_2\in A)[(b_1=f[a_1])\&(b_2=f[a_2])]

and, for this a_1,a_2,

(g\circ f)[a_1]=(g\circ f)[a_2]

\Rightarrow a_1 = a_2

\Rightarrow b_1 = b_2,

so g is 1-1.

For Problem 1.2.4(e), I reasoned as follows. As mentioned above, f is surjective. So for all b in B, there exists some a in A such that b = f[a]. Suppose for all c in C, there exists some a in A such that g[f[a]] = c, and let b = f[a]. Then for all c in C, there exists some b in B, namely f[a], such that g = c; so g is surjective too.


f need not be surjective for g \circ f to be defined.

consider f(x) = x2, g(x) = x+1.

note that g \circ f makes sense for all real x, even though f never takes on any negative values.

on the other hand, if f(x) = x+1, and g(x) = √x, THEN we have a problem, for it's not clear what value to give to g \circ f(-2).

because of this, g \circ f might be injective, even if g isn't:

let A = {a,b,c}, B = {w,x,y,z} C = {s,t,u} with f:A→B, g:B→C

f(a) = x
f(b) = y
f(c) = z

g(w) = s <--
g(x) = s <--g not injective
g(y) = t
g(z) = u

then gof(a) = g(f(a)) = g(x) = s
gof(b) = g(f(b)) = g(y) = t
gof(c) = g(f(c)) = g(z) = u

gof is clearly injective, but g is not. why? because im(f) < dom(g).

a similar situation holds when gof is surjective, g has to be surjective, but f need not be.
 
Deveno said:
f need not be surjective for g \circ f to be defined.

Thanks, Deveno. I get it now. Good examples. I forgot that Munkres uses the word "range" to mean "codomain", and I hadn't yet thought through all those consequences.

Deveno said:
consider f(x) = x2, g(x) = x+1.

note that g \circ f makes sense for all real x, even though f never takes on any negative values.

(I guess you're implicity defining the codomain of this f to be R.)

Deveno said:
on the other hand, if f(x) = x+1, and g(x) = √x, THEN we have a problem, for it's not clear what value to give to g \circ f(-2).

By Bishop & Goldberg's definition, there's no problem with the composite being ill-defined in this case; for them, the domain of g \circ f is the preimage of the intersection of the image of f with the domain of g. So in this example, negative numbers aren't in the domain of g \circ f. Munkres' definition appears similar: "Formally g \circ f : A \rightarrow C is the function whose rule is

\left \{ (a,c) | \text{For some }b \in B \text{, f(a)=b} \text{ and } g(b)=c \right \},

except that he requires the domain of the composite, g \circ f, to equal the domain of the inner component, f. So, using his definition, and assuming all these functions are real-valued, the composition of a pair of functions with the rules of assignment you give in your "on the other hand" paragraph would not be defined unless the codomain of f was a subset of the positive reals.

Rereading Munkres more carefully, I see it is true he's defined composition in a way that specifiers that the codomain of f is equal to the domain of g, but now that I realize Munkres is not making any stipulation about the image of f, it seems to me that it wouldn't make much difference if this requirement was omitted from the definition, as Bishop & Goldberg do.

Deveno said:
because of this, g \circ f might be injective, even if g isn't:

"Because of this" = "Because of the problem"? I don't quite follow that. But nice example. Makes me think I should play around more trying to come up with simple examples to test the reasobableness of things I'm trying to prove.

Deveno said:
let A = {a,b,c}, B = {w,x,y,z} C = {s,t,u} with f:A→B, g:B→C

f(a) = x
f(b) = y
f(c) = z

g(w) = s <--
g(x) = s <--g not injective
g(y) = t
g(z) = u

then gof(a) = g(f(a)) = g(x) = s
gof(b) = g(f(b)) = g(y) = t
gof(c) = g(f(c)) = g(z) = u

gof is clearly injective, but g is not. why? because im(f) < dom(g).

a similar situation holds when gof is surjective, g has to be surjective, but f need not be.

Okay, I see, so if g\circ f is surjective, then g must be, otherwise not every element in C would be "hit" by the composite function. And if f is not surjective, then it doesn't matter; it's still possible for every element in C to be mapped to by the composite from some element in A. Thanks again for your help!
 
Last edited:
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...

Similar threads

Replies
4
Views
3K
Replies
5
Views
613
Replies
7
Views
2K
Replies
3
Views
3K
Replies
7
Views
3K
Replies
13
Views
639
Back
Top