If there is any place on the graph of the original function where a horizontal line would cross two more more times, then the inverse of that function will not itself be a function. If all horizontal lines cross at most one spot on the original graph, then the inverse will be a function, too.