Explanation:
We need to show whether

or

so we'll do either one of them,
we'll convert f(x) to f^-1(x) and lets see if it looks like g(x).

we can also write it as:

now all we have to do is to make x the subject of the equation.



now we'll interchange the variables

this is the inverse of f(x)

and it does equal to g(x)

Hence, both functions are inverse of each other!
This can be shown graphically too:
we can see that both functions are reflections of each other about the line y=x.