Hi, I could really use some help with this. I couldn't understand the book's way of solving the problem.

Find the inverse function of the following, also state the domain and range of the original functions:

a) g(x)=3+e^x

b) h(x)=log(x-1)

Thanks in advance.