Source: https://www3.nd.edu/~apilking/Calculus2Resources/Lecture%201/Inverse%20Functions.pdf