An inverse function is a function that undoes the action of the another function. 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.