TITLE: Why $(-2)^{2.5}$ isn't equal to $((-2)^{25})^{1/10}$?
QUESTION [19 upvotes]: I've tried both calculations on Wolfram Alpha and it returns different results, but I can't get a grasp of why it is like that.
From my point of view, both calculations should be the same, as $2.5=25/10,$ and $(-2)^{2.5}$ is equal to $(-2)^{25/10},$ relying on a general rule $(a^m)^n=a^{mn}$.
Links to sources:
https://www.wolframalpha.com/input/?i=(-2)%5E(2.5)
https://www.wolframalpha.com/input/?i=((-2)%5E(25))%5E(1%2F10)

REPLY [7 votes]: You assume that exponentation of real numbers by real numbers satisfies $a^{p \cdot q}= (a^p)^q$. However, it is not that simple. It is true for any $a \in \mathbb R$ and any $p,q \in \mathbb N$. But what is $a^x$ for a non-integer $x$? For $a > 0$ there are various approaches to define it.
(a) $a^x = e^{x \ln a}$ for all $x \in \mathbb R$.
(b) $a^{r/s} = \sqrt[s]{a^r}$ for all $r/s \in \mathbb  Q$ where we understand $s \in \mathbb N$.
The second approach can be used to define $a^x$ as $\lim_{r/s \to x} a^{r/s}$, but this requires some work.
For $a >0$ both approaches yield $a^{x \cdot y}= (a^x)^y$ for $x,y \in \mathbb R$ resp. $x,y\in  \mathbb Q$.
For $a < 0$ we get troubles. The first approach fails beacuse $\ln a$ is not defined (as a real number). The second approach has serious problems:
(1) It can only work when $r$ is even or $s$ is odd, otherwise you get something undefined (at least if you want a real value for $a^{r/s}$).
(2) If both $r,s$ are even, then the $s$-th root has two possible values (a positive and a negative). You may think that we should always choose the positive value, but the consequences would be unpleasant as you will in the next point.
(3) We should expect that $a^{r/s} = a^{u/v}$ if $r/s = u/v$. But if both $r, s$ are odd, then $a^{r/s}$ is negative whereas $a^{2r/2s}$ is positive.
Choosing always the negative value for the $s$-th root, $s$ even, produces the same problem (consider $r$ even, $s$ odd). And choosing in an ad-hoc way cannot be a serious approach.
Thus, if $a < 0$, you cannot expect $a^{x \cdot y}= (a^x)^y$ to be true no matter how you define $a^{r/s}$. Here is an example, similar to your question:
$$((-1)^2)^{1/2} = 1^{1/2}= \sqrt{1} = 1 \ne (-1)^{2 \cdot 1/2} = (-1)^1 = -1$$
if we choose the positive root.
The lesson is: Be careful when using $a^{x \cdot y}= (a^x)^y$.