I think you are on the right track.

Given your original function is it will have

But this is not a one to one function so its inverse does not exist.

Restricting the domain to force this function to be one to one you get.

Firstly

and then

The best way to see this is via a sketch.