determine the inverse of y=2(3)^x+1

x= 2*3^y +1

(1/2)(x-1)=3^y

take the log of each side

log (1/2)+log(x-1)=ylog3

y= (log 1/2 + log(x-1)/log3