I'm not good at Math and please don't blame me if this question is too obvious to you. There is a formula about logarithmic function.
$\log_ab^x = x\times\log_ab$
Here is a problem:
$\log_5x^2 = -2$
If I use the formula, I got:
$2\times log_5x=-2$
But it seems this is not correct. In the problem, $x$ could be any number including negtive numbers. After using the formula, $x$` can't be negative. So is this formula wrong or am I doing wrong somewhere?