1

I was messing around on desmos and all of these functions seem to be only defined for $x=0$ and $x>0$. Is this an error on desmos' part or are they really only defined for $x=0$ and $x>0$ and if so, why? Does it have something to do with the exponents being irrational and what about the exponents being irrational makes these functions undefined for negative values?

1 Answers1

0

Recall that $x^y = e^{y \ln x}$. This raises the question of how to take the logarithm of a negative number. It can be done by using Euler's formula $e^{i\theta}=\cos \theta + i \sin \theta$. So, if you can express a complex number in polar form as $x = r(\cos \theta + i \sin \theta) = re^{i\theta}$, then $\ln x = \ln r + i\theta$.

If $x$ is a negative real number, then we must have $\cos \theta = -1$ and $\sin \theta = 0$, which means that $\theta$ must be an odd multiple of $\pi$, i.e., $\theta = (2n + 1)\pi$ for some integer $n$. So $\ln x = \ln r + i(2n + 1)\pi$.

So, for the case of $f(x) = x^e$ (with $x$ negative), that works out to $f(x) = e^{e(\ln r + i(2n + 1)\pi)} = e^{e \ln r}e^{ie(2n + 1)\pi} = r^e(\cos (e(2n + 1)\pi) + i \sin (e(2n + 1)\pi))$. This is a real number only if $e(2n + 1)$ is an integer. But because $e$ is an irrational number, that never happens. Therefore, the function must be complex-valued.

Dan
  • 14,978