Let $f,g$ be functions such that $(g\circ f)(x)=x$ for all $x \in D(f)$ and $(f\circ g)(y)=y$ for all $y \in D(g)$, prove that $g=f^{-1}$

1.1k Views Asked by At

Attempt: I need to basically show that: $$D(f)=R(g)\\ D(g)=R(f)$$

We can clearly infer the following from the information given above: $$\begin{align} D(f)=R(g\circ f) \subseteq R(g) \tag{1}\\ D(g)=R(f\circ g) \subseteq R(f) \tag{2} \end{align}$$

And we know trivially from the definition of function composition, $$\begin{align} R(f) \subseteq D(g) \tag{3}\\ R(g) \subseteq D(f) \tag{4} \end{align}$$

From $(1),(2),(3)$ and $(4)$, we get out intended result. Is this proof correct? I'd like to know if there is any other way of proving this.

2

There are 2 best solutions below

1
On

It is correct, but I would do it as follows: $D(g)\subset R(f)$ because, if $x\in D(g)$, then $x=f\bigl(g(x)\bigr)\in R(f)$ and for the same reason, $D(f)\subset R(g)$. For the rest, I would have done it as you did. But it's really just a matter of taste.

0
On

We have that both $f$, $g$ are bijective (since the identity function is trivially a bijection), and thus, both have inverse functions. Now, for arbitrary $y$ $\in$ $D(g)$ we have both $f(g(y))$ $=$ $y$ and $f(f^{−1}(y))$ $=$ $y$, thus $f(f^{−1}(y))$ $=$ $f(g(y))$. Since $f$ is injective, this implies $f^{−1}(y)$ $=$ $g(y)$, where $y$ was arbitrary. This, together with the fact that $g$ has a unique inverse function, tells us that $f^{−1}$ $=$ $g$.