Question: how do you verify the inverse of a function?
Answer: To do this, you need to show that both f(g(x)) and g(f(x)) = x. When you're asked to find an inverse of a function, you should verify on your own that the inverse you obtained was correct, time permitting. Show that f(g(x)) = x.