This is a follow up to this MathEducators question. I'm trying to define exponents through the route recommended by the leading answer:
- Define $\ln(x) = \int_1^x \frac{1}{t} dt$.
- Define $\exp$ as the inverse of $\ln$.
- Define $x^n = \exp(n\ln(x))$.
This works well for $x>0$, but I'm having trouble seeing how this would work for $x\leq0$. As defined, $\ln (x)$ is undefined for $x\leq0$.
Am I missing something? Or is there something we must do to patch up the above series of definitions, so that our definition of $x^n$ allows for $x\leq0$?
For positive numbers $x$, there is no problem at all to define $x^{a/b}$ for a rational number $a/b$. It is $\sqrt[b]{x^a}$ or $(\sqrt[b]{x})^a$. With this definition, all the usual laws of exponents are extended to rational exponents. To go beyond this, for real exponents $a$, one can define $x^a = \exp(a \ln(x))$, as you have done.
For negative $x$ there is no problem with integer exponents, but rational exponents are already subtle and involve complex numbers as you can see by the example $(-1)^{1/2}$, which has to be the imaginary number $i$ or $-i$. For the general solution one has to extend $\ln$ and $\exp$ to the complex domain, and this involves some further subtleties.