how to find the inverse of a function and verify it graphically