Find the domain of the function.
I'll just do the first one for you.
$$\\g(x) = log_3( x^2-9)\\\\x^2-9>0\qquad \qquad \mbox{because you can only find the log of a positive number}\\\\x^2>9\\\\x<-3 \:\:or\:\: x>3$$
Check with a graph.