I have some issues with using the logarithm formulas, I have this expression for example where $\log$ is the natural logarithm:
$$ \log ( \frac{1}{3}\theta^{3y}) $$
Then we know the standard logarithm rules: $$ \log(a^b) = b\log(a) $$ $$ \log(\frac{a}{b}) = \log(a)-\log(b) $$
But If I apply them in various order I get two different results: $$ \log(\theta^{3y}) - \log(3) = 3y \log(\theta) - \log(3) $$
I am working through an old exam set, and the following is what my professor got in the same calculation: $$ \log ( \frac{1}{3}\theta^{3y}) = 3y\log(\frac{\theta}{3}) = 3y(\log(\theta)-\log(3)) = 3y\log(\theta) - 3y\log(3) $$
I think that my mistake might be that I am disregarding that exponents binds tigther than division so I can only apply these logarithm rules to the operator that binds the tightest at that moment? so my question is about composite functions and how to reason about when I can use which rules?