I want to calculate the square of the absolute value of a complex number $x^{ia}$, with $x$ and $a$ being real while $i$ is the imaginary number:
$$\left|x^{ia}\right|^2=?.$$
I have trouble because the basis is not the Euler constant $e$, but an arbitrary $x$. So, the first approach would be to rewrite it like:
$$x^{ia}=r\cdot e^{ia},$$
but how can I find $r$?
As $$x=e^{ln(x)}$$ Therefore $$x^{ia}=e^{ln(x)\cdot ia}=e^{i\cdot ln(x)a}$$ So $$r=1$$ and your phase is different from what you thought.