I'm confused why wolfram alpha defined the function $x^x $ for $x>0$ , only what i think that it were defined it as :$e^{x\log x}$ , but the domain of definition depend to the function form .then : Why wolfram alpha assumed $ x>0$ as a domain of definition for $x^x $ ?
Note: for example $x$ and $e^{\log x}$ are equivalent form but they don't have the same domain of definitin .
Edit: I have edited the question just to give an example without changing the meaning of the question
$$e^{x\log x}$$
is defined where the exponent $x\log x$ is defined. Even if $x$ is defined on the whole real line, the function $\log x$ is defined only on the open set $]0,\infty[$. Hence the natural domain is such interval, i.e. $x>0$.
EDIT (The natural domain of $x^x$ without using the form $e^{x\log x}$).
The function $b^x$ is defined if and only if $b>0$. Now you may consider the function $b(x)^x$, where $b$ depends on $x$, and also in this case $b(x)$ must be a positive function (this include that can be constant and positive). In particular $b(x)$ may be the identity function, that is $b(x)=x$. Hence $x=b(x)>0$. Hence the natural domain for $x^x$ is $]0,\infty[$.