What is $(-1)^{\frac{1}3}$? I was surfing Facebook and I ran into this question posted by a high school student:

$$\text{Which value equals } (-1)^{\frac{1}3}?\quad\text{Is it } 1\text{ or }-1?$$

He said that he asked this because he did it in two ways, both of which seem valid but they generate different answers.
Way #1:
$$(-1)^{\frac{1}3}=\sqrt[3]{-1}=-1$$ since $(-1)^3=-1$. However, he also did something else.
Way #2:
$$(-1)^{\frac{1}3}=(-1)^{\frac{2}6}=\left((-1)^2\right)^{\frac{1}6}=\sqrt[6]1=1$$
and this solution seems valid as well. He's confused, and after reading his question, I became somewhat confused as well.  I know that $1^3\ne-1$, but I can’t see why way#2 is wrong.
Which solution above is invalid? Or is $(-1)^{\frac{1}3}$ undefined? Thanks in advance. I apologize if this is a stupid question.

The fact is that $$a^{mn}={(a^m)}^n$$ need not be always valid.
The correct way is $$x={(-1)}^{1/3}$$
$$x^3+1=0$$
$$(x+1)(x^2-x+1)=0$$
if x is real $$x=-1$$
