Nothing wrong there. is the correct domain. The range is (this will come in handy later)

For the inverse I use the method of saying that and then solve for x in terms of y.

Can you finish off?

Once done replace x with and with and find the domain in the usual way.

You can check your answer due to the fact that the domain of is the range of f(x) and vice versa.