As a point of curiosity, I found myself wondering when a complex number to an integer power creates a real number. For the sake of completeness, I also looked at when the result is a fully imaginary number.
More rigorously, define C∗ as the set of complex numbers a+bi where both a and b are non-zero, and k∈N∗. For what values x∈C∗ is xk∈R∨I?
k = 1
This is the trivial case. Since x1=x, there are no real or imaginary cases.
k = 2
(a+bi)2=a2+2abi+b2i2=a2+2abi–b2=(a2–b2)+2abi.
This is real when the coefficient of i, i.e., 2ab is equal to 0. This is only true when a=0 or b=0, so it is not true for any element of C∗.
This is imaginary when a2–b2=0⇒a2=b2. That is, (a±ai)2∈C∗.
k = 3
(a+bi)3=a2+3a2bi–3ab2–b3i=a(a2–3b2)+b(3a2–b2)i.
This is real when b(3a2–b2)=0. If b=0,x∉C∗, so we ignore that case. 3a2–b2=0⇒3a2=b2, so b=±√3a. Hence, if x∈C∗, x=a±a√3i.
Similarly, this is imaginary when a(a2–3b2)=0, so b=±√33a and x=a±a√33i.
k = 4
Using similar methods, we get: (a+bi)4=(a4–6a2b2+b4)+4ab(a2–b2)i.
This is real when a2=b2, so x=a±ai.
Replacing a2=c and b2=d gives us the real part of d2–6dc+c2. Applying the quadratic formula with a=1, b=−6c, and d=c2 yields c=6c±√36c2–4c22=3c±c√8=(3±2√2)c. Note that since the quadratic is symmetrical, that means that 3+2√2=13–2√2.
Since a2=c and b2=d=(3±2√2)c, a=±√c and b=±(3±2√2)√c=±(3±2√2)a.
This is imaginary, then, when x=a±(3±2√2)ai.
k = 5
This time, we get: (a+bi)5=a(a4–10a2b2+5b4)+b(5a4–10a2b2+b4)i
This is real when 5a4–10a2b2+b4=5c2–10cd+d2=0.
d=10c±√100c2–20c210=10c±4c√52=5±2√5c, so b=±√5±2√5a.
This is real, then, when x=a±√5±2√5ai.
This is imaginary when a4–10a2b2+5b4=c2–10cd+5d2=0.
d=10c±√100c2–20c210=10c±4c√510=(1±2√55)c, so b=±√1±2√55a.
This is imaginary, then, when x=a±√1±2√55ai.
k = 6
This time, we get: (a+bi)6=(a6–15a4b2+15a2b4–b6)+2ab(3a4–10a2b2+3b4)i
This is real when 3a4–10a2b2+3b4=3c2–10cd+3d2=0.
d=10c±√100c2–36c26=10c±8c6=5±43c, so b=±√5±43a.
This is real, then, when x=a±√5±43ai.
This is imaginary when a6–15a4b2+15a2b4–b6=c3–15c2d+15cd2–d3=0.
We can factor c3–15c2d+15cd2–d3=(c–d)(c2–14cd+d2). c–d=0 when c=d, so b=±a is one possibility. Let’s look at the other case.
c2–14cd+d2=0 when d=14c±√196c2–4c22=7c±√48c=(7±4√3)c, so b=±√7±4√3a.
This is imaginary, then, when x∈{a±ai,a±√7±4√3ai}.
Summary
At k=7, we have the cubics c3–21c2d+35cd2–7d3 and 7c3–35c2d+21cd2–d3, which do not have factors, so this is a good place to stop.
Factoring out a, here are the cases where x∈C∗ yields xk∈R∨I:
k | xk∈R | xk∈I |
1 | (None) | (None) |
2 | (None) | 1±i |
3 | 1±√3i | 1±√33i |
4 | 1±i | 1±(3±2√2)i |
5 | 1±√5±2√5i | 1±√1±2√55i |
6 | 1±√5±43i | {1±i,1±√7±4√3i} |