0
$\begingroup$

Another 'find the real and imaginary parts of this expression' question. I see that this happens quite a bit, but none of the questions/answers I found helped me with my case.

I have $x$ and $y$ which are both real numbers, and $y$ is positive.

How do I express $x^y$ as some $a + bi$?

This seems like it should be really simple, but I've not had much luck, and general internet search results are helpfully filled with pages talking about only the integer or rational cases of (complex) exponentiation.

$\endgroup$
3
  • $\begingroup$ If $x\ge 0$, this is just exponentiation in the reals. In the case $x<0$, you usually run into trouble since complex logarithms are multivalued. $\endgroup$
    – Peter
    Commented Feb 25, 2022 at 19:03
  • $\begingroup$ Could you somehow use the identity $re^{i\theta}=r(\cos\theta+i\sin\theta)$? $\endgroup$ Commented Feb 25, 2022 at 19:06
  • $\begingroup$ You could set $\theta=2\pi$? $\endgroup$ Commented Feb 25, 2022 at 19:07

1 Answer 1

0
$\begingroup$

After reading up on complex logarithms, I think I may have figured it out.

Complex logarithms let me rewrite

$$x^y$$

as

$$e^{y \ln (x)}$$

$\ln (x)$ is still a complex number (actually many of them). The real and imaginary parts of this number are $\ln (|x|)$ (which is now just a standard natural logarithm of a positive real) and $\arg (x)$ (still a multivalued function) respectively.

That lets me write my expression as

$$e^{y (\ln (|x|) + i \arg (x))}$$

which I can further expand to

$$e^{y \ln (|x|)} e^{i y \arg (x)}$$

Referring to the identity suggested by @blakedylanmusic, I can observe that

$$r = e^{y \ln (|x|)}$$

$$\theta = y \arg(x)$$

Now applying the identity, I rewrite the expression as

$$e^{y \ln (|x|)} (\cos (y \arg (x)) + i \sin (y \arg (x)))$$

Now

$$a = e^{y \ln (|x|)} \cos (y \arg (x))$$

$$b = e^{y \ln (|x|)} \sin (y \arg (x))$$

If I understand the multiplicity of complex logarithm correctly, the multiplicity of the complex logarithm is captured by $\arg(x)$ returning many possible angles. That multiplicity is then collapsed away when we pass that value back into $\sin ()$ and $\cos ()$, so this is expression actually produces a unique complex number - the exact result of the initial exponentiation.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .