I'm a first year computer science student and I'm learning discrete math by myself (teacher unavailable) due to the quarantine and I dont understand these two little questions :
1) Lets say we have a function $f : X \to Y$ that has an inverse function. How do I find the function $I$($x$) = $f^{-1}(f(x))$ and how can I find the domain and range of $I(x)$ ? This one is very confusing and I love an good explanation for it.
2) Prove that if $f$ and $g$ are both surjective, then $g \circ f$ is surjective. I think that I have to prove that its image is equal to its codomain, but I have no idea how to do this.
Thanks. Your help is very appreciated.
To answer your question:
1) Saying that $f: X \to Y$ has an inverse is equivalent to saying that $f$ is bijective, otherwise $f^{-1}: Y \to X$ couldn’t be defined. Furthermore, composing the two always gives the Identity function, whether $X \to X$ or $Y \to Y$ depends on the order of composition (which one is it, in your example?). Not sure if this elucidates you or not :)
2) To prove stuff like this it is always a good idea to work with a specific element of your set and prove the inclusions in question. So, looking back at the definition: $f: X \to Y$ is surjective iff $\forall y \in Y, \exists x \in X$ such that $f(x)=y$ (which is the same thing you said). Now, pick a $z$ in the domain of $g\circ f$ and try to prove its pre image $x$ exists.