Whenever I teach exponential (real) functions, I encounter the question: "But why $(-2)^x$ is not defined? I mean, $(-2)^{-1} = -\frac{1}{2}, (-2)^3 = -8$,..." etc. I guess the true domain of this function is the complex plain. However, I myself, not an expert in complex functions, and the students I teach, are not familiar with he subject at all. So, my questions are:
- (For myself) If I view this function only on the real line domain, and let A be the set of real points on which it is not defined, what is A? Is it a dense set in $\mathbb R$ is in an $\aleph_0$ set or is it an $\aleph$?
- (For my students) How would you explain this someone who is not yet familiar even with the definitions of continuity and differentiability (of real function). i.e. what would be your answer to the question: "But why $(-2)^x$ is not defined? I mean, $(-2)^{-1} = -\frac{1}{2}, (-2)^3 = -8$,..."
Thanks
I would say that the function is defined but only on a particular subset of $\mathbb{R}$.
Observe that $$a^x = e^{\ln{a^x}} = e^{x\ln{a}} \text{ .}$$
Also note that for $a>0$ then
$$ \begin{align} &\ln{(-a)} = z\\ \implies & a = -e^z \\ \implies & a = e^{i(2k+1)\pi}e^z \\ \implies & a = e^{z+i(2k+1)\pi} \\ \implies & z = \ln{a}-i(2k+1)\pi = \ln{(-a)} \text{ .}\\ \end{align}$$
Plugging this in for $(-2)^x$, we see
$$ (-2)^x = e^{x(\ln(2)-i(2k+1)\pi)} = e^{-i(2k+1)\pi x} \: e^{x\ln 2} \text{ .}$$
Now it's much more obvious that there is a real output only if there exists $k\in \mathbb{Z}$ such that $x(2k+1)\in\mathbb{Z}$.
As for your students, if they know complex numbers (or even if they don't) then give them some examples of where the function is defined and where it cannot be defined. For example it should be quite obvious that if $x=\frac{1}{2}$ then the function does not produce a real value.