in particular i am asking for the case when one of the powers $a$ or $b$ is a fraction. in such a case, i believe the maths expression then may be ambiguous, as when you do to the power of a fraction, it's not clear if the required answer is the principal root, or if it is all roots.
eg i know $(4^{\frac12})^2 = 4$ but is $(4^2)^{\frac12} = 4$? in this case, i think it's ambiguous, some will say also $-4$ is a solution , so we should add some notation that we want the "principal root" , and then it is true