The value of the real variable $x \geq 0$, which maximizes the function $f\left ( x \right ) = x^{e} e ^{-x}$ is

1. $e$
2. $0$
3. $\frac{1}{e}$
4. $1$