Find the inverse of g(x)=3^x

g^-1(x) = log3x