f(x)=1/(x-1)

find inverse function x=g(y) by solving the epression for x in terms of y.In each case, indicate domain and range of inverse function and then show gof(x)=x and fog(x)=y.

I got domain of above function as (-infinity , 1) U (1 , +infinity)