If $f: A\to B$ is bijective, then it has an inverse $g: B \to A$ defined as
\begin{equation}
g = \left \{ \big( f(a), a \big) : a \in A \right \}
\end{equation}
If $g: B \to A$ is any function for which,
\begin{equation}
\begin{aligned}
(f \circ g)(x) & = x, & \forall x \in B, \\
(g \circ f)(x) & = x, & \forall x \in A.
\end{aligned}
\end{equation}
then $g \equiv f^{-1}$ (inverse)
I basically need to show that if any two functions are composed with $x$ ( I don't if that's the proper way to say it) and you get back $x$, then those two functions are inverses of one another.
In other words $g \equiv f^{-1}$ (inverse)
Any help with this would be really appreciated. I've been trying to get this down for a couple of days now.