I wish to prove that $(-x)^r\neq y$ for $x>0$ and $x,y,r\in \mathbb{R}$ and $r\notin\mathbb{Q}$.
I tried to prove in this way;$$(-x)^r=(-1)^r\cdot x^r=x^r\cdot e^{\pi i r}=x^r(\cos(\pi r)+i\sin(\pi r))$$ For that to be real, $\sin(\pi r)$ has to be $0$;$$\sin(\pi r)=0\\\pi r=0+\pi k , \ \ \,\,\, k\in\mathbb{Z}\\r=k$$ But something must be wrong with this proof, because it proves that $r$ must be an integer, but really it doesn't have to; $(-1)^{\frac{1}{3}}=-1$.
So what is wrong with this proof, and how do I prove correctly?