In the equation below,
Solve for $x$: $\log\left(x^2\right)=4$
Here, I think that the answer is going to be $100$ and $-100$. Because if we insert $-100$, $x^2$ is still positive and thereby, it doesn't violate the rule that we can only insert positive values in logarithm.
But another counter point I have is that, we can write the expression as,
2log(x)=4
Or, log(x)=2
Or, x=10^2
In this way, I get the only positive value. Which one of them is correct? And if process 1 is, what are the flaws in the second?