To solve for x in $$3\log_3|-x| = \log_3 x^2 $$
I made cases such that when $x > 0$ and $x<0$
For first part i.e $x >0$ i get $3\log_3 x=2\log x^2$. so $x=1$.
For other case also comes out to be $x=1$. But textbook states answer to be $x=-1 $ also. Now clearly this satisfies eqiation also. But why this solution is not coming in my working method?
Thanks
It should. When $x<0$ we have $|-x| = -x$ so
$$3 \log_3 |-x| = \log_3 x^2 \implies -x^3 = x^2 \implies x^2 + x^3 = 0 \implies x^2(x+1) = 0$$
so either $x=0$ which isn't in the domain, or $x+1 = 0 \implies x=-1$.