I have just realised that there is a little ambiguity in defining conditions for $x$ in logarithm. Let me illustrate it on a simple example:
$\log{x}$ is valid for $x>0$ ,
$2\log{x}$ is also valid only for $x>0$ ,
but $\log{x^2}$ is valid for both $x>0$ and $x<0$ .
How is that possible when $2\log{x} = \log{x^2}$ ?