I have a question that reads:
Let f: A ---> B and g, g' : B ----> C be functions. Show that if g $\circ$ f = g' $\circ$ f and f is surjective $\implies$ g = g'
Unfortunately, I'm not sure how to crack open and this one and make a start on it - it seems axiomatic that g = g' so I'm not sure how to prove that it's true, just that it is true. What would the proof be on this/what's the best way of looking at it? Or at least, how might I start it?
Edit: I've had a go at it, and this is what I have so far - though it just seems too axiomatic/circular as a proof, I think?
f is surjective, thus the domain of g and g' is all of B. Then, since the compositions are equal, the image of B under these two functions is the same: g(B)=g'(B) for every b $\in$ B. (I'm wondering if the proof could stop here - i.e. because the image of a domain set of two functions is the same, that straight up means the two functions are identical? But I continue as I'm not sure).
Assume then that g' $\ne$ g. Then $\exists$ at least one element b $\in$ B s.t. g'(b) $\ne$ g(b). But g(B)=g'(B) for all b, hence g'(b)=g(b) and we have arrived at a contradiction. Hence g' cannot be different to g, and g = g'.
Now, I'm worried that that proof is either a) too circular/axiomatic etc to prove the theorem, or that b) I could have just stopped at g(B) = g'(B) and so haven't quite understood the concepts?
How did my attempt do?
Many thanks, indeed.
Fix a $b\in B$, since $f$ is surjective, choose some $a\in A$ such that $f(a)=b$. On the other hand, $g\circ f(a)=g'\circ f(a)$, then...