Question: what is inverse function g?
Answer: A function g is the inverse of a function f if whenever y=f(x) then x=g(y). In other words, applying f and then g is the same thing as doing nothing. We can write this in terms of the composition of f and g as g(f(x))=x.