Question: how to find the inverse of a function with a restricted domain?
Answer: Restrict the domain by determining a domain on which the original function is one-to-one.
Replace f(x) with y.
Interchange x and y.