using graph to demonstrate a function which is invertible function