Ive been having a bit of trouble with this one.

Find the Inverse.

$\displaystyle g(x)= 3^x + 1$

I think that the answer is this but Im not sure

$\displaystyle g^-1(x)=\log_{x}3 + 1$

Or would the answer be

$\displaystyle g^-1(x)=\log_{x}3 - 1$

Thanks for any and all help given.