In Chapter 18 of Spivak's Calculus, the author gives some exposition on the $\ln$ and $\exp$ functions; there is an accepted answer (Can you raise a number to an irrational exponent?) elsewhere that nicely summarizes Spivak's general approach. After Spivak remarks that one can show $\exp(x)=[\exp(1)]^x$ for any $x \in \mathbb Q$...and after defining $e^x=\exp(x)$ for any $x \in \mathbb R$, he writes the following:
The terminology "exponential function" should now be clear. We have succeeded in defining $e^x$ for an arbitrary (even irrational) exponent $x$. We have not yet defined $a^x$, if $a \neq e$, but there is a reasonable principle to guide us in the attempt. If $x$ is rational, then $a^x=(e^{\log a})^x\color{red}{=}e^{x \log a}$.
This final bolded sentence, in particular the equality colored $\color{red}{\text{red}}$, has me confused. It is not clear to me why this is true. I recently proved that if $x,y \in \mathbb Q$, then $(\alpha^x)^y=\alpha^{xy}$, but I have no proof that if $x \lor y \notin \mathbb Q$, then the statement remains true. Clearly, because $\log$ is a continuous function with an image of $\mathbb R$, it must be the case that there exists $a$ such that $\log a \notin \mathbb Q$. This means that I am not eligible to apply my $(\alpha^x)^y= \alpha^{xy}$ rule.
If $x$ is a non-zero integer, then I can prove that $(e^{\log a})^x=e^{x\log a}$ using the property that for any $r_1,r_2 \in \mathbb r: \exp(r_1+r_2)=\exp(r_1)\exp(r_2) \quad (\star_1)$. However, if $x$ is a rational number whose denominator is not $1$, then it is unclear to me how I resolve the root symbol.
For example, let $x =\frac{p}{q}$. Then, by definition, we have that $(e^{\log a})^{\frac{p}{q}}=\sqrt[q]{\left(e^{\log a}\right)^p}$. From the aforementioned property $(\star_1)$, this then equals $\sqrt[q]{e^{p \log a}}$, which, by definition, is just $\left(\exp(p \log a )\right)^{\frac{1}{q}}$. But how do I get the $q$ into the exponent...or, equivalently, how do I get $q$ in to the denominator of the argument for $\exp$?