How do I find the inverse of a function?

* Call the function y(x)

* Solve for x(y) (x in terms of y)
* Switch x and y in the formula
* The new y(x) will be the inverse function, f^-1(x)