This is a calculus homework. Given is
$$f(x)=x^a e^{-x}$$
where $x \in ]0;\infty[$ for $a \lt 0$, $x \in [0;\infty[$ for $a \geq 0$.
The task is to first find local or global minima and maxima depending on a, then decide on the convexity of f, again depending on a. $0^0$ is defined as 1.
I've looked at various properties, not all of them immediately relevant to the above questions, hoping to understand this pretty complex function better. I'll note my main results below.
Since $x=0$ is a border, I'm interested in the behavior of $f$ there.
$f(0)=0$ for $a \neq 0$
$f(0)=1$ for $a = 0$
$\lim\limits_{x \rightarrow +0}{\frac{x^a}{e^x}} = 0$ for $a \geq 0$
$\lim\limits_{x \rightarrow +0}{\frac{x^a}{e^x}} = 0$ for $a \lt 0$
For large x:
$\lim\limits_{x \rightarrow +\infty}{\frac{x^a}{e^x}} = 0$ regardless of $a$.
Minima/maxima of continuous functions need to have $f'(x)=0$:
$f'(x) = (a-x)x^{a-1}e^{-x}$
$ f'(x) = 0 \Leftrightarrow (a-x)x^{a-1}e^{-x} = 0 \Leftrightarrow a = x $
At $x=0$:
$ f'(0) = \lim\limits_{x \rightarrow +0}\frac{x^a/e^x - 0^a/e^0}{x} = \lim\limits_{x \rightarrow +0}\frac{x^{a-1}}{e^x} $
which is 1 for $a=1$, 0 for $a \geq 1$ and $+\infty$, $0 \lt a \lt 1$ and $-\infty$ for $a=0$.
For convexity, also $f''(x)$ is interesting:
$f''(x) = \frac{a(a-x)x^{a-2} - ax^{a-1}}{e^{2x}}$
$ f''(x)=0 \Leftrightarrow a(a-1)x^{a-2}=ax^{a-1} \Leftrightarrow (a-1)=x $
However, comparing this with wolframalpha, there seem to be major differences pretty much everywhere. I'm very uncertain if my results are correct. I'm in particular confused by the impact of $0^0$ or $0^{-0}$ in some of the equations, leading me to think I've taken a completely wrong approach to this problem.
I attempted $ln f(x)$, hoping to find something easier to work on, but it was fruitless.
(As I am not too familiar with neither latex nor the tags here, please feel welcome to edit this post.)


