The function is
is not one-to-one function.

If
is
or
then the value of
is
, so it is not a one-to-one function.
If the value of
is in the domain of
the function is one-to-one function.
, 
Since the domain of
is
,
.
,
.
The new function
,
.
Find
.

To find
interchange
and
.

Solve
to find
.

The inverse function is
,
.
The new function
,
.
The inverse function is
,
.