https://openlab.citytech.cuny.edu/mat1375coursehub/lessons/lesson-7-the-inverse-of-a-function/