Given the function:

f(x) = x2 – 2x

How can you restrict the domain so that f(x) has an inverse? What is the equation of the inverse function?