Let's see if this reasoning is correct:
\(\displaystyle 3^{x} = 9\)
\(\displaystyle log_3(3^{x})= log_3(9)\) - On the left side the \(\displaystyle log\) and exponent undo each other.
\(\displaystyle x = log_3(9)\) Use calculator to see that the \(\displaystyle log\) of \(\displaystyle 9 = 3\)
\(\displaystyle x = 3\)
\(\displaystyle 3^{x} = 9\)
\(\displaystyle log_3(3^{x})= log_3(9)\) - On the left side the \(\displaystyle log\) and exponent undo each other.
\(\displaystyle x = log_3(9)\) Use calculator to see that the \(\displaystyle log\) of \(\displaystyle 9 = 3\)
\(\displaystyle x = 3\)