You can't choose any function. If, for example, you choose the function y=x2 then x=2 -> y=4 and x=-2 -> y=4. Clearly this function doesn't have an inverse because given a value for y (other than 0) there are two corresponding values for x.
You need to choose a function y=f(x) with the property that any two different values of x always yield two different values for y. Such functions are called injective functions and have graphs that are monotonic (i.e. either increasing or decreasing but not both).
Lastly, to find the inverse of such a graph, you need to reflect it in the line x=y (the 45 degree line). Try this with some examples and look at what all of the points of intersection between the function and its inverse have in common--that should help you to figure out how to get three points of intersection.