Assume there is also a function g(x).
If g(x) is input for f(x), OR if f(x) is input for g(x), and if g(f(x))=x and f(g(x))=x, then g(x) is the inverse function of f(x). See, one function undoes the other. You can also say, f(x) and f^(-1)(x) are inverses.
Now you ask if and are inverses.
Just use the idea of one of them being inverse of the other.
Fill this form: =?
If the result is x, then these two function ARE inverses.
(Actually, you also need to check f(x) as input for the f^(-1) also to be certain).